Package io.grpc.reflection.v1
Class ExtensionNumberResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ExtensionNumberResponse.Builder>
-
- io.grpc.reflection.v1.ExtensionNumberResponse.Builder
-
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,ExtensionNumberResponseOrBuilder
,Cloneable
- Enclosing class:
- ExtensionNumberResponse
public static final class ExtensionNumberResponse.Builder extends GeneratedMessageV3.Builder<ExtensionNumberResponse.Builder> implements ExtensionNumberResponseOrBuilder
A list of extension numbers sent by the server answering all_extension_numbers_of_type request.
Protobuf typegrpc.reflection.v1.ExtensionNumberResponse
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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 Detail
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3.Builder<ExtensionNumberResponse.Builder>
-
clear
public ExtensionNumberResponse.Builder clear()
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<ExtensionNumberResponse.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<ExtensionNumberResponse.Builder>
-
getDefaultInstanceForType
public ExtensionNumberResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public ExtensionNumberResponse build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public ExtensionNumberResponse buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public ExtensionNumberResponse.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<ExtensionNumberResponse.Builder>
-
setField
public ExtensionNumberResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<ExtensionNumberResponse.Builder>
-
clearField
public ExtensionNumberResponse.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<ExtensionNumberResponse.Builder>
-
clearOneof
public ExtensionNumberResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<ExtensionNumberResponse.Builder>
-
setRepeatedField
public ExtensionNumberResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<ExtensionNumberResponse.Builder>
-
addRepeatedField
public ExtensionNumberResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<ExtensionNumberResponse.Builder>
-
mergeFrom
public ExtensionNumberResponse.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<ExtensionNumberResponse.Builder>
-
mergeFrom
public ExtensionNumberResponse.Builder mergeFrom(ExtensionNumberResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<ExtensionNumberResponse.Builder>
-
mergeFrom
public ExtensionNumberResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Specified by:
mergeFrom
in interfaceMessageLite.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<ExtensionNumberResponse.Builder>
- Throws:
IOException
-
getBaseTypeName
public String getBaseTypeName()
Full name of the base type, including the package name. The format is <package>.<type>
string base_type_name = 1;
- Specified by:
getBaseTypeName
in interfaceExtensionNumberResponseOrBuilder
- Returns:
- The baseTypeName.
-
getBaseTypeNameBytes
public ByteString getBaseTypeNameBytes()
Full name of the base type, including the package name. The format is <package>.<type>
string base_type_name = 1;
- Specified by:
getBaseTypeNameBytes
in interfaceExtensionNumberResponseOrBuilder
- 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;
- 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;
- Returns:
- This builder for chaining.
-
setBaseTypeNameBytes
public ExtensionNumberResponse.Builder setBaseTypeNameBytes(ByteString value)
Full name of the base type, including the package name. The format is <package>.<type>
string base_type_name = 1;
- Parameters:
value
- The bytes for baseTypeName to set.- Returns:
- This builder for chaining.
-
getExtensionNumberList
public List<Integer> getExtensionNumberList()
repeated int32 extension_number = 2;
- Specified by:
getExtensionNumberList
in interfaceExtensionNumberResponseOrBuilder
- Returns:
- A list containing the extensionNumber.
-
getExtensionNumberCount
public int getExtensionNumberCount()
repeated int32 extension_number = 2;
- Specified by:
getExtensionNumberCount
in interfaceExtensionNumberResponseOrBuilder
- Returns:
- The count of extensionNumber.
-
getExtensionNumber
public int getExtensionNumber(int index)
repeated int32 extension_number = 2;
- Specified by:
getExtensionNumber
in interfaceExtensionNumberResponseOrBuilder
- 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;
- Parameters:
index
- The index to set the value at.value
- The extensionNumber to set.- Returns:
- This builder for chaining.
-
addExtensionNumber
public ExtensionNumberResponse.Builder addExtensionNumber(int value)
repeated int32 extension_number = 2;
- 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;
- Parameters:
values
- The extensionNumber to add.- Returns:
- This builder for chaining.
-
clearExtensionNumber
public ExtensionNumberResponse.Builder clearExtensionNumber()
repeated int32 extension_number = 2;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final ExtensionNumberResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<ExtensionNumberResponse.Builder>
-
mergeUnknownFields
public final ExtensionNumberResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<ExtensionNumberResponse.Builder>
-
-