public final class RevisionTemplate extends com.google.protobuf.GeneratedMessageV3 implements RevisionTemplateOrBuilder
RevisionTemplate describes the data a revision should have when created from a template.Protobuf type
google.cloud.run.v2.RevisionTemplate| Modifier and Type | Class and Description |
|---|---|
static class |
RevisionTemplate.Builder
RevisionTemplate describes the data a revision should have when created from
a template.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ANNOTATIONS_FIELD_NUMBER |
static int |
CONTAINERS_FIELD_NUMBER |
static int |
ENCRYPTION_KEY_FIELD_NUMBER |
static int |
ENCRYPTION_KEY_REVOCATION_ACTION_FIELD_NUMBER |
static int |
ENCRYPTION_KEY_SHUTDOWN_DURATION_FIELD_NUMBER |
static int |
EXECUTION_ENVIRONMENT_FIELD_NUMBER |
static int |
GPU_ZONAL_REDUNDANCY_DISABLED_FIELD_NUMBER |
static int |
HEALTH_CHECK_DISABLED_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER |
static int |
NODE_SELECTOR_FIELD_NUMBER |
static int |
REVISION_FIELD_NUMBER |
static int |
SCALING_FIELD_NUMBER |
static int |
SERVICE_ACCOUNT_FIELD_NUMBER |
static int |
SERVICE_MESH_FIELD_NUMBER |
static int |
SESSION_AFFINITY_FIELD_NUMBER |
static int |
TIMEOUT_FIELD_NUMBER |
static int |
VOLUMES_FIELD_NUMBER |
static int |
VPC_ACCESS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAnnotations(String key)
Optional.
|
boolean |
containsLabels(String key)
Optional.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAnnotations()
Deprecated.
|
int |
getAnnotationsCount()
Optional.
|
Map<String,String> |
getAnnotationsMap()
Optional.
|
String |
getAnnotationsOrDefault(String key,
String defaultValue)
Optional.
|
String |
getAnnotationsOrThrow(String key)
Optional.
|
Container |
getContainers(int index)
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.
|
static RevisionTemplate |
getDefaultInstance() |
RevisionTemplate |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
EncryptionKeyRevocationAction |
getEncryptionKeyRevocationAction()
Optional.
|
int |
getEncryptionKeyRevocationActionValue()
Optional.
|
com.google.protobuf.Duration |
getEncryptionKeyShutdownDuration()
Optional.
|
com.google.protobuf.DurationOrBuilder |
getEncryptionKeyShutdownDurationOrBuilder()
Optional.
|
ExecutionEnvironment |
getExecutionEnvironment()
Optional.
|
int |
getExecutionEnvironmentValue()
Optional.
|
boolean |
getGpuZonalRedundancyDisabled()
Optional.
|
boolean |
getHealthCheckDisabled()
Optional.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Optional.
|
Map<String,String> |
getLabelsMap()
Optional.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Optional.
|
String |
getLabelsOrThrow(String key)
Optional.
|
int |
getMaxInstanceRequestConcurrency()
Optional.
|
NodeSelector |
getNodeSelector()
Optional.
|
NodeSelectorOrBuilder |
getNodeSelectorOrBuilder()
Optional.
|
com.google.protobuf.Parser<RevisionTemplate> |
getParserForType() |
String |
getRevision()
Optional.
|
com.google.protobuf.ByteString |
getRevisionBytes()
Optional.
|
RevisionScaling |
getScaling()
Optional.
|
RevisionScalingOrBuilder |
getScalingOrBuilder()
Optional.
|
int |
getSerializedSize() |
String |
getServiceAccount()
Optional.
|
com.google.protobuf.ByteString |
getServiceAccountBytes()
Optional.
|
ServiceMesh |
getServiceMesh()
Optional.
|
ServiceMeshOrBuilder |
getServiceMeshOrBuilder()
Optional.
|
boolean |
getSessionAffinity()
Optional.
|
com.google.protobuf.Duration |
getTimeout()
Optional.
|
com.google.protobuf.DurationOrBuilder |
getTimeoutOrBuilder()
Optional.
|
Volume |
getVolumes(int index)
Optional.
|
int |
getVolumesCount()
Optional.
|
List<Volume> |
getVolumesList()
Optional.
|
VolumeOrBuilder |
getVolumesOrBuilder(int index)
Optional.
|
List<? extends VolumeOrBuilder> |
getVolumesOrBuilderList()
Optional.
|
VpcAccess |
getVpcAccess()
Optional.
|
VpcAccessOrBuilder |
getVpcAccessOrBuilder()
Optional.
|
boolean |
hasEncryptionKeyShutdownDuration()
Optional.
|
boolean |
hasGpuZonalRedundancyDisabled()
Optional.
|
int |
hashCode() |
boolean |
hasNodeSelector()
Optional.
|
boolean |
hasScaling()
Optional.
|
boolean |
hasServiceMesh()
Optional.
|
boolean |
hasTimeout()
Optional.
|
boolean |
hasVpcAccess()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static RevisionTemplate.Builder |
newBuilder() |
static RevisionTemplate.Builder |
newBuilder(RevisionTemplate prototype) |
RevisionTemplate.Builder |
newBuilderForType() |
protected RevisionTemplate.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static RevisionTemplate |
parseDelimitedFrom(InputStream input) |
static RevisionTemplate |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RevisionTemplate |
parseFrom(byte[] data) |
static RevisionTemplate |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RevisionTemplate |
parseFrom(ByteBuffer data) |
static RevisionTemplate |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RevisionTemplate |
parseFrom(com.google.protobuf.ByteString data) |
static RevisionTemplate |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RevisionTemplate |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RevisionTemplate |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RevisionTemplate |
parseFrom(InputStream input) |
static RevisionTemplate |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RevisionTemplate> |
parser() |
RevisionTemplate.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int REVISION_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER
public static final int SCALING_FIELD_NUMBER
public static final int VPC_ACCESS_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
public static final int CONTAINERS_FIELD_NUMBER
public static final int VOLUMES_FIELD_NUMBER
public static final int EXECUTION_ENVIRONMENT_FIELD_NUMBER
public static final int ENCRYPTION_KEY_FIELD_NUMBER
public static final int MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER
public static final int SERVICE_MESH_FIELD_NUMBER
public static final int ENCRYPTION_KEY_REVOCATION_ACTION_FIELD_NUMBER
public static final int ENCRYPTION_KEY_SHUTDOWN_DURATION_FIELD_NUMBER
public static final int SESSION_AFFINITY_FIELD_NUMBER
public static final int HEALTH_CHECK_DISABLED_FIELD_NUMBER
public static final int NODE_SELECTOR_FIELD_NUMBER
public static final int GPU_ZONAL_REDUNDANCY_DISABLED_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getRevision()
Optional. 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.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getRevision in interface RevisionTemplateOrBuilderpublic com.google.protobuf.ByteString getRevisionBytes()
Optional. 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.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getRevisionBytes in interface RevisionTemplateOrBuilderpublic int getLabelsCount()
RevisionTemplateOrBuilderOptional. 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 [(.google.api.field_behavior) = OPTIONAL];getLabelsCount in interface RevisionTemplateOrBuilderpublic boolean containsLabels(String key)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];containsLabels in interface RevisionTemplateOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface RevisionTemplateOrBuilderpublic Map<String,String> getLabelsMap()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];getLabelsMap in interface RevisionTemplateOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];getLabelsOrDefault in interface RevisionTemplateOrBuilderpublic String getLabelsOrThrow(String key)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];getLabelsOrThrow in interface RevisionTemplateOrBuilderpublic int getAnnotationsCount()
RevisionTemplateOrBuilderOptional. 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 [(.google.api.field_behavior) = OPTIONAL];
getAnnotationsCount in interface RevisionTemplateOrBuilderpublic boolean containsAnnotations(String key)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
containsAnnotations in interface RevisionTemplateOrBuilder@Deprecated public Map<String,String> getAnnotations()
getAnnotationsMap() instead.getAnnotations in interface RevisionTemplateOrBuilderpublic Map<String,String> getAnnotationsMap()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
getAnnotationsMap in interface RevisionTemplateOrBuilderpublic String getAnnotationsOrDefault(String key, String defaultValue)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
getAnnotationsOrDefault in interface RevisionTemplateOrBuilderpublic String getAnnotationsOrThrow(String key)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
getAnnotationsOrThrow in interface RevisionTemplateOrBuilderpublic boolean hasScaling()
Optional. Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL];
hasScaling in interface RevisionTemplateOrBuilderpublic RevisionScaling getScaling()
Optional. Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL];
getScaling in interface RevisionTemplateOrBuilderpublic RevisionScalingOrBuilder getScalingOrBuilder()
Optional. Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL];
getScalingOrBuilder in interface RevisionTemplateOrBuilderpublic boolean hasVpcAccess()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
hasVpcAccess in interface RevisionTemplateOrBuilderpublic VpcAccess getVpcAccess()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
getVpcAccess in interface RevisionTemplateOrBuilderpublic VpcAccessOrBuilder getVpcAccessOrBuilder()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
getVpcAccessOrBuilder in interface RevisionTemplateOrBuilderpublic boolean hasTimeout()
Optional. Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL];hasTimeout in interface RevisionTemplateOrBuilderpublic com.google.protobuf.Duration getTimeout()
Optional. Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL];getTimeout in interface RevisionTemplateOrBuilderpublic com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
Optional. Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL];getTimeoutOrBuilder in interface RevisionTemplateOrBuilderpublic String getServiceAccount()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];getServiceAccount in interface RevisionTemplateOrBuilderpublic com.google.protobuf.ByteString getServiceAccountBytes()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];getServiceAccountBytes in interface RevisionTemplateOrBuilderpublic 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 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 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 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<Volume> getVolumesList()
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL];
getVolumesList in interface RevisionTemplateOrBuilderpublic List<? extends VolumeOrBuilder> getVolumesOrBuilderList()
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL];
getVolumesOrBuilderList in interface RevisionTemplateOrBuilderpublic int getVolumesCount()
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL];
getVolumesCount in interface RevisionTemplateOrBuilderpublic Volume getVolumes(int index)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL];
getVolumes in interface RevisionTemplateOrBuilderpublic VolumeOrBuilder getVolumesOrBuilder(int index)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL];
getVolumesOrBuilder in interface RevisionTemplateOrBuilderpublic int getExecutionEnvironmentValue()
Optional. The sandbox environment to host this Revision.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 13 [(.google.api.field_behavior) = OPTIONAL];
getExecutionEnvironmentValue in interface RevisionTemplateOrBuilderpublic ExecutionEnvironment getExecutionEnvironment()
Optional. The sandbox environment to host this Revision.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 13 [(.google.api.field_behavior) = OPTIONAL];
getExecutionEnvironment in interface RevisionTemplateOrBuilderpublic 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 int getMaxInstanceRequestConcurrency()
Optional. Sets the maximum number of requests that each serving instance can receive. If not specified or 0, concurrency defaults to 80 when requested `CPU >= 1` and defaults to 1 when requested `CPU < 1`.
int32 max_instance_request_concurrency = 15 [(.google.api.field_behavior) = OPTIONAL];
getMaxInstanceRequestConcurrency in interface RevisionTemplateOrBuilderpublic boolean hasServiceMesh()
Optional. Enables service mesh connectivity.
.google.cloud.run.v2.ServiceMesh service_mesh = 16 [(.google.api.field_behavior) = OPTIONAL];
hasServiceMesh in interface RevisionTemplateOrBuilderpublic ServiceMesh getServiceMesh()
Optional. Enables service mesh connectivity.
.google.cloud.run.v2.ServiceMesh service_mesh = 16 [(.google.api.field_behavior) = OPTIONAL];
getServiceMesh in interface RevisionTemplateOrBuilderpublic ServiceMeshOrBuilder getServiceMeshOrBuilder()
Optional. Enables service mesh connectivity.
.google.cloud.run.v2.ServiceMesh service_mesh = 16 [(.google.api.field_behavior) = OPTIONAL];
getServiceMeshOrBuilder in interface RevisionTemplateOrBuilderpublic int getEncryptionKeyRevocationActionValue()
Optional. The action to take if the encryption key is revoked.
.google.cloud.run.v2.EncryptionKeyRevocationAction encryption_key_revocation_action = 17 [(.google.api.field_behavior) = OPTIONAL];
getEncryptionKeyRevocationActionValue in interface RevisionTemplateOrBuilderpublic EncryptionKeyRevocationAction getEncryptionKeyRevocationAction()
Optional. The action to take if the encryption key is revoked.
.google.cloud.run.v2.EncryptionKeyRevocationAction encryption_key_revocation_action = 17 [(.google.api.field_behavior) = OPTIONAL];
getEncryptionKeyRevocationAction in interface RevisionTemplateOrBuilderpublic boolean hasEncryptionKeyShutdownDuration()
Optional. If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.
.google.protobuf.Duration encryption_key_shutdown_duration = 18 [(.google.api.field_behavior) = OPTIONAL];
hasEncryptionKeyShutdownDuration in interface RevisionTemplateOrBuilderpublic com.google.protobuf.Duration getEncryptionKeyShutdownDuration()
Optional. If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.
.google.protobuf.Duration encryption_key_shutdown_duration = 18 [(.google.api.field_behavior) = OPTIONAL];
getEncryptionKeyShutdownDuration in interface RevisionTemplateOrBuilderpublic com.google.protobuf.DurationOrBuilder getEncryptionKeyShutdownDurationOrBuilder()
Optional. If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.
.google.protobuf.Duration encryption_key_shutdown_duration = 18 [(.google.api.field_behavior) = OPTIONAL];
getEncryptionKeyShutdownDurationOrBuilder in interface RevisionTemplateOrBuilderpublic boolean getSessionAffinity()
Optional. Enable session affinity.
bool session_affinity = 19 [(.google.api.field_behavior) = OPTIONAL];getSessionAffinity in interface RevisionTemplateOrBuilderpublic boolean getHealthCheckDisabled()
Optional. Disables health checking containers during deployment.
bool health_check_disabled = 20 [(.google.api.field_behavior) = OPTIONAL];getHealthCheckDisabled in interface RevisionTemplateOrBuilderpublic boolean hasNodeSelector()
Optional. The node selector for the revision template.
.google.cloud.run.v2.NodeSelector node_selector = 21 [(.google.api.field_behavior) = OPTIONAL];
hasNodeSelector in interface RevisionTemplateOrBuilderpublic NodeSelector getNodeSelector()
Optional. The node selector for the revision template.
.google.cloud.run.v2.NodeSelector node_selector = 21 [(.google.api.field_behavior) = OPTIONAL];
getNodeSelector in interface RevisionTemplateOrBuilderpublic NodeSelectorOrBuilder getNodeSelectorOrBuilder()
Optional. The node selector for the revision template.
.google.cloud.run.v2.NodeSelector node_selector = 21 [(.google.api.field_behavior) = OPTIONAL];
getNodeSelectorOrBuilder in interface RevisionTemplateOrBuilderpublic boolean hasGpuZonalRedundancyDisabled()
Optional. True if GPU zonal redundancy is disabled on this revision.
optional bool gpu_zonal_redundancy_disabled = 24 [(.google.api.field_behavior) = OPTIONAL];
hasGpuZonalRedundancyDisabled in interface RevisionTemplateOrBuilderpublic boolean getGpuZonalRedundancyDisabled()
Optional. True if GPU zonal redundancy is disabled on this revision.
optional bool gpu_zonal_redundancy_disabled = 24 [(.google.api.field_behavior) = OPTIONAL];
getGpuZonalRedundancyDisabled in interface RevisionTemplateOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RevisionTemplate parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RevisionTemplate parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RevisionTemplate parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RevisionTemplate parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RevisionTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RevisionTemplate parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RevisionTemplate parseFrom(InputStream input) throws IOException
IOExceptionpublic static RevisionTemplate parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RevisionTemplate parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RevisionTemplate parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RevisionTemplate parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RevisionTemplate parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RevisionTemplate.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RevisionTemplate.Builder newBuilder()
public static RevisionTemplate.Builder newBuilder(RevisionTemplate prototype)
public RevisionTemplate.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RevisionTemplate.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RevisionTemplate getDefaultInstance()
public static com.google.protobuf.Parser<RevisionTemplate> parser()
public com.google.protobuf.Parser<RevisionTemplate> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RevisionTemplate getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.