Class CloudRunMetadata.Builder (1.32.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
TypeDescription
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
NameDescription
valuesIterable<String>

The serviceUrls to add.

Returns
TypeDescription
CloudRunMetadata.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CloudRunMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The serviceUrls to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the serviceUrls to add.

Returns
TypeDescription
CloudRunMetadata.Builder

This builder for chaining.

build()

public CloudRunMetadata build()
Returns
TypeDescription
CloudRunMetadata

buildPartial()

public CloudRunMetadata buildPartial()
Returns
TypeDescription
CloudRunMetadata

clear()

public CloudRunMetadata.Builder clear()
Returns
TypeDescription
CloudRunMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CloudRunMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
CloudRunMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CloudRunMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CloudRunMetadata.Builder

This builder for chaining.

clone()

public CloudRunMetadata.Builder clone()
Returns
TypeDescription
CloudRunMetadata.Builder
Overrides

getDefaultInstanceForType()

public CloudRunMetadata getDefaultInstanceForType()
Returns
TypeDescription
CloudRunMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the serviceUrls.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CloudRunMetadata other)

public CloudRunMetadata.Builder mergeFrom(CloudRunMetadata other)
Parameter
NameDescription
otherCloudRunMetadata
Returns
TypeDescription
CloudRunMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CloudRunMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudRunMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CloudRunMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CloudRunMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloudRunMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CloudRunMetadata.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CloudRunMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The job to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for job to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The revision to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for revision to set.

Returns
TypeDescription
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
NameDescription
valueString

The service to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for service to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The serviceUrls to set.

Returns
TypeDescription
CloudRunMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CloudRunMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CloudRunMetadata.Builder
Overrides