Class GapicMetadata.ServiceAsClient.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.ServiceAsClient.Builder>
com.google.gapic.metadata.GapicMetadata.ServiceAsClient.Builder
All Implemented Interfaces:
GapicMetadata.ServiceAsClientOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GapicMetadata.ServiceAsClient

public static final class GapicMetadata.ServiceAsClient.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.ServiceAsClient.Builder> implements GapicMetadata.ServiceAsClientOrBuilder
 Information about a specific client implementing a proto-defined service.
 
Protobuf type google.gapic.metadata.GapicMetadata.ServiceAsClient
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.ServiceAsClient.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.ServiceAsClient.Builder>
    • internalGetFieldAccessorTable

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

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GapicMetadata.ServiceAsClient buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<GapicMetadata.ServiceAsClient.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public GapicMetadata.ServiceAsClient.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<GapicMetadata.ServiceAsClient.Builder>
      Throws:
      IOException
    • getLibraryClient

      public String getLibraryClient()
       The name of the library client formatted as it appears in the source code
       
      string library_client = 1;
      Specified by:
      getLibraryClient in interface GapicMetadata.ServiceAsClientOrBuilder
      Returns:
      The libraryClient.
    • getLibraryClientBytes

      public com.google.protobuf.ByteString getLibraryClientBytes()
       The name of the library client formatted as it appears in the source code
       
      string library_client = 1;
      Specified by:
      getLibraryClientBytes in interface GapicMetadata.ServiceAsClientOrBuilder
      Returns:
      The bytes for libraryClient.
    • setLibraryClient

      public GapicMetadata.ServiceAsClient.Builder setLibraryClient(String value)
       The name of the library client formatted as it appears in the source code
       
      string library_client = 1;
      Parameters:
      value - The libraryClient to set.
      Returns:
      This builder for chaining.
    • clearLibraryClient

      public GapicMetadata.ServiceAsClient.Builder clearLibraryClient()
       The name of the library client formatted as it appears in the source code
       
      string library_client = 1;
      Returns:
      This builder for chaining.
    • setLibraryClientBytes

      public GapicMetadata.ServiceAsClient.Builder setLibraryClientBytes(com.google.protobuf.ByteString value)
       The name of the library client formatted as it appears in the source code
       
      string library_client = 1;
      Parameters:
      value - The bytes for libraryClient to set.
      Returns:
      This builder for chaining.
    • getRpcsCount

      public int getRpcsCount()
      Description copied from interface: GapicMetadata.ServiceAsClientOrBuilder
       A mapping from each proto-defined RPC name to the the list of
       methods in library_client that implement it. There can be more
       than one library_client method for each RPC. RPCs with no
       library_client methods need not be included.
      
       The key name is the name of the RPC as defined and formated in
       the proto file.
       
      map<string, .google.gapic.metadata.GapicMetadata.MethodList> rpcs = 2;
      Specified by:
      getRpcsCount in interface GapicMetadata.ServiceAsClientOrBuilder
    • containsRpcs

      public boolean containsRpcs(String key)
       A mapping from each proto-defined RPC name to the the list of
       methods in library_client that implement it. There can be more
       than one library_client method for each RPC. RPCs with no
       library_client methods need not be included.
      
       The key name is the name of the RPC as defined and formated in
       the proto file.
       
      map<string, .google.gapic.metadata.GapicMetadata.MethodList> rpcs = 2;
      Specified by:
      containsRpcs in interface GapicMetadata.ServiceAsClientOrBuilder
    • getRpcs

      Deprecated.
      Use getRpcsMap() instead.
      Specified by:
      getRpcs in interface GapicMetadata.ServiceAsClientOrBuilder
    • getRpcsMap

      public Map<String,GapicMetadata.MethodList> getRpcsMap()
       A mapping from each proto-defined RPC name to the the list of
       methods in library_client that implement it. There can be more
       than one library_client method for each RPC. RPCs with no
       library_client methods need not be included.
      
       The key name is the name of the RPC as defined and formated in
       the proto file.
       
      map<string, .google.gapic.metadata.GapicMetadata.MethodList> rpcs = 2;
      Specified by:
      getRpcsMap in interface GapicMetadata.ServiceAsClientOrBuilder
    • getRpcsOrDefault

      public GapicMetadata.MethodList getRpcsOrDefault(String key, GapicMetadata.MethodList defaultValue)
       A mapping from each proto-defined RPC name to the the list of
       methods in library_client that implement it. There can be more
       than one library_client method for each RPC. RPCs with no
       library_client methods need not be included.
      
       The key name is the name of the RPC as defined and formated in
       the proto file.
       
      map<string, .google.gapic.metadata.GapicMetadata.MethodList> rpcs = 2;
      Specified by:
      getRpcsOrDefault in interface GapicMetadata.ServiceAsClientOrBuilder
    • getRpcsOrThrow

      public GapicMetadata.MethodList getRpcsOrThrow(String key)
       A mapping from each proto-defined RPC name to the the list of
       methods in library_client that implement it. There can be more
       than one library_client method for each RPC. RPCs with no
       library_client methods need not be included.
      
       The key name is the name of the RPC as defined and formated in
       the proto file.
       
      map<string, .google.gapic.metadata.GapicMetadata.MethodList> rpcs = 2;
      Specified by:
      getRpcsOrThrow in interface GapicMetadata.ServiceAsClientOrBuilder
    • clearRpcs

    • removeRpcs

       A mapping from each proto-defined RPC name to the the list of
       methods in library_client that implement it. There can be more
       than one library_client method for each RPC. RPCs with no
       library_client methods need not be included.
      
       The key name is the name of the RPC as defined and formated in
       the proto file.
       
      map<string, .google.gapic.metadata.GapicMetadata.MethodList> rpcs = 2;
    • getMutableRpcs

      @Deprecated public Map<String,GapicMetadata.MethodList> getMutableRpcs()
      Deprecated.
      Use alternate mutation accessors instead.
    • putRpcs

       A mapping from each proto-defined RPC name to the the list of
       methods in library_client that implement it. There can be more
       than one library_client method for each RPC. RPCs with no
       library_client methods need not be included.
      
       The key name is the name of the RPC as defined and formated in
       the proto file.
       
      map<string, .google.gapic.metadata.GapicMetadata.MethodList> rpcs = 2;
    • putAllRpcs

       A mapping from each proto-defined RPC name to the the list of
       methods in library_client that implement it. There can be more
       than one library_client method for each RPC. RPCs with no
       library_client methods need not be included.
      
       The key name is the name of the RPC as defined and formated in
       the proto file.
       
      map<string, .google.gapic.metadata.GapicMetadata.MethodList> rpcs = 2;
    • putRpcsBuilderIfAbsent

      public GapicMetadata.MethodList.Builder putRpcsBuilderIfAbsent(String key)
       A mapping from each proto-defined RPC name to the the list of
       methods in library_client that implement it. There can be more
       than one library_client method for each RPC. RPCs with no
       library_client methods need not be included.
      
       The key name is the name of the RPC as defined and formated in
       the proto file.
       
      map<string, .google.gapic.metadata.GapicMetadata.MethodList> rpcs = 2;
    • setUnknownFields

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

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