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.Builder
addAllContainers(Iterable<? extends Container> values)
Holds the single container that defines the unit of execution for this Revision.RevisionTemplate.Builder
addAllVolumes(Iterable<? extends Volume> values)
A list of Volumes to make available to containers.RevisionTemplate.Builder
addContainers(int index, Container value)
Holds the single container that defines the unit of execution for this Revision.RevisionTemplate.Builder
addContainers(int index, Container.Builder builderForValue)
Holds the single container that defines the unit of execution for this Revision.RevisionTemplate.Builder
addContainers(Container value)
Holds the single container that defines the unit of execution for this Revision.RevisionTemplate.Builder
addContainers(Container.Builder builderForValue)
Holds the single container that defines the unit of execution for this Revision.Container.Builder
addContainersBuilder()
Holds the single container that defines the unit of execution for this Revision.Container.Builder
addContainersBuilder(int index)
Holds the single container that defines the unit of execution for this Revision.RevisionTemplate.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RevisionTemplate.Builder
addVolumes(int index, Volume value)
A list of Volumes to make available to containers.RevisionTemplate.Builder
addVolumes(int index, Volume.Builder builderForValue)
A list of Volumes to make available to containers.RevisionTemplate.Builder
addVolumes(Volume value)
A list of Volumes to make available to containers.RevisionTemplate.Builder
addVolumes(Volume.Builder builderForValue)
A list of Volumes to make available to containers.Volume.Builder
addVolumesBuilder()
A list of Volumes to make available to containers.Volume.Builder
addVolumesBuilder(int index)
A list of Volumes to make available to containers.RevisionTemplate
build()
RevisionTemplate
buildPartial()
RevisionTemplate.Builder
clear()
RevisionTemplate.Builder
clearAnnotations()
RevisionTemplate.Builder
clearContainers()
Holds the single container that defines the unit of execution for this Revision.RevisionTemplate.Builder
clearEncryptionKey()
A reference to a customer managed encryption key (CMEK) to use to encrypt this container image.RevisionTemplate.Builder
clearExecutionEnvironment()
The sandbox environment to host this Revision.RevisionTemplate.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
RevisionTemplate.Builder
clearLabels()
RevisionTemplate.Builder
clearMaxInstanceRequestConcurrency()
Sets the maximum number of requests that each serving instance can receive.RevisionTemplate.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
RevisionTemplate.Builder
clearRevision()
The unique name for the revision.RevisionTemplate.Builder
clearScaling()
Scaling settings for this Revision.RevisionTemplate.Builder
clearServiceAccount()
Email address of the IAM service account associated with the revision of the service.RevisionTemplate.Builder
clearSessionAffinity()
Enable session affinity.RevisionTemplate.Builder
clearTimeout()
Max allowed time for an instance to respond to a request.RevisionTemplate.Builder
clearVolumes()
A list of Volumes to make available to containers.RevisionTemplate.Builder
clearVpcAccess()
VPC Access configuration to use for this Revision.RevisionTemplate.Builder
clone()
boolean
containsAnnotations(String key)
Unstructured key value map that may be set by external tools to store and arbitrary metadata.boolean
containsLabels(String key)
Unstructured key value map that can be used to organize and categorize objects.Map<String,String>
getAnnotations()
Deprecated.int
getAnnotationsCount()
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.String
getAnnotationsOrDefault(String key, String defaultValue)
Unstructured key value map that may be set by external tools to store and arbitrary metadata.String
getAnnotationsOrThrow(String key)
Unstructured key value map that may be set by external tools to store and arbitrary metadata.Container
getContainers(int index)
Holds the single container that defines the unit of execution for this Revision.Container.Builder
getContainersBuilder(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.int
getContainersCount()
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.ContainerOrBuilder
getContainersOrBuilder(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.RevisionTemplate
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getEncryptionKey()
A reference to a customer managed encryption key (CMEK) to use to encrypt this container image.com.google.protobuf.ByteString
getEncryptionKeyBytes()
A reference to a customer managed encryption key (CMEK) to use to encrypt this container image.ExecutionEnvironment
getExecutionEnvironment()
The sandbox environment to host this Revision.int
getExecutionEnvironmentValue()
The sandbox environment to host this Revision.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
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.String
getLabelsOrDefault(String key, String defaultValue)
Unstructured key value map that can be used to organize and categorize objects.String
getLabelsOrThrow(String key)
Unstructured key value map that can be used to organize and categorize objects.int
getMaxInstanceRequestConcurrency()
Sets the maximum number of requests that each serving instance can receive.Map<String,String>
getMutableAnnotations()
Deprecated.Map<String,String>
getMutableLabels()
Deprecated.String
getRevision()
The unique name for the revision.com.google.protobuf.ByteString
getRevisionBytes()
The unique name for the revision.RevisionScaling
getScaling()
Scaling settings for this Revision.RevisionScaling.Builder
getScalingBuilder()
Scaling settings for this Revision.RevisionScalingOrBuilder
getScalingOrBuilder()
Scaling settings for this Revision.String
getServiceAccount()
Email address of the IAM service account associated with the revision of the service.com.google.protobuf.ByteString
getServiceAccountBytes()
Email address of the IAM service account associated with the revision of the service.boolean
getSessionAffinity()
Enable session affinity.com.google.protobuf.Duration
getTimeout()
Max allowed time for an instance to respond to a request.com.google.protobuf.Duration.Builder
getTimeoutBuilder()
Max allowed time for an instance to respond to a request.com.google.protobuf.DurationOrBuilder
getTimeoutOrBuilder()
Max allowed time for an instance to respond to a request.Volume
getVolumes(int index)
A list of Volumes to make available to containers.Volume.Builder
getVolumesBuilder(int index)
A list of Volumes to make available to containers.List<Volume.Builder>
getVolumesBuilderList()
A list of Volumes to make available to containers.int
getVolumesCount()
A list of Volumes to make available to containers.List<Volume>
getVolumesList()
A list of Volumes to make available to containers.VolumeOrBuilder
getVolumesOrBuilder(int index)
A list of Volumes to make available to containers.List<? extends VolumeOrBuilder>
getVolumesOrBuilderList()
A list of Volumes to make available to containers.VpcAccess
getVpcAccess()
VPC Access configuration to use for this Revision.VpcAccess.Builder
getVpcAccessBuilder()
VPC Access configuration to use for this Revision.VpcAccessOrBuilder
getVpcAccessOrBuilder()
VPC Access configuration to use for this Revision.boolean
hasScaling()
Scaling settings for this Revision.boolean
hasTimeout()
Max allowed time for an instance to respond to a request.boolean
hasVpcAccess()
VPC Access configuration to use for this Revision.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
RevisionTemplate.Builder
mergeFrom(RevisionTemplate other)
RevisionTemplate.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RevisionTemplate.Builder
mergeFrom(com.google.protobuf.Message other)
RevisionTemplate.Builder
mergeScaling(RevisionScaling value)
Scaling settings for this Revision.RevisionTemplate.Builder
mergeTimeout(com.google.protobuf.Duration value)
Max allowed time for an instance to respond to a request.RevisionTemplate.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RevisionTemplate.Builder
mergeVpcAccess(VpcAccess value)
VPC Access configuration to use for this Revision.RevisionTemplate.Builder
putAllAnnotations(Map<String,String> values)
Unstructured key value map that may be set by external tools to store and arbitrary metadata.RevisionTemplate.Builder
putAllLabels(Map<String,String> values)
Unstructured key value map that can be used to organize and categorize objects.RevisionTemplate.Builder
putAnnotations(String key, String value)
Unstructured key value map that may be set by external tools to store and arbitrary metadata.RevisionTemplate.Builder
putLabels(String key, String value)
Unstructured key value map that can be used to organize and categorize objects.RevisionTemplate.Builder
removeAnnotations(String key)
Unstructured key value map that may be set by external tools to store and arbitrary metadata.RevisionTemplate.Builder
removeContainers(int index)
Holds the single container that defines the unit of execution for this Revision.RevisionTemplate.Builder
removeLabels(String key)
Unstructured key value map that can be used to organize and categorize objects.RevisionTemplate.Builder
removeVolumes(int index)
A list of Volumes to make available to containers.RevisionTemplate.Builder
setContainers(int index, Container value)
Holds the single container that defines the unit of execution for this Revision.RevisionTemplate.Builder
setContainers(int index, Container.Builder builderForValue)
Holds the single container that defines the unit of execution for this Revision.RevisionTemplate.Builder
setEncryptionKey(String value)
A reference to a customer managed encryption key (CMEK) to use to encrypt this container image.RevisionTemplate.Builder
setEncryptionKeyBytes(com.google.protobuf.ByteString value)
A reference to a customer managed encryption key (CMEK) to use to encrypt this container image.RevisionTemplate.Builder
setExecutionEnvironment(ExecutionEnvironment value)
The sandbox environment to host this Revision.RevisionTemplate.Builder
setExecutionEnvironmentValue(int value)
The sandbox environment to host this Revision.RevisionTemplate.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RevisionTemplate.Builder
setMaxInstanceRequestConcurrency(int value)
Sets the maximum number of requests that each serving instance can receive.RevisionTemplate.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
RevisionTemplate.Builder
setRevision(String value)
The unique name for the revision.RevisionTemplate.Builder
setRevisionBytes(com.google.protobuf.ByteString value)
The unique name for the revision.RevisionTemplate.Builder
setScaling(RevisionScaling value)
Scaling settings for this Revision.RevisionTemplate.Builder
setScaling(RevisionScaling.Builder builderForValue)
Scaling settings for this Revision.RevisionTemplate.Builder
setServiceAccount(String value)
Email address of the IAM service account associated with the revision of the service.RevisionTemplate.Builder
setServiceAccountBytes(com.google.protobuf.ByteString value)
Email address of the IAM service account associated with the revision of the service.RevisionTemplate.Builder
setSessionAffinity(boolean value)
Enable session affinity.RevisionTemplate.Builder
setTimeout(com.google.protobuf.Duration value)
Max allowed time for an instance to respond to a request.RevisionTemplate.Builder
setTimeout(com.google.protobuf.Duration.Builder builderForValue)
Max allowed time for an instance to respond to a request.RevisionTemplate.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RevisionTemplate.Builder
setVolumes(int index, Volume value)
A list of Volumes to make available to containers.RevisionTemplate.Builder
setVolumes(int index, Volume.Builder builderForValue)
A list of Volumes to make available to containers.RevisionTemplate.Builder
setVpcAccess(VpcAccess value)
VPC Access configuration to use for this Revision.RevisionTemplate.Builder
setVpcAccess(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
clear
public RevisionTemplate.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
getDefaultInstanceForType
public RevisionTemplate getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RevisionTemplate build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RevisionTemplate buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RevisionTemplate.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
setField
public RevisionTemplate.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
clearField
public RevisionTemplate.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
clearOneof
public RevisionTemplate.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
setRepeatedField
public RevisionTemplate.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
addRepeatedField
public RevisionTemplate.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
mergeFrom
public RevisionTemplate.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RevisionTemplate.Builder>
-
mergeFrom
public RevisionTemplate.Builder mergeFrom(RevisionTemplate other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getRevision
in 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:
getRevisionBytes
in 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:RevisionTemplateOrBuilder
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:
getLabelsCount
in 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:
containsLabels
in interfaceRevisionTemplateOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in 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:
getLabelsMap
in 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:
getLabelsOrDefault
in 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:
getLabelsOrThrow
in 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:RevisionTemplateOrBuilder
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:
getAnnotationsCount
in 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:
containsAnnotations
in interfaceRevisionTemplateOrBuilder
-
getAnnotations
@Deprecated public Map<String,String> getAnnotations()
Deprecated.UsegetAnnotationsMap()
instead.- Specified by:
getAnnotations
in 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:
getAnnotationsMap
in 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:
getAnnotationsOrDefault
in 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:
getAnnotationsOrThrow
in 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:
hasScaling
in 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:
getScaling
in 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:
getScalingOrBuilder
in 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:
hasVpcAccess
in 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:
getVpcAccess
in 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:
getVpcAccessOrBuilder
in interfaceRevisionTemplateOrBuilder
-
hasTimeout
public boolean hasTimeout()
Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8;
- Specified by:
hasTimeout
in 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:
getTimeout
in 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:
getTimeoutOrBuilder
in 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:
getServiceAccount
in 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:
getServiceAccountBytes
in 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:
getContainersList
in 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:
getContainersCount
in 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:
getContainers
in 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:
getContainersOrBuilder
in 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:
getContainersOrBuilderList
in 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:
getVolumesList
in interfaceRevisionTemplateOrBuilder
-
getVolumesCount
public int getVolumesCount()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;
- Specified by:
getVolumesCount
in 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:
getVolumes
in 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:
getVolumesOrBuilder
in 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:
getVolumesOrBuilderList
in 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:
getExecutionEnvironmentValue
in 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:
getExecutionEnvironment
in 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:
getEncryptionKey
in 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:
getEncryptionKeyBytes
in 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:
getMaxInstanceRequestConcurrency
in 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:
getSessionAffinity
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
mergeUnknownFields
public final RevisionTemplate.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
-
-