Package io.grpc.reflection.v1alpha
Class FileDescriptorResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<FileDescriptorResponse.Builder>
-
- io.grpc.reflection.v1alpha.FileDescriptorResponse.Builder
-
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,FileDescriptorResponseOrBuilder
,Cloneable
- Enclosing class:
- FileDescriptorResponse
public static final class FileDescriptorResponse.Builder extends GeneratedMessageV3.Builder<FileDescriptorResponse.Builder> implements FileDescriptorResponseOrBuilder
Serialized FileDescriptorProto messages sent by the server answering a file_by_filename, file_containing_symbol, or file_containing_extension request.
Protobuf typegrpc.reflection.v1alpha.FileDescriptorResponse
-
-
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<FileDescriptorResponse.Builder>
-
clear
public FileDescriptorResponse.Builder clear()
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<FileDescriptorResponse.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<FileDescriptorResponse.Builder>
-
getDefaultInstanceForType
public FileDescriptorResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public FileDescriptorResponse build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public FileDescriptorResponse buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public FileDescriptorResponse.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<FileDescriptorResponse.Builder>
-
setField
public FileDescriptorResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<FileDescriptorResponse.Builder>
-
clearField
public FileDescriptorResponse.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<FileDescriptorResponse.Builder>
-
clearOneof
public FileDescriptorResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<FileDescriptorResponse.Builder>
-
setRepeatedField
public FileDescriptorResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<FileDescriptorResponse.Builder>
-
addRepeatedField
public FileDescriptorResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<FileDescriptorResponse.Builder>
-
mergeFrom
public FileDescriptorResponse.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<FileDescriptorResponse.Builder>
-
mergeFrom
public FileDescriptorResponse.Builder mergeFrom(FileDescriptorResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<FileDescriptorResponse.Builder>
-
mergeFrom
public FileDescriptorResponse.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<FileDescriptorResponse.Builder>
- Throws:
IOException
-
getFileDescriptorProtoList
public List<ByteString> getFileDescriptorProtoList()
Serialized FileDescriptorProto messages. We avoid taking a dependency on descriptor.proto, which uses proto2 only features, by making them opaque bytes instead.
repeated bytes file_descriptor_proto = 1;
- Specified by:
getFileDescriptorProtoList
in interfaceFileDescriptorResponseOrBuilder
- Returns:
- A list containing the fileDescriptorProto.
-
getFileDescriptorProtoCount
public int getFileDescriptorProtoCount()
Serialized FileDescriptorProto messages. We avoid taking a dependency on descriptor.proto, which uses proto2 only features, by making them opaque bytes instead.
repeated bytes file_descriptor_proto = 1;
- Specified by:
getFileDescriptorProtoCount
in interfaceFileDescriptorResponseOrBuilder
- Returns:
- The count of fileDescriptorProto.
-
getFileDescriptorProto
public ByteString getFileDescriptorProto(int index)
Serialized FileDescriptorProto messages. We avoid taking a dependency on descriptor.proto, which uses proto2 only features, by making them opaque bytes instead.
repeated bytes file_descriptor_proto = 1;
- Specified by:
getFileDescriptorProto
in interfaceFileDescriptorResponseOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The fileDescriptorProto at the given index.
-
setFileDescriptorProto
public FileDescriptorResponse.Builder setFileDescriptorProto(int index, ByteString value)
Serialized FileDescriptorProto messages. We avoid taking a dependency on descriptor.proto, which uses proto2 only features, by making them opaque bytes instead.
repeated bytes file_descriptor_proto = 1;
- Parameters:
index
- The index to set the value at.value
- The fileDescriptorProto to set.- Returns:
- This builder for chaining.
-
addFileDescriptorProto
public FileDescriptorResponse.Builder addFileDescriptorProto(ByteString value)
Serialized FileDescriptorProto messages. We avoid taking a dependency on descriptor.proto, which uses proto2 only features, by making them opaque bytes instead.
repeated bytes file_descriptor_proto = 1;
- Parameters:
value
- The fileDescriptorProto to add.- Returns:
- This builder for chaining.
-
addAllFileDescriptorProto
public FileDescriptorResponse.Builder addAllFileDescriptorProto(Iterable<? extends ByteString> values)
Serialized FileDescriptorProto messages. We avoid taking a dependency on descriptor.proto, which uses proto2 only features, by making them opaque bytes instead.
repeated bytes file_descriptor_proto = 1;
- Parameters:
values
- The fileDescriptorProto to add.- Returns:
- This builder for chaining.
-
clearFileDescriptorProto
public FileDescriptorResponse.Builder clearFileDescriptorProto()
Serialized FileDescriptorProto messages. We avoid taking a dependency on descriptor.proto, which uses proto2 only features, by making them opaque bytes instead.
repeated bytes file_descriptor_proto = 1;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final FileDescriptorResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<FileDescriptorResponse.Builder>
-
mergeUnknownFields
public final FileDescriptorResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<FileDescriptorResponse.Builder>
-
-