Class CloudRunMetadata (1.45.0)

public final class CloudRunMetadata extends GeneratedMessageV3 implements CloudRunMetadataOrBuilder

CloudRunMetadata contains information from a Cloud Run deployment.

Protobuf type google.cloud.deploy.v1.CloudRunMetadata

Static Fields

JOB_FIELD_NUMBER

public static final int JOB_FIELD_NUMBER
Field Value
Type Description
int

REVISION_FIELD_NUMBER

public static final int REVISION_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_FIELD_NUMBER

public static final int SERVICE_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_URLS_FIELD_NUMBER

public static final int SERVICE_URLS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CloudRunMetadata getDefaultInstance()
Returns
Type Description
CloudRunMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CloudRunMetadata.Builder newBuilder()
Returns
Type Description
CloudRunMetadata.Builder

newBuilder(CloudRunMetadata prototype)

public static CloudRunMetadata.Builder newBuilder(CloudRunMetadata prototype)
Parameter
Name Description
prototype CloudRunMetadata
Returns
Type Description
CloudRunMetadata.Builder

parseDelimitedFrom(InputStream input)

public static CloudRunMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CloudRunMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudRunMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudRunMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CloudRunMetadata parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CloudRunMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CloudRunMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudRunMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CloudRunMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CloudRunMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CloudRunMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudRunMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CloudRunMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CloudRunMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudRunMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudRunMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CloudRunMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CloudRunMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudRunMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudRunMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CloudRunMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CloudRunMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CloudRunMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudRunMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CloudRunMetadata> parser()
Returns
Type Description
Parser<CloudRunMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CloudRunMetadata getDefaultInstanceForType()
Returns
Type Description
CloudRunMetadata

getJob()

public String getJob()

Output only. The name of the Cloud Run job that is associated with a Rollout. Format is projects/{project}/locations/{location}/jobs/{job_name}.

string job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The job.

getJobBytes()

public ByteString getJobBytes()

Output only. The name of the Cloud Run job that is associated with a Rollout. Format is projects/{project}/locations/{location}/jobs/{job_name}.

string job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for job.

getParserForType()

public Parser<CloudRunMetadata> getParserForType()
Returns
Type Description
Parser<CloudRunMetadata>
Overrides

getRevision()

public String getRevision()

Output only. The Cloud Run Revision id associated with a Rollout.

string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The revision.

getRevisionBytes()

public ByteString getRevisionBytes()

Output only. The Cloud Run Revision id associated with a Rollout.

string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for revision.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getService()

public String getService()

Output only. The name of the Cloud Run Service that is associated with a Rollout. Format is projects/{project}/locations/{location}/services/{service}.

string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

Output only. The name of the Cloud Run Service that is associated with a Rollout. Format is projects/{project}/locations/{location}/services/{service}.

string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for service.

getServiceUrls(int index)

public String getServiceUrls(int index)

Output only. The Cloud Run Service urls that are associated with a Rollout.

repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The serviceUrls at the given index.

getServiceUrlsBytes(int index)

public ByteString getServiceUrlsBytes(int index)

Output only. The Cloud Run Service urls that are associated with a Rollout.

repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the serviceUrls at the given index.

getServiceUrlsCount()

public int getServiceUrlsCount()

Output only. The Cloud Run Service urls that are associated with a Rollout.

repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of serviceUrls.

getServiceUrlsList()

public ProtocolStringList getServiceUrlsList()

Output only. The Cloud Run Service urls that are associated with a Rollout.

repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the serviceUrls.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CloudRunMetadata.Builder newBuilderForType()
Returns
Type Description
CloudRunMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CloudRunMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CloudRunMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CloudRunMetadata.Builder toBuilder()
Returns
Type Description
CloudRunMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException