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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllExtensionNumber
(Iterable<? extends Integer> values) repeated int32 extension_number = 2 [json_name = "extensionNumber"];
addExtensionNumber
(int value) repeated int32 extension_number = 2 [json_name = "extensionNumber"];
Full name of the base type, including the package name.repeated int32 extension_number = 2 [json_name = "extensionNumber"];
Full name of the base type, including the package name.com.google.protobuf.ByteString
Full name of the base type, including the package name.int
getExtensionNumber
(int index) repeated int32 extension_number = 2 [json_name = "extensionNumber"];
int
repeated int32 extension_number = 2 [json_name = "extensionNumber"];
repeated int32 extension_number = 2 [json_name = "extensionNumber"];
setBaseTypeName
(String value) Full name of the base type, including the package name.setBaseTypeNameBytes
(com.google.protobuf.ByteString value) Full name of the base type, including the package name.setExtensionNumber
(int index, int value) repeated int32 extension_number = 2 [json_name = "extensionNumber"];
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
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 interfaceExtensionNumberResponseOrBuilder
- 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 interfaceExtensionNumberResponseOrBuilder
- Returns:
- The bytes for baseTypeName.
-
setBaseTypeName
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
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
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
repeated int32 extension_number = 2 [json_name = "extensionNumber"];
- Specified by:
getExtensionNumberList
in interfaceExtensionNumberResponseOrBuilder
- Returns:
- A list containing the extensionNumber.
-
getExtensionNumberCount
public int getExtensionNumberCount()repeated int32 extension_number = 2 [json_name = "extensionNumber"];
- Specified by:
getExtensionNumberCount
in interfaceExtensionNumberResponseOrBuilder
- Returns:
- The count of extensionNumber.
-
getExtensionNumber
public int getExtensionNumber(int index) repeated int32 extension_number = 2 [json_name = "extensionNumber"];
- Specified by:
getExtensionNumber
in interfaceExtensionNumberResponseOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The extensionNumber at the given index.
-
setExtensionNumber
repeated int32 extension_number = 2 [json_name = "extensionNumber"];
- Parameters:
value
- The extensionNumber to set.- Returns:
- This builder for chaining.
-
addExtensionNumber
repeated int32 extension_number = 2 [json_name = "extensionNumber"];
- Parameters:
value
- The extensionNumber to add.- Returns:
- This builder for chaining.
-
addAllExtensionNumber
repeated int32 extension_number = 2 [json_name = "extensionNumber"];
- Parameters:
values
- The extensionNumber to add.- Returns:
- This builder for chaining.
-
clearExtensionNumber
repeated int32 extension_number = 2 [json_name = "extensionNumber"];
- Returns:
- This builder for chaining.
-