Package com.google.cloud.run.v2
Class RevisionTemplate.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
- com.google.cloud.run.v2.RevisionTemplate.Builder
-
- All Implemented Interfaces:
RevisionTemplateOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RevisionTemplate
public static final class RevisionTemplate.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder> implements RevisionTemplateOrBuilder
RevisionTemplate describes the data a revision should have when created from a template.
Protobuf typegoogle.cloud.run.v2.RevisionTemplate
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RevisionTemplate.BuilderaddAllContainers(Iterable<? extends Container> values)Holds the single container that defines the unit of execution for this Revision.RevisionTemplate.BuilderaddAllVolumes(Iterable<? extends Volume> values)A list of Volumes to make available to containers.RevisionTemplate.BuilderaddContainers(int index, Container value)Holds the single container that defines the unit of execution for this Revision.RevisionTemplate.BuilderaddContainers(int index, Container.Builder builderForValue)Holds the single container that defines the unit of execution for this Revision.RevisionTemplate.BuilderaddContainers(Container value)Holds the single container that defines the unit of execution for this Revision.RevisionTemplate.BuilderaddContainers(Container.Builder builderForValue)Holds the single container that defines the unit of execution for this Revision.Container.BuilderaddContainersBuilder()Holds the single container that defines the unit of execution for this Revision.Container.BuilderaddContainersBuilder(int index)Holds the single container that defines the unit of execution for this Revision.RevisionTemplate.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RevisionTemplate.BuilderaddVolumes(int index, Volume value)A list of Volumes to make available to containers.RevisionTemplate.BuilderaddVolumes(int index, Volume.Builder builderForValue)A list of Volumes to make available to containers.RevisionTemplate.BuilderaddVolumes(Volume value)A list of Volumes to make available to containers.RevisionTemplate.BuilderaddVolumes(Volume.Builder builderForValue)A list of Volumes to make available to containers.Volume.BuilderaddVolumesBuilder()A list of Volumes to make available to containers.Volume.BuilderaddVolumesBuilder(int index)A list of Volumes to make available to containers.RevisionTemplatebuild()RevisionTemplatebuildPartial()RevisionTemplate.Builderclear()RevisionTemplate.BuilderclearAnnotations()RevisionTemplate.BuilderclearContainers()Holds the single container that defines the unit of execution for this Revision.RevisionTemplate.BuilderclearEncryptionKey()A reference to a customer managed encryption key (CMEK) to use to encrypt this container image.RevisionTemplate.BuilderclearExecutionEnvironment()The sandbox environment to host this Revision.RevisionTemplate.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RevisionTemplate.BuilderclearLabels()RevisionTemplate.BuilderclearMaxInstanceRequestConcurrency()Sets the maximum number of requests that each serving instance can receive.RevisionTemplate.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RevisionTemplate.BuilderclearRevision()The unique name for the revision.RevisionTemplate.BuilderclearScaling()Scaling settings for this Revision.RevisionTemplate.BuilderclearServiceAccount()Email address of the IAM service account associated with the revision of the service.RevisionTemplate.BuilderclearSessionAffinity()Enable session affinity.RevisionTemplate.BuilderclearTimeout()Max allowed time for an instance to respond to a request.RevisionTemplate.BuilderclearVolumes()A list of Volumes to make available to containers.RevisionTemplate.BuilderclearVpcAccess()VPC Access configuration to use for this Revision.RevisionTemplate.Builderclone()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.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.Container.BuildergetContainersBuilder(int index)Holds the single container that defines the unit of execution for this Revision.List<Container.Builder>getContainersBuilderList()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.RevisionTemplategetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.Map<String,String>getMutableAnnotations()Deprecated.Map<String,String>getMutableLabels()Deprecated.StringgetRevision()The unique name for the revision.com.google.protobuf.ByteStringgetRevisionBytes()The unique name for the revision.RevisionScalinggetScaling()Scaling settings for this Revision.RevisionScaling.BuildergetScalingBuilder()Scaling settings for this Revision.RevisionScalingOrBuildergetScalingOrBuilder()Scaling settings for this Revision.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.Duration.BuildergetTimeoutBuilder()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.Volume.BuildergetVolumesBuilder(int index)A list of Volumes to make available to containers.List<Volume.Builder>getVolumesBuilderList()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.VpcAccess.BuildergetVpcAccessBuilder()VPC Access configuration to use for this Revision.VpcAccessOrBuildergetVpcAccessOrBuilder()VPC Access configuration to use for this Revision.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)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()RevisionTemplate.BuildermergeFrom(RevisionTemplate other)RevisionTemplate.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RevisionTemplate.BuildermergeFrom(com.google.protobuf.Message other)RevisionTemplate.BuildermergeScaling(RevisionScaling value)Scaling settings for this Revision.RevisionTemplate.BuildermergeTimeout(com.google.protobuf.Duration value)Max allowed time for an instance to respond to a request.RevisionTemplate.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RevisionTemplate.BuildermergeVpcAccess(VpcAccess value)VPC Access configuration to use for this Revision.RevisionTemplate.BuilderputAllAnnotations(Map<String,String> values)Unstructured key value map that may be set by external tools to store and arbitrary metadata.RevisionTemplate.BuilderputAllLabels(Map<String,String> values)Unstructured key value map that can be used to organize and categorize objects.RevisionTemplate.BuilderputAnnotations(String key, String value)Unstructured key value map that may be set by external tools to store and arbitrary metadata.RevisionTemplate.BuilderputLabels(String key, String value)Unstructured key value map that can be used to organize and categorize objects.RevisionTemplate.BuilderremoveAnnotations(String key)Unstructured key value map that may be set by external tools to store and arbitrary metadata.RevisionTemplate.BuilderremoveContainers(int index)Holds the single container that defines the unit of execution for this Revision.RevisionTemplate.BuilderremoveLabels(String key)Unstructured key value map that can be used to organize and categorize objects.RevisionTemplate.BuilderremoveVolumes(int index)A list of Volumes to make available to containers.RevisionTemplate.BuildersetContainers(int index, Container value)Holds the single container that defines the unit of execution for this Revision.RevisionTemplate.BuildersetContainers(int index, Container.Builder builderForValue)Holds the single container that defines the unit of execution for this Revision.RevisionTemplate.BuildersetEncryptionKey(String value)A reference to a customer managed encryption key (CMEK) to use to encrypt this container image.RevisionTemplate.BuildersetEncryptionKeyBytes(com.google.protobuf.ByteString value)A reference to a customer managed encryption key (CMEK) to use to encrypt this container image.RevisionTemplate.BuildersetExecutionEnvironment(ExecutionEnvironment value)The sandbox environment to host this Revision.RevisionTemplate.BuildersetExecutionEnvironmentValue(int value)The sandbox environment to host this Revision.RevisionTemplate.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RevisionTemplate.BuildersetMaxInstanceRequestConcurrency(int value)Sets the maximum number of requests that each serving instance can receive.RevisionTemplate.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RevisionTemplate.BuildersetRevision(String value)The unique name for the revision.RevisionTemplate.BuildersetRevisionBytes(com.google.protobuf.ByteString value)The unique name for the revision.RevisionTemplate.BuildersetScaling(RevisionScaling value)Scaling settings for this Revision.RevisionTemplate.BuildersetScaling(RevisionScaling.Builder builderForValue)Scaling settings for this Revision.RevisionTemplate.BuildersetServiceAccount(String value)Email address of the IAM service account associated with the revision of the service.RevisionTemplate.BuildersetServiceAccountBytes(com.google.protobuf.ByteString value)Email address of the IAM service account associated with the revision of the service.RevisionTemplate.BuildersetSessionAffinity(boolean value)Enable session affinity.RevisionTemplate.BuildersetTimeout(com.google.protobuf.Duration value)Max allowed time for an instance to respond to a request.RevisionTemplate.BuildersetTimeout(com.google.protobuf.Duration.Builder builderForValue)Max allowed time for an instance to respond to a request.RevisionTemplate.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RevisionTemplate.BuildersetVolumes(int index, Volume value)A list of Volumes to make available to containers.RevisionTemplate.BuildersetVolumes(int index, Volume.Builder builderForValue)A list of Volumes to make available to containers.RevisionTemplate.BuildersetVpcAccess(VpcAccess value)VPC Access configuration to use for this Revision.RevisionTemplate.BuildersetVpcAccess(VpcAccess.Builder builderForValue)VPC Access configuration to use for this Revision.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<RevisionTemplate.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
clear
public RevisionTemplate.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
getDefaultInstanceForType
public RevisionTemplate getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RevisionTemplate build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RevisionTemplate buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RevisionTemplate.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
setField
public RevisionTemplate.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
clearField
public RevisionTemplate.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
clearOneof
public RevisionTemplate.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
setRepeatedField
public RevisionTemplate.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
addRepeatedField
public RevisionTemplate.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
mergeFrom
public RevisionTemplate.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RevisionTemplate.Builder>
-
mergeFrom
public RevisionTemplate.Builder mergeFrom(RevisionTemplate other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
mergeFrom
public RevisionTemplate.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RevisionTemplate.Builder>- Throws:
IOException
-
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.
-
setRevision
public RevisionTemplate.Builder setRevision(String value)
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) = { ... }- Parameters:
value- The revision to set.- Returns:
- This builder for chaining.
-
clearRevision
public RevisionTemplate.Builder clearRevision()
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) = { ... }- Returns:
- This builder for chaining.
-
setRevisionBytes
public RevisionTemplate.Builder setRevisionBytes(com.google.protobuf.ByteString value)
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) = { ... }- Parameters:
value- The bytes for revision to set.- Returns:
- This builder for chaining.
-
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
-
clearLabels
public RevisionTemplate.Builder clearLabels()
-
removeLabels
public RevisionTemplate.Builder removeLabels(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;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public RevisionTemplate.Builder putLabels(String key, String value)
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;
-
putAllLabels
public RevisionTemplate.Builder putAllLabels(Map<String,String> values)
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;
-
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
-
clearAnnotations
public RevisionTemplate.Builder clearAnnotations()
-
removeAnnotations
public RevisionTemplate.Builder removeAnnotations(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;
-
getMutableAnnotations
@Deprecated public Map<String,String> getMutableAnnotations()
Deprecated.Use alternate mutation accessors instead.
-
putAnnotations
public RevisionTemplate.Builder putAnnotations(String key, String value)
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;
-
putAllAnnotations
public RevisionTemplate.Builder putAllAnnotations(Map<String,String> values)
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;
-
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.
-
setScaling
public RevisionTemplate.Builder setScaling(RevisionScaling value)
Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4;
-
setScaling
public RevisionTemplate.Builder setScaling(RevisionScaling.Builder builderForValue)
Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4;
-
mergeScaling
public RevisionTemplate.Builder mergeScaling(RevisionScaling value)
Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4;
-
clearScaling
public RevisionTemplate.Builder clearScaling()
Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4;
-
getScalingBuilder
public RevisionScaling.Builder getScalingBuilder()
Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4;
-
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.
-
setVpcAccess
public RevisionTemplate.Builder setVpcAccess(VpcAccess value)
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;
-
setVpcAccess
public RevisionTemplate.Builder setVpcAccess(VpcAccess.Builder builderForValue)
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;
-
mergeVpcAccess
public RevisionTemplate.Builder mergeVpcAccess(VpcAccess value)
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;
-
clearVpcAccess
public RevisionTemplate.Builder clearVpcAccess()
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;
-
getVpcAccessBuilder
public VpcAccess.Builder getVpcAccessBuilder()
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;
-
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.
-
setTimeout
public RevisionTemplate.Builder setTimeout(com.google.protobuf.Duration value)
Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8;
-
setTimeout
public RevisionTemplate.Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue)
Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8;
-
mergeTimeout
public RevisionTemplate.Builder mergeTimeout(com.google.protobuf.Duration value)
Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8;
-
clearTimeout
public RevisionTemplate.Builder clearTimeout()
Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8;
-
getTimeoutBuilder
public com.google.protobuf.Duration.Builder getTimeoutBuilder()
Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8;
-
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.
-
setServiceAccount
public RevisionTemplate.Builder setServiceAccount(String value)
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;- Parameters:
value- The serviceAccount to set.- Returns:
- This builder for chaining.
-
clearServiceAccount
public RevisionTemplate.Builder clearServiceAccount()
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;- Returns:
- This builder for chaining.
-
setServiceAccountBytes
public RevisionTemplate.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for serviceAccount to set.- Returns:
- This builder for chaining.
-
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
-
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
-
setContainers
public RevisionTemplate.Builder setContainers(int index, Container value)
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;
-
setContainers
public RevisionTemplate.Builder setContainers(int index, Container.Builder builderForValue)
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;
-
addContainers
public RevisionTemplate.Builder addContainers(Container value)
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;
-
addContainers
public RevisionTemplate.Builder addContainers(int index, Container value)
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;
-
addContainers
public RevisionTemplate.Builder addContainers(Container.Builder builderForValue)
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;
-
addContainers
public RevisionTemplate.Builder addContainers(int index, Container.Builder builderForValue)
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;
-
addAllContainers
public RevisionTemplate.Builder addAllContainers(Iterable<? extends Container> values)
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;
-
clearContainers
public RevisionTemplate.Builder clearContainers()
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;
-
removeContainers
public RevisionTemplate.Builder removeContainers(int index)
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;
-
getContainersBuilder
public Container.Builder getContainersBuilder(int index)
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;
-
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
-
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
-
addContainersBuilder
public Container.Builder addContainersBuilder()
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;
-
addContainersBuilder
public Container.Builder addContainersBuilder(int index)
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;
-
getContainersBuilderList
public List<Container.Builder> getContainersBuilderList()
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;
-
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
-
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
-
setVolumes
public RevisionTemplate.Builder setVolumes(int index, Volume value)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;
-
setVolumes
public RevisionTemplate.Builder setVolumes(int index, Volume.Builder builderForValue)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;
-
addVolumes
public RevisionTemplate.Builder addVolumes(Volume value)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;
-
addVolumes
public RevisionTemplate.Builder addVolumes(int index, Volume value)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;
-
addVolumes
public RevisionTemplate.Builder addVolumes(Volume.Builder builderForValue)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;
-
addVolumes
public RevisionTemplate.Builder addVolumes(int index, Volume.Builder builderForValue)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;
-
addAllVolumes
public RevisionTemplate.Builder addAllVolumes(Iterable<? extends Volume> values)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;
-
clearVolumes
public RevisionTemplate.Builder clearVolumes()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;
-
removeVolumes
public RevisionTemplate.Builder removeVolumes(int index)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;
-
getVolumesBuilder
public Volume.Builder getVolumesBuilder(int index)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;
-
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
-
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
-
addVolumesBuilder
public Volume.Builder addVolumesBuilder()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;
-
addVolumesBuilder
public Volume.Builder addVolumesBuilder(int index)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;
-
getVolumesBuilderList
public List<Volume.Builder> getVolumesBuilderList()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;
-
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.
-
setExecutionEnvironmentValue
public RevisionTemplate.Builder setExecutionEnvironmentValue(int value)
The sandbox environment to host this Revision.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 13;- Parameters:
value- The enum numeric value on the wire for executionEnvironment to set.- Returns:
- This builder for chaining.
-
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.
-
setExecutionEnvironment
public RevisionTemplate.Builder setExecutionEnvironment(ExecutionEnvironment value)
The sandbox environment to host this Revision.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 13;- Parameters:
value- The executionEnvironment to set.- Returns:
- This builder for chaining.
-
clearExecutionEnvironment
public RevisionTemplate.Builder clearExecutionEnvironment()
The sandbox environment to host this Revision.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 13;- Returns:
- This builder for chaining.
-
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.
-
setEncryptionKey
public RevisionTemplate.Builder setEncryptionKey(String value)
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) = { ... }- Parameters:
value- The encryptionKey to set.- Returns:
- This builder for chaining.
-
clearEncryptionKey
public RevisionTemplate.Builder clearEncryptionKey()
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) = { ... }- Returns:
- This builder for chaining.
-
setEncryptionKeyBytes
public RevisionTemplate.Builder setEncryptionKeyBytes(com.google.protobuf.ByteString value)
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) = { ... }- Parameters:
value- The bytes for encryptionKey to set.- Returns:
- This builder for chaining.
-
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.
-
setMaxInstanceRequestConcurrency
public RevisionTemplate.Builder setMaxInstanceRequestConcurrency(int value)
Sets the maximum number of requests that each serving instance can receive.
int32 max_instance_request_concurrency = 15;- Parameters:
value- The maxInstanceRequestConcurrency to set.- Returns:
- This builder for chaining.
-
clearMaxInstanceRequestConcurrency
public RevisionTemplate.Builder clearMaxInstanceRequestConcurrency()
Sets the maximum number of requests that each serving instance can receive.
int32 max_instance_request_concurrency = 15;- Returns:
- This builder for chaining.
-
getSessionAffinity
public boolean getSessionAffinity()
Enable session affinity.
bool session_affinity = 19;- Specified by:
getSessionAffinityin interfaceRevisionTemplateOrBuilder- Returns:
- The sessionAffinity.
-
setSessionAffinity
public RevisionTemplate.Builder setSessionAffinity(boolean value)
Enable session affinity.
bool session_affinity = 19;- Parameters:
value- The sessionAffinity to set.- Returns:
- This builder for chaining.
-
clearSessionAffinity
public RevisionTemplate.Builder clearSessionAffinity()
Enable session affinity.
bool session_affinity = 19;- Returns:
- This builder for chaining.
-
setUnknownFields
public final RevisionTemplate.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
mergeUnknownFields
public final RevisionTemplate.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
-