Class CloudRunMetadata.Builder (1.43.0)

public static final class CloudRunMetadata.Builder extends GeneratedMessageV3.Builder<CloudRunMetadata.Builder> implements CloudRunMetadataOrBuilder

CloudRunMetadata contains information from a Cloud Run deployment.

Protobuf type google.cloud.deploy.v1.CloudRunMetadata

Static Methods

getDescriptor()

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

Methods

addAllServiceUrls(Iterable<String> values)

public CloudRunMetadata.Builder addAllServiceUrls(Iterable<String> values)

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
values Iterable<String>

The serviceUrls to add.

Returns
Type Description
CloudRunMetadata.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CloudRunMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CloudRunMetadata.Builder
Overrides

addServiceUrls(String value)

public CloudRunMetadata.Builder addServiceUrls(String value)

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
value String

The serviceUrls to add.

Returns
Type Description
CloudRunMetadata.Builder

This builder for chaining.

addServiceUrlsBytes(ByteString value)

public CloudRunMetadata.Builder addServiceUrlsBytes(ByteString value)

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
value ByteString

The bytes of the serviceUrls to add.

Returns
Type Description
CloudRunMetadata.Builder

This builder for chaining.

build()

public CloudRunMetadata build()
Returns
Type Description
CloudRunMetadata

buildPartial()

public CloudRunMetadata buildPartial()
Returns
Type Description
CloudRunMetadata

clear()

public CloudRunMetadata.Builder clear()
Returns
Type Description
CloudRunMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CloudRunMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CloudRunMetadata.Builder
Overrides

clearJob()

public CloudRunMetadata.Builder clearJob()

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
CloudRunMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CloudRunMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CloudRunMetadata.Builder
Overrides

clearRevision()

public CloudRunMetadata.Builder clearRevision()

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

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

Returns
Type Description
CloudRunMetadata.Builder

This builder for chaining.

clearService()

public CloudRunMetadata.Builder clearService()

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
CloudRunMetadata.Builder

This builder for chaining.

clearServiceUrls()

public CloudRunMetadata.Builder clearServiceUrls()

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
CloudRunMetadata.Builder

This builder for chaining.

clone()

public CloudRunMetadata.Builder clone()
Returns
Type Description
CloudRunMetadata.Builder
Overrides

getDefaultInstanceForType()

public CloudRunMetadata getDefaultInstanceForType()
Returns
Type Description
CloudRunMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CloudRunMetadata other)

public CloudRunMetadata.Builder mergeFrom(CloudRunMetadata other)
Parameter
Name Description
other CloudRunMetadata
Returns
Type Description
CloudRunMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CloudRunMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudRunMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CloudRunMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CloudRunMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloudRunMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CloudRunMetadata.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CloudRunMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CloudRunMetadata.Builder
Overrides

setJob(String value)

public CloudRunMetadata.Builder setJob(String value)

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

Parameter
Name Description
value String

The job to set.

Returns
Type Description
CloudRunMetadata.Builder

This builder for chaining.

setJobBytes(ByteString value)

public CloudRunMetadata.Builder setJobBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes for job to set.

Returns
Type Description
CloudRunMetadata.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CloudRunMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CloudRunMetadata.Builder
Overrides

setRevision(String value)

public CloudRunMetadata.Builder setRevision(String value)

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

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

Parameter
Name Description
value String

The revision to set.

Returns
Type Description
CloudRunMetadata.Builder

This builder for chaining.

setRevisionBytes(ByteString value)

public CloudRunMetadata.Builder setRevisionBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for revision to set.

Returns
Type Description
CloudRunMetadata.Builder

This builder for chaining.

setService(String value)

public CloudRunMetadata.Builder setService(String value)

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

Parameter
Name Description
value String

The service to set.

Returns
Type Description
CloudRunMetadata.Builder

This builder for chaining.

setServiceBytes(ByteString value)

public CloudRunMetadata.Builder setServiceBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes for service to set.

Returns
Type Description
CloudRunMetadata.Builder

This builder for chaining.

setServiceUrls(int index, String value)

public CloudRunMetadata.Builder setServiceUrls(int index, String value)

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

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

Parameters
Name Description
index int

The index to set the value at.

value String

The serviceUrls to set.

Returns
Type Description
CloudRunMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CloudRunMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CloudRunMetadata.Builder
Overrides