Class RevisionTemplate (0.1.2)

public final class RevisionTemplate extends GeneratedMessageV3 implements RevisionTemplateOrBuilder

RevisionTemplate describes the data a revision should have when created from a template.

Protobuf type google.cloud.run.v2.RevisionTemplate

Static Fields

ANNOTATIONS_FIELD_NUMBER

public static final int ANNOTATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

CONFIDENTIAL_FIELD_NUMBER

public static final int CONFIDENTIAL_FIELD_NUMBER
Field Value
TypeDescription
int

CONTAINERS_FIELD_NUMBER

public static final int CONTAINERS_FIELD_NUMBER
Field Value
TypeDescription
int

CONTAINER_CONCURRENCY_FIELD_NUMBER

public static final int CONTAINER_CONCURRENCY_FIELD_NUMBER
Field Value
TypeDescription
int

ENCRYPTION_KEY_FIELD_NUMBER

public static final int ENCRYPTION_KEY_FIELD_NUMBER
Field Value
TypeDescription
int

EXECUTION_ENVIRONMENT_FIELD_NUMBER

public static final int EXECUTION_ENVIRONMENT_FIELD_NUMBER
Field Value
TypeDescription
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

REVISION_FIELD_NUMBER

public static final int REVISION_FIELD_NUMBER
Field Value
TypeDescription
int

SCALING_FIELD_NUMBER

public static final int SCALING_FIELD_NUMBER
Field Value
TypeDescription
int

SERVICE_ACCOUNT_FIELD_NUMBER

public static final int SERVICE_ACCOUNT_FIELD_NUMBER
Field Value
TypeDescription
int

TIMEOUT_FIELD_NUMBER

public static final int TIMEOUT_FIELD_NUMBER
Field Value
TypeDescription
int

VOLUMES_FIELD_NUMBER

public static final int VOLUMES_FIELD_NUMBER
Field Value
TypeDescription
int

VPC_ACCESS_FIELD_NUMBER

public static final int VPC_ACCESS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RevisionTemplate getDefaultInstance()
Returns
TypeDescription
RevisionTemplate

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RevisionTemplate.Builder newBuilder()
Returns
TypeDescription
RevisionTemplate.Builder

newBuilder(RevisionTemplate prototype)

public static RevisionTemplate.Builder newBuilder(RevisionTemplate prototype)
Parameter
NameDescription
prototypeRevisionTemplate
Returns
TypeDescription
RevisionTemplate.Builder

parseDelimitedFrom(InputStream input)

public static RevisionTemplate parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RevisionTemplate
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RevisionTemplate parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RevisionTemplate
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RevisionTemplate parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RevisionTemplate
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RevisionTemplate parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RevisionTemplate
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RevisionTemplate parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RevisionTemplate
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RevisionTemplate parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RevisionTemplate
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RevisionTemplate parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RevisionTemplate
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RevisionTemplate parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RevisionTemplate
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RevisionTemplate parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RevisionTemplate
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RevisionTemplate parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RevisionTemplate
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RevisionTemplate parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RevisionTemplate
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RevisionTemplate parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RevisionTemplate
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RevisionTemplate> parser()
Returns
TypeDescription
Parser<RevisionTemplate>

Methods

containsAnnotations(String key)

public boolean containsAnnotations(String key)

KRM-style annotations for the resource.

map<string, string> annotations = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsLabels(String key)

public boolean containsLabels(String key)

KRM-style labels for the resource.

map<string, string> labels = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAnnotations()

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

KRM-style annotations for the resource.

map<string, string> annotations = 3;

Returns
TypeDescription
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

KRM-style annotations for the resource.

map<string, string> annotations = 3;

Returns
TypeDescription
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

KRM-style annotations for the resource.

map<string, string> annotations = 3;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

KRM-style annotations for the resource.

map<string, string> annotations = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getConfidential()

public boolean getConfidential()

Enables Confidential Cloud Run in Revisions created using this template.

bool confidential = 12;

Returns
TypeDescription
boolean

The confidential.

getContainerConcurrency()

public int getContainerConcurrency()

Sets the maximum number of requests that each serving instance can receive.

int32 container_concurrency = 7;

Returns
TypeDescription
int

The containerConcurrency.

