Class GapicMetadata.MethodList.Builder

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

public static final class GapicMetadata.MethodList.Builder extends com.google.protobuf.GeneratedMessage.Builder<GapicMetadata.MethodList.Builder> implements GapicMetadata.MethodListOrBuilder
 List of GAPIC client methods implementing the proto-defined RPC
 for the transport and service specified in the containing
 structures.
 
Protobuf type google.gapic.metadata.GapicMetadata.MethodList
  • Method Summary

    Modifier and Type
    Method
    Description
    List of methods for a specific proto-service client in the GAPIC.
    List of methods for a specific proto-service client in the GAPIC.
    addMethodsBytes(com.google.protobuf.ByteString value)
    List of methods for a specific proto-service client in the GAPIC.
     
     
     
    List of methods for a specific proto-service client in the GAPIC.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    getMethods(int index)
    List of methods for a specific proto-service client in the GAPIC.
    com.google.protobuf.ByteString
    getMethodsBytes(int index)
    List of methods for a specific proto-service client in the GAPIC.
    int
    List of methods for a specific proto-service client in the GAPIC.
    com.google.protobuf.ProtocolStringList
    List of methods for a specific proto-service client in the GAPIC.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setMethods(int index, String value)
    List of methods for a specific proto-service client in the GAPIC.

    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<GapicMetadata.MethodList.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<GapicMetadata.MethodList.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<GapicMetadata.MethodList.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

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

      public com.google.protobuf.ProtocolStringList getMethodsList()
       List of methods for a specific proto-service client in the
       GAPIC. These names should be formatted as they appear in the
       source code.
       
      repeated string methods = 1;
      Specified by:
      getMethodsList in interface GapicMetadata.MethodListOrBuilder
      Returns:
      A list containing the methods.
    • getMethodsCount

      public int getMethodsCount()
       List of methods for a specific proto-service client in the
       GAPIC. These names should be formatted as they appear in the
       source code.
       
      repeated string methods = 1;
      Specified by:
      getMethodsCount in interface GapicMetadata.MethodListOrBuilder
      Returns:
      The count of methods.
    • getMethods

      public String getMethods(int index)
       List of methods for a specific proto-service client in the
       GAPIC. These names should be formatted as they appear in the
       source code.
       
      repeated string methods = 1;
      Specified by:
      getMethods in interface GapicMetadata.MethodListOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The methods at the given index.
    • getMethodsBytes

      public com.google.protobuf.ByteString getMethodsBytes(int index)
       List of methods for a specific proto-service client in the
       GAPIC. These names should be formatted as they appear in the
       source code.
       
      repeated string methods = 1;
      Specified by:
      getMethodsBytes in interface GapicMetadata.MethodListOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the methods at the given index.
    • setMethods

      public GapicMetadata.MethodList.Builder setMethods(int index, String value)
       List of methods for a specific proto-service client in the
       GAPIC. These names should be formatted as they appear in the
       source code.
       
      repeated string methods = 1;
      Parameters:
      index - The index to set the value at.
      value - The methods to set.
      Returns:
      This builder for chaining.
    • addMethods

      public GapicMetadata.MethodList.Builder addMethods(String value)
       List of methods for a specific proto-service client in the
       GAPIC. These names should be formatted as they appear in the
       source code.
       
      repeated string methods = 1;
      Parameters:
      value - The methods to add.
      Returns:
      This builder for chaining.
    • addAllMethods

      public GapicMetadata.MethodList.Builder addAllMethods(Iterable<String> values)
       List of methods for a specific proto-service client in the
       GAPIC. These names should be formatted as they appear in the
       source code.
       
      repeated string methods = 1;
      Parameters:
      values - The methods to add.
      Returns:
      This builder for chaining.
    • clearMethods

      public GapicMetadata.MethodList.Builder clearMethods()
       List of methods for a specific proto-service client in the
       GAPIC. These names should be formatted as they appear in the
       source code.
       
      repeated string methods = 1;
      Returns:
      This builder for chaining.
    • addMethodsBytes

      public GapicMetadata.MethodList.Builder addMethodsBytes(com.google.protobuf.ByteString value)
       List of methods for a specific proto-service client in the
       GAPIC. These names should be formatted as they appear in the
       source code.
       
      repeated string methods = 1;
      Parameters:
      value - The bytes of the methods to add.
      Returns:
      This builder for chaining.