Class FileDescriptorResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<FileDescriptorResponse,FileDescriptorResponse.Builder>
com.viam.sdk.core.rpc.reflectionv1alpha.FileDescriptorResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,FileDescriptorResponseOrBuilder
,Cloneable
- Enclosing class:
- FileDescriptorResponse
public static final class FileDescriptorResponse.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<FileDescriptorResponse,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 type grpc.reflection.v1alpha.FileDescriptorResponse
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllFileDescriptorProto
(Iterable<? extends com.google.protobuf.ByteString> values) Serialized FileDescriptorProto messages.addFileDescriptorProto
(com.google.protobuf.ByteString value) Serialized FileDescriptorProto messages.Serialized FileDescriptorProto messages.com.google.protobuf.ByteString
getFileDescriptorProto
(int index) Serialized FileDescriptorProto messages.int
Serialized FileDescriptorProto messages.List<com.google.protobuf.ByteString>
Serialized FileDescriptorProto messages.setFileDescriptorProto
(int index, com.google.protobuf.ByteString value) Serialized FileDescriptorProto messages.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
-
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 [json_name = "fileDescriptorProto"];
- 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 [json_name = "fileDescriptorProto"];
- Specified by:
getFileDescriptorProtoCount
in interfaceFileDescriptorResponseOrBuilder
- Returns:
- The count of fileDescriptorProto.
-
getFileDescriptorProto
public com.google.protobuf.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 [json_name = "fileDescriptorProto"];
- 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, com.google.protobuf.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 [json_name = "fileDescriptorProto"];
- Parameters:
value
- The fileDescriptorProto to set.- Returns:
- This builder for chaining.
-
addFileDescriptorProto
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 [json_name = "fileDescriptorProto"];
- Parameters:
value
- The fileDescriptorProto to add.- Returns:
- This builder for chaining.
-
addAllFileDescriptorProto
public FileDescriptorResponse.Builder addAllFileDescriptorProto(Iterable<? extends com.google.protobuf.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 [json_name = "fileDescriptorProto"];
- Parameters:
values
- The fileDescriptorProto to add.- Returns:
- This builder for chaining.
-
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 [json_name = "fileDescriptorProto"];
- Returns:
- This builder for chaining.
-