getContainers(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Container

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;

Returns
TypeDescription
int

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;

Returns
TypeDescription
List<Container>

getContainersOrBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
ContainerOrBuilder

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;

Returns
TypeDescription
List<? extends com.google.cloud.run.v2.ContainerOrBuilder>

getDefaultInstanceForType()

public RevisionTemplate getDefaultInstanceForType()
Returns
TypeDescription
RevisionTemplate

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) = { ... }

Returns
TypeDescription
String

The encryptionKey.

getEncryptionKeyBytes()

public 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) = { ... }

Returns
TypeDescription
ByteString

The bytes for encryptionKey.

getExecutionEnvironment()

public ExecutionEnvironment getExecutionEnvironment()

The sandbox environment to host this Revision.

.google.cloud.run.v2.ExecutionEnvironment execution_environment = 13;

Returns
TypeDescription
ExecutionEnvironment

The executionEnvironment.

getExecutionEnvironmentValue()

public int getExecutionEnvironmentValue()

The sandbox environment to host this Revision.

.google.cloud.run.v2.ExecutionEnvironment execution_environment = 13;

Returns
TypeDescription
int

The enum numeric value on the wire for executionEnvironment.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

KRM-style labels for the resource.

map<string, string> labels = 2;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

KRM-style labels for the resource.

map<string, string> labels = 2;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

KRM-style labels for the resource.

map<string, string> labels = 2;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

KRM-style labels for the resource.

map<string, string> labels = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getParserForType()

public Parser<RevisionTemplate> getParserForType()
Returns
TypeDescription
Parser<RevisionTemplate>
Overrides

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) = { ... }

Returns
TypeDescription
String

The revision.

getRevisionBytes()

public 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) = { ... }

Returns
TypeDescription
ByteString

The bytes for revision.

getScaling()

public RevisionScaling getScaling()

Scaling settings for this Revision.

.google.cloud.run.v2.RevisionScaling scaling = 4;

Returns
TypeDescription
RevisionScaling

The scaling.

getScalingOrBuilder()

public RevisionScalingOrBuilder getScalingOrBuilder()

Scaling settings for this Revision.

.google.cloud.run.v2.RevisionScaling scaling = 4;

Returns
TypeDescription
RevisionScalingOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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;

Returns
TypeDescription
String

The serviceAccount.

getServiceAccountBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for serviceAccount.

getTimeout()

public Duration getTimeout()

Max allowed time for an instance to respond to a request.

.google.protobuf.Duration timeout = 8;

Returns
TypeDescription
Duration

The timeout.

getTimeoutOrBuilder()

public DurationOrBuilder getTimeoutOrBuilder()

Max allowed time for an instance to respond to a request.

.google.protobuf.Duration timeout = 8;

Returns
TypeDescription
DurationOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getVolumes(int index)

public Volume getVolumes(int index)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
Volume

getVolumesCount()

public int getVolumesCount()

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 11;

Returns
TypeDescription
int

getVolumesList()

public List<Volume> getVolumesList()

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 11;

Returns
TypeDescription
List<Volume>

getVolumesOrBuilder(int index)

public VolumeOrBuilder getVolumesOrBuilder(int index)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
VolumeOrBuilder

getVolumesOrBuilderList()

public List<? extends VolumeOrBuilder> getVolumesOrBuilderList()

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 11;

Returns
TypeDescription
List<? extends com.google.cloud.run.v2.VolumeOrBuilder>

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;

Returns
TypeDescription
VpcAccess

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;

Returns
TypeDescription
VpcAccessOrBuilder

hasScaling()

public boolean hasScaling()

Scaling settings for this Revision.

.google.cloud.run.v2.RevisionScaling scaling = 4;

Returns
TypeDescription
boolean

Whether the scaling field is set.

hasTimeout()

public boolean hasTimeout()

Max allowed time for an instance to respond to a request.

.google.protobuf.Duration timeout = 8;

Returns
TypeDescription
boolean

Whether the timeout field is set.

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;

Returns
TypeDescription
boolean

Whether the vpcAccess field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RevisionTemplate.Builder newBuilderForType()
Returns
TypeDescription
RevisionTemplate.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RevisionTemplate.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RevisionTemplate.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RevisionTemplate.Builder toBuilder()
Returns
TypeDescription
RevisionTemplate.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException