Class CloudRunMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CloudRunMetadata.Builder>
com.google.cloud.deploy.v1.CloudRunMetadata.Builder
All Implemented Interfaces:
CloudRunMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CloudRunMetadata

public static final class CloudRunMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<CloudRunMetadata.Builder> implements CloudRunMetadataOrBuilder
 CloudRunMetadata contains information from a Cloud Run deployment.
 
Protobuf type google.cloud.deploy.v1.CloudRunMetadata
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CloudRunMetadata.Builder>
    • clear

      public CloudRunMetadata.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CloudRunMetadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CloudRunMetadata.Builder>
    • getDefaultInstanceForType

      public CloudRunMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CloudRunMetadata build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CloudRunMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CloudRunMetadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CloudRunMetadata.Builder>
    • mergeFrom

      public CloudRunMetadata.Builder mergeFrom(CloudRunMetadata other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CloudRunMetadata.Builder>
    • mergeFrom

      public CloudRunMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CloudRunMetadata.Builder>
      Throws:
      IOException
    • 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) = { ... }
      Specified by:
      getService in interface CloudRunMetadataOrBuilder
      Returns:
      The service.
    • getServiceBytes

      public com.google.protobuf.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) = { ... }
      Specified by:
      getServiceBytes in interface CloudRunMetadataOrBuilder
      Returns:
      The bytes for service.
    • setService

      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) = { ... }
      Parameters:
      value - The service to set.
      Returns:
      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:
      This builder for chaining.
    • setServiceBytes

      public CloudRunMetadata.Builder setServiceBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for service to set.
      Returns:
      This builder for chaining.
    • getServiceUrlsList

      public com.google.protobuf.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];
      Specified by:
      getServiceUrlsList in interface CloudRunMetadataOrBuilder
      Returns:
      A list containing the serviceUrls.
    • 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];
      Specified by:
      getServiceUrlsCount in interface CloudRunMetadataOrBuilder
      Returns:
      The count of serviceUrls.
    • getServiceUrls

      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];
      Specified by:
      getServiceUrls in interface CloudRunMetadataOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The serviceUrls at the given index.
    • getServiceUrlsBytes

      public com.google.protobuf.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];
      Specified by:
      getServiceUrlsBytes in interface CloudRunMetadataOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the serviceUrls at the given index.
    • setServiceUrls

      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:
      index - The index to set the value at.
      value - The serviceUrls to set.
      Returns:
      This builder for chaining.
    • addServiceUrls

      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];
      Parameters:
      value - The serviceUrls to add.
      Returns:
      This builder for chaining.
    • addAllServiceUrls

      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];
      Parameters:
      values - The serviceUrls to add.
      Returns:
      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:
      This builder for chaining.
    • addServiceUrlsBytes

      public CloudRunMetadata.Builder addServiceUrlsBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes of the serviceUrls to add.
      Returns:
      This builder for chaining.
    • getRevision

      public String getRevision()
       Output only. The Cloud Run Revision id associated with a `Rollout`.
       
      string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRevision in interface CloudRunMetadataOrBuilder
      Returns:
      The revision.
    • getRevisionBytes

      public com.google.protobuf.ByteString getRevisionBytes()
       Output only. The Cloud Run Revision id associated with a `Rollout`.
       
      string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRevisionBytes in interface CloudRunMetadataOrBuilder
      Returns:
      The bytes for revision.
    • setRevision

      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];
      Parameters:
      value - The revision to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setRevisionBytes

      public CloudRunMetadata.Builder setRevisionBytes(com.google.protobuf.ByteString value)
       Output only. The Cloud Run Revision id associated with a `Rollout`.
       
      string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for revision to set.
      Returns:
      This builder for chaining.
    • 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) = { ... }
      Specified by:
      getJob in interface CloudRunMetadataOrBuilder
      Returns:
      The job.
    • getJobBytes

      public com.google.protobuf.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) = { ... }
      Specified by:
      getJobBytes in interface CloudRunMetadataOrBuilder
      Returns:
      The bytes for job.
    • setJob

      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) = { ... }
      Parameters:
      value - The job to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setJobBytes

      public CloudRunMetadata.Builder setJobBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for job to set.
      Returns:
      This builder for chaining.