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

  • Method Details

    • getFileDescriptorProtoList

      public List<com.google.protobuf.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 [json_name = "fileDescriptorProto"];
      Specified by:
      getFileDescriptorProtoList in interface FileDescriptorResponseOrBuilder
      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 interface FileDescriptorResponseOrBuilder
      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 interface FileDescriptorResponseOrBuilder
      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

      public FileDescriptorResponse.Builder addFileDescriptorProto(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 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

      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 [json_name = "fileDescriptorProto"];
      Returns:
      This builder for chaining.