Class ExtensionNumberResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<ExtensionNumberResponse,ExtensionNumberResponse.Builder>
com.viam.sdk.core.rpc.reflectionv1alpha.ExtensionNumberResponse.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, ExtensionNumberResponseOrBuilder, Cloneable
Enclosing class:
ExtensionNumberResponse

public static final class ExtensionNumberResponse.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ExtensionNumberResponse,ExtensionNumberResponse.Builder> implements ExtensionNumberResponseOrBuilder
 A list of extension numbers sent by the server answering
 all_extension_numbers_of_type request.
 

Protobuf type grpc.reflection.v1alpha.ExtensionNumberResponse

  • Method Details

    • getBaseTypeName

      public String getBaseTypeName()
       Full name of the base type, including the package name. The format
       is <package>.<type>
       
      string base_type_name = 1 [json_name = "baseTypeName"];
      Specified by:
      getBaseTypeName in interface ExtensionNumberResponseOrBuilder
      Returns:
      The baseTypeName.
    • getBaseTypeNameBytes

      public com.google.protobuf.ByteString getBaseTypeNameBytes()
       Full name of the base type, including the package name. The format
       is <package>.<type>
       
      string base_type_name = 1 [json_name = "baseTypeName"];
      Specified by:
      getBaseTypeNameBytes in interface ExtensionNumberResponseOrBuilder
      Returns:
      The bytes for baseTypeName.
    • setBaseTypeName

      public ExtensionNumberResponse.Builder setBaseTypeName(String value)
       Full name of the base type, including the package name. The format
       is <package>.<type>
       
      string base_type_name = 1 [json_name = "baseTypeName"];
      Parameters:
      value - The baseTypeName to set.
      Returns:
      This builder for chaining.
    • clearBaseTypeName

      public ExtensionNumberResponse.Builder clearBaseTypeName()
       Full name of the base type, including the package name. The format
       is <package>.<type>
       
      string base_type_name = 1 [json_name = "baseTypeName"];
      Returns:
      This builder for chaining.
    • setBaseTypeNameBytes

      public ExtensionNumberResponse.Builder setBaseTypeNameBytes(com.google.protobuf.ByteString value)
       Full name of the base type, including the package name. The format
       is <package>.<type>
       
      string base_type_name = 1 [json_name = "baseTypeName"];
      Parameters:
      value - The bytes for baseTypeName to set.
      Returns:
      This builder for chaining.
    • getExtensionNumberList

      public List<Integer> getExtensionNumberList()
      repeated int32 extension_number = 2 [json_name = "extensionNumber"];
      Specified by:
      getExtensionNumberList in interface ExtensionNumberResponseOrBuilder
      Returns:
      A list containing the extensionNumber.
    • getExtensionNumberCount

      public int getExtensionNumberCount()
      repeated int32 extension_number = 2 [json_name = "extensionNumber"];
      Specified by:
      getExtensionNumberCount in interface ExtensionNumberResponseOrBuilder
      Returns:
      The count of extensionNumber.
    • getExtensionNumber

      public int getExtensionNumber(int index)
      repeated int32 extension_number = 2 [json_name = "extensionNumber"];
      Specified by:
      getExtensionNumber in interface ExtensionNumberResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The extensionNumber at the given index.
    • setExtensionNumber

      public ExtensionNumberResponse.Builder setExtensionNumber(int index, int value)
      repeated int32 extension_number = 2 [json_name = "extensionNumber"];
      Parameters:
      value - The extensionNumber to set.
      Returns:
      This builder for chaining.
    • addExtensionNumber

      public ExtensionNumberResponse.Builder addExtensionNumber(int value)
      repeated int32 extension_number = 2 [json_name = "extensionNumber"];
      Parameters:
      value - The extensionNumber to add.
      Returns:
      This builder for chaining.
    • addAllExtensionNumber

      public ExtensionNumberResponse.Builder addAllExtensionNumber(Iterable<? extends Integer> values)
      repeated int32 extension_number = 2 [json_name = "extensionNumber"];
      Parameters:
      values - The extensionNumber to add.
      Returns:
      This builder for chaining.
    • clearExtensionNumber

      public ExtensionNumberResponse.Builder clearExtensionNumber()
      repeated int32 extension_number = 2 [json_name = "extensionNumber"];
      Returns:
      This builder for chaining.