Class Service.Builder

  • All Implemented Interfaces:
    ServiceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Service

    public static final class Service.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
    implements ServiceOrBuilder
     A service that is available for use by the consumer.
     
    Protobuf type google.api.serviceusage.v1.Service
    • 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<Service.Builder>
      • clear

        public Service.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<Service.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<Service.Builder>
      • getDefaultInstanceForType

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

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

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

        public Service.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<Service.Builder>
      • setField

        public Service.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<Service.Builder>
      • clearField

        public Service.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<Service.Builder>
      • clearOneof

        public Service.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<Service.Builder>
      • setRepeatedField

        public Service.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<Service.Builder>
      • addRepeatedField

        public Service.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<Service.Builder>
      • mergeFrom

        public Service.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<Service.Builder>
      • isInitialized

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

        public Service.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<Service.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         The resource name of the consumer and service.
        
         A valid name would be:
         - projects/123/services/serviceusage.googleapis.com
         
        string name = 1;
        Specified by:
        getName in interface ServiceOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The resource name of the consumer and service.
        
         A valid name would be:
         - projects/123/services/serviceusage.googleapis.com
         
        string name = 1;
        Specified by:
        getNameBytes in interface ServiceOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Service.Builder setName​(String value)
         The resource name of the consumer and service.
        
         A valid name would be:
         - projects/123/services/serviceusage.googleapis.com
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Service.Builder clearName()
         The resource name of the consumer and service.
        
         A valid name would be:
         - projects/123/services/serviceusage.googleapis.com
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Service.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The resource name of the consumer and service.
        
         A valid name would be:
         - projects/123/services/serviceusage.googleapis.com
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getParent

        public String getParent()
         The resource name of the consumer.
        
         A valid name would be:
         - projects/123
         
        string parent = 5;
        Specified by:
        getParent in interface ServiceOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         The resource name of the consumer.
        
         A valid name would be:
         - projects/123
         
        string parent = 5;
        Specified by:
        getParentBytes in interface ServiceOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public Service.Builder setParent​(String value)
         The resource name of the consumer.
        
         A valid name would be:
         - projects/123
         
        string parent = 5;
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public Service.Builder clearParent()
         The resource name of the consumer.
        
         A valid name would be:
         - projects/123
         
        string parent = 5;
        Returns:
        This builder for chaining.
      • setParentBytes

        public Service.Builder setParentBytes​(com.google.protobuf.ByteString value)
         The resource name of the consumer.
        
         A valid name would be:
         - projects/123
         
        string parent = 5;
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • hasConfig

        public boolean hasConfig()
         The service configuration of the available service.
         Some fields may be filtered out of the configuration in responses to
         the `ListServices` method. These fields are present only in responses to
         the `GetService` method.
         
        .google.api.serviceusage.v1.ServiceConfig config = 2;
        Specified by:
        hasConfig in interface ServiceOrBuilder
        Returns:
        Whether the config field is set.
      • getConfig

        public ServiceConfig getConfig()
         The service configuration of the available service.
         Some fields may be filtered out of the configuration in responses to
         the `ListServices` method. These fields are present only in responses to
         the `GetService` method.
         
        .google.api.serviceusage.v1.ServiceConfig config = 2;
        Specified by:
        getConfig in interface ServiceOrBuilder
        Returns:
        The config.
      • setConfig

        public Service.Builder setConfig​(ServiceConfig value)
         The service configuration of the available service.
         Some fields may be filtered out of the configuration in responses to
         the `ListServices` method. These fields are present only in responses to
         the `GetService` method.
         
        .google.api.serviceusage.v1.ServiceConfig config = 2;
      • setConfig

        public Service.Builder setConfig​(ServiceConfig.Builder builderForValue)
         The service configuration of the available service.
         Some fields may be filtered out of the configuration in responses to
         the `ListServices` method. These fields are present only in responses to
         the `GetService` method.
         
        .google.api.serviceusage.v1.ServiceConfig config = 2;
      • mergeConfig

        public Service.Builder mergeConfig​(ServiceConfig value)
         The service configuration of the available service.
         Some fields may be filtered out of the configuration in responses to
         the `ListServices` method. These fields are present only in responses to
         the `GetService` method.
         
        .google.api.serviceusage.v1.ServiceConfig config = 2;
      • clearConfig

        public Service.Builder clearConfig()
         The service configuration of the available service.
         Some fields may be filtered out of the configuration in responses to
         the `ListServices` method. These fields are present only in responses to
         the `GetService` method.
         
        .google.api.serviceusage.v1.ServiceConfig config = 2;
      • getConfigBuilder

        public ServiceConfig.Builder getConfigBuilder()
         The service configuration of the available service.
         Some fields may be filtered out of the configuration in responses to
         the `ListServices` method. These fields are present only in responses to
         the `GetService` method.
         
        .google.api.serviceusage.v1.ServiceConfig config = 2;
      • getConfigOrBuilder

        public ServiceConfigOrBuilder getConfigOrBuilder()
         The service configuration of the available service.
         Some fields may be filtered out of the configuration in responses to
         the `ListServices` method. These fields are present only in responses to
         the `GetService` method.
         
        .google.api.serviceusage.v1.ServiceConfig config = 2;
        Specified by:
        getConfigOrBuilder in interface ServiceOrBuilder
      • getStateValue

        public int getStateValue()
         Whether or not the service has been enabled for use by the consumer.
         
        .google.api.serviceusage.v1.State state = 4;
        Specified by:
        getStateValue in interface ServiceOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public Service.Builder setStateValue​(int value)
         Whether or not the service has been enabled for use by the consumer.
         
        .google.api.serviceusage.v1.State state = 4;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public State getState()
         Whether or not the service has been enabled for use by the consumer.
         
        .google.api.serviceusage.v1.State state = 4;
        Specified by:
        getState in interface ServiceOrBuilder
        Returns:
        The state.
      • setState

        public Service.Builder setState​(State value)
         Whether or not the service has been enabled for use by the consumer.
         
        .google.api.serviceusage.v1.State state = 4;
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Service.Builder clearState()
         Whether or not the service has been enabled for use by the consumer.
         
        .google.api.serviceusage.v1.State state = 4;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Service.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<Service.Builder>
      • mergeUnknownFields

        public final Service.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<Service.Builder>