public final class Revision extends com.google.protobuf.GeneratedMessageV3 implements RevisionOrBuilder
A Revision is an immutable snapshot of code and configuration. A Revision references a container image. Revisions are only created by updates to its parent Service.Protobuf type
google.cloud.run.v2.Revision| Modifier and Type | Class and Description |
|---|---|
static class |
Revision.Builder
A Revision is an immutable snapshot of code and configuration.
|
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 | Method and Description |
|---|---|
boolean |
containsAnnotations(String key)
Output only.
|
boolean |
containsLabels(String key)
Output only.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAnnotations()
Deprecated.
|
int |
getAnnotationsCount()
Output only.
|
Map<String,String> |
getAnnotationsMap()
Output only.
|
String |
getAnnotationsOrDefault(String key,
String defaultValue)
Output only.
|
String |
getAnnotationsOrThrow(String key)
Output only.
|
Condition |
getConditions(int index)
Output only.
|
int |
getConditionsCount()
Output only.
|
List<Condition> |
getConditionsList()
Output only.
|
ConditionOrBuilder |
getConditionsOrBuilder(int index)
Output only.
|
List<? extends ConditionOrBuilder> |
getConditionsOrBuilderList()
Output only.
|
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.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
String |
getCreator()
Output only.
|
com.google.protobuf.ByteString |
getCreatorBytes()
Output only.
|
static Revision |
getDefaultInstance() |
Revision |
getDefaultInstanceForType() |
com.google.protobuf.Timestamp |
getDeleteTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getDeleteTimeOrBuilder()
Output only.
|
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()
The action to take if the encryption key is revoked.
|
int |
getEncryptionKeyRevocationActionValue()
The action to take if the encryption key is revoked.
|
com.google.protobuf.Duration |
getEncryptionKeyShutdownDuration()
If encryption_key_revocation_action is SHUTDOWN, the duration before
shutting down all instances.
|
com.google.protobuf.DurationOrBuilder |
getEncryptionKeyShutdownDurationOrBuilder()
If encryption_key_revocation_action is SHUTDOWN, the duration before
shutting down all instances.
|
String |
getEtag()
Output only.
|
com.google.protobuf.ByteString |
getEtagBytes()
Output only.
|
ExecutionEnvironment |
getExecutionEnvironment()
The execution environment being used to host this Revision.
|
int |
getExecutionEnvironmentValue()
The execution environment being used to host this Revision.
|
com.google.protobuf.Timestamp |
getExpireTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getExpireTimeOrBuilder()
Output only.
|
long |
getGeneration()
Output only.
|
boolean |
getGpuZonalRedundancyDisabled()
Optional.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Output only.
|
Map<String,String> |
getLabelsMap()
Output only.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Output only.
|
String |
getLabelsOrThrow(String key)
Output only.
|
com.google.api.LaunchStage |
getLaunchStage()
The least stable launch stage needed to create this resource, as defined by
[Google Cloud Platform Launch
Stages](https://cloud.google.com/terms/launch-stages).
|
int |
getLaunchStageValue()
The least stable launch stage needed to create this resource, as defined by
[Google Cloud Platform Launch
Stages](https://cloud.google.com/terms/launch-stages).
|
String |
getLogUri()
Output only.
|
com.google.protobuf.ByteString |
getLogUriBytes()
Output only.
|
int |
getMaxInstanceRequestConcurrency()
Sets the maximum number of requests that each serving instance can receive.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
NodeSelector |
getNodeSelector()
The node selector for the revision.
|
NodeSelectorOrBuilder |
getNodeSelectorOrBuilder()
The node selector for the revision.
|
long |
getObservedGeneration()
Output only.
|
com.google.protobuf.Parser<Revision> |
getParserForType() |
boolean |
getReconciling()
Output only.
|
boolean |
getSatisfiesPzs()
Output only.
|
RevisionScaling |
getScaling()
Scaling settings for this revision.
|
RevisionScalingOrBuilder |
getScalingOrBuilder()
Scaling settings for this revision.
|
RevisionScalingStatus |
getScalingStatus()
Output only.
|
RevisionScalingStatusOrBuilder |
getScalingStatusOrBuilder()
Output only.
|
int |
getSerializedSize() |
String |
getService()
Output only.
|
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.
|
com.google.protobuf.ByteString |
getServiceBytes()
Output only.
|
ServiceMesh |
getServiceMesh()
Enables service mesh connectivity.
|
ServiceMeshOrBuilder |
getServiceMeshOrBuilder()
Enables service mesh connectivity.
|
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.
|
String |
getUid()
Output only.
|
com.google.protobuf.ByteString |
getUidBytes()
Output only.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
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 for this Revision.
|
VpcAccessOrBuilder |
getVpcAccessOrBuilder()
VPC Access configuration for this Revision.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasDeleteTime()
Output only.
|
boolean |
hasEncryptionKeyShutdownDuration()
If encryption_key_revocation_action is SHUTDOWN, the duration before
shutting down all instances.
|
boolean |
hasExpireTime()
Output only.
|
boolean |
hasGpuZonalRedundancyDisabled()
Optional.
|
int |
hashCode() |
boolean |
hasNodeSelector()
The node selector for the revision.
|
boolean |
hasScaling()
Scaling settings for this revision.
|
boolean |
hasScalingStatus()
Output only.
|
boolean |
hasServiceMesh()
Enables service mesh connectivity.
|
boolean |
hasTimeout()
Max allowed time for an instance to respond to a request.
|
boolean |
hasUpdateTime()
Output only.
|
boolean |
hasVpcAccess()
VPC Access configuration for this Revision.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static Revision.Builder |
newBuilder() |
static Revision.Builder |
newBuilder(Revision prototype) |
Revision.Builder |
newBuilderForType() |
protected Revision.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Revision |
parseDelimitedFrom(InputStream input) |
static Revision |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Revision |
parseFrom(byte[] data) |
static Revision |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Revision |
parseFrom(ByteBuffer data) |
static Revision |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Revision |
parseFrom(com.google.protobuf.ByteString data) |
static Revision |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Revision |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Revision |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Revision |
parseFrom(InputStream input) |
static Revision |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Revision> |
parser() |
Revision.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 NAME_FIELD_NUMBER
public static final int UID_FIELD_NUMBER
public static final int GENERATION_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
public static final int DELETE_TIME_FIELD_NUMBER
public static final int EXPIRE_TIME_FIELD_NUMBER
public static final int LAUNCH_STAGE_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER
public static final int SCALING_FIELD_NUMBER
public static final int VPC_ACCESS_FIELD_NUMBER
public static final int MAX_INSTANCE_REQUEST_CONCURRENCY_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 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 RECONCILING_FIELD_NUMBER
public static final int CONDITIONS_FIELD_NUMBER
public static final int OBSERVED_GENERATION_FIELD_NUMBER
public static final int LOG_URI_FIELD_NUMBER
public static final int SATISFIES_PZS_FIELD_NUMBER
public static final int SESSION_AFFINITY_FIELD_NUMBER
public static final int SCALING_STATUS_FIELD_NUMBER
public static final int NODE_SELECTOR_FIELD_NUMBER
public static final int GPU_ZONAL_REDUNDANCY_DISABLED_FIELD_NUMBER
public static final int CREATOR_FIELD_NUMBER
public static final int ETAG_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 getName()
Output only. The unique name of this Revision.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface RevisionOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The unique name of this Revision.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface RevisionOrBuilderpublic String getUid()
Output only. Server assigned unique identifier for the Revision. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];getUid in interface RevisionOrBuilderpublic com.google.protobuf.ByteString getUidBytes()
Output only. Server assigned unique identifier for the Revision. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];getUidBytes in interface RevisionOrBuilderpublic long getGeneration()
Output only. A number that monotonically increases every time the user modifies the desired state.
int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];getGeneration in interface RevisionOrBuilderpublic int getLabelsCount()
RevisionOrBuilderOutput only. 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.
map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];getLabelsCount in interface RevisionOrBuilderpublic boolean containsLabels(String key)
Output only. 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.
map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];containsLabels in interface RevisionOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface RevisionOrBuilderpublic Map<String,String> getLabelsMap()
Output only. 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.
map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];getLabelsMap in interface RevisionOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Output only. 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.
map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];getLabelsOrDefault in interface RevisionOrBuilderpublic String getLabelsOrThrow(String key)
Output only. 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.
map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];getLabelsOrThrow in interface RevisionOrBuilderpublic int getAnnotationsCount()
RevisionOrBuilderOutput only. 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.
map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAnnotationsCount in interface RevisionOrBuilderpublic boolean containsAnnotations(String key)
Output only. 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.
map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
containsAnnotations in interface RevisionOrBuilder@Deprecated public Map<String,String> getAnnotations()
getAnnotationsMap() instead.getAnnotations in interface RevisionOrBuilderpublic Map<String,String> getAnnotationsMap()
Output only. 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.
map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAnnotationsMap in interface RevisionOrBuilderpublic String getAnnotationsOrDefault(String key, String defaultValue)
Output only. 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.
map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAnnotationsOrDefault in interface RevisionOrBuilderpublic String getAnnotationsOrThrow(String key)
Output only. 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.
map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAnnotationsOrThrow in interface RevisionOrBuilderpublic boolean hasCreateTime()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface RevisionOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface RevisionOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface RevisionOrBuilderpublic boolean hasUpdateTime()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime in interface RevisionOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTime in interface RevisionOrBuilderpublic com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder in interface RevisionOrBuilderpublic boolean hasDeleteTime()
Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasDeleteTime in interface RevisionOrBuilderpublic com.google.protobuf.Timestamp getDeleteTime()
Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDeleteTime in interface RevisionOrBuilderpublic com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDeleteTimeOrBuilder in interface RevisionOrBuilderpublic boolean hasExpireTime()
Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request.
.google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasExpireTime in interface RevisionOrBuilderpublic com.google.protobuf.Timestamp getExpireTime()
Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request.
.google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExpireTime in interface RevisionOrBuilderpublic com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request.
.google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExpireTimeOrBuilder in interface RevisionOrBuilderpublic int getLaunchStageValue()
The least stable launch stage needed to create this resource, as defined by [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and `GA`. Note that this value might not be what was used as input. For example, if ALPHA was provided as input in the parent resource, but only BETA and GA-level features are were, this field will be BETA.
.google.api.LaunchStage launch_stage = 10;getLaunchStageValue in interface RevisionOrBuilderpublic com.google.api.LaunchStage getLaunchStage()
The least stable launch stage needed to create this resource, as defined by [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and `GA`. Note that this value might not be what was used as input. For example, if ALPHA was provided as input in the parent resource, but only BETA and GA-level features are were, this field will be BETA.
.google.api.LaunchStage launch_stage = 10;getLaunchStage in interface RevisionOrBuilderpublic String getService()
Output only. The name of the parent service.
string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getService in interface RevisionOrBuilderpublic com.google.protobuf.ByteString getServiceBytes()
Output only. The name of the parent service.
string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getServiceBytes in interface RevisionOrBuilderpublic boolean hasScaling()
Scaling settings for this revision.
.google.cloud.run.v2.RevisionScaling scaling = 12;hasScaling in interface RevisionOrBuilderpublic RevisionScaling getScaling()
Scaling settings for this revision.
.google.cloud.run.v2.RevisionScaling scaling = 12;getScaling in interface RevisionOrBuilderpublic RevisionScalingOrBuilder getScalingOrBuilder()
Scaling settings for this revision.
.google.cloud.run.v2.RevisionScaling scaling = 12;getScalingOrBuilder in interface RevisionOrBuilderpublic boolean hasVpcAccess()
VPC Access configuration for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
.google.cloud.run.v2.VpcAccess vpc_access = 13;hasVpcAccess in interface RevisionOrBuilderpublic VpcAccess getVpcAccess()
VPC Access configuration for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
.google.cloud.run.v2.VpcAccess vpc_access = 13;getVpcAccess in interface RevisionOrBuilderpublic VpcAccessOrBuilder getVpcAccessOrBuilder()
VPC Access configuration for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
.google.cloud.run.v2.VpcAccess vpc_access = 13;getVpcAccessOrBuilder in interface RevisionOrBuilderpublic int getMaxInstanceRequestConcurrency()
Sets the maximum number of requests that each serving instance can receive.
int32 max_instance_request_concurrency = 34;getMaxInstanceRequestConcurrency in interface RevisionOrBuilderpublic boolean hasTimeout()
Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 15;hasTimeout in interface RevisionOrBuilderpublic com.google.protobuf.Duration getTimeout()
Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 15;getTimeout in interface RevisionOrBuilderpublic com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
Max allowed time for an instance to respond to a request.
.google.protobuf.Duration timeout = 15;getTimeoutOrBuilder in interface RevisionOrBuilderpublic 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.
string service_account = 16;getServiceAccount in interface RevisionOrBuilderpublic 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.
string service_account = 16;getServiceAccountBytes in interface RevisionOrBuilderpublic List<Container> getContainersList()
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 17;getContainersList in interface RevisionOrBuilderpublic List<? extends ContainerOrBuilder> getContainersOrBuilderList()
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 17;getContainersOrBuilderList in interface RevisionOrBuilderpublic int getContainersCount()
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 17;getContainersCount in interface RevisionOrBuilderpublic Container getContainers(int index)
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 17;getContainers in interface RevisionOrBuilderpublic ContainerOrBuilder getContainersOrBuilder(int index)
Holds the single container that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 17;getContainersOrBuilder in interface RevisionOrBuilderpublic List<Volume> getVolumesList()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 18;getVolumesList in interface RevisionOrBuilderpublic List<? extends VolumeOrBuilder> getVolumesOrBuilderList()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 18;getVolumesOrBuilderList in interface RevisionOrBuilderpublic int getVolumesCount()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 18;getVolumesCount in interface RevisionOrBuilderpublic Volume getVolumes(int index)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 18;getVolumes in interface RevisionOrBuilderpublic VolumeOrBuilder getVolumesOrBuilder(int index)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 18;getVolumesOrBuilder in interface RevisionOrBuilderpublic int getExecutionEnvironmentValue()
The execution environment being used to host this Revision.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;getExecutionEnvironmentValue in interface RevisionOrBuilderpublic ExecutionEnvironment getExecutionEnvironment()
The execution environment being used to host this Revision.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;getExecutionEnvironment in interface RevisionOrBuilderpublic 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 = 21 [(.google.api.resource_reference) = { ... }getEncryptionKey in interface RevisionOrBuilderpublic 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 = 21 [(.google.api.resource_reference) = { ... }getEncryptionKeyBytes in interface RevisionOrBuilderpublic boolean hasServiceMesh()
Enables service mesh connectivity.
.google.cloud.run.v2.ServiceMesh service_mesh = 22;hasServiceMesh in interface RevisionOrBuilderpublic ServiceMesh getServiceMesh()
Enables service mesh connectivity.
.google.cloud.run.v2.ServiceMesh service_mesh = 22;getServiceMesh in interface RevisionOrBuilderpublic ServiceMeshOrBuilder getServiceMeshOrBuilder()
Enables service mesh connectivity.
.google.cloud.run.v2.ServiceMesh service_mesh = 22;getServiceMeshOrBuilder in interface RevisionOrBuilderpublic int getEncryptionKeyRevocationActionValue()
The action to take if the encryption key is revoked.
.google.cloud.run.v2.EncryptionKeyRevocationAction encryption_key_revocation_action = 23;
getEncryptionKeyRevocationActionValue in interface RevisionOrBuilderpublic EncryptionKeyRevocationAction getEncryptionKeyRevocationAction()
The action to take if the encryption key is revoked.
.google.cloud.run.v2.EncryptionKeyRevocationAction encryption_key_revocation_action = 23;
getEncryptionKeyRevocationAction in interface RevisionOrBuilderpublic boolean hasEncryptionKeyShutdownDuration()
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 = 24;hasEncryptionKeyShutdownDuration in interface RevisionOrBuilderpublic com.google.protobuf.Duration getEncryptionKeyShutdownDuration()
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 = 24;getEncryptionKeyShutdownDuration in interface RevisionOrBuilderpublic com.google.protobuf.DurationOrBuilder getEncryptionKeyShutdownDurationOrBuilder()
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 = 24;getEncryptionKeyShutdownDurationOrBuilder in interface RevisionOrBuilderpublic boolean getReconciling()
Output only. Indicates whether the resource's reconciliation is still in progress. See comments in `Service.reconciling` for additional information on reconciliation process in Cloud Run.
bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];getReconciling in interface RevisionOrBuilderpublic List<Condition> getConditionsList()
Output only. The Condition of this Revision, containing its readiness status, and detailed error information in case it did not reach a serving state.
repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
getConditionsList in interface RevisionOrBuilderpublic List<? extends ConditionOrBuilder> getConditionsOrBuilderList()
Output only. The Condition of this Revision, containing its readiness status, and detailed error information in case it did not reach a serving state.
repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
getConditionsOrBuilderList in interface RevisionOrBuilderpublic int getConditionsCount()
Output only. The Condition of this Revision, containing its readiness status, and detailed error information in case it did not reach a serving state.
repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
getConditionsCount in interface RevisionOrBuilderpublic Condition getConditions(int index)
Output only. The Condition of this Revision, containing its readiness status, and detailed error information in case it did not reach a serving state.
repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
getConditions in interface RevisionOrBuilderpublic ConditionOrBuilder getConditionsOrBuilder(int index)
Output only. The Condition of this Revision, containing its readiness status, and detailed error information in case it did not reach a serving state.
repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
getConditionsOrBuilder in interface RevisionOrBuilderpublic long getObservedGeneration()
Output only. The generation of this Revision currently serving traffic. See comments in `reconciling` for additional information on reconciliation process in Cloud Run.
int64 observed_generation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];getObservedGeneration in interface RevisionOrBuilderpublic String getLogUri()
Output only. The Google Console URI to obtain logs for the Revision.
string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];getLogUri in interface RevisionOrBuilderpublic com.google.protobuf.ByteString getLogUriBytes()
Output only. The Google Console URI to obtain logs for the Revision.
string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];getLogUriBytes in interface RevisionOrBuilderpublic boolean getSatisfiesPzs()
Output only. Reserved for future use.
bool satisfies_pzs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];getSatisfiesPzs in interface RevisionOrBuilderpublic boolean getSessionAffinity()
Enable session affinity.
bool session_affinity = 38;getSessionAffinity in interface RevisionOrBuilderpublic boolean hasScalingStatus()
Output only. The current effective scaling settings for the revision.
.google.cloud.run.v2.RevisionScalingStatus scaling_status = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasScalingStatus in interface RevisionOrBuilderpublic RevisionScalingStatus getScalingStatus()
Output only. The current effective scaling settings for the revision.
.google.cloud.run.v2.RevisionScalingStatus scaling_status = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
getScalingStatus in interface RevisionOrBuilderpublic RevisionScalingStatusOrBuilder getScalingStatusOrBuilder()
Output only. The current effective scaling settings for the revision.
.google.cloud.run.v2.RevisionScalingStatus scaling_status = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
getScalingStatusOrBuilder in interface RevisionOrBuilderpublic boolean hasNodeSelector()
The node selector for the revision.
.google.cloud.run.v2.NodeSelector node_selector = 40;hasNodeSelector in interface RevisionOrBuilderpublic NodeSelector getNodeSelector()
The node selector for the revision.
.google.cloud.run.v2.NodeSelector node_selector = 40;getNodeSelector in interface RevisionOrBuilderpublic NodeSelectorOrBuilder getNodeSelectorOrBuilder()
The node selector for the revision.
.google.cloud.run.v2.NodeSelector node_selector = 40;getNodeSelectorOrBuilder in interface RevisionOrBuilderpublic boolean hasGpuZonalRedundancyDisabled()
Optional. Output only. True if GPU zonal redundancy is disabled on this revision.
optional bool gpu_zonal_redundancy_disabled = 48 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
hasGpuZonalRedundancyDisabled in interface RevisionOrBuilderpublic boolean getGpuZonalRedundancyDisabled()
Optional. Output only. True if GPU zonal redundancy is disabled on this revision.
optional bool gpu_zonal_redundancy_disabled = 48 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
getGpuZonalRedundancyDisabled in interface RevisionOrBuilderpublic String getCreator()
Output only. Email address of the authenticated creator.
string creator = 49 [(.google.api.field_behavior) = OUTPUT_ONLY];getCreator in interface RevisionOrBuilderpublic com.google.protobuf.ByteString getCreatorBytes()
Output only. Email address of the authenticated creator.
string creator = 49 [(.google.api.field_behavior) = OUTPUT_ONLY];getCreatorBytes in interface RevisionOrBuilderpublic String getEtag()
Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];getEtag in interface RevisionOrBuilderpublic com.google.protobuf.ByteString getEtagBytes()
Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];getEtagBytes in interface RevisionOrBuilderpublic 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 Revision parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Revision parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Revision parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Revision parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Revision parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Revision parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Revision parseFrom(InputStream input) throws IOException
IOExceptionpublic static Revision parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Revision parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Revision parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Revision parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Revision parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Revision.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Revision.Builder newBuilder()
public static Revision.Builder newBuilder(Revision prototype)
public Revision.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Revision.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Revision getDefaultInstance()
public static com.google.protobuf.Parser<Revision> parser()
public com.google.protobuf.Parser<Revision> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Revision getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.