Class 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.GeneratedMessageV3.Builder<CloudRunMetadata.Builder>
    implements CloudRunMetadataOrBuilder
     CloudRunMetadata contains information from a Cloud Run deployment.
     
    Protobuf type google.cloud.deploy.v1.CloudRunMetadata
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public CloudRunMetadata.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CloudRunMetadata.Builder>
      • setField

        public CloudRunMetadata.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<CloudRunMetadata.Builder>
      • clearField

        public CloudRunMetadata.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CloudRunMetadata.Builder>
      • clearOneof

        public CloudRunMetadata.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CloudRunMetadata.Builder>
      • setRepeatedField

        public CloudRunMetadata.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CloudRunMetadata.Builder>
      • addRepeatedField

        public CloudRunMetadata.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CloudRunMetadata.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • setUnknownFields

        public final CloudRunMetadata.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CloudRunMetadata.Builder>
      • mergeUnknownFields

        public final CloudRunMetadata.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CloudRunMetadata.Builder>