Class 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.GeneratedMessageV3.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 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<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.GeneratedMessageV3.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
      • setRepeatedField

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

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

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

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

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