Package com.google.cloud.run.v2
Class RevisionTemplate
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.run.v2.RevisionTemplate
-
- All Implemented Interfaces:
RevisionTemplateOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class RevisionTemplate extends com.google.protobuf.GeneratedMessageV3 implements RevisionTemplateOrBuilder
RevisionTemplate describes the data a revision should have when created from a template.
Protobuf typegoogle.cloud.run.v2.RevisionTemplate- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRevisionTemplate.BuilderRevisionTemplate describes the data a revision should have when created from a template.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intANNOTATIONS_FIELD_NUMBERstatic intCONTAINERS_FIELD_NUMBERstatic intENCRYPTION_KEY_FIELD_NUMBERstatic intEXECUTION_ENVIRONMENT_FIELD_NUMBERstatic intLABELS_FIELD_NUMBERstatic intMAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBERstatic intREVISION_FIELD_NUMBERstatic intSCALING_FIELD_NUMBERstatic intSERVICE_ACCOUNT_FIELD_NUMBERstatic intSESSION_AFFINITY_FIELD_NUMBERstatic intTIMEOUT_FIELD_NUMBERstatic intVOLUMES_FIELD_NUMBERstatic intVPC_ACCESS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsAnnotations(String key)Unstructured key value map that may be set by external tools to store and arbitrary metadata.booleancontainsLabels(String key)Unstructured key value map that can be used to organize and categorize objects.booleanequals(Object obj)Map<String,String>getAnnotations()Deprecated.intgetAnnotationsCount()Unstructured key value map that may be set by external tools to store and arbitrary metadata.Map<String,String>getAnnotationsMap()Unstructured key value map that may be set by external tools to store and arbitrary metadata.StringgetAnnotationsOrDefault(String key, String defaultValue)Unstructured key value map that may be set by external tools to store and arbitrary metadata.StringgetAnnotationsOrThrow(String key)Unstructured key value map that may be set by external tools to store and arbitrary metadata.ContainergetContainers(int index)Holds the single container that defines the unit of execution for this Revision.intgetContainersCount()Holds the single container that defines the unit of execution for this Revision.List<Container>getContainersList()Holds the single container that defines the unit of execution for this Revision.ContainerOrBuildergetContainersOrBuilder(int index)Holds the single container that defines the unit of execution for this Revision.List<? extends ContainerOrBuilder>getContainersOrBuilderList()Holds the single container that defines the unit of execution for this Revision.static RevisionTemplategetDefaultInstance()RevisionTemplategetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetEncryptionKey()A reference to a customer managed encryption key (CMEK) to use to encrypt this container image.com.google.protobuf.ByteStringgetEncryptionKeyBytes()A reference to a customer managed encryption key (CMEK) to use to encrypt this container image.ExecutionEnvironmentgetExecutionEnvironment()The sandbox environment to host this Revision.intgetExecutionEnvironmentValue()The sandbox environment to host this Revision.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Unstructured key value map that can be used to organize and categorize objects.Map<String,String>getLabelsMap()Unstructured key value map that can be used to organize and categorize objects.StringgetLabelsOrDefault(String key, String defaultValue)Unstructured key value map that can be used to organize and categorize objects.StringgetLabelsOrThrow(String key)Unstructured key value map that can be used to organize and categorize objects.intgetMaxInstanceRequestConcurrency()Sets the maximum number of requests that each serving instance can receive.com.google.protobuf.Parser<RevisionTemplate>getParserForType()StringgetRevision()The unique name for the revision.com.google.protobuf.ByteStringgetRevisionBytes()The unique name for the revision.RevisionScalinggetScaling()Scaling settings for this Revision.RevisionScalingOrBuildergetScalingOrBuilder()Scaling settings for this Revision.intgetSerializedSize()StringgetServiceAccount()Email address of the IAM service account associated with the revision of the service.com.google.protobuf.ByteStringgetServiceAccountBytes()Email address of the IAM service account associated with the revision of the service.booleangetSessionAffinity()Enable session affinity.com.google.protobuf.DurationgetTimeout()Max allowed time for an instance to respond to a request.com.google.protobuf.DurationOrBuildergetTimeoutOrBuilder()Max allowed time for an instance to respond to a request.VolumegetVolumes(int index)A list of Volumes to make available to containers.intgetVolumesCount()A list of Volumes to make available to containers.List<Volume>getVolumesList()A list of Volumes to make available to containers.VolumeOrBuildergetVolumesOrBuilder(int index)A list of Volumes to make available to containers.List<? extends VolumeOrBuilder>getVolumesOrBuilderList()A list of Volumes to make available to containers.VpcAccessgetVpcAccess()VPC Access configuration to use for this Revision.VpcAccessOrBuildergetVpcAccessOrBuilder()VPC Access configuration to use for this Revision.inthashCode()booleanhasScaling()Scaling settings for this Revision.booleanhasTimeout()Max allowed time for an instance to respond to a request.booleanhasVpcAccess()VPC Access configuration to use for this Revision.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static RevisionTemplate.BuildernewBuilder()static RevisionTemplate.BuildernewBuilder(RevisionTemplate prototype)RevisionTemplate.BuildernewBuilderForType()protected RevisionTemplate.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static RevisionTemplateparseDelimitedFrom(InputStream input)static RevisionTemplateparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RevisionTemplateparseFrom(byte[] data)static RevisionTemplateparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RevisionTemplateparseFrom(com.google.protobuf.ByteString data)static RevisionTemplateparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RevisionTemplateparseFrom(com.google.protobuf.CodedInputStream input)static RevisionTemplateparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RevisionTemplateparseFrom(InputStream input)static RevisionTemplateparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RevisionTemplateparseFrom(ByteBuffer data)static RevisionTemplateparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<RevisionTemplate>parser()RevisionTemplate.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
REVISION_FIELD_NUMBER
public static final int REVISION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANNOTATIONS_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCALING_FIELD_NUMBER
public static final int SCALING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VPC_ACCESS_FIELD_NUMBER
public static final int VPC_ACCESS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIMEOUT_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTAINERS_FIELD_NUMBER
public static final int CONTAINERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VOLUMES_FIELD_NUMBER
public static final int VOLUMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXECUTION_ENVIRONMENT_FIELD_NUMBER
public static final int EXECUTION_ENVIRONMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENCRYPTION_KEY_FIELD_NUMBER
public static final int ENCRYPTION_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER
public static final int MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SESSION_AFFINITY_FIELD_NUMBER
public static final int SESSION_AFFINITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getRevision
public String getRevision()
The unique name for the revision. If this field is omitted, it will be automatically generated based on the Service name.
string revision = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getRevisionin interfaceRevisionTemplateOrBuilder- Returns:
- The revision.
-
getRevisionBytes
public com.google.protobuf.ByteString getRevisionBytes()
The unique name for the revision. If this field is omitted, it will be automatically generated based on the Service name.
string revision = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getRevisionBytesin interfaceRevisionTemplateOrBuilder- Returns:
- The bytes for revision.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:RevisionTemplateOrBuilderUnstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. <p>Cloud Run API v2 does not support labels with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 RevisionTemplate.
map<string, string> labels = 2;- Specified by:
getLabelsCountin interfaceRevisionTemplateOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. <p>Cloud Run API v2 does not support labels with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 RevisionTemplate.
map<string, string> labels = 2;- Specified by:
containsLabelsin interfaceRevisionTemplateOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceRevisionTemplateOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. <p>Cloud Run API v2 does not support labels with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 RevisionTemplate.
map<string, string> labels = 2;- Specified by:
getLabelsMapin interfaceRevisionTemplateOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. <p>Cloud Run API v2 does not support labels with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 RevisionTemplate.
map<string, string> labels = 2;- Specified by:
getLabelsOrDefaultin interfaceRevisionTemplateOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. <p>Cloud Run API v2 does not support labels with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 RevisionTemplate.
map<string, string> labels = 2;- Specified by:
getLabelsOrThrowin interfaceRevisionTemplateOrBuilder
-
getAnnotationsCount
public int getAnnotationsCount()
Description copied from interface:RevisionTemplateOrBuilderUnstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 RevisionTemplate. <p>This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 3;- Specified by:
getAnnotationsCountin interfaceRevisionTemplateOrBuilder
-
containsAnnotations
public boolean containsAnnotations(String key)
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 RevisionTemplate. <p>This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 3;- Specified by:
containsAnnotationsin interfaceRevisionTemplateOrBuilder
-
getAnnotations
@Deprecated public Map<String,String> getAnnotations()
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfaceRevisionTemplateOrBuilder
-
getAnnotationsMap
public Map<String,String> getAnnotationsMap()
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 RevisionTemplate. <p>This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 3;- Specified by:
getAnnotationsMapin interfaceRevisionTemplateOrBuilder
-
getAnnotationsOrDefault
public String getAnnotationsOrDefault(String key, String defaultValue)
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 RevisionTemplate. <p>This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 3;- Specified by:
getAnnotationsOrDefaultin interfaceRevisionTemplateOrBuilder
-
getAnnotationsOrThrow
public String getAnnotationsOrThrow(String key)
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 RevisionTemplate. <p>This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 3;- Specified by:
getAnnotationsOrThrowin interfaceRevisionTemplateOrBuilder
-
hasScaling
public boolean hasScaling()
Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4;- Specified by:
hasScalingin interfaceRevisionTemplateOrBuilder- Returns:
- Whether the scaling field is set.
-
getScaling
public RevisionScaling getScaling()
Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4;- Specified by:
getScalingin interfaceRevisionTemplateOrBuilder- Returns:
- The scaling.
-
getScalingOrBuilder
public RevisionScalingOrBuilder getScalingOrBuilder()
Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4;- Specified by:
getScalingOrBuilderin interfaceRevisionTemplateOrBuilder
-
hasVpcAccess
public boolean hasVpcAccess()
VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
.google.cloud.run.v2.VpcAccess vpc_access = 6;- Specified by:
hasVpcAccessin interfaceRevisionTemplateOrBuilder- Returns:
- Whether the vpcAccess field is set.
-
getVpcAccess
public VpcAccess getVpcAccess()
VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
.google.cloud.run.v2.VpcAccess vpc_access = 6;- Specified by:
getVpcAccessin interfaceRevisionTemplateOrBuilder- Returns:
- The vpcAccess.
-
getVpcAccessOrBuilder
public VpcAccessOrBuilder getVpcAccessOrBuilder()
VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
.google.cloud.run.v2.VpcAccess vpc_access = 6;- Specified by:
getVpcAccessOrBuilderin interfaceRevisionTemplateOrBuilder
-
hasTimeout
public boolean hasTimeout()
Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8;- Specified by:
hasTimeoutin interfaceRevisionTemplateOrBuilder- Returns:
- Whether the timeout field is set.
-
getTimeout
public com.google.protobuf.Duration getTimeout()
Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8;- Specified by:
getTimeoutin interfaceRevisionTemplateOrBuilder- Returns:
- The timeout.
-
getTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8;- Specified by:
getTimeoutOrBuilderin interfaceRevisionTemplateOrBuilder
-
getServiceAccount
public String getServiceAccount()
Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.
string service_account = 9;- Specified by:
getServiceAccountin interfaceRevisionTemplateOrBuilder- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.ByteString getServiceAccountBytes()
Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.
string service_account = 9;- Specified by:
getServiceAccountBytesin interfaceRevisionTemplateOrBuilder- Returns:
- The bytes for serviceAccount.
-
getContainersList
public List<Container> getContainersList()
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;- Specified by:
getContainersListin interfaceRevisionTemplateOrBuilder
-
getContainersOrBuilderList
public List<? extends ContainerOrBuilder> getContainersOrBuilderList()
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;- Specified by:
getContainersOrBuilderListin interfaceRevisionTemplateOrBuilder
-
getContainersCount
public int getContainersCount()
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;- Specified by:
getContainersCountin interfaceRevisionTemplateOrBuilder
-
getContainers
public Container getContainers(int index)
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;- Specified by:
getContainersin interfaceRevisionTemplateOrBuilder
-
getContainersOrBuilder
public ContainerOrBuilder getContainersOrBuilder(int index)
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;- Specified by:
getContainersOrBuilderin interfaceRevisionTemplateOrBuilder
-
getVolumesList
public List<Volume> getVolumesList()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;- Specified by:
getVolumesListin interfaceRevisionTemplateOrBuilder
-
getVolumesOrBuilderList
public List<? extends VolumeOrBuilder> getVolumesOrBuilderList()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;- Specified by:
getVolumesOrBuilderListin interfaceRevisionTemplateOrBuilder
-
getVolumesCount
public int getVolumesCount()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;- Specified by:
getVolumesCountin interfaceRevisionTemplateOrBuilder
-
getVolumes
public Volume getVolumes(int index)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;- Specified by:
getVolumesin interfaceRevisionTemplateOrBuilder
-
getVolumesOrBuilder
public VolumeOrBuilder getVolumesOrBuilder(int index)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;- Specified by:
getVolumesOrBuilderin interfaceRevisionTemplateOrBuilder
-
getExecutionEnvironmentValue
public int getExecutionEnvironmentValue()
The sandbox environment to host this Revision.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 13;- Specified by:
getExecutionEnvironmentValuein interfaceRevisionTemplateOrBuilder- Returns:
- The enum numeric value on the wire for executionEnvironment.
-
getExecutionEnvironment
public ExecutionEnvironment getExecutionEnvironment()
The sandbox environment to host this Revision.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 13;- Specified by:
getExecutionEnvironmentin interfaceRevisionTemplateOrBuilder- Returns:
- The executionEnvironment.
-
getEncryptionKey
public String getEncryptionKey()
A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
string encryption_key = 14 [(.google.api.resource_reference) = { ... }- Specified by:
getEncryptionKeyin interfaceRevisionTemplateOrBuilder- Returns:
- The encryptionKey.
-
getEncryptionKeyBytes
public com.google.protobuf.ByteString getEncryptionKeyBytes()
A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
string encryption_key = 14 [(.google.api.resource_reference) = { ... }- Specified by:
getEncryptionKeyBytesin interfaceRevisionTemplateOrBuilder- Returns:
- The bytes for encryptionKey.
-
getMaxInstanceRequestConcurrency
public int getMaxInstanceRequestConcurrency()
Sets the maximum number of requests that each serving instance can receive.
int32 max_instance_request_concurrency = 15;- Specified by:
getMaxInstanceRequestConcurrencyin interfaceRevisionTemplateOrBuilder- Returns:
- The maxInstanceRequestConcurrency.
-
getSessionAffinity
public boolean getSessionAffinity()
Enable session affinity.
bool session_affinity = 19;- Specified by:
getSessionAffinityin interfaceRevisionTemplateOrBuilder- Returns:
- The sessionAffinity.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RevisionTemplate parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RevisionTemplate parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RevisionTemplate parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RevisionTemplate parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RevisionTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RevisionTemplate parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RevisionTemplate parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RevisionTemplate parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RevisionTemplate parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RevisionTemplate parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static RevisionTemplate parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RevisionTemplate parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public RevisionTemplate.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static RevisionTemplate.Builder newBuilder()
-
newBuilder
public static RevisionTemplate.Builder newBuilder(RevisionTemplate prototype)
-
toBuilder
public RevisionTemplate.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RevisionTemplate.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static RevisionTemplate getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<RevisionTemplate> parser()
-
getParserForType
public com.google.protobuf.Parser<RevisionTemplate> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public RevisionTemplate getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-