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 type
google.cloud.run.v2.RevisionTemplate| Modifier and Type | Method and 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(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(int index,
Container.Builder builderForValue)
Holds the single container that defines the unit of execution for this
Revision.
|
RevisionTemplate.Builder |
addContainers(int index,
Container value)
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.Builder builderForValue)
A list of Volumes to make available to containers.
|
RevisionTemplate.Builder |
addVolumes(int index,
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.
|
RevisionTemplate.Builder |
addVolumes(Volume value)
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(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RevisionTemplate.Builder |
mergeFrom(com.google.protobuf.Message other) |
RevisionTemplate.Builder |
mergeFrom(RevisionTemplate 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.Builder builderForValue)
Holds the single container that defines the unit of execution for this
Revision.
|
RevisionTemplate.Builder |
setContainers(int index,
Container value)
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.Builder builderForValue)
Scaling settings for this Revision.
|
RevisionTemplate.Builder |
setScaling(RevisionScaling value)
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.Builder builderForValue)
Max allowed time for an instance to respond to a request.
|
RevisionTemplate.Builder |
setTimeout(com.google.protobuf.Duration value)
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.Builder builderForValue)
A list of Volumes to make available to containers.
|
RevisionTemplate.Builder |
setVolumes(int index,
Volume value)
A list of Volumes to make available to containers.
|
RevisionTemplate.Builder |
setVpcAccess(VpcAccess.Builder builderForValue)
VPC Access configuration to use for this Revision.
|
RevisionTemplate.Builder |
setVpcAccess(VpcAccess value)
VPC Access configuration to use for this Revision.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>public RevisionTemplate.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>public RevisionTemplate getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RevisionTemplate build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RevisionTemplate buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RevisionTemplate.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>public RevisionTemplate.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>public RevisionTemplate.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>public RevisionTemplate.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>public RevisionTemplate.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>public RevisionTemplate.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>public RevisionTemplate.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RevisionTemplate.Builder>public RevisionTemplate.Builder mergeFrom(RevisionTemplate other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>public RevisionTemplate.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RevisionTemplate.Builder>IOExceptionpublic 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) = { ... }getRevision in interface RevisionTemplateOrBuilderpublic 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) = { ... }getRevisionBytes in interface RevisionTemplateOrBuilderpublic 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) = { ... }value - The revision to set.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) = { ... }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) = { ... }value - The bytes for revision to set.public int getLabelsCount()
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;getLabelsCount in interface RevisionTemplateOrBuilderpublic 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;containsLabels in interface RevisionTemplateOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface RevisionTemplateOrBuilderpublic 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;getLabelsMap in interface RevisionTemplateOrBuilderpublic 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;getLabelsOrDefault in interface RevisionTemplateOrBuilderpublic 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;getLabelsOrThrow in interface RevisionTemplateOrBuilderpublic RevisionTemplate.Builder clearLabels()
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;@Deprecated public Map<String,String> getMutableLabels()
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;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;public int getAnnotationsCount()
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;getAnnotationsCount in interface RevisionTemplateOrBuilderpublic 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;containsAnnotations in interface RevisionTemplateOrBuilder@Deprecated public Map<String,String> getAnnotations()
getAnnotationsMap() instead.getAnnotations in interface RevisionTemplateOrBuilderpublic 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;getAnnotationsMap in interface RevisionTemplateOrBuilderpublic 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;getAnnotationsOrDefault in interface RevisionTemplateOrBuilderpublic 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;getAnnotationsOrThrow in interface RevisionTemplateOrBuilderpublic RevisionTemplate.Builder clearAnnotations()
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;@Deprecated public Map<String,String> getMutableAnnotations()
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;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;public boolean hasScaling()
Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4;hasScaling in interface RevisionTemplateOrBuilderpublic RevisionScaling getScaling()
Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4;getScaling in interface RevisionTemplateOrBuilderpublic RevisionTemplate.Builder setScaling(RevisionScaling value)
Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4;public RevisionTemplate.Builder setScaling(RevisionScaling.Builder builderForValue)
Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4;public RevisionTemplate.Builder mergeScaling(RevisionScaling value)
Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4;public RevisionTemplate.Builder clearScaling()
Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4;public RevisionScaling.Builder getScalingBuilder()
Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4;public RevisionScalingOrBuilder getScalingOrBuilder()
Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4;getScalingOrBuilder in interface RevisionTemplateOrBuilderpublic 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;hasVpcAccess in interface RevisionTemplateOrBuilderpublic 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;getVpcAccess in interface RevisionTemplateOrBuilderpublic 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;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;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;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;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;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;getVpcAccessOrBuilder in interface RevisionTemplateOrBuilderpublic boolean hasTimeout()
Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8;hasTimeout in interface RevisionTemplateOrBuilderpublic com.google.protobuf.Duration getTimeout()
Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8;getTimeout in interface RevisionTemplateOrBuilderpublic RevisionTemplate.Builder setTimeout(com.google.protobuf.Duration value)
Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8;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;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;public RevisionTemplate.Builder clearTimeout()
Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8;public com.google.protobuf.Duration.Builder getTimeoutBuilder()
Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8;public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8;getTimeoutOrBuilder in interface RevisionTemplateOrBuilderpublic 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;getServiceAccount in interface RevisionTemplateOrBuilderpublic 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;getServiceAccountBytes in interface RevisionTemplateOrBuilderpublic 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;value - The serviceAccount to set.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;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;value - The bytes for serviceAccount to set.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;getContainersList in interface RevisionTemplateOrBuilderpublic int getContainersCount()
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;getContainersCount in interface RevisionTemplateOrBuilderpublic 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;getContainers in interface RevisionTemplateOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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;getContainersOrBuilder in interface RevisionTemplateOrBuilderpublic 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;getContainersOrBuilderList in interface RevisionTemplateOrBuilderpublic Container.Builder addContainersBuilder()
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 10;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;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;public List<Volume> getVolumesList()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;getVolumesList in interface RevisionTemplateOrBuilderpublic int getVolumesCount()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;getVolumesCount in interface RevisionTemplateOrBuilderpublic Volume getVolumes(int index)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;getVolumes in interface RevisionTemplateOrBuilderpublic RevisionTemplate.Builder setVolumes(int index, Volume value)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;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;public RevisionTemplate.Builder addVolumes(Volume value)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;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;public RevisionTemplate.Builder addVolumes(Volume.Builder builderForValue)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;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;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;public RevisionTemplate.Builder clearVolumes()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;public RevisionTemplate.Builder removeVolumes(int index)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;public Volume.Builder getVolumesBuilder(int index)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;public VolumeOrBuilder getVolumesOrBuilder(int index)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;getVolumesOrBuilder in interface RevisionTemplateOrBuilderpublic List<? extends VolumeOrBuilder> getVolumesOrBuilderList()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;getVolumesOrBuilderList in interface RevisionTemplateOrBuilderpublic Volume.Builder addVolumesBuilder()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;public Volume.Builder addVolumesBuilder(int index)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;public List<Volume.Builder> getVolumesBuilderList()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11;public int getExecutionEnvironmentValue()
The sandbox environment to host this Revision.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 13;getExecutionEnvironmentValue in interface RevisionTemplateOrBuilderpublic RevisionTemplate.Builder setExecutionEnvironmentValue(int value)
The sandbox environment to host this Revision.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 13;value - The enum numeric value on the wire for executionEnvironment to set.public ExecutionEnvironment getExecutionEnvironment()
The sandbox environment to host this Revision.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 13;getExecutionEnvironment in interface RevisionTemplateOrBuilderpublic RevisionTemplate.Builder setExecutionEnvironment(ExecutionEnvironment value)
The sandbox environment to host this Revision.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 13;value - The executionEnvironment to set.public RevisionTemplate.Builder clearExecutionEnvironment()
The sandbox environment to host this Revision.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 13;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) = { ... }getEncryptionKey in interface RevisionTemplateOrBuilderpublic 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) = { ... }getEncryptionKeyBytes in interface RevisionTemplateOrBuilderpublic 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) = { ... }value - The encryptionKey to set.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) = { ... }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) = { ... }value - The bytes for encryptionKey to set.public int getMaxInstanceRequestConcurrency()
Sets the maximum number of requests that each serving instance can receive.
int32 max_instance_request_concurrency = 15;getMaxInstanceRequestConcurrency in interface RevisionTemplateOrBuilderpublic RevisionTemplate.Builder setMaxInstanceRequestConcurrency(int value)
Sets the maximum number of requests that each serving instance can receive.
int32 max_instance_request_concurrency = 15;value - The maxInstanceRequestConcurrency to set.public RevisionTemplate.Builder clearMaxInstanceRequestConcurrency()
Sets the maximum number of requests that each serving instance can receive.
int32 max_instance_request_concurrency = 15;public boolean getSessionAffinity()
Enable session affinity.
bool session_affinity = 19;getSessionAffinity in interface RevisionTemplateOrBuilderpublic RevisionTemplate.Builder setSessionAffinity(boolean value)
Enable session affinity.
bool session_affinity = 19;value - The sessionAffinity to set.public RevisionTemplate.Builder clearSessionAffinity()
Enable session affinity.
bool session_affinity = 19;public final RevisionTemplate.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>public final RevisionTemplate.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>Copyright © 2024 Google LLC. All rights reserved.