yandex.cloud.api.serverless.containers.v1.ContainerOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/serverless/containers/v1/container.proto
package yandex.cloud.api.serverless.containers.v1;
public final class ContainerOuterClass {
private ContainerOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface ContainerOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.containers.v1.Container)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the container. Generated at creation time.
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* ID of the container. Generated at creation time.
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* ID of the folder that the container belongs to.
*
*
* string folder_id = 2;
* @return The folderId.
*/
java.lang.String getFolderId();
/**
*
* ID of the folder that the container belongs to.
*
*
* string folder_id = 2;
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
*
* Creation timestamp for the container.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
boolean hasCreatedAt();
/**
*
* Creation timestamp for the container.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return The createdAt.
*/
com.google.protobuf.Timestamp getCreatedAt();
/**
*
* Creation timestamp for the container.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder();
/**
*
* Name of the container. The name is unique within the folder.
*
*
* string name = 4;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the container. The name is unique within the folder.
*
*
* string name = 4;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Description of the container.
*
*
* string description = 5;
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the container.
*
*
* string description = 5;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Container labels as `key:value` pairs.
*
*
* map<string, string> labels = 6;
*/
int getLabelsCount();
/**
*
* Container labels as `key:value` pairs.
*
*
* map<string, string> labels = 6;
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLabels();
/**
*
* Container labels as `key:value` pairs.
*
*
* map<string, string> labels = 6;
*/
java.util.Map
getLabelsMap();
/**
*
* Container labels as `key:value` pairs.
*
*
* map<string, string> labels = 6;
*/
java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* Container labels as `key:value` pairs.
*
*
* map<string, string> labels = 6;
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
/**
*
* URL that needs to be requested to call the container.
*
*
* string url = 8;
* @return The url.
*/
java.lang.String getUrl();
/**
*
* URL that needs to be requested to call the container.
*
*
* string url = 8;
* @return The bytes for url.
*/
com.google.protobuf.ByteString
getUrlBytes();
/**
*
* Status of the container.
*
*
* .yandex.cloud.serverless.containers.v1.Container.Status status = 9;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
*
* Status of the container.
*
*
* .yandex.cloud.serverless.containers.v1.Container.Status status = 9;
* @return The status.
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.Status getStatus();
}
/**
* Protobuf type {@code yandex.cloud.serverless.containers.v1.Container}
*/
public static final class Container extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.containers.v1.Container)
ContainerOrBuilder {
private static final long serialVersionUID = 0L;
// Use Container.newBuilder() to construct.
private Container(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Container() {
id_ = "";
folderId_ = "";
name_ = "";
description_ = "";
url_ = "";
status_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Container();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Container(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
folderId_ = s;
break;
}
case 26: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (createdAt_ != null) {
subBuilder = createdAt_.toBuilder();
}
createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(createdAt_);
createdAt_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
labels__ = input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
labels_.getMutableMap().put(
labels__.getKey(), labels__.getValue());
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
url_ = s;
break;
}
case 72: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Container_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Container_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.serverless.containers.v1.Container.Status}
*/
public enum Status
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STATUS_UNSPECIFIED = 0;
*/
STATUS_UNSPECIFIED(0),
/**
*
* Container is being created.
*
*
* CREATING = 1;
*/
CREATING(1),
/**
*
* Container is ready for use.
*
*
* ACTIVE = 2;
*/
ACTIVE(2),
/**
*
* Container is being deleted.
*
*
* DELETING = 3;
*/
DELETING(3),
/**
*
* Container failed. The only allowed action is delete.
*
*
* ERROR = 4;
*/
ERROR(4),
UNRECOGNIZED(-1),
;
/**
* STATUS_UNSPECIFIED = 0;
*/
public static final int STATUS_UNSPECIFIED_VALUE = 0;
/**
*
* Container is being created.
*
*
* CREATING = 1;
*/
public static final int CREATING_VALUE = 1;
/**
*
* Container is ready for use.
*
*
* ACTIVE = 2;
*/
public static final int ACTIVE_VALUE = 2;
/**
*
* Container is being deleted.
*
*
* DELETING = 3;
*/
public static final int DELETING_VALUE = 3;
/**
*
* Container failed. The only allowed action is delete.
*
*
* ERROR = 4;
*/
public static final int ERROR_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Status valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Status forNumber(int value) {
switch (value) {
case 0: return STATUS_UNSPECIFIED;
case 1: return CREATING;
case 2: return ACTIVE;
case 3: return DELETING;
case 4: return ERROR;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Status> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Status findValueByNumber(int number) {
return Status.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.getDescriptor().getEnumTypes().get(0);
}
private static final Status[] VALUES = values();
public static Status valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Status(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.serverless.containers.v1.Container.Status)
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* ID of the container. Generated at creation time.
*
*
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* ID of the container. Generated at creation time.
*
*
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FOLDER_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder that the container belongs to.
*
*
* string folder_id = 2;
* @return The folderId.
*/
@java.lang.Override
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
folderId_ = s;
return s;
}
}
/**
*
* ID of the folder that the container belongs to.
*
*
* string folder_id = 2;
* @return The bytes for folderId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATED_AT_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp createdAt_;
/**
*
* Creation timestamp for the container.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
*
* Creation timestamp for the container.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return The createdAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreatedAt() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
/**
*
* Creation timestamp for the container.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object name_;
/**
*
* Name of the container. The name is unique within the folder.
*
*
* string name = 4;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the container. The name is unique within the folder.
*
*
* string name = 4;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 5;
private volatile java.lang.Object description_;
/**
*
* Description of the container.
*
*
* string description = 5;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
* Description of the container.
*
*
* string description = 5;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LABELS_FIELD_NUMBER = 6;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Container_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
* Container labels as `key:value` pairs.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
* Container labels as `key:value` pairs.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Container labels as `key:value` pairs.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Container labels as `key:value` pairs.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int URL_FIELD_NUMBER = 8;
private volatile java.lang.Object url_;
/**
*
* URL that needs to be requested to call the container.
*
*
* string url = 8;
* @return The url.
*/
@java.lang.Override
public java.lang.String getUrl() {
java.lang.Object ref = url_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
url_ = s;
return s;
}
}
/**
*
* URL that needs to be requested to call the container.
*
*
* string url = 8;
* @return The bytes for url.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUrlBytes() {
java.lang.Object ref = url_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 9;
private int status_;
/**
*
* Status of the container.
*
*
* .yandex.cloud.serverless.containers.v1.Container.Status status = 9;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Status of the container.
*
*
* .yandex.cloud.serverless.containers.v1.Container.Status status = 9;
* @return The status.
*/
@java.lang.Override public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.Status getStatus() {
@SuppressWarnings("deprecation")
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.Status result = yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.Status.valueOf(status_);
return result == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.Status.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, folderId_);
}
if (createdAt_ != null) {
output.writeMessage(3, getCreatedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLabels(),
LabelsDefaultEntryHolder.defaultEntry,
6);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, url_);
}
if (status_ != yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(9, status_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, folderId_);
}
if (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCreatedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_);
}
for (java.util.Map.Entry entry
: internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry
labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, labels__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, url_);
}
if (status_ != yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, status_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container other = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getFolderId()
.equals(other.getFolderId())) return false;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!internalGetLabels().equals(
other.internalGetLabels())) return false;
if (!getUrl()
.equals(other.getUrl())) return false;
if (status_ != other.status_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getFolderId().hashCode();
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
hash = (37 * hash) + URL_FIELD_NUMBER;
hash = (53 * hash) + getUrl().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.serverless.containers.v1.Container}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.containers.v1.Container)
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ContainerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Container_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 6:
return internalGetMutableLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Container_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.Builder.class);
}
// Construct using yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
folderId_ = "";
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
name_ = "";
description_ = "";
internalGetMutableLabels().clear();
url_ = "";
status_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Container_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container getDefaultInstanceForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container build() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container buildPartial() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container result = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.folderId_ = folderId_;
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
result.name_ = name_;
result.description_ = description_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
result.url_ = url_;
result.status_ = status_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container) {
return mergeFrom((yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container other) {
if (other == yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getFolderId().isEmpty()) {
folderId_ = other.folderId_;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
if (!other.getUrl().isEmpty()) {
url_ = other.url_;
onChanged();
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* ID of the container. Generated at creation time.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the container. Generated at creation time.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the container. Generated at creation time.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* ID of the container. Generated at creation time.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* ID of the container. Generated at creation time.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object folderId_ = "";
/**
*
* ID of the folder that the container belongs to.
*
*
* string folder_id = 2;
* @return The folderId.
*/
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
folderId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the folder that the container belongs to.
*
*
* string folder_id = 2;
* @return The bytes for folderId.
*/
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the folder that the container belongs to.
*
*
* string folder_id = 2;
* @param value The folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
folderId_ = value;
onChanged();
return this;
}
/**
*
* ID of the folder that the container belongs to.
*
*
* string folder_id = 2;
* @return This builder for chaining.
*/
public Builder clearFolderId() {
folderId_ = getDefaultInstance().getFolderId();
onChanged();
return this;
}
/**
*
* ID of the folder that the container belongs to.
*
*
* string folder_id = 2;
* @param value The bytes for folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
folderId_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
*
* Creation timestamp for the container.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* Creation timestamp for the container.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return The createdAt.
*/
public com.google.protobuf.Timestamp getCreatedAt() {
if (createdAtBuilder_ == null) {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
} else {
return createdAtBuilder_.getMessage();
}
}
/**
*
* Creation timestamp for the container.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdAt_ = value;
onChanged();
} else {
createdAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* Creation timestamp for the container.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder setCreatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdAtBuilder_ == null) {
createdAt_ = builderForValue.build();
onChanged();
} else {
createdAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Creation timestamp for the container.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (createdAt_ != null) {
createdAt_ =
com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial();
} else {
createdAt_ = value;
}
onChanged();
} else {
createdAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Creation timestamp for the container.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
*
* Creation timestamp for the container.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
*
* Creation timestamp for the container.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
*
* Creation timestamp for the container.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedAtFieldBuilder() {
if (createdAtBuilder_ == null) {
createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreatedAt(),
getParentForChildren(),
isClean());
createdAt_ = null;
}
return createdAtBuilder_;
}
private java.lang.Object name_ = "";
/**
*
* Name of the container. The name is unique within the folder.
*
*
* string name = 4;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the container. The name is unique within the folder.
*
*
* string name = 4;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the container. The name is unique within the folder.
*
*
* string name = 4;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the container. The name is unique within the folder.
*
*
* string name = 4;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the container. The name is unique within the folder.
*
*
* string name = 4;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* Description of the container.
*
*
* string description = 5;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the container.
*
*
* string description = 5;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the container.
*
*
* string description = 5;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description of the container.
*
*
* string description = 5;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the container.
*
*
* string description = 5;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
onChanged();;
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
* Container labels as `key:value` pairs.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
* Container labels as `key:value` pairs.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Container labels as `key:value` pairs.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Container labels as `key:value` pairs.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLabels() {
internalGetMutableLabels().getMutableMap()
.clear();
return this;
}
/**
*
* Container labels as `key:value` pairs.
*
*
* map<string, string> labels = 6;
*/
public Builder removeLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableLabels().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableLabels() {
return internalGetMutableLabels().getMutableMap();
}
/**
*
* Container labels as `key:value` pairs.
*
*
* map<string, string> labels = 6;
*/
public Builder putLabels(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableLabels().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Container labels as `key:value` pairs.
*
*
* map<string, string> labels = 6;
*/
public Builder putAllLabels(
java.util.Map values) {
internalGetMutableLabels().getMutableMap()
.putAll(values);
return this;
}
private java.lang.Object url_ = "";
/**
*
* URL that needs to be requested to call the container.
*
*
* string url = 8;
* @return The url.
*/
public java.lang.String getUrl() {
java.lang.Object ref = url_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
url_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* URL that needs to be requested to call the container.
*
*
* string url = 8;
* @return The bytes for url.
*/
public com.google.protobuf.ByteString
getUrlBytes() {
java.lang.Object ref = url_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* URL that needs to be requested to call the container.
*
*
* string url = 8;
* @param value The url to set.
* @return This builder for chaining.
*/
public Builder setUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
url_ = value;
onChanged();
return this;
}
/**
*
* URL that needs to be requested to call the container.
*
*
* string url = 8;
* @return This builder for chaining.
*/
public Builder clearUrl() {
url_ = getDefaultInstance().getUrl();
onChanged();
return this;
}
/**
*
* URL that needs to be requested to call the container.
*
*
* string url = 8;
* @param value The bytes for url to set.
* @return This builder for chaining.
*/
public Builder setUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
url_ = value;
onChanged();
return this;
}
private int status_ = 0;
/**
*
* Status of the container.
*
*
* .yandex.cloud.serverless.containers.v1.Container.Status status = 9;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Status of the container.
*
*
* .yandex.cloud.serverless.containers.v1.Container.Status status = 9;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
*
* Status of the container.
*
*
* .yandex.cloud.serverless.containers.v1.Container.Status status = 9;
* @return The status.
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.Status getStatus() {
@SuppressWarnings("deprecation")
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.Status result = yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.Status.valueOf(status_);
return result == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.Status.UNRECOGNIZED : result;
}
/**
*
* Status of the container.
*
*
* .yandex.cloud.serverless.containers.v1.Container.Status status = 9;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container.Status value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Status of the container.
*
*
* .yandex.cloud.serverless.containers.v1.Container.Status status = 9;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.containers.v1.Container)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.containers.v1.Container)
private static final yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container();
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Container parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Container(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Container getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RevisionOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.containers.v1.Revision)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the revision.
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* ID of the revision.
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* ID of the container that the revision belongs to.
*
*
* string container_id = 2;
* @return The containerId.
*/
java.lang.String getContainerId();
/**
*
* ID of the container that the revision belongs to.
*
*
* string container_id = 2;
* @return The bytes for containerId.
*/
com.google.protobuf.ByteString
getContainerIdBytes();
/**
*
* Description of the revision.
*
*
* string description = 3;
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the revision.
*
*
* string description = 3;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Creation timestamp for the revision.
*
*
* .google.protobuf.Timestamp created_at = 4;
* @return Whether the createdAt field is set.
*/
boolean hasCreatedAt();
/**
*
* Creation timestamp for the revision.
*
*
* .google.protobuf.Timestamp created_at = 4;
* @return The createdAt.
*/
com.google.protobuf.Timestamp getCreatedAt();
/**
*
* Creation timestamp for the revision.
*
*
* .google.protobuf.Timestamp created_at = 4;
*/
com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder();
/**
*
* Image configuration for the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Image image = 5;
* @return Whether the image field is set.
*/
boolean hasImage();
/**
*
* Image configuration for the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Image image = 5;
* @return The image.
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image getImage();
/**
*
* Image configuration for the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Image image = 5;
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ImageOrBuilder getImageOrBuilder();
/**
*
* Resources allocated to the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Resources resources = 6;
* @return Whether the resources field is set.
*/
boolean hasResources();
/**
*
* Resources allocated to the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Resources resources = 6;
* @return The resources.
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources getResources();
/**
*
* Resources allocated to the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Resources resources = 6;
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ResourcesOrBuilder getResourcesOrBuilder();
/**
*
* Timeout for the execution of the revision.
* If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code.
*
*
* .google.protobuf.Duration execution_timeout = 7;
* @return Whether the executionTimeout field is set.
*/
boolean hasExecutionTimeout();
/**
*
* Timeout for the execution of the revision.
* If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code.
*
*
* .google.protobuf.Duration execution_timeout = 7;
* @return The executionTimeout.
*/
com.google.protobuf.Duration getExecutionTimeout();
/**
*
* Timeout for the execution of the revision.
* If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code.
*
*
* .google.protobuf.Duration execution_timeout = 7;
*/
com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder();
/**
*
* The number of concurrent requests allowed per container instance.
*
*
* int64 concurrency = 8;
* @return The concurrency.
*/
long getConcurrency();
/**
*
* ID of the service account associated with the revision.
*
*
* string service_account_id = 9;
* @return The serviceAccountId.
*/
java.lang.String getServiceAccountId();
/**
*
* ID of the service account associated with the revision.
*
*
* string service_account_id = 9;
* @return The bytes for serviceAccountId.
*/
com.google.protobuf.ByteString
getServiceAccountIdBytes();
/**
*
* Status of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Revision.Status status = 10;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
*
* Status of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Revision.Status status = 10;
* @return The status.
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.Status getStatus();
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
java.util.List
getSecretsList();
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret getSecrets(int index);
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
int getSecretsCount();
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
java.util.List extends yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.SecretOrBuilder>
getSecretsOrBuilderList();
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.SecretOrBuilder getSecretsOrBuilder(
int index);
/**
*
* Network access. If specified the revision will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.containers.v1.Connectivity connectivity = 12;
* @return Whether the connectivity field is set.
*/
boolean hasConnectivity();
/**
*
* Network access. If specified the revision will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.containers.v1.Connectivity connectivity = 12;
* @return The connectivity.
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity getConnectivity();
/**
*
* Network access. If specified the revision will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.containers.v1.Connectivity connectivity = 12;
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ConnectivityOrBuilder getConnectivityOrBuilder();
/**
*
* Policy for provisioning instances of the revision.
* The policy is only applied when the revision is ACTIVE.
*
*
* .yandex.cloud.serverless.containers.v1.ProvisionPolicy provision_policy = 13;
* @return Whether the provisionPolicy field is set.
*/
boolean hasProvisionPolicy();
/**
*
* Policy for provisioning instances of the revision.
* The policy is only applied when the revision is ACTIVE.
*
*
* .yandex.cloud.serverless.containers.v1.ProvisionPolicy provision_policy = 13;
* @return The provisionPolicy.
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy getProvisionPolicy();
/**
*
* Policy for provisioning instances of the revision.
* The policy is only applied when the revision is ACTIVE.
*
*
* .yandex.cloud.serverless.containers.v1.ProvisionPolicy provision_policy = 13;
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicyOrBuilder getProvisionPolicyOrBuilder();
/**
*
* Policy for scaling instances of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.ScalingPolicy scaling_policy = 14;
* @return Whether the scalingPolicy field is set.
*/
boolean hasScalingPolicy();
/**
*
* Policy for scaling instances of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.ScalingPolicy scaling_policy = 14;
* @return The scalingPolicy.
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy getScalingPolicy();
/**
*
* Policy for scaling instances of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.ScalingPolicy scaling_policy = 14;
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicyOrBuilder getScalingPolicyOrBuilder();
/**
*
* Options for logging from the container.
*
*
* .yandex.cloud.serverless.containers.v1.LogOptions log_options = 15;
* @return Whether the logOptions field is set.
*/
boolean hasLogOptions();
/**
*
* Options for logging from the container.
*
*
* .yandex.cloud.serverless.containers.v1.LogOptions log_options = 15;
* @return The logOptions.
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions getLogOptions();
/**
*
* Options for logging from the container.
*
*
* .yandex.cloud.serverless.containers.v1.LogOptions log_options = 15;
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptionsOrBuilder getLogOptionsOrBuilder();
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
java.util.List
getStorageMountsList();
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount getStorageMounts(int index);
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
int getStorageMountsCount();
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
java.util.List extends yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMountOrBuilder>
getStorageMountsOrBuilderList();
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMountOrBuilder getStorageMountsOrBuilder(
int index);
}
/**
* Protobuf type {@code yandex.cloud.serverless.containers.v1.Revision}
*/
public static final class Revision extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.containers.v1.Revision)
RevisionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Revision.newBuilder() to construct.
private Revision(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Revision() {
id_ = "";
containerId_ = "";
description_ = "";
serviceAccountId_ = "";
status_ = 0;
secrets_ = java.util.Collections.emptyList();
storageMounts_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Revision();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Revision(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
containerId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 34: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (createdAt_ != null) {
subBuilder = createdAt_.toBuilder();
}
createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(createdAt_);
createdAt_ = subBuilder.buildPartial();
}
break;
}
case 42: {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image.Builder subBuilder = null;
if (image_ != null) {
subBuilder = image_.toBuilder();
}
image_ = input.readMessage(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(image_);
image_ = subBuilder.buildPartial();
}
break;
}
case 50: {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources.Builder subBuilder = null;
if (resources_ != null) {
subBuilder = resources_.toBuilder();
}
resources_ = input.readMessage(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resources_);
resources_ = subBuilder.buildPartial();
}
break;
}
case 58: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (executionTimeout_ != null) {
subBuilder = executionTimeout_.toBuilder();
}
executionTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(executionTimeout_);
executionTimeout_ = subBuilder.buildPartial();
}
break;
}
case 64: {
concurrency_ = input.readInt64();
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
serviceAccountId_ = s;
break;
}
case 80: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
secrets_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
secrets_.add(
input.readMessage(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.parser(), extensionRegistry));
break;
}
case 98: {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity.Builder subBuilder = null;
if (connectivity_ != null) {
subBuilder = connectivity_.toBuilder();
}
connectivity_ = input.readMessage(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(connectivity_);
connectivity_ = subBuilder.buildPartial();
}
break;
}
case 106: {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy.Builder subBuilder = null;
if (provisionPolicy_ != null) {
subBuilder = provisionPolicy_.toBuilder();
}
provisionPolicy_ = input.readMessage(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(provisionPolicy_);
provisionPolicy_ = subBuilder.buildPartial();
}
break;
}
case 114: {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy.Builder subBuilder = null;
if (scalingPolicy_ != null) {
subBuilder = scalingPolicy_.toBuilder();
}
scalingPolicy_ = input.readMessage(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scalingPolicy_);
scalingPolicy_ = subBuilder.buildPartial();
}
break;
}
case 122: {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions.Builder subBuilder = null;
if (logOptions_ != null) {
subBuilder = logOptions_.toBuilder();
}
logOptions_ = input.readMessage(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(logOptions_);
logOptions_ = subBuilder.buildPartial();
}
break;
}
case 130: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
storageMounts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
storageMounts_.add(
input.readMessage(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
secrets_ = java.util.Collections.unmodifiableList(secrets_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
storageMounts_ = java.util.Collections.unmodifiableList(storageMounts_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Revision_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Revision_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.serverless.containers.v1.Revision.Status}
*/
public enum Status
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STATUS_UNSPECIFIED = 0;
*/
STATUS_UNSPECIFIED(0),
/**
*
* Revision is being created.
*
*
* CREATING = 1;
*/
CREATING(1),
/**
*
* Revision is currently used by the container.
*
*
* ACTIVE = 2;
*/
ACTIVE(2),
/**
*
* Revision is not used by the container. May be deleted later.
*
*
* OBSOLETE = 3;
*/
OBSOLETE(3),
UNRECOGNIZED(-1),
;
/**
* STATUS_UNSPECIFIED = 0;
*/
public static final int STATUS_UNSPECIFIED_VALUE = 0;
/**
*
* Revision is being created.
*
*
* CREATING = 1;
*/
public static final int CREATING_VALUE = 1;
/**
*
* Revision is currently used by the container.
*
*
* ACTIVE = 2;
*/
public static final int ACTIVE_VALUE = 2;
/**
*
* Revision is not used by the container. May be deleted later.
*
*
* OBSOLETE = 3;
*/
public static final int OBSOLETE_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Status valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Status forNumber(int value) {
switch (value) {
case 0: return STATUS_UNSPECIFIED;
case 1: return CREATING;
case 2: return ACTIVE;
case 3: return OBSOLETE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Status> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Status findValueByNumber(int number) {
return Status.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.getDescriptor().getEnumTypes().get(0);
}
private static final Status[] VALUES = values();
public static Status valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Status(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.serverless.containers.v1.Revision.Status)
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* ID of the revision.
*
*
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* ID of the revision.
*
*
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONTAINER_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object containerId_;
/**
*
* ID of the container that the revision belongs to.
*
*
* string container_id = 2;
* @return The containerId.
*/
@java.lang.Override
public java.lang.String getContainerId() {
java.lang.Object ref = containerId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
containerId_ = s;
return s;
}
}
/**
*
* ID of the container that the revision belongs to.
*
*
* string container_id = 2;
* @return The bytes for containerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContainerIdBytes() {
java.lang.Object ref = containerId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
containerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
private volatile java.lang.Object description_;
/**
*
* Description of the revision.
*
*
* string description = 3;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
* Description of the revision.
*
*
* string description = 3;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATED_AT_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp createdAt_;
/**
*
* Creation timestamp for the revision.
*
*
* .google.protobuf.Timestamp created_at = 4;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
*
* Creation timestamp for the revision.
*
*
* .google.protobuf.Timestamp created_at = 4;
* @return The createdAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreatedAt() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
/**
*
* Creation timestamp for the revision.
*
*
* .google.protobuf.Timestamp created_at = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int IMAGE_FIELD_NUMBER = 5;
private yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image image_;
/**
*
* Image configuration for the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Image image = 5;
* @return Whether the image field is set.
*/
@java.lang.Override
public boolean hasImage() {
return image_ != null;
}
/**
*
* Image configuration for the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Image image = 5;
* @return The image.
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image getImage() {
return image_ == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image.getDefaultInstance() : image_;
}
/**
*
* Image configuration for the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Image image = 5;
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ImageOrBuilder getImageOrBuilder() {
return getImage();
}
public static final int RESOURCES_FIELD_NUMBER = 6;
private yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources resources_;
/**
*
* Resources allocated to the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Resources resources = 6;
* @return Whether the resources field is set.
*/
@java.lang.Override
public boolean hasResources() {
return resources_ != null;
}
/**
*
* Resources allocated to the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Resources resources = 6;
* @return The resources.
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources getResources() {
return resources_ == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources.getDefaultInstance() : resources_;
}
/**
*
* Resources allocated to the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Resources resources = 6;
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ResourcesOrBuilder getResourcesOrBuilder() {
return getResources();
}
public static final int EXECUTION_TIMEOUT_FIELD_NUMBER = 7;
private com.google.protobuf.Duration executionTimeout_;
/**
*
* Timeout for the execution of the revision.
* If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code.
*
*
* .google.protobuf.Duration execution_timeout = 7;
* @return Whether the executionTimeout field is set.
*/
@java.lang.Override
public boolean hasExecutionTimeout() {
return executionTimeout_ != null;
}
/**
*
* Timeout for the execution of the revision.
* If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code.
*
*
* .google.protobuf.Duration execution_timeout = 7;
* @return The executionTimeout.
*/
@java.lang.Override
public com.google.protobuf.Duration getExecutionTimeout() {
return executionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_;
}
/**
*
* Timeout for the execution of the revision.
* If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code.
*
*
* .google.protobuf.Duration execution_timeout = 7;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() {
return getExecutionTimeout();
}
public static final int CONCURRENCY_FIELD_NUMBER = 8;
private long concurrency_;
/**
*
* The number of concurrent requests allowed per container instance.
*
*
* int64 concurrency = 8;
* @return The concurrency.
*/
@java.lang.Override
public long getConcurrency() {
return concurrency_;
}
public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 9;
private volatile java.lang.Object serviceAccountId_;
/**
*
* ID of the service account associated with the revision.
*
*
* string service_account_id = 9;
* @return The serviceAccountId.
*/
@java.lang.Override
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceAccountId_ = s;
return s;
}
}
/**
*
* ID of the service account associated with the revision.
*
*
* string service_account_id = 9;
* @return The bytes for serviceAccountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 10;
private int status_;
/**
*
* Status of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Revision.Status status = 10;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Status of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Revision.Status status = 10;
* @return The status.
*/
@java.lang.Override public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.Status getStatus() {
@SuppressWarnings("deprecation")
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.Status result = yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.Status.valueOf(status_);
return result == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.Status.UNRECOGNIZED : result;
}
public static final int SECRETS_FIELD_NUMBER = 11;
private java.util.List secrets_;
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
@java.lang.Override
public java.util.List getSecretsList() {
return secrets_;
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.SecretOrBuilder>
getSecretsOrBuilderList() {
return secrets_;
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
@java.lang.Override
public int getSecretsCount() {
return secrets_.size();
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret getSecrets(int index) {
return secrets_.get(index);
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.SecretOrBuilder getSecretsOrBuilder(
int index) {
return secrets_.get(index);
}
public static final int CONNECTIVITY_FIELD_NUMBER = 12;
private yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity connectivity_;
/**
*
* Network access. If specified the revision will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.containers.v1.Connectivity connectivity = 12;
* @return Whether the connectivity field is set.
*/
@java.lang.Override
public boolean hasConnectivity() {
return connectivity_ != null;
}
/**
*
* Network access. If specified the revision will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.containers.v1.Connectivity connectivity = 12;
* @return The connectivity.
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity getConnectivity() {
return connectivity_ == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity.getDefaultInstance() : connectivity_;
}
/**
*
* Network access. If specified the revision will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.containers.v1.Connectivity connectivity = 12;
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ConnectivityOrBuilder getConnectivityOrBuilder() {
return getConnectivity();
}
public static final int PROVISION_POLICY_FIELD_NUMBER = 13;
private yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy provisionPolicy_;
/**
*
* Policy for provisioning instances of the revision.
* The policy is only applied when the revision is ACTIVE.
*
*
* .yandex.cloud.serverless.containers.v1.ProvisionPolicy provision_policy = 13;
* @return Whether the provisionPolicy field is set.
*/
@java.lang.Override
public boolean hasProvisionPolicy() {
return provisionPolicy_ != null;
}
/**
*
* Policy for provisioning instances of the revision.
* The policy is only applied when the revision is ACTIVE.
*
*
* .yandex.cloud.serverless.containers.v1.ProvisionPolicy provision_policy = 13;
* @return The provisionPolicy.
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy getProvisionPolicy() {
return provisionPolicy_ == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy.getDefaultInstance() : provisionPolicy_;
}
/**
*
* Policy for provisioning instances of the revision.
* The policy is only applied when the revision is ACTIVE.
*
*
* .yandex.cloud.serverless.containers.v1.ProvisionPolicy provision_policy = 13;
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicyOrBuilder getProvisionPolicyOrBuilder() {
return getProvisionPolicy();
}
public static final int SCALING_POLICY_FIELD_NUMBER = 14;
private yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy scalingPolicy_;
/**
*
* Policy for scaling instances of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.ScalingPolicy scaling_policy = 14;
* @return Whether the scalingPolicy field is set.
*/
@java.lang.Override
public boolean hasScalingPolicy() {
return scalingPolicy_ != null;
}
/**
*
* Policy for scaling instances of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.ScalingPolicy scaling_policy = 14;
* @return The scalingPolicy.
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy getScalingPolicy() {
return scalingPolicy_ == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy.getDefaultInstance() : scalingPolicy_;
}
/**
*
* Policy for scaling instances of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.ScalingPolicy scaling_policy = 14;
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicyOrBuilder getScalingPolicyOrBuilder() {
return getScalingPolicy();
}
public static final int LOG_OPTIONS_FIELD_NUMBER = 15;
private yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions logOptions_;
/**
*
* Options for logging from the container.
*
*
* .yandex.cloud.serverless.containers.v1.LogOptions log_options = 15;
* @return Whether the logOptions field is set.
*/
@java.lang.Override
public boolean hasLogOptions() {
return logOptions_ != null;
}
/**
*
* Options for logging from the container.
*
*
* .yandex.cloud.serverless.containers.v1.LogOptions log_options = 15;
* @return The logOptions.
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions getLogOptions() {
return logOptions_ == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions.getDefaultInstance() : logOptions_;
}
/**
*
* Options for logging from the container.
*
*
* .yandex.cloud.serverless.containers.v1.LogOptions log_options = 15;
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptionsOrBuilder getLogOptionsOrBuilder() {
return getLogOptions();
}
public static final int STORAGE_MOUNTS_FIELD_NUMBER = 16;
private java.util.List storageMounts_;
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
@java.lang.Override
public java.util.List getStorageMountsList() {
return storageMounts_;
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMountOrBuilder>
getStorageMountsOrBuilderList() {
return storageMounts_;
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
@java.lang.Override
public int getStorageMountsCount() {
return storageMounts_.size();
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount getStorageMounts(int index) {
return storageMounts_.get(index);
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMountOrBuilder getStorageMountsOrBuilder(
int index) {
return storageMounts_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, containerId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
if (createdAt_ != null) {
output.writeMessage(4, getCreatedAt());
}
if (image_ != null) {
output.writeMessage(5, getImage());
}
if (resources_ != null) {
output.writeMessage(6, getResources());
}
if (executionTimeout_ != null) {
output.writeMessage(7, getExecutionTimeout());
}
if (concurrency_ != 0L) {
output.writeInt64(8, concurrency_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, serviceAccountId_);
}
if (status_ != yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(10, status_);
}
for (int i = 0; i < secrets_.size(); i++) {
output.writeMessage(11, secrets_.get(i));
}
if (connectivity_ != null) {
output.writeMessage(12, getConnectivity());
}
if (provisionPolicy_ != null) {
output.writeMessage(13, getProvisionPolicy());
}
if (scalingPolicy_ != null) {
output.writeMessage(14, getScalingPolicy());
}
if (logOptions_ != null) {
output.writeMessage(15, getLogOptions());
}
for (int i = 0; i < storageMounts_.size(); i++) {
output.writeMessage(16, storageMounts_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, containerId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
if (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getCreatedAt());
}
if (image_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getImage());
}
if (resources_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getResources());
}
if (executionTimeout_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getExecutionTimeout());
}
if (concurrency_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, concurrency_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceAccountId_);
}
if (status_ != yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(10, status_);
}
for (int i = 0; i < secrets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, secrets_.get(i));
}
if (connectivity_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getConnectivity());
}
if (provisionPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getProvisionPolicy());
}
if (scalingPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getScalingPolicy());
}
if (logOptions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getLogOptions());
}
for (int i = 0; i < storageMounts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, storageMounts_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision other = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getContainerId()
.equals(other.getContainerId())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (hasImage() != other.hasImage()) return false;
if (hasImage()) {
if (!getImage()
.equals(other.getImage())) return false;
}
if (hasResources() != other.hasResources()) return false;
if (hasResources()) {
if (!getResources()
.equals(other.getResources())) return false;
}
if (hasExecutionTimeout() != other.hasExecutionTimeout()) return false;
if (hasExecutionTimeout()) {
if (!getExecutionTimeout()
.equals(other.getExecutionTimeout())) return false;
}
if (getConcurrency()
!= other.getConcurrency()) return false;
if (!getServiceAccountId()
.equals(other.getServiceAccountId())) return false;
if (status_ != other.status_) return false;
if (!getSecretsList()
.equals(other.getSecretsList())) return false;
if (hasConnectivity() != other.hasConnectivity()) return false;
if (hasConnectivity()) {
if (!getConnectivity()
.equals(other.getConnectivity())) return false;
}
if (hasProvisionPolicy() != other.hasProvisionPolicy()) return false;
if (hasProvisionPolicy()) {
if (!getProvisionPolicy()
.equals(other.getProvisionPolicy())) return false;
}
if (hasScalingPolicy() != other.hasScalingPolicy()) return false;
if (hasScalingPolicy()) {
if (!getScalingPolicy()
.equals(other.getScalingPolicy())) return false;
}
if (hasLogOptions() != other.hasLogOptions()) return false;
if (hasLogOptions()) {
if (!getLogOptions()
.equals(other.getLogOptions())) return false;
}
if (!getStorageMountsList()
.equals(other.getStorageMountsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER;
hash = (53 * hash) + getContainerId().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
if (hasImage()) {
hash = (37 * hash) + IMAGE_FIELD_NUMBER;
hash = (53 * hash) + getImage().hashCode();
}
if (hasResources()) {
hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getResources().hashCode();
}
if (hasExecutionTimeout()) {
hash = (37 * hash) + EXECUTION_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getExecutionTimeout().hashCode();
}
hash = (37 * hash) + CONCURRENCY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getConcurrency());
hash = (37 * hash) + SERVICE_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getServiceAccountId().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (getSecretsCount() > 0) {
hash = (37 * hash) + SECRETS_FIELD_NUMBER;
hash = (53 * hash) + getSecretsList().hashCode();
}
if (hasConnectivity()) {
hash = (37 * hash) + CONNECTIVITY_FIELD_NUMBER;
hash = (53 * hash) + getConnectivity().hashCode();
}
if (hasProvisionPolicy()) {
hash = (37 * hash) + PROVISION_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getProvisionPolicy().hashCode();
}
if (hasScalingPolicy()) {
hash = (37 * hash) + SCALING_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getScalingPolicy().hashCode();
}
if (hasLogOptions()) {
hash = (37 * hash) + LOG_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getLogOptions().hashCode();
}
if (getStorageMountsCount() > 0) {
hash = (37 * hash) + STORAGE_MOUNTS_FIELD_NUMBER;
hash = (53 * hash) + getStorageMountsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.serverless.containers.v1.Revision}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.containers.v1.Revision)
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.RevisionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Revision_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Revision_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.Builder.class);
}
// Construct using yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSecretsFieldBuilder();
getStorageMountsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
containerId_ = "";
description_ = "";
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
if (imageBuilder_ == null) {
image_ = null;
} else {
image_ = null;
imageBuilder_ = null;
}
if (resourcesBuilder_ == null) {
resources_ = null;
} else {
resources_ = null;
resourcesBuilder_ = null;
}
if (executionTimeoutBuilder_ == null) {
executionTimeout_ = null;
} else {
executionTimeout_ = null;
executionTimeoutBuilder_ = null;
}
concurrency_ = 0L;
serviceAccountId_ = "";
status_ = 0;
if (secretsBuilder_ == null) {
secrets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
secretsBuilder_.clear();
}
if (connectivityBuilder_ == null) {
connectivity_ = null;
} else {
connectivity_ = null;
connectivityBuilder_ = null;
}
if (provisionPolicyBuilder_ == null) {
provisionPolicy_ = null;
} else {
provisionPolicy_ = null;
provisionPolicyBuilder_ = null;
}
if (scalingPolicyBuilder_ == null) {
scalingPolicy_ = null;
} else {
scalingPolicy_ = null;
scalingPolicyBuilder_ = null;
}
if (logOptionsBuilder_ == null) {
logOptions_ = null;
} else {
logOptions_ = null;
logOptionsBuilder_ = null;
}
if (storageMountsBuilder_ == null) {
storageMounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
storageMountsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Revision_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision getDefaultInstanceForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision build() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision buildPartial() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision result = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.containerId_ = containerId_;
result.description_ = description_;
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
if (imageBuilder_ == null) {
result.image_ = image_;
} else {
result.image_ = imageBuilder_.build();
}
if (resourcesBuilder_ == null) {
result.resources_ = resources_;
} else {
result.resources_ = resourcesBuilder_.build();
}
if (executionTimeoutBuilder_ == null) {
result.executionTimeout_ = executionTimeout_;
} else {
result.executionTimeout_ = executionTimeoutBuilder_.build();
}
result.concurrency_ = concurrency_;
result.serviceAccountId_ = serviceAccountId_;
result.status_ = status_;
if (secretsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
secrets_ = java.util.Collections.unmodifiableList(secrets_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.secrets_ = secrets_;
} else {
result.secrets_ = secretsBuilder_.build();
}
if (connectivityBuilder_ == null) {
result.connectivity_ = connectivity_;
} else {
result.connectivity_ = connectivityBuilder_.build();
}
if (provisionPolicyBuilder_ == null) {
result.provisionPolicy_ = provisionPolicy_;
} else {
result.provisionPolicy_ = provisionPolicyBuilder_.build();
}
if (scalingPolicyBuilder_ == null) {
result.scalingPolicy_ = scalingPolicy_;
} else {
result.scalingPolicy_ = scalingPolicyBuilder_.build();
}
if (logOptionsBuilder_ == null) {
result.logOptions_ = logOptions_;
} else {
result.logOptions_ = logOptionsBuilder_.build();
}
if (storageMountsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
storageMounts_ = java.util.Collections.unmodifiableList(storageMounts_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.storageMounts_ = storageMounts_;
} else {
result.storageMounts_ = storageMountsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision) {
return mergeFrom((yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision other) {
if (other == yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getContainerId().isEmpty()) {
containerId_ = other.containerId_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (other.hasImage()) {
mergeImage(other.getImage());
}
if (other.hasResources()) {
mergeResources(other.getResources());
}
if (other.hasExecutionTimeout()) {
mergeExecutionTimeout(other.getExecutionTimeout());
}
if (other.getConcurrency() != 0L) {
setConcurrency(other.getConcurrency());
}
if (!other.getServiceAccountId().isEmpty()) {
serviceAccountId_ = other.serviceAccountId_;
onChanged();
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (secretsBuilder_ == null) {
if (!other.secrets_.isEmpty()) {
if (secrets_.isEmpty()) {
secrets_ = other.secrets_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSecretsIsMutable();
secrets_.addAll(other.secrets_);
}
onChanged();
}
} else {
if (!other.secrets_.isEmpty()) {
if (secretsBuilder_.isEmpty()) {
secretsBuilder_.dispose();
secretsBuilder_ = null;
secrets_ = other.secrets_;
bitField0_ = (bitField0_ & ~0x00000001);
secretsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSecretsFieldBuilder() : null;
} else {
secretsBuilder_.addAllMessages(other.secrets_);
}
}
}
if (other.hasConnectivity()) {
mergeConnectivity(other.getConnectivity());
}
if (other.hasProvisionPolicy()) {
mergeProvisionPolicy(other.getProvisionPolicy());
}
if (other.hasScalingPolicy()) {
mergeScalingPolicy(other.getScalingPolicy());
}
if (other.hasLogOptions()) {
mergeLogOptions(other.getLogOptions());
}
if (storageMountsBuilder_ == null) {
if (!other.storageMounts_.isEmpty()) {
if (storageMounts_.isEmpty()) {
storageMounts_ = other.storageMounts_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureStorageMountsIsMutable();
storageMounts_.addAll(other.storageMounts_);
}
onChanged();
}
} else {
if (!other.storageMounts_.isEmpty()) {
if (storageMountsBuilder_.isEmpty()) {
storageMountsBuilder_.dispose();
storageMountsBuilder_ = null;
storageMounts_ = other.storageMounts_;
bitField0_ = (bitField0_ & ~0x00000002);
storageMountsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStorageMountsFieldBuilder() : null;
} else {
storageMountsBuilder_.addAllMessages(other.storageMounts_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* ID of the revision.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the revision.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the revision.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* ID of the revision.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* ID of the revision.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object containerId_ = "";
/**
*
* ID of the container that the revision belongs to.
*
*
* string container_id = 2;
* @return The containerId.
*/
public java.lang.String getContainerId() {
java.lang.Object ref = containerId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
containerId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the container that the revision belongs to.
*
*
* string container_id = 2;
* @return The bytes for containerId.
*/
public com.google.protobuf.ByteString
getContainerIdBytes() {
java.lang.Object ref = containerId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
containerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the container that the revision belongs to.
*
*
* string container_id = 2;
* @param value The containerId to set.
* @return This builder for chaining.
*/
public Builder setContainerId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
containerId_ = value;
onChanged();
return this;
}
/**
*
* ID of the container that the revision belongs to.
*
*
* string container_id = 2;
* @return This builder for chaining.
*/
public Builder clearContainerId() {
containerId_ = getDefaultInstance().getContainerId();
onChanged();
return this;
}
/**
*
* ID of the container that the revision belongs to.
*
*
* string container_id = 2;
* @param value The bytes for containerId to set.
* @return This builder for chaining.
*/
public Builder setContainerIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
containerId_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* Description of the revision.
*
*
* string description = 3;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the revision.
*
*
* string description = 3;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the revision.
*
*
* string description = 3;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description of the revision.
*
*
* string description = 3;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the revision.
*
*
* string description = 3;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
*
* Creation timestamp for the revision.
*
*
* .google.protobuf.Timestamp created_at = 4;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* Creation timestamp for the revision.
*
*
* .google.protobuf.Timestamp created_at = 4;
* @return The createdAt.
*/
public com.google.protobuf.Timestamp getCreatedAt() {
if (createdAtBuilder_ == null) {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
} else {
return createdAtBuilder_.getMessage();
}
}
/**
*
* Creation timestamp for the revision.
*
*
* .google.protobuf.Timestamp created_at = 4;
*/
public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdAt_ = value;
onChanged();
} else {
createdAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* Creation timestamp for the revision.
*
*
* .google.protobuf.Timestamp created_at = 4;
*/
public Builder setCreatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdAtBuilder_ == null) {
createdAt_ = builderForValue.build();
onChanged();
} else {
createdAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Creation timestamp for the revision.
*
*
* .google.protobuf.Timestamp created_at = 4;
*/
public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (createdAt_ != null) {
createdAt_ =
com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial();
} else {
createdAt_ = value;
}
onChanged();
} else {
createdAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Creation timestamp for the revision.
*
*
* .google.protobuf.Timestamp created_at = 4;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
*
* Creation timestamp for the revision.
*
*
* .google.protobuf.Timestamp created_at = 4;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
*
* Creation timestamp for the revision.
*
*
* .google.protobuf.Timestamp created_at = 4;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
*
* Creation timestamp for the revision.
*
*
* .google.protobuf.Timestamp created_at = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedAtFieldBuilder() {
if (createdAtBuilder_ == null) {
createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreatedAt(),
getParentForChildren(),
isClean());
createdAt_ = null;
}
return createdAtBuilder_;
}
private yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image image_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ImageOrBuilder> imageBuilder_;
/**
*
* Image configuration for the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Image image = 5;
* @return Whether the image field is set.
*/
public boolean hasImage() {
return imageBuilder_ != null || image_ != null;
}
/**
*
* Image configuration for the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Image image = 5;
* @return The image.
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image getImage() {
if (imageBuilder_ == null) {
return image_ == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image.getDefaultInstance() : image_;
} else {
return imageBuilder_.getMessage();
}
}
/**
*
* Image configuration for the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Image image = 5;
*/
public Builder setImage(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image value) {
if (imageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
image_ = value;
onChanged();
} else {
imageBuilder_.setMessage(value);
}
return this;
}
/**
*
* Image configuration for the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Image image = 5;
*/
public Builder setImage(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image.Builder builderForValue) {
if (imageBuilder_ == null) {
image_ = builderForValue.build();
onChanged();
} else {
imageBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Image configuration for the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Image image = 5;
*/
public Builder mergeImage(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image value) {
if (imageBuilder_ == null) {
if (image_ != null) {
image_ =
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image.newBuilder(image_).mergeFrom(value).buildPartial();
} else {
image_ = value;
}
onChanged();
} else {
imageBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Image configuration for the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Image image = 5;
*/
public Builder clearImage() {
if (imageBuilder_ == null) {
image_ = null;
onChanged();
} else {
image_ = null;
imageBuilder_ = null;
}
return this;
}
/**
*
* Image configuration for the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Image image = 5;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image.Builder getImageBuilder() {
onChanged();
return getImageFieldBuilder().getBuilder();
}
/**
*
* Image configuration for the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Image image = 5;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ImageOrBuilder getImageOrBuilder() {
if (imageBuilder_ != null) {
return imageBuilder_.getMessageOrBuilder();
} else {
return image_ == null ?
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image.getDefaultInstance() : image_;
}
}
/**
*
* Image configuration for the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Image image = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ImageOrBuilder>
getImageFieldBuilder() {
if (imageBuilder_ == null) {
imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ImageOrBuilder>(
getImage(),
getParentForChildren(),
isClean());
image_ = null;
}
return imageBuilder_;
}
private yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources resources_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ResourcesOrBuilder> resourcesBuilder_;
/**
*
* Resources allocated to the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Resources resources = 6;
* @return Whether the resources field is set.
*/
public boolean hasResources() {
return resourcesBuilder_ != null || resources_ != null;
}
/**
*
* Resources allocated to the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Resources resources = 6;
* @return The resources.
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources getResources() {
if (resourcesBuilder_ == null) {
return resources_ == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources.getDefaultInstance() : resources_;
} else {
return resourcesBuilder_.getMessage();
}
}
/**
*
* Resources allocated to the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Resources resources = 6;
*/
public Builder setResources(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources value) {
if (resourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resources_ = value;
onChanged();
} else {
resourcesBuilder_.setMessage(value);
}
return this;
}
/**
*
* Resources allocated to the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Resources resources = 6;
*/
public Builder setResources(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources.Builder builderForValue) {
if (resourcesBuilder_ == null) {
resources_ = builderForValue.build();
onChanged();
} else {
resourcesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Resources allocated to the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Resources resources = 6;
*/
public Builder mergeResources(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources value) {
if (resourcesBuilder_ == null) {
if (resources_ != null) {
resources_ =
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources.newBuilder(resources_).mergeFrom(value).buildPartial();
} else {
resources_ = value;
}
onChanged();
} else {
resourcesBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Resources allocated to the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Resources resources = 6;
*/
public Builder clearResources() {
if (resourcesBuilder_ == null) {
resources_ = null;
onChanged();
} else {
resources_ = null;
resourcesBuilder_ = null;
}
return this;
}
/**
*
* Resources allocated to the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Resources resources = 6;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources.Builder getResourcesBuilder() {
onChanged();
return getResourcesFieldBuilder().getBuilder();
}
/**
*
* Resources allocated to the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Resources resources = 6;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ResourcesOrBuilder getResourcesOrBuilder() {
if (resourcesBuilder_ != null) {
return resourcesBuilder_.getMessageOrBuilder();
} else {
return resources_ == null ?
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources.getDefaultInstance() : resources_;
}
}
/**
*
* Resources allocated to the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Resources resources = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ResourcesOrBuilder>
getResourcesFieldBuilder() {
if (resourcesBuilder_ == null) {
resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ResourcesOrBuilder>(
getResources(),
getParentForChildren(),
isClean());
resources_ = null;
}
return resourcesBuilder_;
}
private com.google.protobuf.Duration executionTimeout_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> executionTimeoutBuilder_;
/**
*
* Timeout for the execution of the revision.
* If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code.
*
*
* .google.protobuf.Duration execution_timeout = 7;
* @return Whether the executionTimeout field is set.
*/
public boolean hasExecutionTimeout() {
return executionTimeoutBuilder_ != null || executionTimeout_ != null;
}
/**
*
* Timeout for the execution of the revision.
* If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code.
*
*
* .google.protobuf.Duration execution_timeout = 7;
* @return The executionTimeout.
*/
public com.google.protobuf.Duration getExecutionTimeout() {
if (executionTimeoutBuilder_ == null) {
return executionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_;
} else {
return executionTimeoutBuilder_.getMessage();
}
}
/**
*
* Timeout for the execution of the revision.
* If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code.
*
*
* .google.protobuf.Duration execution_timeout = 7;
*/
public Builder setExecutionTimeout(com.google.protobuf.Duration value) {
if (executionTimeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
executionTimeout_ = value;
onChanged();
} else {
executionTimeoutBuilder_.setMessage(value);
}
return this;
}
/**
*
* Timeout for the execution of the revision.
* If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code.
*
*
* .google.protobuf.Duration execution_timeout = 7;
*/
public Builder setExecutionTimeout(
com.google.protobuf.Duration.Builder builderForValue) {
if (executionTimeoutBuilder_ == null) {
executionTimeout_ = builderForValue.build();
onChanged();
} else {
executionTimeoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Timeout for the execution of the revision.
* If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code.
*
*
* .google.protobuf.Duration execution_timeout = 7;
*/
public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) {
if (executionTimeoutBuilder_ == null) {
if (executionTimeout_ != null) {
executionTimeout_ =
com.google.protobuf.Duration.newBuilder(executionTimeout_).mergeFrom(value).buildPartial();
} else {
executionTimeout_ = value;
}
onChanged();
} else {
executionTimeoutBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Timeout for the execution of the revision.
* If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code.
*
*
* .google.protobuf.Duration execution_timeout = 7;
*/
public Builder clearExecutionTimeout() {
if (executionTimeoutBuilder_ == null) {
executionTimeout_ = null;
onChanged();
} else {
executionTimeout_ = null;
executionTimeoutBuilder_ = null;
}
return this;
}
/**
*
* Timeout for the execution of the revision.
* If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code.
*
*
* .google.protobuf.Duration execution_timeout = 7;
*/
public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() {
onChanged();
return getExecutionTimeoutFieldBuilder().getBuilder();
}
/**
*
* Timeout for the execution of the revision.
* If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code.
*
*
* .google.protobuf.Duration execution_timeout = 7;
*/
public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() {
if (executionTimeoutBuilder_ != null) {
return executionTimeoutBuilder_.getMessageOrBuilder();
} else {
return executionTimeout_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_;
}
}
/**
*
* Timeout for the execution of the revision.
* If the timeout is exceeded, Serverless Containers responds with a 504 HTTP code.
*
*
* .google.protobuf.Duration execution_timeout = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getExecutionTimeoutFieldBuilder() {
if (executionTimeoutBuilder_ == null) {
executionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getExecutionTimeout(),
getParentForChildren(),
isClean());
executionTimeout_ = null;
}
return executionTimeoutBuilder_;
}
private long concurrency_ ;
/**
*
* The number of concurrent requests allowed per container instance.
*
*
* int64 concurrency = 8;
* @return The concurrency.
*/
@java.lang.Override
public long getConcurrency() {
return concurrency_;
}
/**
*
* The number of concurrent requests allowed per container instance.
*
*
* int64 concurrency = 8;
* @param value The concurrency to set.
* @return This builder for chaining.
*/
public Builder setConcurrency(long value) {
concurrency_ = value;
onChanged();
return this;
}
/**
*
* The number of concurrent requests allowed per container instance.
*
*
* int64 concurrency = 8;
* @return This builder for chaining.
*/
public Builder clearConcurrency() {
concurrency_ = 0L;
onChanged();
return this;
}
private java.lang.Object serviceAccountId_ = "";
/**
*
* ID of the service account associated with the revision.
*
*
* string service_account_id = 9;
* @return The serviceAccountId.
*/
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceAccountId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the service account associated with the revision.
*
*
* string service_account_id = 9;
* @return The bytes for serviceAccountId.
*/
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the service account associated with the revision.
*
*
* string service_account_id = 9;
* @param value The serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceAccountId_ = value;
onChanged();
return this;
}
/**
*
* ID of the service account associated with the revision.
*
*
* string service_account_id = 9;
* @return This builder for chaining.
*/
public Builder clearServiceAccountId() {
serviceAccountId_ = getDefaultInstance().getServiceAccountId();
onChanged();
return this;
}
/**
*
* ID of the service account associated with the revision.
*
*
* string service_account_id = 9;
* @param value The bytes for serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceAccountId_ = value;
onChanged();
return this;
}
private int status_ = 0;
/**
*
* Status of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Revision.Status status = 10;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Status of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Revision.Status status = 10;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
*
* Status of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Revision.Status status = 10;
* @return The status.
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.Status getStatus() {
@SuppressWarnings("deprecation")
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.Status result = yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.Status.valueOf(status_);
return result == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.Status.UNRECOGNIZED : result;
}
/**
*
* Status of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Revision.Status status = 10;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision.Status value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Status of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.Revision.Status status = 10;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private java.util.List secrets_ =
java.util.Collections.emptyList();
private void ensureSecretsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
secrets_ = new java.util.ArrayList(secrets_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.SecretOrBuilder> secretsBuilder_;
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
public java.util.List getSecretsList() {
if (secretsBuilder_ == null) {
return java.util.Collections.unmodifiableList(secrets_);
} else {
return secretsBuilder_.getMessageList();
}
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
public int getSecretsCount() {
if (secretsBuilder_ == null) {
return secrets_.size();
} else {
return secretsBuilder_.getCount();
}
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret getSecrets(int index) {
if (secretsBuilder_ == null) {
return secrets_.get(index);
} else {
return secretsBuilder_.getMessage(index);
}
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
public Builder setSecrets(
int index, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret value) {
if (secretsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSecretsIsMutable();
secrets_.set(index, value);
onChanged();
} else {
secretsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
public Builder setSecrets(
int index, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.Builder builderForValue) {
if (secretsBuilder_ == null) {
ensureSecretsIsMutable();
secrets_.set(index, builderForValue.build());
onChanged();
} else {
secretsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
public Builder addSecrets(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret value) {
if (secretsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSecretsIsMutable();
secrets_.add(value);
onChanged();
} else {
secretsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
public Builder addSecrets(
int index, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret value) {
if (secretsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSecretsIsMutable();
secrets_.add(index, value);
onChanged();
} else {
secretsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
public Builder addSecrets(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.Builder builderForValue) {
if (secretsBuilder_ == null) {
ensureSecretsIsMutable();
secrets_.add(builderForValue.build());
onChanged();
} else {
secretsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
public Builder addSecrets(
int index, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.Builder builderForValue) {
if (secretsBuilder_ == null) {
ensureSecretsIsMutable();
secrets_.add(index, builderForValue.build());
onChanged();
} else {
secretsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
public Builder addAllSecrets(
java.lang.Iterable extends yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret> values) {
if (secretsBuilder_ == null) {
ensureSecretsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, secrets_);
onChanged();
} else {
secretsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
public Builder clearSecrets() {
if (secretsBuilder_ == null) {
secrets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
secretsBuilder_.clear();
}
return this;
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
public Builder removeSecrets(int index) {
if (secretsBuilder_ == null) {
ensureSecretsIsMutable();
secrets_.remove(index);
onChanged();
} else {
secretsBuilder_.remove(index);
}
return this;
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.Builder getSecretsBuilder(
int index) {
return getSecretsFieldBuilder().getBuilder(index);
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.SecretOrBuilder getSecretsOrBuilder(
int index) {
if (secretsBuilder_ == null) {
return secrets_.get(index); } else {
return secretsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
public java.util.List extends yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.SecretOrBuilder>
getSecretsOrBuilderList() {
if (secretsBuilder_ != null) {
return secretsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(secrets_);
}
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.Builder addSecretsBuilder() {
return getSecretsFieldBuilder().addBuilder(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.getDefaultInstance());
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.Builder addSecretsBuilder(
int index) {
return getSecretsFieldBuilder().addBuilder(
index, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.getDefaultInstance());
}
/**
*
* Yandex Lockbox secrets to be used by the revision.
*
*
* repeated .yandex.cloud.serverless.containers.v1.Secret secrets = 11;
*/
public java.util.List
getSecretsBuilderList() {
return getSecretsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.SecretOrBuilder>
getSecretsFieldBuilder() {
if (secretsBuilder_ == null) {
secretsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.SecretOrBuilder>(
secrets_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
secrets_ = null;
}
return secretsBuilder_;
}
private yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity connectivity_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ConnectivityOrBuilder> connectivityBuilder_;
/**
*
* Network access. If specified the revision will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.containers.v1.Connectivity connectivity = 12;
* @return Whether the connectivity field is set.
*/
public boolean hasConnectivity() {
return connectivityBuilder_ != null || connectivity_ != null;
}
/**
*
* Network access. If specified the revision will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.containers.v1.Connectivity connectivity = 12;
* @return The connectivity.
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity getConnectivity() {
if (connectivityBuilder_ == null) {
return connectivity_ == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity.getDefaultInstance() : connectivity_;
} else {
return connectivityBuilder_.getMessage();
}
}
/**
*
* Network access. If specified the revision will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.containers.v1.Connectivity connectivity = 12;
*/
public Builder setConnectivity(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity value) {
if (connectivityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
connectivity_ = value;
onChanged();
} else {
connectivityBuilder_.setMessage(value);
}
return this;
}
/**
*
* Network access. If specified the revision will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.containers.v1.Connectivity connectivity = 12;
*/
public Builder setConnectivity(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity.Builder builderForValue) {
if (connectivityBuilder_ == null) {
connectivity_ = builderForValue.build();
onChanged();
} else {
connectivityBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Network access. If specified the revision will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.containers.v1.Connectivity connectivity = 12;
*/
public Builder mergeConnectivity(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity value) {
if (connectivityBuilder_ == null) {
if (connectivity_ != null) {
connectivity_ =
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity.newBuilder(connectivity_).mergeFrom(value).buildPartial();
} else {
connectivity_ = value;
}
onChanged();
} else {
connectivityBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Network access. If specified the revision will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.containers.v1.Connectivity connectivity = 12;
*/
public Builder clearConnectivity() {
if (connectivityBuilder_ == null) {
connectivity_ = null;
onChanged();
} else {
connectivity_ = null;
connectivityBuilder_ = null;
}
return this;
}
/**
*
* Network access. If specified the revision will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.containers.v1.Connectivity connectivity = 12;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity.Builder getConnectivityBuilder() {
onChanged();
return getConnectivityFieldBuilder().getBuilder();
}
/**
*
* Network access. If specified the revision will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.containers.v1.Connectivity connectivity = 12;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ConnectivityOrBuilder getConnectivityOrBuilder() {
if (connectivityBuilder_ != null) {
return connectivityBuilder_.getMessageOrBuilder();
} else {
return connectivity_ == null ?
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity.getDefaultInstance() : connectivity_;
}
}
/**
*
* Network access. If specified the revision will be attached to specified network/subnet(s).
*
*
* .yandex.cloud.serverless.containers.v1.Connectivity connectivity = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ConnectivityOrBuilder>
getConnectivityFieldBuilder() {
if (connectivityBuilder_ == null) {
connectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ConnectivityOrBuilder>(
getConnectivity(),
getParentForChildren(),
isClean());
connectivity_ = null;
}
return connectivityBuilder_;
}
private yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy provisionPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicyOrBuilder> provisionPolicyBuilder_;
/**
*
* Policy for provisioning instances of the revision.
* The policy is only applied when the revision is ACTIVE.
*
*
* .yandex.cloud.serverless.containers.v1.ProvisionPolicy provision_policy = 13;
* @return Whether the provisionPolicy field is set.
*/
public boolean hasProvisionPolicy() {
return provisionPolicyBuilder_ != null || provisionPolicy_ != null;
}
/**
*
* Policy for provisioning instances of the revision.
* The policy is only applied when the revision is ACTIVE.
*
*
* .yandex.cloud.serverless.containers.v1.ProvisionPolicy provision_policy = 13;
* @return The provisionPolicy.
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy getProvisionPolicy() {
if (provisionPolicyBuilder_ == null) {
return provisionPolicy_ == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy.getDefaultInstance() : provisionPolicy_;
} else {
return provisionPolicyBuilder_.getMessage();
}
}
/**
*
* Policy for provisioning instances of the revision.
* The policy is only applied when the revision is ACTIVE.
*
*
* .yandex.cloud.serverless.containers.v1.ProvisionPolicy provision_policy = 13;
*/
public Builder setProvisionPolicy(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy value) {
if (provisionPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
provisionPolicy_ = value;
onChanged();
} else {
provisionPolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Policy for provisioning instances of the revision.
* The policy is only applied when the revision is ACTIVE.
*
*
* .yandex.cloud.serverless.containers.v1.ProvisionPolicy provision_policy = 13;
*/
public Builder setProvisionPolicy(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy.Builder builderForValue) {
if (provisionPolicyBuilder_ == null) {
provisionPolicy_ = builderForValue.build();
onChanged();
} else {
provisionPolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Policy for provisioning instances of the revision.
* The policy is only applied when the revision is ACTIVE.
*
*
* .yandex.cloud.serverless.containers.v1.ProvisionPolicy provision_policy = 13;
*/
public Builder mergeProvisionPolicy(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy value) {
if (provisionPolicyBuilder_ == null) {
if (provisionPolicy_ != null) {
provisionPolicy_ =
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy.newBuilder(provisionPolicy_).mergeFrom(value).buildPartial();
} else {
provisionPolicy_ = value;
}
onChanged();
} else {
provisionPolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Policy for provisioning instances of the revision.
* The policy is only applied when the revision is ACTIVE.
*
*
* .yandex.cloud.serverless.containers.v1.ProvisionPolicy provision_policy = 13;
*/
public Builder clearProvisionPolicy() {
if (provisionPolicyBuilder_ == null) {
provisionPolicy_ = null;
onChanged();
} else {
provisionPolicy_ = null;
provisionPolicyBuilder_ = null;
}
return this;
}
/**
*
* Policy for provisioning instances of the revision.
* The policy is only applied when the revision is ACTIVE.
*
*
* .yandex.cloud.serverless.containers.v1.ProvisionPolicy provision_policy = 13;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy.Builder getProvisionPolicyBuilder() {
onChanged();
return getProvisionPolicyFieldBuilder().getBuilder();
}
/**
*
* Policy for provisioning instances of the revision.
* The policy is only applied when the revision is ACTIVE.
*
*
* .yandex.cloud.serverless.containers.v1.ProvisionPolicy provision_policy = 13;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicyOrBuilder getProvisionPolicyOrBuilder() {
if (provisionPolicyBuilder_ != null) {
return provisionPolicyBuilder_.getMessageOrBuilder();
} else {
return provisionPolicy_ == null ?
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy.getDefaultInstance() : provisionPolicy_;
}
}
/**
*
* Policy for provisioning instances of the revision.
* The policy is only applied when the revision is ACTIVE.
*
*
* .yandex.cloud.serverless.containers.v1.ProvisionPolicy provision_policy = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicyOrBuilder>
getProvisionPolicyFieldBuilder() {
if (provisionPolicyBuilder_ == null) {
provisionPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicyOrBuilder>(
getProvisionPolicy(),
getParentForChildren(),
isClean());
provisionPolicy_ = null;
}
return provisionPolicyBuilder_;
}
private yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy scalingPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicyOrBuilder> scalingPolicyBuilder_;
/**
*
* Policy for scaling instances of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.ScalingPolicy scaling_policy = 14;
* @return Whether the scalingPolicy field is set.
*/
public boolean hasScalingPolicy() {
return scalingPolicyBuilder_ != null || scalingPolicy_ != null;
}
/**
*
* Policy for scaling instances of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.ScalingPolicy scaling_policy = 14;
* @return The scalingPolicy.
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy getScalingPolicy() {
if (scalingPolicyBuilder_ == null) {
return scalingPolicy_ == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy.getDefaultInstance() : scalingPolicy_;
} else {
return scalingPolicyBuilder_.getMessage();
}
}
/**
*
* Policy for scaling instances of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.ScalingPolicy scaling_policy = 14;
*/
public Builder setScalingPolicy(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy value) {
if (scalingPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scalingPolicy_ = value;
onChanged();
} else {
scalingPolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Policy for scaling instances of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.ScalingPolicy scaling_policy = 14;
*/
public Builder setScalingPolicy(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy.Builder builderForValue) {
if (scalingPolicyBuilder_ == null) {
scalingPolicy_ = builderForValue.build();
onChanged();
} else {
scalingPolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Policy for scaling instances of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.ScalingPolicy scaling_policy = 14;
*/
public Builder mergeScalingPolicy(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy value) {
if (scalingPolicyBuilder_ == null) {
if (scalingPolicy_ != null) {
scalingPolicy_ =
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy.newBuilder(scalingPolicy_).mergeFrom(value).buildPartial();
} else {
scalingPolicy_ = value;
}
onChanged();
} else {
scalingPolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Policy for scaling instances of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.ScalingPolicy scaling_policy = 14;
*/
public Builder clearScalingPolicy() {
if (scalingPolicyBuilder_ == null) {
scalingPolicy_ = null;
onChanged();
} else {
scalingPolicy_ = null;
scalingPolicyBuilder_ = null;
}
return this;
}
/**
*
* Policy for scaling instances of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.ScalingPolicy scaling_policy = 14;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy.Builder getScalingPolicyBuilder() {
onChanged();
return getScalingPolicyFieldBuilder().getBuilder();
}
/**
*
* Policy for scaling instances of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.ScalingPolicy scaling_policy = 14;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicyOrBuilder getScalingPolicyOrBuilder() {
if (scalingPolicyBuilder_ != null) {
return scalingPolicyBuilder_.getMessageOrBuilder();
} else {
return scalingPolicy_ == null ?
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy.getDefaultInstance() : scalingPolicy_;
}
}
/**
*
* Policy for scaling instances of the revision.
*
*
* .yandex.cloud.serverless.containers.v1.ScalingPolicy scaling_policy = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicyOrBuilder>
getScalingPolicyFieldBuilder() {
if (scalingPolicyBuilder_ == null) {
scalingPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicyOrBuilder>(
getScalingPolicy(),
getParentForChildren(),
isClean());
scalingPolicy_ = null;
}
return scalingPolicyBuilder_;
}
private yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions logOptions_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptionsOrBuilder> logOptionsBuilder_;
/**
*
* Options for logging from the container.
*
*
* .yandex.cloud.serverless.containers.v1.LogOptions log_options = 15;
* @return Whether the logOptions field is set.
*/
public boolean hasLogOptions() {
return logOptionsBuilder_ != null || logOptions_ != null;
}
/**
*
* Options for logging from the container.
*
*
* .yandex.cloud.serverless.containers.v1.LogOptions log_options = 15;
* @return The logOptions.
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions getLogOptions() {
if (logOptionsBuilder_ == null) {
return logOptions_ == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions.getDefaultInstance() : logOptions_;
} else {
return logOptionsBuilder_.getMessage();
}
}
/**
*
* Options for logging from the container.
*
*
* .yandex.cloud.serverless.containers.v1.LogOptions log_options = 15;
*/
public Builder setLogOptions(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions value) {
if (logOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
logOptions_ = value;
onChanged();
} else {
logOptionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Options for logging from the container.
*
*
* .yandex.cloud.serverless.containers.v1.LogOptions log_options = 15;
*/
public Builder setLogOptions(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions.Builder builderForValue) {
if (logOptionsBuilder_ == null) {
logOptions_ = builderForValue.build();
onChanged();
} else {
logOptionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Options for logging from the container.
*
*
* .yandex.cloud.serverless.containers.v1.LogOptions log_options = 15;
*/
public Builder mergeLogOptions(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions value) {
if (logOptionsBuilder_ == null) {
if (logOptions_ != null) {
logOptions_ =
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions.newBuilder(logOptions_).mergeFrom(value).buildPartial();
} else {
logOptions_ = value;
}
onChanged();
} else {
logOptionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Options for logging from the container.
*
*
* .yandex.cloud.serverless.containers.v1.LogOptions log_options = 15;
*/
public Builder clearLogOptions() {
if (logOptionsBuilder_ == null) {
logOptions_ = null;
onChanged();
} else {
logOptions_ = null;
logOptionsBuilder_ = null;
}
return this;
}
/**
*
* Options for logging from the container.
*
*
* .yandex.cloud.serverless.containers.v1.LogOptions log_options = 15;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions.Builder getLogOptionsBuilder() {
onChanged();
return getLogOptionsFieldBuilder().getBuilder();
}
/**
*
* Options for logging from the container.
*
*
* .yandex.cloud.serverless.containers.v1.LogOptions log_options = 15;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptionsOrBuilder getLogOptionsOrBuilder() {
if (logOptionsBuilder_ != null) {
return logOptionsBuilder_.getMessageOrBuilder();
} else {
return logOptions_ == null ?
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions.getDefaultInstance() : logOptions_;
}
}
/**
*
* Options for logging from the container.
*
*
* .yandex.cloud.serverless.containers.v1.LogOptions log_options = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptionsOrBuilder>
getLogOptionsFieldBuilder() {
if (logOptionsBuilder_ == null) {
logOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptionsOrBuilder>(
getLogOptions(),
getParentForChildren(),
isClean());
logOptions_ = null;
}
return logOptionsBuilder_;
}
private java.util.List storageMounts_ =
java.util.Collections.emptyList();
private void ensureStorageMountsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
storageMounts_ = new java.util.ArrayList(storageMounts_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMountOrBuilder> storageMountsBuilder_;
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
public java.util.List getStorageMountsList() {
if (storageMountsBuilder_ == null) {
return java.util.Collections.unmodifiableList(storageMounts_);
} else {
return storageMountsBuilder_.getMessageList();
}
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
public int getStorageMountsCount() {
if (storageMountsBuilder_ == null) {
return storageMounts_.size();
} else {
return storageMountsBuilder_.getCount();
}
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount getStorageMounts(int index) {
if (storageMountsBuilder_ == null) {
return storageMounts_.get(index);
} else {
return storageMountsBuilder_.getMessage(index);
}
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
public Builder setStorageMounts(
int index, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount value) {
if (storageMountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStorageMountsIsMutable();
storageMounts_.set(index, value);
onChanged();
} else {
storageMountsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
public Builder setStorageMounts(
int index, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount.Builder builderForValue) {
if (storageMountsBuilder_ == null) {
ensureStorageMountsIsMutable();
storageMounts_.set(index, builderForValue.build());
onChanged();
} else {
storageMountsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
public Builder addStorageMounts(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount value) {
if (storageMountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStorageMountsIsMutable();
storageMounts_.add(value);
onChanged();
} else {
storageMountsBuilder_.addMessage(value);
}
return this;
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
public Builder addStorageMounts(
int index, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount value) {
if (storageMountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStorageMountsIsMutable();
storageMounts_.add(index, value);
onChanged();
} else {
storageMountsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
public Builder addStorageMounts(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount.Builder builderForValue) {
if (storageMountsBuilder_ == null) {
ensureStorageMountsIsMutable();
storageMounts_.add(builderForValue.build());
onChanged();
} else {
storageMountsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
public Builder addStorageMounts(
int index, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount.Builder builderForValue) {
if (storageMountsBuilder_ == null) {
ensureStorageMountsIsMutable();
storageMounts_.add(index, builderForValue.build());
onChanged();
} else {
storageMountsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
public Builder addAllStorageMounts(
java.lang.Iterable extends yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount> values) {
if (storageMountsBuilder_ == null) {
ensureStorageMountsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, storageMounts_);
onChanged();
} else {
storageMountsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
public Builder clearStorageMounts() {
if (storageMountsBuilder_ == null) {
storageMounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
storageMountsBuilder_.clear();
}
return this;
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
public Builder removeStorageMounts(int index) {
if (storageMountsBuilder_ == null) {
ensureStorageMountsIsMutable();
storageMounts_.remove(index);
onChanged();
} else {
storageMountsBuilder_.remove(index);
}
return this;
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount.Builder getStorageMountsBuilder(
int index) {
return getStorageMountsFieldBuilder().getBuilder(index);
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMountOrBuilder getStorageMountsOrBuilder(
int index) {
if (storageMountsBuilder_ == null) {
return storageMounts_.get(index); } else {
return storageMountsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
public java.util.List extends yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMountOrBuilder>
getStorageMountsOrBuilderList() {
if (storageMountsBuilder_ != null) {
return storageMountsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(storageMounts_);
}
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount.Builder addStorageMountsBuilder() {
return getStorageMountsFieldBuilder().addBuilder(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount.getDefaultInstance());
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount.Builder addStorageMountsBuilder(
int index) {
return getStorageMountsFieldBuilder().addBuilder(
index, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount.getDefaultInstance());
}
/**
*
* S3 mounts to be used by the version.
*
*
* repeated .yandex.cloud.serverless.containers.v1.StorageMount storage_mounts = 16;
*/
public java.util.List
getStorageMountsBuilderList() {
return getStorageMountsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMountOrBuilder>
getStorageMountsFieldBuilder() {
if (storageMountsBuilder_ == null) {
storageMountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMountOrBuilder>(
storageMounts_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
storageMounts_ = null;
}
return storageMountsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.containers.v1.Revision)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.containers.v1.Revision)
private static final yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision();
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Revision parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Revision(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Revision getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ImageOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.containers.v1.Image)
com.google.protobuf.MessageOrBuilder {
/**
*
* Image URL, that is used by the revision.
*
*
* string image_url = 1;
* @return The imageUrl.
*/
java.lang.String getImageUrl();
/**
*
* Image URL, that is used by the revision.
*
*
* string image_url = 1;
* @return The bytes for imageUrl.
*/
com.google.protobuf.ByteString
getImageUrlBytes();
/**
*
* Digest of the image. Calculated at creation time.
*
*
* string image_digest = 2;
* @return The imageDigest.
*/
java.lang.String getImageDigest();
/**
*
* Digest of the image. Calculated at creation time.
*
*
* string image_digest = 2;
* @return The bytes for imageDigest.
*/
com.google.protobuf.ByteString
getImageDigestBytes();
/**
*
* Override for the image's ENTRYPOINT.
*
*
* .yandex.cloud.serverless.containers.v1.Command command = 3;
* @return Whether the command field is set.
*/
boolean hasCommand();
/**
*
* Override for the image's ENTRYPOINT.
*
*
* .yandex.cloud.serverless.containers.v1.Command command = 3;
* @return The command.
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command getCommand();
/**
*
* Override for the image's ENTRYPOINT.
*
*
* .yandex.cloud.serverless.containers.v1.Command command = 3;
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.CommandOrBuilder getCommandOrBuilder();
/**
*
* Override for the image's CMD.
*
*
* .yandex.cloud.serverless.containers.v1.Args args = 4;
* @return Whether the args field is set.
*/
boolean hasArgs();
/**
*
* Override for the image's CMD.
*
*
* .yandex.cloud.serverless.containers.v1.Args args = 4;
* @return The args.
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args getArgs();
/**
*
* Override for the image's CMD.
*
*
* .yandex.cloud.serverless.containers.v1.Args args = 4;
*/
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ArgsOrBuilder getArgsOrBuilder();
/**
*
* Additional environment for the container.
*
*
* map<string, string> environment = 5 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... }
*/
int getEnvironmentCount();
/**
*
* Additional environment for the container.
*
*
* map<string, string> environment = 5 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... }
*/
boolean containsEnvironment(
java.lang.String key);
/**
* Use {@link #getEnvironmentMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getEnvironment();
/**
*
* Additional environment for the container.
*
*
* map<string, string> environment = 5 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... }
*/
java.util.Map
getEnvironmentMap();
/**
*
* Additional environment for the container.
*
*
* map<string, string> environment = 5 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getEnvironmentOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* Additional environment for the container.
*
*
* map<string, string> environment = 5 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getEnvironmentOrThrow(
java.lang.String key);
/**
*
* Override for the image's WORKDIR.
*
*
* string working_dir = 6;
* @return The workingDir.
*/
java.lang.String getWorkingDir();
/**
*
* Override for the image's WORKDIR.
*
*
* string working_dir = 6;
* @return The bytes for workingDir.
*/
com.google.protobuf.ByteString
getWorkingDirBytes();
}
/**
*
* Revision image specification.
*
*
* Protobuf type {@code yandex.cloud.serverless.containers.v1.Image}
*/
public static final class Image extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.containers.v1.Image)
ImageOrBuilder {
private static final long serialVersionUID = 0L;
// Use Image.newBuilder() to construct.
private Image(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Image() {
imageUrl_ = "";
imageDigest_ = "";
workingDir_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Image();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Image(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
imageUrl_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
imageDigest_ = s;
break;
}
case 26: {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command.Builder subBuilder = null;
if (command_ != null) {
subBuilder = command_.toBuilder();
}
command_ = input.readMessage(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(command_);
command_ = subBuilder.buildPartial();
}
break;
}
case 34: {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args.Builder subBuilder = null;
if (args_ != null) {
subBuilder = args_.toBuilder();
}
args_ = input.readMessage(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(args_);
args_ = subBuilder.buildPartial();
}
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
environment_ = com.google.protobuf.MapField.newMapField(
EnvironmentDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
environment__ = input.readMessage(
EnvironmentDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
environment_.getMutableMap().put(
environment__.getKey(), environment__.getValue());
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
workingDir_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Image_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetEnvironment();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Image_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image.Builder.class);
}
public static final int IMAGE_URL_FIELD_NUMBER = 1;
private volatile java.lang.Object imageUrl_;
/**
*
* Image URL, that is used by the revision.
*
*
* string image_url = 1;
* @return The imageUrl.
*/
@java.lang.Override
public java.lang.String getImageUrl() {
java.lang.Object ref = imageUrl_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
imageUrl_ = s;
return s;
}
}
/**
*
* Image URL, that is used by the revision.
*
*
* string image_url = 1;
* @return The bytes for imageUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getImageUrlBytes() {
java.lang.Object ref = imageUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imageUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IMAGE_DIGEST_FIELD_NUMBER = 2;
private volatile java.lang.Object imageDigest_;
/**
*
* Digest of the image. Calculated at creation time.
*
*
* string image_digest = 2;
* @return The imageDigest.
*/
@java.lang.Override
public java.lang.String getImageDigest() {
java.lang.Object ref = imageDigest_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
imageDigest_ = s;
return s;
}
}
/**
*
* Digest of the image. Calculated at creation time.
*
*
* string image_digest = 2;
* @return The bytes for imageDigest.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getImageDigestBytes() {
java.lang.Object ref = imageDigest_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imageDigest_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMMAND_FIELD_NUMBER = 3;
private yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command command_;
/**
*
* Override for the image's ENTRYPOINT.
*
*
* .yandex.cloud.serverless.containers.v1.Command command = 3;
* @return Whether the command field is set.
*/
@java.lang.Override
public boolean hasCommand() {
return command_ != null;
}
/**
*
* Override for the image's ENTRYPOINT.
*
*
* .yandex.cloud.serverless.containers.v1.Command command = 3;
* @return The command.
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command getCommand() {
return command_ == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command.getDefaultInstance() : command_;
}
/**
*
* Override for the image's ENTRYPOINT.
*
*
* .yandex.cloud.serverless.containers.v1.Command command = 3;
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.CommandOrBuilder getCommandOrBuilder() {
return getCommand();
}
public static final int ARGS_FIELD_NUMBER = 4;
private yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args args_;
/**
*
* Override for the image's CMD.
*
*
* .yandex.cloud.serverless.containers.v1.Args args = 4;
* @return Whether the args field is set.
*/
@java.lang.Override
public boolean hasArgs() {
return args_ != null;
}
/**
*
* Override for the image's CMD.
*
*
* .yandex.cloud.serverless.containers.v1.Args args = 4;
* @return The args.
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args getArgs() {
return args_ == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args.getDefaultInstance() : args_;
}
/**
*
* Override for the image's CMD.
*
*
* .yandex.cloud.serverless.containers.v1.Args args = 4;
*/
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ArgsOrBuilder getArgsOrBuilder() {
return getArgs();
}
public static final int ENVIRONMENT_FIELD_NUMBER = 5;
private static final class EnvironmentDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Image_EnvironmentEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> environment_;
private com.google.protobuf.MapField
internalGetEnvironment() {
if (environment_ == null) {
return com.google.protobuf.MapField.emptyMapField(
EnvironmentDefaultEntryHolder.defaultEntry);
}
return environment_;
}
public int getEnvironmentCount() {
return internalGetEnvironment().getMap().size();
}
/**
*
* Additional environment for the container.
*
*
* map<string, string> environment = 5 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public boolean containsEnvironment(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetEnvironment().getMap().containsKey(key);
}
/**
* Use {@link #getEnvironmentMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getEnvironment() {
return getEnvironmentMap();
}
/**
*
* Additional environment for the container.
*
*
* map<string, string> environment = 5 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getEnvironmentMap() {
return internalGetEnvironment().getMap();
}
/**
*
* Additional environment for the container.
*
*
* map<string, string> environment = 5 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getEnvironmentOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetEnvironment().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Additional environment for the container.
*
*
* map<string, string> environment = 5 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getEnvironmentOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetEnvironment().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int WORKING_DIR_FIELD_NUMBER = 6;
private volatile java.lang.Object workingDir_;
/**
*
* Override for the image's WORKDIR.
*
*
* string working_dir = 6;
* @return The workingDir.
*/
@java.lang.Override
public java.lang.String getWorkingDir() {
java.lang.Object ref = workingDir_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
workingDir_ = s;
return s;
}
}
/**
*
* Override for the image's WORKDIR.
*
*
* string working_dir = 6;
* @return The bytes for workingDir.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getWorkingDirBytes() {
java.lang.Object ref = workingDir_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workingDir_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUrl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imageUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageDigest_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, imageDigest_);
}
if (command_ != null) {
output.writeMessage(3, getCommand());
}
if (args_ != null) {
output.writeMessage(4, getArgs());
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetEnvironment(),
EnvironmentDefaultEntryHolder.defaultEntry,
5);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, workingDir_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUrl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, imageUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageDigest_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, imageDigest_);
}
if (command_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCommand());
}
if (args_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getArgs());
}
for (java.util.Map.Entry entry
: internalGetEnvironment().getMap().entrySet()) {
com.google.protobuf.MapEntry
environment__ = EnvironmentDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, environment__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, workingDir_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image other = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image) obj;
if (!getImageUrl()
.equals(other.getImageUrl())) return false;
if (!getImageDigest()
.equals(other.getImageDigest())) return false;
if (hasCommand() != other.hasCommand()) return false;
if (hasCommand()) {
if (!getCommand()
.equals(other.getCommand())) return false;
}
if (hasArgs() != other.hasArgs()) return false;
if (hasArgs()) {
if (!getArgs()
.equals(other.getArgs())) return false;
}
if (!internalGetEnvironment().equals(
other.internalGetEnvironment())) return false;
if (!getWorkingDir()
.equals(other.getWorkingDir())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + IMAGE_URL_FIELD_NUMBER;
hash = (53 * hash) + getImageUrl().hashCode();
hash = (37 * hash) + IMAGE_DIGEST_FIELD_NUMBER;
hash = (53 * hash) + getImageDigest().hashCode();
if (hasCommand()) {
hash = (37 * hash) + COMMAND_FIELD_NUMBER;
hash = (53 * hash) + getCommand().hashCode();
}
if (hasArgs()) {
hash = (37 * hash) + ARGS_FIELD_NUMBER;
hash = (53 * hash) + getArgs().hashCode();
}
if (!internalGetEnvironment().getMap().isEmpty()) {
hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER;
hash = (53 * hash) + internalGetEnvironment().hashCode();
}
hash = (37 * hash) + WORKING_DIR_FIELD_NUMBER;
hash = (53 * hash) + getWorkingDir().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Revision image specification.
*
*
* Protobuf type {@code yandex.cloud.serverless.containers.v1.Image}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.containers.v1.Image)
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ImageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Image_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetEnvironment();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 5:
return internalGetMutableEnvironment();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Image_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image.Builder.class);
}
// Construct using yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
imageUrl_ = "";
imageDigest_ = "";
if (commandBuilder_ == null) {
command_ = null;
} else {
command_ = null;
commandBuilder_ = null;
}
if (argsBuilder_ == null) {
args_ = null;
} else {
args_ = null;
argsBuilder_ = null;
}
internalGetMutableEnvironment().clear();
workingDir_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Image_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image getDefaultInstanceForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image build() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image buildPartial() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image result = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image(this);
int from_bitField0_ = bitField0_;
result.imageUrl_ = imageUrl_;
result.imageDigest_ = imageDigest_;
if (commandBuilder_ == null) {
result.command_ = command_;
} else {
result.command_ = commandBuilder_.build();
}
if (argsBuilder_ == null) {
result.args_ = args_;
} else {
result.args_ = argsBuilder_.build();
}
result.environment_ = internalGetEnvironment();
result.environment_.makeImmutable();
result.workingDir_ = workingDir_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image) {
return mergeFrom((yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image other) {
if (other == yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image.getDefaultInstance()) return this;
if (!other.getImageUrl().isEmpty()) {
imageUrl_ = other.imageUrl_;
onChanged();
}
if (!other.getImageDigest().isEmpty()) {
imageDigest_ = other.imageDigest_;
onChanged();
}
if (other.hasCommand()) {
mergeCommand(other.getCommand());
}
if (other.hasArgs()) {
mergeArgs(other.getArgs());
}
internalGetMutableEnvironment().mergeFrom(
other.internalGetEnvironment());
if (!other.getWorkingDir().isEmpty()) {
workingDir_ = other.workingDir_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object imageUrl_ = "";
/**
*
* Image URL, that is used by the revision.
*
*
* string image_url = 1;
* @return The imageUrl.
*/
public java.lang.String getImageUrl() {
java.lang.Object ref = imageUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
imageUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Image URL, that is used by the revision.
*
*
* string image_url = 1;
* @return The bytes for imageUrl.
*/
public com.google.protobuf.ByteString
getImageUrlBytes() {
java.lang.Object ref = imageUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imageUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Image URL, that is used by the revision.
*
*
* string image_url = 1;
* @param value The imageUrl to set.
* @return This builder for chaining.
*/
public Builder setImageUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
imageUrl_ = value;
onChanged();
return this;
}
/**
*
* Image URL, that is used by the revision.
*
*
* string image_url = 1;
* @return This builder for chaining.
*/
public Builder clearImageUrl() {
imageUrl_ = getDefaultInstance().getImageUrl();
onChanged();
return this;
}
/**
*
* Image URL, that is used by the revision.
*
*
* string image_url = 1;
* @param value The bytes for imageUrl to set.
* @return This builder for chaining.
*/
public Builder setImageUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
imageUrl_ = value;
onChanged();
return this;
}
private java.lang.Object imageDigest_ = "";
/**
*
* Digest of the image. Calculated at creation time.
*
*
* string image_digest = 2;
* @return The imageDigest.
*/
public java.lang.String getImageDigest() {
java.lang.Object ref = imageDigest_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
imageDigest_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Digest of the image. Calculated at creation time.
*
*
* string image_digest = 2;
* @return The bytes for imageDigest.
*/
public com.google.protobuf.ByteString
getImageDigestBytes() {
java.lang.Object ref = imageDigest_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imageDigest_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Digest of the image. Calculated at creation time.
*
*
* string image_digest = 2;
* @param value The imageDigest to set.
* @return This builder for chaining.
*/
public Builder setImageDigest(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
imageDigest_ = value;
onChanged();
return this;
}
/**
*
* Digest of the image. Calculated at creation time.
*
*
* string image_digest = 2;
* @return This builder for chaining.
*/
public Builder clearImageDigest() {
imageDigest_ = getDefaultInstance().getImageDigest();
onChanged();
return this;
}
/**
*
* Digest of the image. Calculated at creation time.
*
*
* string image_digest = 2;
* @param value The bytes for imageDigest to set.
* @return This builder for chaining.
*/
public Builder setImageDigestBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
imageDigest_ = value;
onChanged();
return this;
}
private yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command command_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.CommandOrBuilder> commandBuilder_;
/**
*
* Override for the image's ENTRYPOINT.
*
*
* .yandex.cloud.serverless.containers.v1.Command command = 3;
* @return Whether the command field is set.
*/
public boolean hasCommand() {
return commandBuilder_ != null || command_ != null;
}
/**
*
* Override for the image's ENTRYPOINT.
*
*
* .yandex.cloud.serverless.containers.v1.Command command = 3;
* @return The command.
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command getCommand() {
if (commandBuilder_ == null) {
return command_ == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command.getDefaultInstance() : command_;
} else {
return commandBuilder_.getMessage();
}
}
/**
*
* Override for the image's ENTRYPOINT.
*
*
* .yandex.cloud.serverless.containers.v1.Command command = 3;
*/
public Builder setCommand(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command value) {
if (commandBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
command_ = value;
onChanged();
} else {
commandBuilder_.setMessage(value);
}
return this;
}
/**
*
* Override for the image's ENTRYPOINT.
*
*
* .yandex.cloud.serverless.containers.v1.Command command = 3;
*/
public Builder setCommand(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command.Builder builderForValue) {
if (commandBuilder_ == null) {
command_ = builderForValue.build();
onChanged();
} else {
commandBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Override for the image's ENTRYPOINT.
*
*
* .yandex.cloud.serverless.containers.v1.Command command = 3;
*/
public Builder mergeCommand(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command value) {
if (commandBuilder_ == null) {
if (command_ != null) {
command_ =
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command.newBuilder(command_).mergeFrom(value).buildPartial();
} else {
command_ = value;
}
onChanged();
} else {
commandBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Override for the image's ENTRYPOINT.
*
*
* .yandex.cloud.serverless.containers.v1.Command command = 3;
*/
public Builder clearCommand() {
if (commandBuilder_ == null) {
command_ = null;
onChanged();
} else {
command_ = null;
commandBuilder_ = null;
}
return this;
}
/**
*
* Override for the image's ENTRYPOINT.
*
*
* .yandex.cloud.serverless.containers.v1.Command command = 3;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command.Builder getCommandBuilder() {
onChanged();
return getCommandFieldBuilder().getBuilder();
}
/**
*
* Override for the image's ENTRYPOINT.
*
*
* .yandex.cloud.serverless.containers.v1.Command command = 3;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.CommandOrBuilder getCommandOrBuilder() {
if (commandBuilder_ != null) {
return commandBuilder_.getMessageOrBuilder();
} else {
return command_ == null ?
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command.getDefaultInstance() : command_;
}
}
/**
*
* Override for the image's ENTRYPOINT.
*
*
* .yandex.cloud.serverless.containers.v1.Command command = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.CommandOrBuilder>
getCommandFieldBuilder() {
if (commandBuilder_ == null) {
commandBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.CommandOrBuilder>(
getCommand(),
getParentForChildren(),
isClean());
command_ = null;
}
return commandBuilder_;
}
private yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args args_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ArgsOrBuilder> argsBuilder_;
/**
*
* Override for the image's CMD.
*
*
* .yandex.cloud.serverless.containers.v1.Args args = 4;
* @return Whether the args field is set.
*/
public boolean hasArgs() {
return argsBuilder_ != null || args_ != null;
}
/**
*
* Override for the image's CMD.
*
*
* .yandex.cloud.serverless.containers.v1.Args args = 4;
* @return The args.
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args getArgs() {
if (argsBuilder_ == null) {
return args_ == null ? yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args.getDefaultInstance() : args_;
} else {
return argsBuilder_.getMessage();
}
}
/**
*
* Override for the image's CMD.
*
*
* .yandex.cloud.serverless.containers.v1.Args args = 4;
*/
public Builder setArgs(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
args_ = value;
onChanged();
} else {
argsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Override for the image's CMD.
*
*
* .yandex.cloud.serverless.containers.v1.Args args = 4;
*/
public Builder setArgs(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args.Builder builderForValue) {
if (argsBuilder_ == null) {
args_ = builderForValue.build();
onChanged();
} else {
argsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Override for the image's CMD.
*
*
* .yandex.cloud.serverless.containers.v1.Args args = 4;
*/
public Builder mergeArgs(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args value) {
if (argsBuilder_ == null) {
if (args_ != null) {
args_ =
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args.newBuilder(args_).mergeFrom(value).buildPartial();
} else {
args_ = value;
}
onChanged();
} else {
argsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Override for the image's CMD.
*
*
* .yandex.cloud.serverless.containers.v1.Args args = 4;
*/
public Builder clearArgs() {
if (argsBuilder_ == null) {
args_ = null;
onChanged();
} else {
args_ = null;
argsBuilder_ = null;
}
return this;
}
/**
*
* Override for the image's CMD.
*
*
* .yandex.cloud.serverless.containers.v1.Args args = 4;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args.Builder getArgsBuilder() {
onChanged();
return getArgsFieldBuilder().getBuilder();
}
/**
*
* Override for the image's CMD.
*
*
* .yandex.cloud.serverless.containers.v1.Args args = 4;
*/
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ArgsOrBuilder getArgsOrBuilder() {
if (argsBuilder_ != null) {
return argsBuilder_.getMessageOrBuilder();
} else {
return args_ == null ?
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args.getDefaultInstance() : args_;
}
}
/**
*
* Override for the image's CMD.
*
*
* .yandex.cloud.serverless.containers.v1.Args args = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ArgsOrBuilder>
getArgsFieldBuilder() {
if (argsBuilder_ == null) {
argsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args.Builder, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ArgsOrBuilder>(
getArgs(),
getParentForChildren(),
isClean());
args_ = null;
}
return argsBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> environment_;
private com.google.protobuf.MapField
internalGetEnvironment() {
if (environment_ == null) {
return com.google.protobuf.MapField.emptyMapField(
EnvironmentDefaultEntryHolder.defaultEntry);
}
return environment_;
}
private com.google.protobuf.MapField
internalGetMutableEnvironment() {
onChanged();;
if (environment_ == null) {
environment_ = com.google.protobuf.MapField.newMapField(
EnvironmentDefaultEntryHolder.defaultEntry);
}
if (!environment_.isMutable()) {
environment_ = environment_.copy();
}
return environment_;
}
public int getEnvironmentCount() {
return internalGetEnvironment().getMap().size();
}
/**
*
* Additional environment for the container.
*
*
* map<string, string> environment = 5 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public boolean containsEnvironment(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetEnvironment().getMap().containsKey(key);
}
/**
* Use {@link #getEnvironmentMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getEnvironment() {
return getEnvironmentMap();
}
/**
*
* Additional environment for the container.
*
*
* map<string, string> environment = 5 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getEnvironmentMap() {
return internalGetEnvironment().getMap();
}
/**
*
* Additional environment for the container.
*
*
* map<string, string> environment = 5 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getEnvironmentOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetEnvironment().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Additional environment for the container.
*
*
* map<string, string> environment = 5 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getEnvironmentOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetEnvironment().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearEnvironment() {
internalGetMutableEnvironment().getMutableMap()
.clear();
return this;
}
/**
*
* Additional environment for the container.
*
*
* map<string, string> environment = 5 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... }
*/
public Builder removeEnvironment(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableEnvironment().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableEnvironment() {
return internalGetMutableEnvironment().getMutableMap();
}
/**
*
* Additional environment for the container.
*
*
* map<string, string> environment = 5 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... }
*/
public Builder putEnvironment(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableEnvironment().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Additional environment for the container.
*
*
* map<string, string> environment = 5 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... }
*/
public Builder putAllEnvironment(
java.util.Map values) {
internalGetMutableEnvironment().getMutableMap()
.putAll(values);
return this;
}
private java.lang.Object workingDir_ = "";
/**
*
* Override for the image's WORKDIR.
*
*
* string working_dir = 6;
* @return The workingDir.
*/
public java.lang.String getWorkingDir() {
java.lang.Object ref = workingDir_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
workingDir_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Override for the image's WORKDIR.
*
*
* string working_dir = 6;
* @return The bytes for workingDir.
*/
public com.google.protobuf.ByteString
getWorkingDirBytes() {
java.lang.Object ref = workingDir_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workingDir_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Override for the image's WORKDIR.
*
*
* string working_dir = 6;
* @param value The workingDir to set.
* @return This builder for chaining.
*/
public Builder setWorkingDir(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
workingDir_ = value;
onChanged();
return this;
}
/**
*
* Override for the image's WORKDIR.
*
*
* string working_dir = 6;
* @return This builder for chaining.
*/
public Builder clearWorkingDir() {
workingDir_ = getDefaultInstance().getWorkingDir();
onChanged();
return this;
}
/**
*
* Override for the image's WORKDIR.
*
*
* string working_dir = 6;
* @param value The bytes for workingDir to set.
* @return This builder for chaining.
*/
public Builder setWorkingDirBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
workingDir_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.containers.v1.Image)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.containers.v1.Image)
private static final yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image();
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Image parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Image(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Image getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CommandOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.containers.v1.Command)
com.google.protobuf.MessageOrBuilder {
/**
*
* Command that will override ENTRYPOINT of an image.
* Commands will be executed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string command = 1;
* @return A list containing the command.
*/
java.util.List
getCommandList();
/**
*
* Command that will override ENTRYPOINT of an image.
* Commands will be executed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string command = 1;
* @return The count of command.
*/
int getCommandCount();
/**
*
* Command that will override ENTRYPOINT of an image.
* Commands will be executed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string command = 1;
* @param index The index of the element to return.
* @return The command at the given index.
*/
java.lang.String getCommand(int index);
/**
*
* Command that will override ENTRYPOINT of an image.
* Commands will be executed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string command = 1;
* @param index The index of the value to return.
* @return The bytes of the command at the given index.
*/
com.google.protobuf.ByteString
getCommandBytes(int index);
}
/**
* Protobuf type {@code yandex.cloud.serverless.containers.v1.Command}
*/
public static final class Command extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.containers.v1.Command)
CommandOrBuilder {
private static final long serialVersionUID = 0L;
// Use Command.newBuilder() to construct.
private Command(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Command() {
command_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Command();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Command(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
command_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
command_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
command_ = command_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Command_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Command_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command.Builder.class);
}
public static final int COMMAND_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList command_;
/**
*
* Command that will override ENTRYPOINT of an image.
* Commands will be executed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string command = 1;
* @return A list containing the command.
*/
public com.google.protobuf.ProtocolStringList
getCommandList() {
return command_;
}
/**
*
* Command that will override ENTRYPOINT of an image.
* Commands will be executed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string command = 1;
* @return The count of command.
*/
public int getCommandCount() {
return command_.size();
}
/**
*
* Command that will override ENTRYPOINT of an image.
* Commands will be executed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string command = 1;
* @param index The index of the element to return.
* @return The command at the given index.
*/
public java.lang.String getCommand(int index) {
return command_.get(index);
}
/**
*
* Command that will override ENTRYPOINT of an image.
* Commands will be executed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string command = 1;
* @param index The index of the value to return.
* @return The bytes of the command at the given index.
*/
public com.google.protobuf.ByteString
getCommandBytes(int index) {
return command_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < command_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, command_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < command_.size(); i++) {
dataSize += computeStringSizeNoTag(command_.getRaw(i));
}
size += dataSize;
size += 1 * getCommandList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command other = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command) obj;
if (!getCommandList()
.equals(other.getCommandList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getCommandCount() > 0) {
hash = (37 * hash) + COMMAND_FIELD_NUMBER;
hash = (53 * hash) + getCommandList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.serverless.containers.v1.Command}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.containers.v1.Command)
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.CommandOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Command_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Command_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command.Builder.class);
}
// Construct using yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
command_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Command_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command getDefaultInstanceForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command build() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command buildPartial() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command result = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
command_ = command_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.command_ = command_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command) {
return mergeFrom((yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command other) {
if (other == yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command.getDefaultInstance()) return this;
if (!other.command_.isEmpty()) {
if (command_.isEmpty()) {
command_ = other.command_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCommandIsMutable();
command_.addAll(other.command_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureCommandIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
command_ = new com.google.protobuf.LazyStringArrayList(command_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Command that will override ENTRYPOINT of an image.
* Commands will be executed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string command = 1;
* @return A list containing the command.
*/
public com.google.protobuf.ProtocolStringList
getCommandList() {
return command_.getUnmodifiableView();
}
/**
*
* Command that will override ENTRYPOINT of an image.
* Commands will be executed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string command = 1;
* @return The count of command.
*/
public int getCommandCount() {
return command_.size();
}
/**
*
* Command that will override ENTRYPOINT of an image.
* Commands will be executed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string command = 1;
* @param index The index of the element to return.
* @return The command at the given index.
*/
public java.lang.String getCommand(int index) {
return command_.get(index);
}
/**
*
* Command that will override ENTRYPOINT of an image.
* Commands will be executed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string command = 1;
* @param index The index of the value to return.
* @return The bytes of the command at the given index.
*/
public com.google.protobuf.ByteString
getCommandBytes(int index) {
return command_.getByteString(index);
}
/**
*
* Command that will override ENTRYPOINT of an image.
* Commands will be executed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string command = 1;
* @param index The index to set the value at.
* @param value The command to set.
* @return This builder for chaining.
*/
public Builder setCommand(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCommandIsMutable();
command_.set(index, value);
onChanged();
return this;
}
/**
*
* Command that will override ENTRYPOINT of an image.
* Commands will be executed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string command = 1;
* @param value The command to add.
* @return This builder for chaining.
*/
public Builder addCommand(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCommandIsMutable();
command_.add(value);
onChanged();
return this;
}
/**
*
* Command that will override ENTRYPOINT of an image.
* Commands will be executed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string command = 1;
* @param values The command to add.
* @return This builder for chaining.
*/
public Builder addAllCommand(
java.lang.Iterable values) {
ensureCommandIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, command_);
onChanged();
return this;
}
/**
*
* Command that will override ENTRYPOINT of an image.
* Commands will be executed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string command = 1;
* @return This builder for chaining.
*/
public Builder clearCommand() {
command_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Command that will override ENTRYPOINT of an image.
* Commands will be executed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string command = 1;
* @param value The bytes of the command to add.
* @return This builder for chaining.
*/
public Builder addCommandBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureCommandIsMutable();
command_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.containers.v1.Command)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.containers.v1.Command)
private static final yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command();
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Command parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Command(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Command getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ArgsOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.containers.v1.Args)
com.google.protobuf.MessageOrBuilder {
/**
*
* Arguments that will override CMD of an image.
* Arguments will be passed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string args = 1;
* @return A list containing the args.
*/
java.util.List
getArgsList();
/**
*
* Arguments that will override CMD of an image.
* Arguments will be passed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string args = 1;
* @return The count of args.
*/
int getArgsCount();
/**
*
* Arguments that will override CMD of an image.
* Arguments will be passed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string args = 1;
* @param index The index of the element to return.
* @return The args at the given index.
*/
java.lang.String getArgs(int index);
/**
*
* Arguments that will override CMD of an image.
* Arguments will be passed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string args = 1;
* @param index The index of the value to return.
* @return The bytes of the args at the given index.
*/
com.google.protobuf.ByteString
getArgsBytes(int index);
}
/**
* Protobuf type {@code yandex.cloud.serverless.containers.v1.Args}
*/
public static final class Args extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.containers.v1.Args)
ArgsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Args.newBuilder() to construct.
private Args(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Args() {
args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Args();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Args(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
args_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
args_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
args_ = args_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Args_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Args_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args.Builder.class);
}
public static final int ARGS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList args_;
/**
*
* Arguments that will override CMD of an image.
* Arguments will be passed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string args = 1;
* @return A list containing the args.
*/
public com.google.protobuf.ProtocolStringList
getArgsList() {
return args_;
}
/**
*
* Arguments that will override CMD of an image.
* Arguments will be passed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string args = 1;
* @return The count of args.
*/
public int getArgsCount() {
return args_.size();
}
/**
*
* Arguments that will override CMD of an image.
* Arguments will be passed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string args = 1;
* @param index The index of the element to return.
* @return The args at the given index.
*/
public java.lang.String getArgs(int index) {
return args_.get(index);
}
/**
*
* Arguments that will override CMD of an image.
* Arguments will be passed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string args = 1;
* @param index The index of the value to return.
* @return The bytes of the args at the given index.
*/
public com.google.protobuf.ByteString
getArgsBytes(int index) {
return args_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < args_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, args_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < args_.size(); i++) {
dataSize += computeStringSizeNoTag(args_.getRaw(i));
}
size += dataSize;
size += 1 * getArgsList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args other = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args) obj;
if (!getArgsList()
.equals(other.getArgsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getArgsCount() > 0) {
hash = (37 * hash) + ARGS_FIELD_NUMBER;
hash = (53 * hash) + getArgsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.serverless.containers.v1.Args}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.containers.v1.Args)
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ArgsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Args_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Args_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args.Builder.class);
}
// Construct using yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Args_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args getDefaultInstanceForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args build() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args buildPartial() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args result = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
args_ = args_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.args_ = args_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args) {
return mergeFrom((yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args other) {
if (other == yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args.getDefaultInstance()) return this;
if (!other.args_.isEmpty()) {
if (args_.isEmpty()) {
args_ = other.args_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureArgsIsMutable();
args_.addAll(other.args_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureArgsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
args_ = new com.google.protobuf.LazyStringArrayList(args_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Arguments that will override CMD of an image.
* Arguments will be passed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string args = 1;
* @return A list containing the args.
*/
public com.google.protobuf.ProtocolStringList
getArgsList() {
return args_.getUnmodifiableView();
}
/**
*
* Arguments that will override CMD of an image.
* Arguments will be passed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string args = 1;
* @return The count of args.
*/
public int getArgsCount() {
return args_.size();
}
/**
*
* Arguments that will override CMD of an image.
* Arguments will be passed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string args = 1;
* @param index The index of the element to return.
* @return The args at the given index.
*/
public java.lang.String getArgs(int index) {
return args_.get(index);
}
/**
*
* Arguments that will override CMD of an image.
* Arguments will be passed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string args = 1;
* @param index The index of the value to return.
* @return The bytes of the args at the given index.
*/
public com.google.protobuf.ByteString
getArgsBytes(int index) {
return args_.getByteString(index);
}
/**
*
* Arguments that will override CMD of an image.
* Arguments will be passed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string args = 1;
* @param index The index to set the value at.
* @param value The args to set.
* @return This builder for chaining.
*/
public Builder setArgs(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.set(index, value);
onChanged();
return this;
}
/**
*
* Arguments that will override CMD of an image.
* Arguments will be passed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string args = 1;
* @param value The args to add.
* @return This builder for chaining.
*/
public Builder addArgs(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.add(value);
onChanged();
return this;
}
/**
*
* Arguments that will override CMD of an image.
* Arguments will be passed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string args = 1;
* @param values The args to add.
* @return This builder for chaining.
*/
public Builder addAllArgs(
java.lang.Iterable values) {
ensureArgsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, args_);
onChanged();
return this;
}
/**
*
* Arguments that will override CMD of an image.
* Arguments will be passed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string args = 1;
* @return This builder for chaining.
*/
public Builder clearArgs() {
args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Arguments that will override CMD of an image.
* Arguments will be passed as is. The runtime will not substitute environment
* variables or execute shell commands. If one wants to do that, they should
* invoke shell interpreter with an appropriate shell script.
*
*
* repeated string args = 1;
* @param value The bytes of the args to add.
* @return This builder for chaining.
*/
public Builder addArgsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureArgsIsMutable();
args_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.containers.v1.Args)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.containers.v1.Args)
private static final yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args();
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Args parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Args(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Args getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResourcesOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.containers.v1.Resources)
com.google.protobuf.MessageOrBuilder {
/**
*
* Amount of memory available to the revision, specified in bytes, multiple of 128MB.
*
*
* int64 memory = 1 [(.yandex.cloud.value) = "134217728-4294967296"];
* @return The memory.
*/
long getMemory();
/**
*
* Number of cores available to the revision.
*
*
* int64 cores = 2 [(.yandex.cloud.value) = "0-2"];
* @return The cores.
*/
long getCores();
/**
*
* Specifies baseline performance for a core in percent, multiple of 5%.
* Should be 100% for cores > 1.
*
*
* int64 core_fraction = 3 [(.yandex.cloud.value) = "0-100"];
* @return The coreFraction.
*/
long getCoreFraction();
}
/**
*
* Resources allocated to a revision.
*
*
* Protobuf type {@code yandex.cloud.serverless.containers.v1.Resources}
*/
public static final class Resources extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.containers.v1.Resources)
ResourcesOrBuilder {
private static final long serialVersionUID = 0L;
// Use Resources.newBuilder() to construct.
private Resources(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Resources() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Resources();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Resources(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
memory_ = input.readInt64();
break;
}
case 16: {
cores_ = input.readInt64();
break;
}
case 24: {
coreFraction_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Resources_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Resources_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources.Builder.class);
}
public static final int MEMORY_FIELD_NUMBER = 1;
private long memory_;
/**
*
* Amount of memory available to the revision, specified in bytes, multiple of 128MB.
*
*
* int64 memory = 1 [(.yandex.cloud.value) = "134217728-4294967296"];
* @return The memory.
*/
@java.lang.Override
public long getMemory() {
return memory_;
}
public static final int CORES_FIELD_NUMBER = 2;
private long cores_;
/**
*
* Number of cores available to the revision.
*
*
* int64 cores = 2 [(.yandex.cloud.value) = "0-2"];
* @return The cores.
*/
@java.lang.Override
public long getCores() {
return cores_;
}
public static final int CORE_FRACTION_FIELD_NUMBER = 3;
private long coreFraction_;
/**
*
* Specifies baseline performance for a core in percent, multiple of 5%.
* Should be 100% for cores > 1.
*
*
* int64 core_fraction = 3 [(.yandex.cloud.value) = "0-100"];
* @return The coreFraction.
*/
@java.lang.Override
public long getCoreFraction() {
return coreFraction_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (memory_ != 0L) {
output.writeInt64(1, memory_);
}
if (cores_ != 0L) {
output.writeInt64(2, cores_);
}
if (coreFraction_ != 0L) {
output.writeInt64(3, coreFraction_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (memory_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, memory_);
}
if (cores_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, cores_);
}
if (coreFraction_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, coreFraction_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources other = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources) obj;
if (getMemory()
!= other.getMemory()) return false;
if (getCores()
!= other.getCores()) return false;
if (getCoreFraction()
!= other.getCoreFraction()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MEMORY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMemory());
hash = (37 * hash) + CORES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCores());
hash = (37 * hash) + CORE_FRACTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCoreFraction());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Resources allocated to a revision.
*
*
* Protobuf type {@code yandex.cloud.serverless.containers.v1.Resources}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.containers.v1.Resources)
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ResourcesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Resources_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Resources_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources.Builder.class);
}
// Construct using yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
memory_ = 0L;
cores_ = 0L;
coreFraction_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Resources_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources getDefaultInstanceForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources build() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources buildPartial() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources result = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources(this);
result.memory_ = memory_;
result.cores_ = cores_;
result.coreFraction_ = coreFraction_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources) {
return mergeFrom((yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources other) {
if (other == yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources.getDefaultInstance()) return this;
if (other.getMemory() != 0L) {
setMemory(other.getMemory());
}
if (other.getCores() != 0L) {
setCores(other.getCores());
}
if (other.getCoreFraction() != 0L) {
setCoreFraction(other.getCoreFraction());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long memory_ ;
/**
*
* Amount of memory available to the revision, specified in bytes, multiple of 128MB.
*
*
* int64 memory = 1 [(.yandex.cloud.value) = "134217728-4294967296"];
* @return The memory.
*/
@java.lang.Override
public long getMemory() {
return memory_;
}
/**
*
* Amount of memory available to the revision, specified in bytes, multiple of 128MB.
*
*
* int64 memory = 1 [(.yandex.cloud.value) = "134217728-4294967296"];
* @param value The memory to set.
* @return This builder for chaining.
*/
public Builder setMemory(long value) {
memory_ = value;
onChanged();
return this;
}
/**
*
* Amount of memory available to the revision, specified in bytes, multiple of 128MB.
*
*
* int64 memory = 1 [(.yandex.cloud.value) = "134217728-4294967296"];
* @return This builder for chaining.
*/
public Builder clearMemory() {
memory_ = 0L;
onChanged();
return this;
}
private long cores_ ;
/**
*
* Number of cores available to the revision.
*
*
* int64 cores = 2 [(.yandex.cloud.value) = "0-2"];
* @return The cores.
*/
@java.lang.Override
public long getCores() {
return cores_;
}
/**
*
* Number of cores available to the revision.
*
*
* int64 cores = 2 [(.yandex.cloud.value) = "0-2"];
* @param value The cores to set.
* @return This builder for chaining.
*/
public Builder setCores(long value) {
cores_ = value;
onChanged();
return this;
}
/**
*
* Number of cores available to the revision.
*
*
* int64 cores = 2 [(.yandex.cloud.value) = "0-2"];
* @return This builder for chaining.
*/
public Builder clearCores() {
cores_ = 0L;
onChanged();
return this;
}
private long coreFraction_ ;
/**
*
* Specifies baseline performance for a core in percent, multiple of 5%.
* Should be 100% for cores > 1.
*
*
* int64 core_fraction = 3 [(.yandex.cloud.value) = "0-100"];
* @return The coreFraction.
*/
@java.lang.Override
public long getCoreFraction() {
return coreFraction_;
}
/**
*
* Specifies baseline performance for a core in percent, multiple of 5%.
* Should be 100% for cores > 1.
*
*
* int64 core_fraction = 3 [(.yandex.cloud.value) = "0-100"];
* @param value The coreFraction to set.
* @return This builder for chaining.
*/
public Builder setCoreFraction(long value) {
coreFraction_ = value;
onChanged();
return this;
}
/**
*
* Specifies baseline performance for a core in percent, multiple of 5%.
* Should be 100% for cores > 1.
*
*
* int64 core_fraction = 3 [(.yandex.cloud.value) = "0-100"];
* @return This builder for chaining.
*/
public Builder clearCoreFraction() {
coreFraction_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.containers.v1.Resources)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.containers.v1.Resources)
private static final yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources();
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Resources parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Resources(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Resources getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProvisionPolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.containers.v1.ProvisionPolicy)
com.google.protobuf.MessageOrBuilder {
/**
*
* Minimum number of guaranteed provisioned container instances for all zones
* in total.
*
*
* int64 min_instances = 1;
* @return The minInstances.
*/
long getMinInstances();
}
/**
* Protobuf type {@code yandex.cloud.serverless.containers.v1.ProvisionPolicy}
*/
public static final class ProvisionPolicy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.containers.v1.ProvisionPolicy)
ProvisionPolicyOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProvisionPolicy.newBuilder() to construct.
private ProvisionPolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProvisionPolicy() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProvisionPolicy();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProvisionPolicy(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
minInstances_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_ProvisionPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_ProvisionPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy.Builder.class);
}
public static final int MIN_INSTANCES_FIELD_NUMBER = 1;
private long minInstances_;
/**
*
* Minimum number of guaranteed provisioned container instances for all zones
* in total.
*
*
* int64 min_instances = 1;
* @return The minInstances.
*/
@java.lang.Override
public long getMinInstances() {
return minInstances_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (minInstances_ != 0L) {
output.writeInt64(1, minInstances_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (minInstances_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, minInstances_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy other = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy) obj;
if (getMinInstances()
!= other.getMinInstances()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MIN_INSTANCES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMinInstances());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.serverless.containers.v1.ProvisionPolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.containers.v1.ProvisionPolicy)
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_ProvisionPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_ProvisionPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy.Builder.class);
}
// Construct using yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
minInstances_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_ProvisionPolicy_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy getDefaultInstanceForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy build() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy buildPartial() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy result = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy(this);
result.minInstances_ = minInstances_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy) {
return mergeFrom((yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy other) {
if (other == yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy.getDefaultInstance()) return this;
if (other.getMinInstances() != 0L) {
setMinInstances(other.getMinInstances());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long minInstances_ ;
/**
*
* Minimum number of guaranteed provisioned container instances for all zones
* in total.
*
*
* int64 min_instances = 1;
* @return The minInstances.
*/
@java.lang.Override
public long getMinInstances() {
return minInstances_;
}
/**
*
* Minimum number of guaranteed provisioned container instances for all zones
* in total.
*
*
* int64 min_instances = 1;
* @param value The minInstances to set.
* @return This builder for chaining.
*/
public Builder setMinInstances(long value) {
minInstances_ = value;
onChanged();
return this;
}
/**
*
* Minimum number of guaranteed provisioned container instances for all zones
* in total.
*
*
* int64 min_instances = 1;
* @return This builder for chaining.
*/
public Builder clearMinInstances() {
minInstances_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.containers.v1.ProvisionPolicy)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.containers.v1.ProvisionPolicy)
private static final yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy();
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProvisionPolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProvisionPolicy(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ProvisionPolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SecretOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.containers.v1.Secret)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of Yandex Lockbox secret.
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* ID of Yandex Lockbox secret.
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* ID of Yandex Lockbox secret.
*
*
* string version_id = 2;
* @return The versionId.
*/
java.lang.String getVersionId();
/**
*
* ID of Yandex Lockbox secret.
*
*
* string version_id = 2;
* @return The bytes for versionId.
*/
com.google.protobuf.ByteString
getVersionIdBytes();
/**
*
* Key in secret's payload, which value to be delivered into container environment.
*
*
* string key = 3;
* @return The key.
*/
java.lang.String getKey();
/**
*
* Key in secret's payload, which value to be delivered into container environment.
*
*
* string key = 3;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
*
* Environment variable in which secret's value is delivered.
*
*
* string environment_variable = 4;
* @return Whether the environmentVariable field is set.
*/
boolean hasEnvironmentVariable();
/**
*
* Environment variable in which secret's value is delivered.
*
*
* string environment_variable = 4;
* @return The environmentVariable.
*/
java.lang.String getEnvironmentVariable();
/**
*
* Environment variable in which secret's value is delivered.
*
*
* string environment_variable = 4;
* @return The bytes for environmentVariable.
*/
com.google.protobuf.ByteString
getEnvironmentVariableBytes();
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.ReferenceCase getReferenceCase();
}
/**
*
* Secret that is available to the container at run time.
*
*
* Protobuf type {@code yandex.cloud.serverless.containers.v1.Secret}
*/
public static final class Secret extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.containers.v1.Secret)
SecretOrBuilder {
private static final long serialVersionUID = 0L;
// Use Secret.newBuilder() to construct.
private Secret(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Secret() {
id_ = "";
versionId_ = "";
key_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Secret();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Secret(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
versionId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
key_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
referenceCase_ = 4;
reference_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Secret_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Secret_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.Builder.class);
}
private int referenceCase_ = 0;
private java.lang.Object reference_;
public enum ReferenceCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
ENVIRONMENT_VARIABLE(4),
REFERENCE_NOT_SET(0);
private final int value;
private ReferenceCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ReferenceCase valueOf(int value) {
return forNumber(value);
}
public static ReferenceCase forNumber(int value) {
switch (value) {
case 4: return ENVIRONMENT_VARIABLE;
case 0: return REFERENCE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ReferenceCase
getReferenceCase() {
return ReferenceCase.forNumber(
referenceCase_);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* ID of Yandex Lockbox secret.
*
*
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* ID of Yandex Lockbox secret.
*
*
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object versionId_;
/**
*
* ID of Yandex Lockbox secret.
*
*
* string version_id = 2;
* @return The versionId.
*/
@java.lang.Override
public java.lang.String getVersionId() {
java.lang.Object ref = versionId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
versionId_ = s;
return s;
}
}
/**
*
* ID of Yandex Lockbox secret.
*
*
* string version_id = 2;
* @return The bytes for versionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionIdBytes() {
java.lang.Object ref = versionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
versionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEY_FIELD_NUMBER = 3;
private volatile java.lang.Object key_;
/**
*
* Key in secret's payload, which value to be delivered into container environment.
*
*
* string key = 3;
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
}
}
/**
*
* Key in secret's payload, which value to be delivered into container environment.
*
*
* string key = 3;
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENVIRONMENT_VARIABLE_FIELD_NUMBER = 4;
/**
*
* Environment variable in which secret's value is delivered.
*
*
* string environment_variable = 4;
* @return Whether the environmentVariable field is set.
*/
public boolean hasEnvironmentVariable() {
return referenceCase_ == 4;
}
/**
*
* Environment variable in which secret's value is delivered.
*
*
* string environment_variable = 4;
* @return The environmentVariable.
*/
public java.lang.String getEnvironmentVariable() {
java.lang.Object ref = "";
if (referenceCase_ == 4) {
ref = reference_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (referenceCase_ == 4) {
reference_ = s;
}
return s;
}
}
/**
*
* Environment variable in which secret's value is delivered.
*
*
* string environment_variable = 4;
* @return The bytes for environmentVariable.
*/
public com.google.protobuf.ByteString
getEnvironmentVariableBytes() {
java.lang.Object ref = "";
if (referenceCase_ == 4) {
ref = reference_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (referenceCase_ == 4) {
reference_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, versionId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, key_);
}
if (referenceCase_ == 4) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reference_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, versionId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, key_);
}
if (referenceCase_ == 4) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reference_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret other = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getVersionId()
.equals(other.getVersionId())) return false;
if (!getKey()
.equals(other.getKey())) return false;
if (!getReferenceCase().equals(other.getReferenceCase())) return false;
switch (referenceCase_) {
case 4:
if (!getEnvironmentVariable()
.equals(other.getEnvironmentVariable())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + VERSION_ID_FIELD_NUMBER;
hash = (53 * hash) + getVersionId().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
switch (referenceCase_) {
case 4:
hash = (37 * hash) + ENVIRONMENT_VARIABLE_FIELD_NUMBER;
hash = (53 * hash) + getEnvironmentVariable().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Secret that is available to the container at run time.
*
*
* Protobuf type {@code yandex.cloud.serverless.containers.v1.Secret}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.containers.v1.Secret)
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.SecretOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Secret_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Secret_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.Builder.class);
}
// Construct using yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
versionId_ = "";
key_ = "";
referenceCase_ = 0;
reference_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Secret_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret getDefaultInstanceForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret build() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret buildPartial() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret result = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret(this);
result.id_ = id_;
result.versionId_ = versionId_;
result.key_ = key_;
if (referenceCase_ == 4) {
result.reference_ = reference_;
}
result.referenceCase_ = referenceCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret) {
return mergeFrom((yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret other) {
if (other == yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getVersionId().isEmpty()) {
versionId_ = other.versionId_;
onChanged();
}
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
switch (other.getReferenceCase()) {
case ENVIRONMENT_VARIABLE: {
referenceCase_ = 4;
reference_ = other.reference_;
onChanged();
break;
}
case REFERENCE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int referenceCase_ = 0;
private java.lang.Object reference_;
public ReferenceCase
getReferenceCase() {
return ReferenceCase.forNumber(
referenceCase_);
}
public Builder clearReference() {
referenceCase_ = 0;
reference_ = null;
onChanged();
return this;
}
private java.lang.Object id_ = "";
/**
*
* ID of Yandex Lockbox secret.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of Yandex Lockbox secret.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of Yandex Lockbox secret.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* ID of Yandex Lockbox secret.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* ID of Yandex Lockbox secret.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object versionId_ = "";
/**
*
* ID of Yandex Lockbox secret.
*
*
* string version_id = 2;
* @return The versionId.
*/
public java.lang.String getVersionId() {
java.lang.Object ref = versionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
versionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of Yandex Lockbox secret.
*
*
* string version_id = 2;
* @return The bytes for versionId.
*/
public com.google.protobuf.ByteString
getVersionIdBytes() {
java.lang.Object ref = versionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
versionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of Yandex Lockbox secret.
*
*
* string version_id = 2;
* @param value The versionId to set.
* @return This builder for chaining.
*/
public Builder setVersionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
versionId_ = value;
onChanged();
return this;
}
/**
*
* ID of Yandex Lockbox secret.
*
*
* string version_id = 2;
* @return This builder for chaining.
*/
public Builder clearVersionId() {
versionId_ = getDefaultInstance().getVersionId();
onChanged();
return this;
}
/**
*
* ID of Yandex Lockbox secret.
*
*
* string version_id = 2;
* @param value The bytes for versionId to set.
* @return This builder for chaining.
*/
public Builder setVersionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
versionId_ = value;
onChanged();
return this;
}
private java.lang.Object key_ = "";
/**
*
* Key in secret's payload, which value to be delivered into container environment.
*
*
* string key = 3;
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Key in secret's payload, which value to be delivered into container environment.
*
*
* string key = 3;
* @return The bytes for key.
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Key in secret's payload, which value to be delivered into container environment.
*
*
* string key = 3;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
*
* Key in secret's payload, which value to be delivered into container environment.
*
*
* string key = 3;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
*
* Key in secret's payload, which value to be delivered into container environment.
*
*
* string key = 3;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
key_ = value;
onChanged();
return this;
}
/**
*
* Environment variable in which secret's value is delivered.
*
*
* string environment_variable = 4;
* @return Whether the environmentVariable field is set.
*/
@java.lang.Override
public boolean hasEnvironmentVariable() {
return referenceCase_ == 4;
}
/**
*
* Environment variable in which secret's value is delivered.
*
*
* string environment_variable = 4;
* @return The environmentVariable.
*/
@java.lang.Override
public java.lang.String getEnvironmentVariable() {
java.lang.Object ref = "";
if (referenceCase_ == 4) {
ref = reference_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (referenceCase_ == 4) {
reference_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Environment variable in which secret's value is delivered.
*
*
* string environment_variable = 4;
* @return The bytes for environmentVariable.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEnvironmentVariableBytes() {
java.lang.Object ref = "";
if (referenceCase_ == 4) {
ref = reference_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (referenceCase_ == 4) {
reference_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Environment variable in which secret's value is delivered.
*
*
* string environment_variable = 4;
* @param value The environmentVariable to set.
* @return This builder for chaining.
*/
public Builder setEnvironmentVariable(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
referenceCase_ = 4;
reference_ = value;
onChanged();
return this;
}
/**
*
* Environment variable in which secret's value is delivered.
*
*
* string environment_variable = 4;
* @return This builder for chaining.
*/
public Builder clearEnvironmentVariable() {
if (referenceCase_ == 4) {
referenceCase_ = 0;
reference_ = null;
onChanged();
}
return this;
}
/**
*
* Environment variable in which secret's value is delivered.
*
*
* string environment_variable = 4;
* @param value The bytes for environmentVariable to set.
* @return This builder for chaining.
*/
public Builder setEnvironmentVariableBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
referenceCase_ = 4;
reference_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.containers.v1.Secret)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.containers.v1.Secret)
private static final yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret();
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Secret parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Secret(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Secret getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConnectivityOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.containers.v1.Connectivity)
com.google.protobuf.MessageOrBuilder {
/**
*
* Network the revision will have access to.
*
*
* string network_id = 1;
* @return The networkId.
*/
java.lang.String getNetworkId();
/**
*
* Network the revision will have access to.
*
*
* string network_id = 1;
* @return The bytes for networkId.
*/
com.google.protobuf.ByteString
getNetworkIdBytes();
/**
*
* The list of subnets (from the same network) the revision can be attached to.
* Deprecated, it is sufficient to specify only network_id, without the list of subnet_ids.
*
*
* repeated string subnet_ids = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true];
* @return A list containing the subnetIds.
*/
java.util.List
getSubnetIdsList();
/**
*
* The list of subnets (from the same network) the revision can be attached to.
* Deprecated, it is sufficient to specify only network_id, without the list of subnet_ids.
*
*
* repeated string subnet_ids = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true];
* @return The count of subnetIds.
*/
int getSubnetIdsCount();
/**
*
* The list of subnets (from the same network) the revision can be attached to.
* Deprecated, it is sufficient to specify only network_id, without the list of subnet_ids.
*
*
* repeated string subnet_ids = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true];
* @param index The index of the element to return.
* @return The subnetIds at the given index.
*/
java.lang.String getSubnetIds(int index);
/**
*
* The list of subnets (from the same network) the revision can be attached to.
* Deprecated, it is sufficient to specify only network_id, without the list of subnet_ids.
*
*
* repeated string subnet_ids = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true];
* @param index The index of the value to return.
* @return The bytes of the subnetIds at the given index.
*/
com.google.protobuf.ByteString
getSubnetIdsBytes(int index);
}
/**
*
* Revision connectivity specification.
*
*
* Protobuf type {@code yandex.cloud.serverless.containers.v1.Connectivity}
*/
public static final class Connectivity extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.containers.v1.Connectivity)
ConnectivityOrBuilder {
private static final long serialVersionUID = 0L;
// Use Connectivity.newBuilder() to construct.
private Connectivity(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Connectivity() {
networkId_ = "";
subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Connectivity();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Connectivity(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
networkId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
subnetIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
subnetIds_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
subnetIds_ = subnetIds_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Connectivity_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Connectivity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity.Builder.class);
}
public static final int NETWORK_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object networkId_;
/**
*
* Network the revision will have access to.
*
*
* string network_id = 1;
* @return The networkId.
*/
@java.lang.Override
public java.lang.String getNetworkId() {
java.lang.Object ref = networkId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
networkId_ = s;
return s;
}
}
/**
*
* Network the revision will have access to.
*
*
* string network_id = 1;
* @return The bytes for networkId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNetworkIdBytes() {
java.lang.Object ref = networkId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
networkId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUBNET_IDS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList subnetIds_;
/**
*
* The list of subnets (from the same network) the revision can be attached to.
* Deprecated, it is sufficient to specify only network_id, without the list of subnet_ids.
*
*
* repeated string subnet_ids = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true];
* @return A list containing the subnetIds.
*/
public com.google.protobuf.ProtocolStringList
getSubnetIdsList() {
return subnetIds_;
}
/**
*
* The list of subnets (from the same network) the revision can be attached to.
* Deprecated, it is sufficient to specify only network_id, without the list of subnet_ids.
*
*
* repeated string subnet_ids = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true];
* @return The count of subnetIds.
*/
public int getSubnetIdsCount() {
return subnetIds_.size();
}
/**
*
* The list of subnets (from the same network) the revision can be attached to.
* Deprecated, it is sufficient to specify only network_id, without the list of subnet_ids.
*
*
* repeated string subnet_ids = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true];
* @param index The index of the element to return.
* @return The subnetIds at the given index.
*/
public java.lang.String getSubnetIds(int index) {
return subnetIds_.get(index);
}
/**
*
* The list of subnets (from the same network) the revision can be attached to.
* Deprecated, it is sufficient to specify only network_id, without the list of subnet_ids.
*
*
* repeated string subnet_ids = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true];
* @param index The index of the value to return.
* @return The bytes of the subnetIds at the given index.
*/
public com.google.protobuf.ByteString
getSubnetIdsBytes(int index) {
return subnetIds_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, networkId_);
}
for (int i = 0; i < subnetIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetIds_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, networkId_);
}
{
int dataSize = 0;
for (int i = 0; i < subnetIds_.size(); i++) {
dataSize += computeStringSizeNoTag(subnetIds_.getRaw(i));
}
size += dataSize;
size += 1 * getSubnetIdsList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity other = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity) obj;
if (!getNetworkId()
.equals(other.getNetworkId())) return false;
if (!getSubnetIdsList()
.equals(other.getSubnetIdsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NETWORK_ID_FIELD_NUMBER;
hash = (53 * hash) + getNetworkId().hashCode();
if (getSubnetIdsCount() > 0) {
hash = (37 * hash) + SUBNET_IDS_FIELD_NUMBER;
hash = (53 * hash) + getSubnetIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Revision connectivity specification.
*
*
* Protobuf type {@code yandex.cloud.serverless.containers.v1.Connectivity}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.containers.v1.Connectivity)
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ConnectivityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Connectivity_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Connectivity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity.Builder.class);
}
// Construct using yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
networkId_ = "";
subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_Connectivity_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity getDefaultInstanceForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity build() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity buildPartial() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity result = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity(this);
int from_bitField0_ = bitField0_;
result.networkId_ = networkId_;
if (((bitField0_ & 0x00000001) != 0)) {
subnetIds_ = subnetIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.subnetIds_ = subnetIds_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity) {
return mergeFrom((yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity other) {
if (other == yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity.getDefaultInstance()) return this;
if (!other.getNetworkId().isEmpty()) {
networkId_ = other.networkId_;
onChanged();
}
if (!other.subnetIds_.isEmpty()) {
if (subnetIds_.isEmpty()) {
subnetIds_ = other.subnetIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSubnetIdsIsMutable();
subnetIds_.addAll(other.subnetIds_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object networkId_ = "";
/**
*
* Network the revision will have access to.
*
*
* string network_id = 1;
* @return The networkId.
*/
public java.lang.String getNetworkId() {
java.lang.Object ref = networkId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
networkId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Network the revision will have access to.
*
*
* string network_id = 1;
* @return The bytes for networkId.
*/
public com.google.protobuf.ByteString
getNetworkIdBytes() {
java.lang.Object ref = networkId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
networkId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Network the revision will have access to.
*
*
* string network_id = 1;
* @param value The networkId to set.
* @return This builder for chaining.
*/
public Builder setNetworkId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
networkId_ = value;
onChanged();
return this;
}
/**
*
* Network the revision will have access to.
*
*
* string network_id = 1;
* @return This builder for chaining.
*/
public Builder clearNetworkId() {
networkId_ = getDefaultInstance().getNetworkId();
onChanged();
return this;
}
/**
*
* Network the revision will have access to.
*
*
* string network_id = 1;
* @param value The bytes for networkId to set.
* @return This builder for chaining.
*/
public Builder setNetworkIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
networkId_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSubnetIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
subnetIds_ = new com.google.protobuf.LazyStringArrayList(subnetIds_);
bitField0_ |= 0x00000001;
}
}
/**
*
* The list of subnets (from the same network) the revision can be attached to.
* Deprecated, it is sufficient to specify only network_id, without the list of subnet_ids.
*
*
* repeated string subnet_ids = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true];
* @return A list containing the subnetIds.
*/
public com.google.protobuf.ProtocolStringList
getSubnetIdsList() {
return subnetIds_.getUnmodifiableView();
}
/**
*
* The list of subnets (from the same network) the revision can be attached to.
* Deprecated, it is sufficient to specify only network_id, without the list of subnet_ids.
*
*
* repeated string subnet_ids = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true];
* @return The count of subnetIds.
*/
public int getSubnetIdsCount() {
return subnetIds_.size();
}
/**
*
* The list of subnets (from the same network) the revision can be attached to.
* Deprecated, it is sufficient to specify only network_id, without the list of subnet_ids.
*
*
* repeated string subnet_ids = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true];
* @param index The index of the element to return.
* @return The subnetIds at the given index.
*/
public java.lang.String getSubnetIds(int index) {
return subnetIds_.get(index);
}
/**
*
* The list of subnets (from the same network) the revision can be attached to.
* Deprecated, it is sufficient to specify only network_id, without the list of subnet_ids.
*
*
* repeated string subnet_ids = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true];
* @param index The index of the value to return.
* @return The bytes of the subnetIds at the given index.
*/
public com.google.protobuf.ByteString
getSubnetIdsBytes(int index) {
return subnetIds_.getByteString(index);
}
/**
*
* The list of subnets (from the same network) the revision can be attached to.
* Deprecated, it is sufficient to specify only network_id, without the list of subnet_ids.
*
*
* repeated string subnet_ids = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true];
* @param index The index to set the value at.
* @param value The subnetIds to set.
* @return This builder for chaining.
*/
public Builder setSubnetIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSubnetIdsIsMutable();
subnetIds_.set(index, value);
onChanged();
return this;
}
/**
*
* The list of subnets (from the same network) the revision can be attached to.
* Deprecated, it is sufficient to specify only network_id, without the list of subnet_ids.
*
*
* repeated string subnet_ids = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true];
* @param value The subnetIds to add.
* @return This builder for chaining.
*/
public Builder addSubnetIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSubnetIdsIsMutable();
subnetIds_.add(value);
onChanged();
return this;
}
/**
*
* The list of subnets (from the same network) the revision can be attached to.
* Deprecated, it is sufficient to specify only network_id, without the list of subnet_ids.
*
*
* repeated string subnet_ids = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true];
* @param values The subnetIds to add.
* @return This builder for chaining.
*/
public Builder addAllSubnetIds(
java.lang.Iterable values) {
ensureSubnetIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, subnetIds_);
onChanged();
return this;
}
/**
*
* The list of subnets (from the same network) the revision can be attached to.
* Deprecated, it is sufficient to specify only network_id, without the list of subnet_ids.
*
*
* repeated string subnet_ids = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true];
* @return This builder for chaining.
*/
public Builder clearSubnetIds() {
subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The list of subnets (from the same network) the revision can be attached to.
* Deprecated, it is sufficient to specify only network_id, without the list of subnet_ids.
*
*
* repeated string subnet_ids = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true];
* @param value The bytes of the subnetIds to add.
* @return This builder for chaining.
*/
public Builder addSubnetIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSubnetIdsIsMutable();
subnetIds_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.containers.v1.Connectivity)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.containers.v1.Connectivity)
private static final yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity();
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Connectivity parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Connectivity(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.Connectivity getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LogOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.containers.v1.LogOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* Is logging from container disabled.
*
*
* bool disabled = 1;
* @return The disabled.
*/
boolean getDisabled();
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return Whether the logGroupId field is set.
*/
boolean hasLogGroupId();
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return The logGroupId.
*/
java.lang.String getLogGroupId();
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return The bytes for logGroupId.
*/
com.google.protobuf.ByteString
getLogGroupIdBytes();
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return Whether the folderId field is set.
*/
boolean hasFolderId();
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return The folderId.
*/
java.lang.String getFolderId();
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
*
* Minimum log entry level.
* See [LogLevel.Level] for details.
*
*
* .yandex.cloud.logging.v1.LogLevel.Level min_level = 4;
* @return The enum numeric value on the wire for minLevel.
*/
int getMinLevelValue();
/**
*
* Minimum log entry level.
* See [LogLevel.Level] for details.
*
*
* .yandex.cloud.logging.v1.LogLevel.Level min_level = 4;
* @return The minLevel.
*/
yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level getMinLevel();
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions.DestinationCase getDestinationCase();
}
/**
* Protobuf type {@code yandex.cloud.serverless.containers.v1.LogOptions}
*/
public static final class LogOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.containers.v1.LogOptions)
LogOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use LogOptions.newBuilder() to construct.
private LogOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LogOptions() {
minLevel_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LogOptions();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LogOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
disabled_ = input.readBool();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
destinationCase_ = 2;
destination_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
destinationCase_ = 3;
destination_ = s;
break;
}
case 32: {
int rawValue = input.readEnum();
minLevel_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_LogOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_LogOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions.Builder.class);
}
private int destinationCase_ = 0;
private java.lang.Object destination_;
public enum DestinationCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
LOG_GROUP_ID(2),
FOLDER_ID(3),
DESTINATION_NOT_SET(0);
private final int value;
private DestinationCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DestinationCase valueOf(int value) {
return forNumber(value);
}
public static DestinationCase forNumber(int value) {
switch (value) {
case 2: return LOG_GROUP_ID;
case 3: return FOLDER_ID;
case 0: return DESTINATION_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public DestinationCase
getDestinationCase() {
return DestinationCase.forNumber(
destinationCase_);
}
public static final int DISABLED_FIELD_NUMBER = 1;
private boolean disabled_;
/**
*
* Is logging from container disabled.
*
*
* bool disabled = 1;
* @return The disabled.
*/
@java.lang.Override
public boolean getDisabled() {
return disabled_;
}
public static final int LOG_GROUP_ID_FIELD_NUMBER = 2;
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return Whether the logGroupId field is set.
*/
public boolean hasLogGroupId() {
return destinationCase_ == 2;
}
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return The logGroupId.
*/
public java.lang.String getLogGroupId() {
java.lang.Object ref = "";
if (destinationCase_ == 2) {
ref = destination_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (destinationCase_ == 2) {
destination_ = s;
}
return s;
}
}
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return The bytes for logGroupId.
*/
public com.google.protobuf.ByteString
getLogGroupIdBytes() {
java.lang.Object ref = "";
if (destinationCase_ == 2) {
ref = destination_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (destinationCase_ == 2) {
destination_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FOLDER_ID_FIELD_NUMBER = 3;
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return Whether the folderId field is set.
*/
public boolean hasFolderId() {
return destinationCase_ == 3;
}
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return The folderId.
*/
public java.lang.String getFolderId() {
java.lang.Object ref = "";
if (destinationCase_ == 3) {
ref = destination_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (destinationCase_ == 3) {
destination_ = s;
}
return s;
}
}
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return The bytes for folderId.
*/
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = "";
if (destinationCase_ == 3) {
ref = destination_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (destinationCase_ == 3) {
destination_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MIN_LEVEL_FIELD_NUMBER = 4;
private int minLevel_;
/**
*
* Minimum log entry level.
* See [LogLevel.Level] for details.
*
*
* .yandex.cloud.logging.v1.LogLevel.Level min_level = 4;
* @return The enum numeric value on the wire for minLevel.
*/
@java.lang.Override public int getMinLevelValue() {
return minLevel_;
}
/**
*
* Minimum log entry level.
* See [LogLevel.Level] for details.
*
*
* .yandex.cloud.logging.v1.LogLevel.Level min_level = 4;
* @return The minLevel.
*/
@java.lang.Override public yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level getMinLevel() {
@SuppressWarnings("deprecation")
yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level result = yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.valueOf(minLevel_);
return result == null ? yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (disabled_ != false) {
output.writeBool(1, disabled_);
}
if (destinationCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, destination_);
}
if (destinationCase_ == 3) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, destination_);
}
if (minLevel_ != yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.LEVEL_UNSPECIFIED.getNumber()) {
output.writeEnum(4, minLevel_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (disabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, disabled_);
}
if (destinationCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destination_);
}
if (destinationCase_ == 3) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, destination_);
}
if (minLevel_ != yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.LEVEL_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, minLevel_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions other = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions) obj;
if (getDisabled()
!= other.getDisabled()) return false;
if (minLevel_ != other.minLevel_) return false;
if (!getDestinationCase().equals(other.getDestinationCase())) return false;
switch (destinationCase_) {
case 2:
if (!getLogGroupId()
.equals(other.getLogGroupId())) return false;
break;
case 3:
if (!getFolderId()
.equals(other.getFolderId())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DISABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDisabled());
hash = (37 * hash) + MIN_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + minLevel_;
switch (destinationCase_) {
case 2:
hash = (37 * hash) + LOG_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getLogGroupId().hashCode();
break;
case 3:
hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getFolderId().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.serverless.containers.v1.LogOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.containers.v1.LogOptions)
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_LogOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_LogOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions.Builder.class);
}
// Construct using yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
disabled_ = false;
minLevel_ = 0;
destinationCase_ = 0;
destination_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_LogOptions_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions getDefaultInstanceForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions build() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions buildPartial() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions result = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions(this);
result.disabled_ = disabled_;
if (destinationCase_ == 2) {
result.destination_ = destination_;
}
if (destinationCase_ == 3) {
result.destination_ = destination_;
}
result.minLevel_ = minLevel_;
result.destinationCase_ = destinationCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions) {
return mergeFrom((yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions other) {
if (other == yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions.getDefaultInstance()) return this;
if (other.getDisabled() != false) {
setDisabled(other.getDisabled());
}
if (other.minLevel_ != 0) {
setMinLevelValue(other.getMinLevelValue());
}
switch (other.getDestinationCase()) {
case LOG_GROUP_ID: {
destinationCase_ = 2;
destination_ = other.destination_;
onChanged();
break;
}
case FOLDER_ID: {
destinationCase_ = 3;
destination_ = other.destination_;
onChanged();
break;
}
case DESTINATION_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int destinationCase_ = 0;
private java.lang.Object destination_;
public DestinationCase
getDestinationCase() {
return DestinationCase.forNumber(
destinationCase_);
}
public Builder clearDestination() {
destinationCase_ = 0;
destination_ = null;
onChanged();
return this;
}
private boolean disabled_ ;
/**
*
* Is logging from container disabled.
*
*
* bool disabled = 1;
* @return The disabled.
*/
@java.lang.Override
public boolean getDisabled() {
return disabled_;
}
/**
*
* Is logging from container disabled.
*
*
* bool disabled = 1;
* @param value The disabled to set.
* @return This builder for chaining.
*/
public Builder setDisabled(boolean value) {
disabled_ = value;
onChanged();
return this;
}
/**
*
* Is logging from container disabled.
*
*
* bool disabled = 1;
* @return This builder for chaining.
*/
public Builder clearDisabled() {
disabled_ = false;
onChanged();
return this;
}
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return Whether the logGroupId field is set.
*/
@java.lang.Override
public boolean hasLogGroupId() {
return destinationCase_ == 2;
}
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return The logGroupId.
*/
@java.lang.Override
public java.lang.String getLogGroupId() {
java.lang.Object ref = "";
if (destinationCase_ == 2) {
ref = destination_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (destinationCase_ == 2) {
destination_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return The bytes for logGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogGroupIdBytes() {
java.lang.Object ref = "";
if (destinationCase_ == 2) {
ref = destination_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (destinationCase_ == 2) {
destination_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @param value The logGroupId to set.
* @return This builder for chaining.
*/
public Builder setLogGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
destinationCase_ = 2;
destination_ = value;
onChanged();
return this;
}
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return This builder for chaining.
*/
public Builder clearLogGroupId() {
if (destinationCase_ == 2) {
destinationCase_ = 0;
destination_ = null;
onChanged();
}
return this;
}
/**
*
* Entry should be written to log group resolved by ID.
*
*
* string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @param value The bytes for logGroupId to set.
* @return This builder for chaining.
*/
public Builder setLogGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
destinationCase_ = 2;
destination_ = value;
onChanged();
return this;
}
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return Whether the folderId field is set.
*/
@java.lang.Override
public boolean hasFolderId() {
return destinationCase_ == 3;
}
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return The folderId.
*/
@java.lang.Override
public java.lang.String getFolderId() {
java.lang.Object ref = "";
if (destinationCase_ == 3) {
ref = destination_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (destinationCase_ == 3) {
destination_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return The bytes for folderId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = "";
if (destinationCase_ == 3) {
ref = destination_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (destinationCase_ == 3) {
destination_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @param value The folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
destinationCase_ = 3;
destination_ = value;
onChanged();
return this;
}
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @return This builder for chaining.
*/
public Builder clearFolderId() {
if (destinationCase_ == 3) {
destinationCase_ = 0;
destination_ = null;
onChanged();
}
return this;
}
/**
*
* Entry should be written to default log group for specified folder.
*
*
* string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"];
* @param value The bytes for folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
destinationCase_ = 3;
destination_ = value;
onChanged();
return this;
}
private int minLevel_ = 0;
/**
*
* Minimum log entry level.
* See [LogLevel.Level] for details.
*
*
* .yandex.cloud.logging.v1.LogLevel.Level min_level = 4;
* @return The enum numeric value on the wire for minLevel.
*/
@java.lang.Override public int getMinLevelValue() {
return minLevel_;
}
/**
*
* Minimum log entry level.
* See [LogLevel.Level] for details.
*
*
* .yandex.cloud.logging.v1.LogLevel.Level min_level = 4;
* @param value The enum numeric value on the wire for minLevel to set.
* @return This builder for chaining.
*/
public Builder setMinLevelValue(int value) {
minLevel_ = value;
onChanged();
return this;
}
/**
*
* Minimum log entry level.
* See [LogLevel.Level] for details.
*
*
* .yandex.cloud.logging.v1.LogLevel.Level min_level = 4;
* @return The minLevel.
*/
@java.lang.Override
public yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level getMinLevel() {
@SuppressWarnings("deprecation")
yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level result = yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.valueOf(minLevel_);
return result == null ? yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.UNRECOGNIZED : result;
}
/**
*
* Minimum log entry level.
* See [LogLevel.Level] for details.
*
*
* .yandex.cloud.logging.v1.LogLevel.Level min_level = 4;
* @param value The minLevel to set.
* @return This builder for chaining.
*/
public Builder setMinLevel(yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level value) {
if (value == null) {
throw new NullPointerException();
}
minLevel_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Minimum log entry level.
* See [LogLevel.Level] for details.
*
*
* .yandex.cloud.logging.v1.LogLevel.Level min_level = 4;
* @return This builder for chaining.
*/
public Builder clearMinLevel() {
minLevel_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.containers.v1.LogOptions)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.containers.v1.LogOptions)
private static final yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions();
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LogOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LogOptions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.LogOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ScalingPolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.containers.v1.ScalingPolicy)
com.google.protobuf.MessageOrBuilder {
/**
*
* Upper limit for instance count in each zone.
* 0 means no limit.
*
*
* int64 zone_instances_limit = 1;
* @return The zoneInstancesLimit.
*/
long getZoneInstancesLimit();
/**
*
* Upper limit of requests count in each zone.
* 0 means no limit.
*
*
* int64 zone_requests_limit = 2;
* @return The zoneRequestsLimit.
*/
long getZoneRequestsLimit();
}
/**
* Protobuf type {@code yandex.cloud.serverless.containers.v1.ScalingPolicy}
*/
public static final class ScalingPolicy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.containers.v1.ScalingPolicy)
ScalingPolicyOrBuilder {
private static final long serialVersionUID = 0L;
// Use ScalingPolicy.newBuilder() to construct.
private ScalingPolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ScalingPolicy() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ScalingPolicy();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ScalingPolicy(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
zoneInstancesLimit_ = input.readInt64();
break;
}
case 16: {
zoneRequestsLimit_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_ScalingPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_ScalingPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy.Builder.class);
}
public static final int ZONE_INSTANCES_LIMIT_FIELD_NUMBER = 1;
private long zoneInstancesLimit_;
/**
*
* Upper limit for instance count in each zone.
* 0 means no limit.
*
*
* int64 zone_instances_limit = 1;
* @return The zoneInstancesLimit.
*/
@java.lang.Override
public long getZoneInstancesLimit() {
return zoneInstancesLimit_;
}
public static final int ZONE_REQUESTS_LIMIT_FIELD_NUMBER = 2;
private long zoneRequestsLimit_;
/**
*
* Upper limit of requests count in each zone.
* 0 means no limit.
*
*
* int64 zone_requests_limit = 2;
* @return The zoneRequestsLimit.
*/
@java.lang.Override
public long getZoneRequestsLimit() {
return zoneRequestsLimit_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (zoneInstancesLimit_ != 0L) {
output.writeInt64(1, zoneInstancesLimit_);
}
if (zoneRequestsLimit_ != 0L) {
output.writeInt64(2, zoneRequestsLimit_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (zoneInstancesLimit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, zoneInstancesLimit_);
}
if (zoneRequestsLimit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, zoneRequestsLimit_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy other = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy) obj;
if (getZoneInstancesLimit()
!= other.getZoneInstancesLimit()) return false;
if (getZoneRequestsLimit()
!= other.getZoneRequestsLimit()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ZONE_INSTANCES_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getZoneInstancesLimit());
hash = (37 * hash) + ZONE_REQUESTS_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getZoneRequestsLimit());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.serverless.containers.v1.ScalingPolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.containers.v1.ScalingPolicy)
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_ScalingPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_ScalingPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy.Builder.class);
}
// Construct using yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
zoneInstancesLimit_ = 0L;
zoneRequestsLimit_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_ScalingPolicy_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy getDefaultInstanceForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy build() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy buildPartial() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy result = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy(this);
result.zoneInstancesLimit_ = zoneInstancesLimit_;
result.zoneRequestsLimit_ = zoneRequestsLimit_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy) {
return mergeFrom((yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy other) {
if (other == yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy.getDefaultInstance()) return this;
if (other.getZoneInstancesLimit() != 0L) {
setZoneInstancesLimit(other.getZoneInstancesLimit());
}
if (other.getZoneRequestsLimit() != 0L) {
setZoneRequestsLimit(other.getZoneRequestsLimit());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long zoneInstancesLimit_ ;
/**
*
* Upper limit for instance count in each zone.
* 0 means no limit.
*
*
* int64 zone_instances_limit = 1;
* @return The zoneInstancesLimit.
*/
@java.lang.Override
public long getZoneInstancesLimit() {
return zoneInstancesLimit_;
}
/**
*
* Upper limit for instance count in each zone.
* 0 means no limit.
*
*
* int64 zone_instances_limit = 1;
* @param value The zoneInstancesLimit to set.
* @return This builder for chaining.
*/
public Builder setZoneInstancesLimit(long value) {
zoneInstancesLimit_ = value;
onChanged();
return this;
}
/**
*
* Upper limit for instance count in each zone.
* 0 means no limit.
*
*
* int64 zone_instances_limit = 1;
* @return This builder for chaining.
*/
public Builder clearZoneInstancesLimit() {
zoneInstancesLimit_ = 0L;
onChanged();
return this;
}
private long zoneRequestsLimit_ ;
/**
*
* Upper limit of requests count in each zone.
* 0 means no limit.
*
*
* int64 zone_requests_limit = 2;
* @return The zoneRequestsLimit.
*/
@java.lang.Override
public long getZoneRequestsLimit() {
return zoneRequestsLimit_;
}
/**
*
* Upper limit of requests count in each zone.
* 0 means no limit.
*
*
* int64 zone_requests_limit = 2;
* @param value The zoneRequestsLimit to set.
* @return This builder for chaining.
*/
public Builder setZoneRequestsLimit(long value) {
zoneRequestsLimit_ = value;
onChanged();
return this;
}
/**
*
* Upper limit of requests count in each zone.
* 0 means no limit.
*
*
* int64 zone_requests_limit = 2;
* @return This builder for chaining.
*/
public Builder clearZoneRequestsLimit() {
zoneRequestsLimit_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.containers.v1.ScalingPolicy)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.containers.v1.ScalingPolicy)
private static final yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy();
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ScalingPolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ScalingPolicy(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.ScalingPolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StorageMountOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.containers.v1.StorageMount)
com.google.protobuf.MessageOrBuilder {
/**
*
* S3 bucket name for mounting.
*
*
* string bucket_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-.0-9a-zA-Z]*", (.yandex.cloud.length) = "3-63"];
* @return The bucketId.
*/
java.lang.String getBucketId();
/**
*
* S3 bucket name for mounting.
*
*
* string bucket_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-.0-9a-zA-Z]*", (.yandex.cloud.length) = "3-63"];
* @return The bytes for bucketId.
*/
com.google.protobuf.ByteString
getBucketIdBytes();
/**
*
* S3 bucket prefix for mounting.
*
*
* string prefix = 2;
* @return The prefix.
*/
java.lang.String getPrefix();
/**
*
* S3 bucket prefix for mounting.
*
*
* string prefix = 2;
* @return The bytes for prefix.
*/
com.google.protobuf.ByteString
getPrefixBytes();
/**
*
* Is mount read only.
*
*
* bool read_only = 4;
* @return The readOnly.
*/
boolean getReadOnly();
/**
*
* Mount point path inside the container for mounting.
*
*
* string mount_point_path = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-_0-9a-zA-Z/]*", (.yandex.cloud.length) = "1-300"];
* @return The mountPointPath.
*/
java.lang.String getMountPointPath();
/**
*
* Mount point path inside the container for mounting.
*
*
* string mount_point_path = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-_0-9a-zA-Z/]*", (.yandex.cloud.length) = "1-300"];
* @return The bytes for mountPointPath.
*/
com.google.protobuf.ByteString
getMountPointPathBytes();
}
/**
* Protobuf type {@code yandex.cloud.serverless.containers.v1.StorageMount}
*/
public static final class StorageMount extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.serverless.containers.v1.StorageMount)
StorageMountOrBuilder {
private static final long serialVersionUID = 0L;
// Use StorageMount.newBuilder() to construct.
private StorageMount(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StorageMount() {
bucketId_ = "";
prefix_ = "";
mountPointPath_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StorageMount();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StorageMount(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
bucketId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
prefix_ = s;
break;
}
case 32: {
readOnly_ = input.readBool();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
mountPointPath_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_StorageMount_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_StorageMount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount.Builder.class);
}
public static final int BUCKET_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object bucketId_;
/**
*
* S3 bucket name for mounting.
*
*
* string bucket_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-.0-9a-zA-Z]*", (.yandex.cloud.length) = "3-63"];
* @return The bucketId.
*/
@java.lang.Override
public java.lang.String getBucketId() {
java.lang.Object ref = bucketId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
bucketId_ = s;
return s;
}
}
/**
*
* S3 bucket name for mounting.
*
*
* string bucket_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-.0-9a-zA-Z]*", (.yandex.cloud.length) = "3-63"];
* @return The bytes for bucketId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBucketIdBytes() {
java.lang.Object ref = bucketId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bucketId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PREFIX_FIELD_NUMBER = 2;
private volatile java.lang.Object prefix_;
/**
*
* S3 bucket prefix for mounting.
*
*
* string prefix = 2;
* @return The prefix.
*/
@java.lang.Override
public java.lang.String getPrefix() {
java.lang.Object ref = prefix_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
prefix_ = s;
return s;
}
}
/**
*
* S3 bucket prefix for mounting.
*
*
* string prefix = 2;
* @return The bytes for prefix.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPrefixBytes() {
java.lang.Object ref = prefix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
prefix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int READ_ONLY_FIELD_NUMBER = 4;
private boolean readOnly_;
/**
*
* Is mount read only.
*
*
* bool read_only = 4;
* @return The readOnly.
*/
@java.lang.Override
public boolean getReadOnly() {
return readOnly_;
}
public static final int MOUNT_POINT_PATH_FIELD_NUMBER = 5;
private volatile java.lang.Object mountPointPath_;
/**
*
* Mount point path inside the container for mounting.
*
*
* string mount_point_path = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-_0-9a-zA-Z/]*", (.yandex.cloud.length) = "1-300"];
* @return The mountPointPath.
*/
@java.lang.Override
public java.lang.String getMountPointPath() {
java.lang.Object ref = mountPointPath_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
mountPointPath_ = s;
return s;
}
}
/**
*
* Mount point path inside the container for mounting.
*
*
* string mount_point_path = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-_0-9a-zA-Z/]*", (.yandex.cloud.length) = "1-300"];
* @return The bytes for mountPointPath.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMountPointPathBytes() {
java.lang.Object ref = mountPointPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mountPointPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucketId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prefix_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, prefix_);
}
if (readOnly_ != false) {
output.writeBool(4, readOnly_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPointPath_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, mountPointPath_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucketId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prefix_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, prefix_);
}
if (readOnly_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, readOnly_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPointPath_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, mountPointPath_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount)) {
return super.equals(obj);
}
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount other = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount) obj;
if (!getBucketId()
.equals(other.getBucketId())) return false;
if (!getPrefix()
.equals(other.getPrefix())) return false;
if (getReadOnly()
!= other.getReadOnly()) return false;
if (!getMountPointPath()
.equals(other.getMountPointPath())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + BUCKET_ID_FIELD_NUMBER;
hash = (53 * hash) + getBucketId().hashCode();
hash = (37 * hash) + PREFIX_FIELD_NUMBER;
hash = (53 * hash) + getPrefix().hashCode();
hash = (37 * hash) + READ_ONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getReadOnly());
hash = (37 * hash) + MOUNT_POINT_PATH_FIELD_NUMBER;
hash = (53 * hash) + getMountPointPath().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.serverless.containers.v1.StorageMount}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.containers.v1.StorageMount)
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMountOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_StorageMount_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_StorageMount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount.class, yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount.Builder.class);
}
// Construct using yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bucketId_ = "";
prefix_ = "";
readOnly_ = false;
mountPointPath_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.internal_static_yandex_cloud_serverless_containers_v1_StorageMount_descriptor;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount getDefaultInstanceForType() {
return yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount build() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount buildPartial() {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount result = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount(this);
result.bucketId_ = bucketId_;
result.prefix_ = prefix_;
result.readOnly_ = readOnly_;
result.mountPointPath_ = mountPointPath_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount) {
return mergeFrom((yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount other) {
if (other == yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount.getDefaultInstance()) return this;
if (!other.getBucketId().isEmpty()) {
bucketId_ = other.bucketId_;
onChanged();
}
if (!other.getPrefix().isEmpty()) {
prefix_ = other.prefix_;
onChanged();
}
if (other.getReadOnly() != false) {
setReadOnly(other.getReadOnly());
}
if (!other.getMountPointPath().isEmpty()) {
mountPointPath_ = other.mountPointPath_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object bucketId_ = "";
/**
*
* S3 bucket name for mounting.
*
*
* string bucket_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-.0-9a-zA-Z]*", (.yandex.cloud.length) = "3-63"];
* @return The bucketId.
*/
public java.lang.String getBucketId() {
java.lang.Object ref = bucketId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
bucketId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* S3 bucket name for mounting.
*
*
* string bucket_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-.0-9a-zA-Z]*", (.yandex.cloud.length) = "3-63"];
* @return The bytes for bucketId.
*/
public com.google.protobuf.ByteString
getBucketIdBytes() {
java.lang.Object ref = bucketId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bucketId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* S3 bucket name for mounting.
*
*
* string bucket_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-.0-9a-zA-Z]*", (.yandex.cloud.length) = "3-63"];
* @param value The bucketId to set.
* @return This builder for chaining.
*/
public Builder setBucketId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bucketId_ = value;
onChanged();
return this;
}
/**
*
* S3 bucket name for mounting.
*
*
* string bucket_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-.0-9a-zA-Z]*", (.yandex.cloud.length) = "3-63"];
* @return This builder for chaining.
*/
public Builder clearBucketId() {
bucketId_ = getDefaultInstance().getBucketId();
onChanged();
return this;
}
/**
*
* S3 bucket name for mounting.
*
*
* string bucket_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-.0-9a-zA-Z]*", (.yandex.cloud.length) = "3-63"];
* @param value The bytes for bucketId to set.
* @return This builder for chaining.
*/
public Builder setBucketIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bucketId_ = value;
onChanged();
return this;
}
private java.lang.Object prefix_ = "";
/**
*
* S3 bucket prefix for mounting.
*
*
* string prefix = 2;
* @return The prefix.
*/
public java.lang.String getPrefix() {
java.lang.Object ref = prefix_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
prefix_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* S3 bucket prefix for mounting.
*
*
* string prefix = 2;
* @return The bytes for prefix.
*/
public com.google.protobuf.ByteString
getPrefixBytes() {
java.lang.Object ref = prefix_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
prefix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* S3 bucket prefix for mounting.
*
*
* string prefix = 2;
* @param value The prefix to set.
* @return This builder for chaining.
*/
public Builder setPrefix(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
prefix_ = value;
onChanged();
return this;
}
/**
*
* S3 bucket prefix for mounting.
*
*
* string prefix = 2;
* @return This builder for chaining.
*/
public Builder clearPrefix() {
prefix_ = getDefaultInstance().getPrefix();
onChanged();
return this;
}
/**
*
* S3 bucket prefix for mounting.
*
*
* string prefix = 2;
* @param value The bytes for prefix to set.
* @return This builder for chaining.
*/
public Builder setPrefixBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
prefix_ = value;
onChanged();
return this;
}
private boolean readOnly_ ;
/**
*
* Is mount read only.
*
*
* bool read_only = 4;
* @return The readOnly.
*/
@java.lang.Override
public boolean getReadOnly() {
return readOnly_;
}
/**
*
* Is mount read only.
*
*
* bool read_only = 4;
* @param value The readOnly to set.
* @return This builder for chaining.
*/
public Builder setReadOnly(boolean value) {
readOnly_ = value;
onChanged();
return this;
}
/**
*
* Is mount read only.
*
*
* bool read_only = 4;
* @return This builder for chaining.
*/
public Builder clearReadOnly() {
readOnly_ = false;
onChanged();
return this;
}
private java.lang.Object mountPointPath_ = "";
/**
*
* Mount point path inside the container for mounting.
*
*
* string mount_point_path = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-_0-9a-zA-Z/]*", (.yandex.cloud.length) = "1-300"];
* @return The mountPointPath.
*/
public java.lang.String getMountPointPath() {
java.lang.Object ref = mountPointPath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
mountPointPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Mount point path inside the container for mounting.
*
*
* string mount_point_path = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-_0-9a-zA-Z/]*", (.yandex.cloud.length) = "1-300"];
* @return The bytes for mountPointPath.
*/
public com.google.protobuf.ByteString
getMountPointPathBytes() {
java.lang.Object ref = mountPointPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mountPointPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Mount point path inside the container for mounting.
*
*
* string mount_point_path = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-_0-9a-zA-Z/]*", (.yandex.cloud.length) = "1-300"];
* @param value The mountPointPath to set.
* @return This builder for chaining.
*/
public Builder setMountPointPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
mountPointPath_ = value;
onChanged();
return this;
}
/**
*
* Mount point path inside the container for mounting.
*
*
* string mount_point_path = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-_0-9a-zA-Z/]*", (.yandex.cloud.length) = "1-300"];
* @return This builder for chaining.
*/
public Builder clearMountPointPath() {
mountPointPath_ = getDefaultInstance().getMountPointPath();
onChanged();
return this;
}
/**
*
* Mount point path inside the container for mounting.
*
*
* string mount_point_path = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-_0-9a-zA-Z/]*", (.yandex.cloud.length) = "1-300"];
* @param value The bytes for mountPointPath to set.
* @return This builder for chaining.
*/
public Builder setMountPointPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
mountPointPath_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.containers.v1.StorageMount)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.serverless.containers.v1.StorageMount)
private static final yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount();
}
public static yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StorageMount parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StorageMount(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.serverless.containers.v1.ContainerOuterClass.StorageMount getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_containers_v1_Container_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_containers_v1_Container_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_containers_v1_Container_LabelsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_containers_v1_Container_LabelsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_containers_v1_Revision_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_containers_v1_Revision_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_containers_v1_Image_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_containers_v1_Image_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_containers_v1_Image_EnvironmentEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_containers_v1_Image_EnvironmentEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_containers_v1_Command_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_containers_v1_Command_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_containers_v1_Args_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_containers_v1_Args_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_containers_v1_Resources_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_containers_v1_Resources_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_containers_v1_ProvisionPolicy_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_containers_v1_ProvisionPolicy_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_containers_v1_Secret_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_containers_v1_Secret_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_containers_v1_Connectivity_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_containers_v1_Connectivity_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_containers_v1_LogOptions_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_containers_v1_LogOptions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_containers_v1_ScalingPolicy_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_containers_v1_ScalingPolicy_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_serverless_containers_v1_StorageMount_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_serverless_containers_v1_StorageMount_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n5yandex/cloud/serverless/containers/v1/" +
"container.proto\022%yandex.cloud.serverless" +
".containers.v1\032\036google/protobuf/duration" +
".proto\032\037google/protobuf/timestamp.proto\032" +
"\'yandex/cloud/logging/v1/log_entry.proto" +
"\032\035yandex/cloud/validation.proto\"\245\003\n\tCont" +
"ainer\022\n\n\002id\030\001 \001(\t\022\021\n\tfolder_id\030\002 \001(\t\022.\n\n" +
"created_at\030\003 \001(\0132\032.google.protobuf.Times" +
"tamp\022\014\n\004name\030\004 \001(\t\022\023\n\013description\030\005 \001(\t\022" +
"L\n\006labels\030\006 \003(\0132<.yandex.cloud.serverles" +
"s.containers.v1.Container.LabelsEntry\022\013\n" +
"\003url\030\010 \001(\t\022G\n\006status\030\t \001(\01627.yandex.clou" +
"d.serverless.containers.v1.Container.Sta" +
"tus\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" +
"\030\002 \001(\t:\0028\001\"S\n\006Status\022\026\n\022STATUS_UNSPECIFI" +
"ED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETI" +
"NG\020\003\022\t\n\005ERROR\020\004\"\254\007\n\010Revision\022\n\n\002id\030\001 \001(\t" +
"\022\024\n\014container_id\030\002 \001(\t\022\023\n\013description\030\003 " +
"\001(\t\022.\n\ncreated_at\030\004 \001(\0132\032.google.protobu" +
"f.Timestamp\022;\n\005image\030\005 \001(\0132,.yandex.clou" +
"d.serverless.containers.v1.Image\022C\n\treso" +
"urces\030\006 \001(\01320.yandex.cloud.serverless.co" +
"ntainers.v1.Resources\0224\n\021execution_timeo" +
"ut\030\007 \001(\0132\031.google.protobuf.Duration\022\023\n\013c" +
"oncurrency\030\010 \001(\003\022\032\n\022service_account_id\030\t" +
" \001(\t\022F\n\006status\030\n \001(\01626.yandex.cloud.serv" +
"erless.containers.v1.Revision.Status\022>\n\007" +
"secrets\030\013 \003(\0132-.yandex.cloud.serverless." +
"containers.v1.Secret\022I\n\014connectivity\030\014 \001" +
"(\01323.yandex.cloud.serverless.containers." +
"v1.Connectivity\022P\n\020provision_policy\030\r \001(" +
"\01326.yandex.cloud.serverless.containers.v" +
"1.ProvisionPolicy\022L\n\016scaling_policy\030\016 \001(" +
"\01324.yandex.cloud.serverless.containers.v" +
"1.ScalingPolicy\022F\n\013log_options\030\017 \001(\01321.y" +
"andex.cloud.serverless.containers.v1.Log" +
"Options\022K\n\016storage_mounts\030\020 \003(\01323.yandex" +
".cloud.serverless.containers.v1.StorageM" +
"ount\"H\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\014" +
"\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010OBSOLETE\020\003\"\360" +
"\002\n\005Image\022\021\n\timage_url\030\001 \001(\t\022\024\n\014image_dig" +
"est\030\002 \001(\t\022?\n\007command\030\003 \001(\0132..yandex.clou" +
"d.serverless.containers.v1.Command\0229\n\004ar" +
"gs\030\004 \001(\0132+.yandex.cloud.serverless.conta" +
"iners.v1.Args\022y\n\013environment\030\005 \003(\0132=.yan" +
"dex.cloud.serverless.containers.v1.Image" +
".EnvironmentEntryB%\212\3101\006<=4096\262\3101\027\022\025[a-zA" +
"-Z][a-zA-Z0-9_]*\022\023\n\013working_dir\030\006 \001(\t\0322\n" +
"\020EnvironmentEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" +
"\002 \001(\t:\0028\001\"\032\n\007Command\022\017\n\007command\030\001 \003(\t\"\024\n" +
"\004Args\022\014\n\004args\030\001 \003(\t\"o\n\tResources\022(\n\006memo" +
"ry\030\001 \001(\003B\030\372\3071\024134217728-4294967296\022\026\n\005co" +
"res\030\002 \001(\003B\007\372\3071\0030-2\022 \n\rcore_fraction\030\003 \001(" +
"\003B\t\372\3071\0050-100\"(\n\017ProvisionPolicy\022\025\n\rmin_i" +
"nstances\030\001 \001(\003\"b\n\006Secret\022\n\n\002id\030\001 \001(\t\022\022\n\n" +
"version_id\030\002 \001(\t\022\013\n\003key\030\003 \001(\t\022\036\n\024environ" +
"ment_variable\030\004 \001(\tH\000B\013\n\treference\"B\n\014Co" +
"nnectivity\022\022\n\nnetwork_id\030\001 \001(\t\022\036\n\nsubnet" +
"_ids\030\002 \003(\tB\n\212\3101\002>0\220\3101\001\"\340\001\n\nLogOptions\022\020\n" +
"\010disabled\030\001 \001(\010\022;\n\014log_group_id\030\002 \001(\tB#\362" +
"\3071\037([a-zA-Z][-a-zA-Z0-9_.]{0,63})?H\000\0228\n\t" +
"folder_id\030\003 \001(\tB#\362\3071\037([a-zA-Z][-a-zA-Z0-" +
"9_.]{0,63})?H\000\022:\n\tmin_level\030\004 \001(\0162\'.yand" +
"ex.cloud.logging.v1.LogLevel.LevelB\r\n\013de" +
"stination\"J\n\rScalingPolicy\022\034\n\024zone_insta" +
"nces_limit\030\001 \001(\003\022\033\n\023zone_requests_limit\030" +
"\002 \001(\003\"\246\001\n\014StorageMount\0221\n\tbucket_id\030\001 \001(" +
"\tB\036\350\3071\001\212\3101\0043-63\362\3071\016[-.0-9a-zA-Z]*\022\016\n\006pre" +
"fix\030\002 \001(\t\022\021\n\tread_only\030\004 \001(\010\022:\n\020mount_po" +
"int_path\030\005 \001(\tB \350\3071\001\212\3101\0051-300\362\3071\017[-_0-9a" +
"-zA-Z/]*J\004\010\003\020\004B\201\001\n)yandex.cloud.api.serv" +
"erless.containers.v1ZTgithub.com/yandex-" +
"cloud/go-genproto/yandex/cloud/serverles" +
"s/containers/v1;containersb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.DurationProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
yandex.cloud.api.logging.v1.LogEntryOuterClass.getDescriptor(),
yandex.cloud.api.Validation.getDescriptor(),
});
internal_static_yandex_cloud_serverless_containers_v1_Container_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_serverless_containers_v1_Container_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_containers_v1_Container_descriptor,
new java.lang.String[] { "Id", "FolderId", "CreatedAt", "Name", "Description", "Labels", "Url", "Status", });
internal_static_yandex_cloud_serverless_containers_v1_Container_LabelsEntry_descriptor =
internal_static_yandex_cloud_serverless_containers_v1_Container_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_serverless_containers_v1_Container_LabelsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_containers_v1_Container_LabelsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_serverless_containers_v1_Revision_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_serverless_containers_v1_Revision_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_containers_v1_Revision_descriptor,
new java.lang.String[] { "Id", "ContainerId", "Description", "CreatedAt", "Image", "Resources", "ExecutionTimeout", "Concurrency", "ServiceAccountId", "Status", "Secrets", "Connectivity", "ProvisionPolicy", "ScalingPolicy", "LogOptions", "StorageMounts", });
internal_static_yandex_cloud_serverless_containers_v1_Image_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_serverless_containers_v1_Image_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_containers_v1_Image_descriptor,
new java.lang.String[] { "ImageUrl", "ImageDigest", "Command", "Args", "Environment", "WorkingDir", });
internal_static_yandex_cloud_serverless_containers_v1_Image_EnvironmentEntry_descriptor =
internal_static_yandex_cloud_serverless_containers_v1_Image_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_serverless_containers_v1_Image_EnvironmentEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_containers_v1_Image_EnvironmentEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_serverless_containers_v1_Command_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yandex_cloud_serverless_containers_v1_Command_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_containers_v1_Command_descriptor,
new java.lang.String[] { "Command", });
internal_static_yandex_cloud_serverless_containers_v1_Args_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_yandex_cloud_serverless_containers_v1_Args_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_containers_v1_Args_descriptor,
new java.lang.String[] { "Args", });
internal_static_yandex_cloud_serverless_containers_v1_Resources_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_yandex_cloud_serverless_containers_v1_Resources_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_containers_v1_Resources_descriptor,
new java.lang.String[] { "Memory", "Cores", "CoreFraction", });
internal_static_yandex_cloud_serverless_containers_v1_ProvisionPolicy_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_yandex_cloud_serverless_containers_v1_ProvisionPolicy_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_containers_v1_ProvisionPolicy_descriptor,
new java.lang.String[] { "MinInstances", });
internal_static_yandex_cloud_serverless_containers_v1_Secret_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_yandex_cloud_serverless_containers_v1_Secret_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_containers_v1_Secret_descriptor,
new java.lang.String[] { "Id", "VersionId", "Key", "EnvironmentVariable", "Reference", });
internal_static_yandex_cloud_serverless_containers_v1_Connectivity_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_yandex_cloud_serverless_containers_v1_Connectivity_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_containers_v1_Connectivity_descriptor,
new java.lang.String[] { "NetworkId", "SubnetIds", });
internal_static_yandex_cloud_serverless_containers_v1_LogOptions_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_yandex_cloud_serverless_containers_v1_LogOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_containers_v1_LogOptions_descriptor,
new java.lang.String[] { "Disabled", "LogGroupId", "FolderId", "MinLevel", "Destination", });
internal_static_yandex_cloud_serverless_containers_v1_ScalingPolicy_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_yandex_cloud_serverless_containers_v1_ScalingPolicy_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_containers_v1_ScalingPolicy_descriptor,
new java.lang.String[] { "ZoneInstancesLimit", "ZoneRequestsLimit", });
internal_static_yandex_cloud_serverless_containers_v1_StorageMount_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_yandex_cloud_serverless_containers_v1_StorageMount_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_serverless_containers_v1_StorageMount_descriptor,
new java.lang.String[] { "BucketId", "Prefix", "ReadOnly", "MountPointPath", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(yandex.cloud.api.Validation.length);
registry.add(yandex.cloud.api.Validation.mapKey);
registry.add(yandex.cloud.api.Validation.pattern);
registry.add(yandex.cloud.api.Validation.required);
registry.add(yandex.cloud.api.Validation.unique);
registry.add(yandex.cloud.api.Validation.value);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.DurationProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
yandex.cloud.api.logging.v1.LogEntryOuterClass.getDescriptor();
yandex.cloud.api.Validation.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy