publicfinalclass RevisionTemplateextendsGeneratedMessageV3implementsRevisionTemplateOrBuilder
RevisionTemplate describes the data a revision should have when created from
a template.
Protobuf type google.cloud.run.v2.RevisionTemplate
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ANNOTATIONS_FIELD_NUMBER
publicstaticfinalintANNOTATIONS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
CONTAINERS_FIELD_NUMBER
publicstaticfinalintCONTAINERS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
ENCRYPTION_KEY_FIELD_NUMBER
publicstaticfinalintENCRYPTION_KEY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
EXECUTION_ENVIRONMENT_FIELD_NUMBER
publicstaticfinalintEXECUTION_ENVIRONMENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
HEALTH_CHECK_DISABLED_FIELD_NUMBER
publicstaticfinalintHEALTH_CHECK_DISABLED_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
LABELS_FIELD_NUMBER
publicstaticfinalintLABELS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER
publicstaticfinalintMAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
REVISION_FIELD_NUMBER
publicstaticfinalintREVISION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SCALING_FIELD_NUMBER
publicstaticfinalintSCALING_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SERVICE_ACCOUNT_FIELD_NUMBER
publicstaticfinalintSERVICE_ACCOUNT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SESSION_AFFINITY_FIELD_NUMBER
publicstaticfinalintSESSION_AFFINITY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
TIMEOUT_FIELD_NUMBER
publicstaticfinalintTIMEOUT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
VOLUMES_FIELD_NUMBER
publicstaticfinalintVOLUMES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
VPC_ACCESS_FIELD_NUMBER
publicstaticfinalintVPC_ACCESS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticRevisionTemplategetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticRevisionTemplate.BuildernewBuilder()
newBuilder(RevisionTemplate prototype)
publicstaticRevisionTemplate.BuildernewBuilder(RevisionTemplateprototype)
publicstaticRevisionTemplateparseDelimitedFrom(InputStreaminput)
publicstaticRevisionTemplateparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticRevisionTemplateparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticRevisionTemplateparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticRevisionTemplateparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticRevisionTemplateparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticRevisionTemplateparseFrom(CodedInputStreaminput)
publicstaticRevisionTemplateparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticRevisionTemplateparseFrom(InputStreaminput)
publicstaticRevisionTemplateparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticRevisionTemplateparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticRevisionTemplateparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<RevisionTemplate>parser()
Methods
containsAnnotations(String key)
publicbooleancontainsAnnotations(Stringkey)
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];
| Parameter |
| Name |
Description |
key |
String
|
containsLabels(String key)
publicbooleancontainsLabels(Stringkey)
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];
| Parameter |
| Name |
Description |
key |
String
|
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAnnotations() (deprecated)
publicMap<String,String>getAnnotations()
getAnnotationsCount()
publicintgetAnnotationsCount()
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];
| Returns |
| Type |
Description |
int |
getAnnotationsMap()
publicMap<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];
getAnnotationsOrDefault(String key, String defaultValue)
publicStringgetAnnotationsOrDefault(Stringkey,StringdefaultValue)
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];
| Returns |
| Type |
Description |
String |
getAnnotationsOrThrow(String key)
publicStringgetAnnotationsOrThrow(Stringkey)
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];
| Parameter |
| Name |
Description |
key |
String
|
| Returns |
| Type |
Description |
String |
getContainers(int index)
publicContainergetContainers(intindex)
Holds the single container that defines the unit of execution for this
Revision.
repeated .google.cloud.run.v2.Container containers = 10;
| Parameter |
| Name |
Description |
index |
int
|
getContainersCount()
publicintgetContainersCount()
Holds the single container that defines the unit of execution for this
Revision.
repeated .google.cloud.run.v2.Container containers = 10;
| Returns |
| Type |
Description |
int |
getContainersList()
publicList<Container>getContainersList()
Holds the single container that defines the unit of execution for this
Revision.
repeated .google.cloud.run.v2.Container containers = 10;
getContainersOrBuilder(int index)
publicContainerOrBuildergetContainersOrBuilder(intindex)
Holds the single container that defines the unit of execution for this
Revision.
repeated .google.cloud.run.v2.Container containers = 10;
| Parameter |
| Name |
Description |
index |
int
|
getContainersOrBuilderList()
publicList<?extendsContainerOrBuilder>getContainersOrBuilderList()
Holds the single container that defines the unit of execution for this
Revision.
repeated .google.cloud.run.v2.Container containers = 10;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.run.v2.ContainerOrBuilder> |
getDefaultInstanceForType()
publicRevisionTemplategetDefaultInstanceForType()
getEncryptionKey()
publicStringgetEncryptionKey()
| Returns |
| Type |
Description |
String |
The encryptionKey.
|
getEncryptionKeyBytes()
publicByteStringgetEncryptionKeyBytes()
| Returns |
| Type |
Description |
ByteString |
The bytes for encryptionKey.
|
getExecutionEnvironment()
publicExecutionEnvironmentgetExecutionEnvironment()
Optional. The sandbox environment to host this Revision.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 13 [(.google.api.field_behavior) = OPTIONAL];
getExecutionEnvironmentValue()
publicintgetExecutionEnvironmentValue()
Optional. The sandbox environment to host this Revision.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for executionEnvironment.
|
getHealthCheckDisabled()
publicbooleangetHealthCheckDisabled()
Optional. Disables health checking containers during deployment.
bool health_check_disabled = 20 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The healthCheckDisabled.
|
getLabels() (deprecated)
publicMap<String,String>getLabels()
getLabelsCount()
publicintgetLabelsCount()
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];
| Returns |
| Type |
Description |
int |
getLabelsMap()
publicMap<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];
getLabelsOrDefault(String key, String defaultValue)
publicStringgetLabelsOrDefault(Stringkey,StringdefaultValue)
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];
| Returns |
| Type |
Description |
String |
getLabelsOrThrow(String key)
publicStringgetLabelsOrThrow(Stringkey)
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];
| Parameter |
| Name |
Description |
key |
String
|
| Returns |
| Type |
Description |
String |
getMaxInstanceRequestConcurrency()
publicintgetMaxInstanceRequestConcurrency()
Optional. Sets the maximum number of requests that each serving instance
can receive.
int32 max_instance_request_concurrency = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The maxInstanceRequestConcurrency.
|
getParserForType()
publicParser<RevisionTemplate>getParserForType()
Overrides
getRevision()
publicStringgetRevision()
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) = { ... }
| Returns |
| Type |
Description |
String |
The revision.
|
getRevisionBytes()
publicByteStringgetRevisionBytes()
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) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for revision.
|
getScaling()
publicRevisionScalinggetScaling()
Optional. Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL];
getScalingOrBuilder()
publicRevisionScalingOrBuildergetScalingOrBuilder()
Optional. Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL];
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getServiceAccount()
publicStringgetServiceAccount()
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];
| Returns |
| Type |
Description |
String |
The serviceAccount.
|
getServiceAccountBytes()
publicByteStringgetServiceAccountBytes()
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];
| Returns |
| Type |
Description |
ByteString |
The bytes for serviceAccount.
|
getSessionAffinity()
publicbooleangetSessionAffinity()
Optional. Enable session affinity.
bool session_affinity = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The sessionAffinity.
|
getTimeout()
publicDurationgetTimeout()
Optional. Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
Duration |
The timeout.
|
getTimeoutOrBuilder()
publicDurationOrBuildergetTimeoutOrBuilder()
Optional. Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL];
getVolumes(int index)
publicVolumegetVolumes(intindex)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
| Returns |
| Type |
Description |
Volume |
getVolumesCount()
publicintgetVolumesCount()
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
getVolumesList()
publicList<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];
getVolumesOrBuilder(int index)
publicVolumeOrBuildergetVolumesOrBuilder(intindex)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getVolumesOrBuilderList()
publicList<?extendsVolumeOrBuilder>getVolumesOrBuilderList()
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.run.v2.VolumeOrBuilder> |
getVpcAccess()
publicVpcAccessgetVpcAccess()
| Returns |
| Type |
Description |
VpcAccess |
The vpcAccess.
|
getVpcAccessOrBuilder()
publicVpcAccessOrBuildergetVpcAccessOrBuilder()
hasScaling()
publicbooleanhasScaling()
Optional. Scaling settings for this Revision.
.google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the scaling field is set.
|
hasTimeout()
publicbooleanhasTimeout()
Optional. Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the timeout field is set.
|
hasVpcAccess()
publicbooleanhasVpcAccess()
| Returns |
| Type |
Description |
boolean |
Whether the vpcAccess field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protectedMapFieldReflectionAccessorinternalGetMapFieldReflection(intnumber)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicRevisionTemplate.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedRevisionTemplate.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicRevisionTemplate.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides