Package com.google.cloud.run.v2
Class RevisionTemplate
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.run.v2.RevisionTemplate
-
- All Implemented Interfaces:
RevisionTemplateOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class RevisionTemplate extends com.google.protobuf.GeneratedMessageV3 implements RevisionTemplateOrBuilder
RevisionTemplate describes the data a revision should have when created from a template.
Protobuf typegoogle.cloud.run.v2.RevisionTemplate
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RevisionTemplate.Builder
RevisionTemplate describes the data a revision should have when created from a template.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ANNOTATIONS_FIELD_NUMBER
static int
CONTAINERS_FIELD_NUMBER
static int
ENCRYPTION_KEY_FIELD_NUMBER
static int
EXECUTION_ENVIRONMENT_FIELD_NUMBER
static int
LABELS_FIELD_NUMBER
static int
MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER
static int
REVISION_FIELD_NUMBER
static int
SCALING_FIELD_NUMBER
static int
SERVICE_ACCOUNT_FIELD_NUMBER
static int
SESSION_AFFINITY_FIELD_NUMBER
static int
TIMEOUT_FIELD_NUMBER
static int
VOLUMES_FIELD_NUMBER
static int
VPC_ACCESS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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.boolean
equals(Object obj)
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.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.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.com.google.protobuf.Parser<RevisionTemplate>
getParserForType()
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.RevisionScalingOrBuilder
getScalingOrBuilder()
Scaling settings for this Revision.int
getSerializedSize()
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.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.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.VpcAccessOrBuilder
getVpcAccessOrBuilder()
VPC Access configuration to use for this Revision.int
hashCode()
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)
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(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 RevisionTemplate
parseFrom(ByteBuffer data)
static RevisionTemplate
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<RevisionTemplate>
parser()
RevisionTemplate.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
REVISION_FIELD_NUMBER
public static final int REVISION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANNOTATIONS_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCALING_FIELD_NUMBER
public static final int SCALING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VPC_ACCESS_FIELD_NUMBER
public static final int VPC_ACCESS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIMEOUT_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTAINERS_FIELD_NUMBER
public static final int CONTAINERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VOLUMES_FIELD_NUMBER
public static final int VOLUMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXECUTION_ENVIRONMENT_FIELD_NUMBER
public static final int EXECUTION_ENVIRONMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENCRYPTION_KEY_FIELD_NUMBER
public static final int ENCRYPTION_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER
public static final int MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SESSION_AFFINITY_FIELD_NUMBER
public static final int SESSION_AFFINITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getRevision
public String getRevision()
The unique name for the revision. If this field is omitted, it will be automatically generated based on the Service name.
string revision = 1 [(.google.api.resource_reference) = { ... }
- Specified by:
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.
-
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
-
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
-
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.
-
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.
-
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.
-
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.
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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.
-
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.
-
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.
-
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.
-
getSessionAffinity
public boolean getSessionAffinity()
Enable session affinity.
bool session_affinity = 19;
- Specified by:
getSessionAffinity
in interfaceRevisionTemplateOrBuilder
- Returns:
- The sessionAffinity.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RevisionTemplate parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RevisionTemplate parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RevisionTemplate parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RevisionTemplate parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RevisionTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RevisionTemplate parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RevisionTemplate parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RevisionTemplate parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RevisionTemplate parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RevisionTemplate parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static RevisionTemplate parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RevisionTemplate parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public RevisionTemplate.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static RevisionTemplate.Builder newBuilder()
-
newBuilder
public static RevisionTemplate.Builder newBuilder(RevisionTemplate prototype)
-
toBuilder
public RevisionTemplate.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RevisionTemplate.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static RevisionTemplate getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<RevisionTemplate> parser()
-
getParserForType
public com.google.protobuf.Parser<RevisionTemplate> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public RevisionTemplate getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-