Class Service.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Service.Builder>
com.google.api.serviceusage.v1beta1.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.GeneratedMessage.Builder<Service.Builder> implements ServiceOrBuilder
 A service that is available for use by the consumer.
 
Protobuf type google.api.serviceusage.v1beta1.Service
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The service configuration of the available service.
    The resource name of the consumer and service.
    The resource name of the consumer.
    Whether or not the service has been enabled for use by the consumer.
    The service configuration of the available service.
    The service configuration of the available service.
    The service configuration of the available service.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The resource name of the consumer and service.
    com.google.protobuf.ByteString
    The resource name of the consumer and service.
    The resource name of the consumer.
    com.google.protobuf.ByteString
    The resource name of the consumer.
    Whether or not the service has been enabled for use by the consumer.
    int
    Whether or not the service has been enabled for use by the consumer.
    boolean
    The service configuration of the available service.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    The service configuration of the available service.
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The service configuration of the available service.
    The service configuration of the available service.
    setName(String value)
    The resource name of the consumer and service.
    setNameBytes(com.google.protobuf.ByteString value)
    The resource name of the consumer and service.
    The resource name of the consumer.
    setParentBytes(com.google.protobuf.ByteString value)
    The resource name of the consumer.
    setState(State value)
    Whether or not the service has been enabled for use by the consumer.
    setStateValue(int value)
    Whether or not the service has been enabled for use by the consumer.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public Service.Builder mergeFrom(Service other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.State state = 4;
      Returns:
      This builder for chaining.