Class ServerReflectionResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<ServerReflectionResponse,ServerReflectionResponse.Builder>
com.viam.sdk.core.rpc.reflectionv1alpha.ServerReflectionResponse.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, ServerReflectionResponseOrBuilder, Cloneable
Enclosing class:
ServerReflectionResponse

public static final class ServerReflectionResponse.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ServerReflectionResponse,ServerReflectionResponse.Builder> implements ServerReflectionResponseOrBuilder
 The message sent by the server to answer ServerReflectionInfo method.
 

Protobuf type grpc.reflection.v1alpha.ServerReflectionResponse

  • Method Details

    • getMessageResponseCase

      public ServerReflectionResponse.MessageResponseCase getMessageResponseCase()
      Specified by:
      getMessageResponseCase in interface ServerReflectionResponseOrBuilder
    • clearMessageResponse

      public ServerReflectionResponse.Builder clearMessageResponse()
    • getValidHost

      public String getValidHost()
      string valid_host = 1 [json_name = "validHost"];
      Specified by:
      getValidHost in interface ServerReflectionResponseOrBuilder
      Returns:
      The validHost.
    • getValidHostBytes

      public com.google.protobuf.ByteString getValidHostBytes()
      string valid_host = 1 [json_name = "validHost"];
      Specified by:
      getValidHostBytes in interface ServerReflectionResponseOrBuilder
      Returns:
      The bytes for validHost.
    • setValidHost

      public ServerReflectionResponse.Builder setValidHost(String value)
      string valid_host = 1 [json_name = "validHost"];
      Parameters:
      value - The validHost to set.
      Returns:
      This builder for chaining.
    • clearValidHost

      public ServerReflectionResponse.Builder clearValidHost()
      string valid_host = 1 [json_name = "validHost"];
      Returns:
      This builder for chaining.
    • setValidHostBytes

      public ServerReflectionResponse.Builder setValidHostBytes(com.google.protobuf.ByteString value)
      string valid_host = 1 [json_name = "validHost"];
      Parameters:
      value - The bytes for validHost to set.
      Returns:
      This builder for chaining.
    • hasOriginalRequest

      public boolean hasOriginalRequest()
      .grpc.reflection.v1alpha.ServerReflectionRequest original_request = 2 [json_name = "originalRequest"];
      Specified by:
      hasOriginalRequest in interface ServerReflectionResponseOrBuilder
      Returns:
      Whether the originalRequest field is set.
    • getOriginalRequest

      public ServerReflectionRequest getOriginalRequest()
      .grpc.reflection.v1alpha.ServerReflectionRequest original_request = 2 [json_name = "originalRequest"];
      Specified by:
      getOriginalRequest in interface ServerReflectionResponseOrBuilder
      Returns:
      The originalRequest.
    • setOriginalRequest

      public ServerReflectionResponse.Builder setOriginalRequest(ServerReflectionRequest value)
      .grpc.reflection.v1alpha.ServerReflectionRequest original_request = 2 [json_name = "originalRequest"];
    • setOriginalRequest

      public ServerReflectionResponse.Builder setOriginalRequest(ServerReflectionRequest.Builder builderForValue)
      .grpc.reflection.v1alpha.ServerReflectionRequest original_request = 2 [json_name = "originalRequest"];
    • mergeOriginalRequest

      public ServerReflectionResponse.Builder mergeOriginalRequest(ServerReflectionRequest value)
      .grpc.reflection.v1alpha.ServerReflectionRequest original_request = 2 [json_name = "originalRequest"];
    • clearOriginalRequest

      public ServerReflectionResponse.Builder clearOriginalRequest()
      .grpc.reflection.v1alpha.ServerReflectionRequest original_request = 2 [json_name = "originalRequest"];
    • hasFileDescriptorResponse

      public boolean hasFileDescriptorResponse()
       This message is used to answer file_by_filename, file_containing_symbol,
       file_containing_extension requests with transitive dependencies. As
       the repeated label is not allowed in oneof fields, we use a
       FileDescriptorResponse message to encapsulate the repeated fields.
       The reflection service is allowed to avoid sending FileDescriptorProtos
       that were previously sent in response to earlier requests in the stream.
       
      .grpc.reflection.v1alpha.FileDescriptorResponse file_descriptor_response = 4 [json_name = "fileDescriptorResponse"];
      Specified by:
      hasFileDescriptorResponse in interface ServerReflectionResponseOrBuilder
      Returns:
      Whether the fileDescriptorResponse field is set.
    • getFileDescriptorResponse

      public FileDescriptorResponse getFileDescriptorResponse()
       This message is used to answer file_by_filename, file_containing_symbol,
       file_containing_extension requests with transitive dependencies. As
       the repeated label is not allowed in oneof fields, we use a
       FileDescriptorResponse message to encapsulate the repeated fields.
       The reflection service is allowed to avoid sending FileDescriptorProtos
       that were previously sent in response to earlier requests in the stream.
       
      .grpc.reflection.v1alpha.FileDescriptorResponse file_descriptor_response = 4 [json_name = "fileDescriptorResponse"];
      Specified by:
      getFileDescriptorResponse in interface ServerReflectionResponseOrBuilder
      Returns:
      The fileDescriptorResponse.
    • setFileDescriptorResponse

      public ServerReflectionResponse.Builder setFileDescriptorResponse(FileDescriptorResponse value)
       This message is used to answer file_by_filename, file_containing_symbol,
       file_containing_extension requests with transitive dependencies. As
       the repeated label is not allowed in oneof fields, we use a
       FileDescriptorResponse message to encapsulate the repeated fields.
       The reflection service is allowed to avoid sending FileDescriptorProtos
       that were previously sent in response to earlier requests in the stream.
       
      .grpc.reflection.v1alpha.FileDescriptorResponse file_descriptor_response = 4 [json_name = "fileDescriptorResponse"];
    • setFileDescriptorResponse

      public ServerReflectionResponse.Builder setFileDescriptorResponse(FileDescriptorResponse.Builder builderForValue)
       This message is used to answer file_by_filename, file_containing_symbol,
       file_containing_extension requests with transitive dependencies. As
       the repeated label is not allowed in oneof fields, we use a
       FileDescriptorResponse message to encapsulate the repeated fields.
       The reflection service is allowed to avoid sending FileDescriptorProtos
       that were previously sent in response to earlier requests in the stream.
       
      .grpc.reflection.v1alpha.FileDescriptorResponse file_descriptor_response = 4 [json_name = "fileDescriptorResponse"];
    • mergeFileDescriptorResponse

      public ServerReflectionResponse.Builder mergeFileDescriptorResponse(FileDescriptorResponse value)
       This message is used to answer file_by_filename, file_containing_symbol,
       file_containing_extension requests with transitive dependencies. As
       the repeated label is not allowed in oneof fields, we use a
       FileDescriptorResponse message to encapsulate the repeated fields.
       The reflection service is allowed to avoid sending FileDescriptorProtos
       that were previously sent in response to earlier requests in the stream.
       
      .grpc.reflection.v1alpha.FileDescriptorResponse file_descriptor_response = 4 [json_name = "fileDescriptorResponse"];
    • clearFileDescriptorResponse

      public ServerReflectionResponse.Builder clearFileDescriptorResponse()
       This message is used to answer file_by_filename, file_containing_symbol,
       file_containing_extension requests with transitive dependencies. As
       the repeated label is not allowed in oneof fields, we use a
       FileDescriptorResponse message to encapsulate the repeated fields.
       The reflection service is allowed to avoid sending FileDescriptorProtos
       that were previously sent in response to earlier requests in the stream.
       
      .grpc.reflection.v1alpha.FileDescriptorResponse file_descriptor_response = 4 [json_name = "fileDescriptorResponse"];
    • hasAllExtensionNumbersResponse

      public boolean hasAllExtensionNumbersResponse()
       This message is used to answer all_extension_numbers_of_type requst.
       
      .grpc.reflection.v1alpha.ExtensionNumberResponse all_extension_numbers_response = 5 [json_name = "allExtensionNumbersResponse"];
      Specified by:
      hasAllExtensionNumbersResponse in interface ServerReflectionResponseOrBuilder
      Returns:
      Whether the allExtensionNumbersResponse field is set.
    • getAllExtensionNumbersResponse

      public ExtensionNumberResponse getAllExtensionNumbersResponse()
       This message is used to answer all_extension_numbers_of_type requst.
       
      .grpc.reflection.v1alpha.ExtensionNumberResponse all_extension_numbers_response = 5 [json_name = "allExtensionNumbersResponse"];
      Specified by:
      getAllExtensionNumbersResponse in interface ServerReflectionResponseOrBuilder
      Returns:
      The allExtensionNumbersResponse.
    • setAllExtensionNumbersResponse

      public ServerReflectionResponse.Builder setAllExtensionNumbersResponse(ExtensionNumberResponse value)
       This message is used to answer all_extension_numbers_of_type requst.
       
      .grpc.reflection.v1alpha.ExtensionNumberResponse all_extension_numbers_response = 5 [json_name = "allExtensionNumbersResponse"];
    • setAllExtensionNumbersResponse

      public ServerReflectionResponse.Builder setAllExtensionNumbersResponse(ExtensionNumberResponse.Builder builderForValue)
       This message is used to answer all_extension_numbers_of_type requst.
       
      .grpc.reflection.v1alpha.ExtensionNumberResponse all_extension_numbers_response = 5 [json_name = "allExtensionNumbersResponse"];
    • mergeAllExtensionNumbersResponse

      public ServerReflectionResponse.Builder mergeAllExtensionNumbersResponse(ExtensionNumberResponse value)
       This message is used to answer all_extension_numbers_of_type requst.
       
      .grpc.reflection.v1alpha.ExtensionNumberResponse all_extension_numbers_response = 5 [json_name = "allExtensionNumbersResponse"];
    • clearAllExtensionNumbersResponse

      public ServerReflectionResponse.Builder clearAllExtensionNumbersResponse()
       This message is used to answer all_extension_numbers_of_type requst.
       
      .grpc.reflection.v1alpha.ExtensionNumberResponse all_extension_numbers_response = 5 [json_name = "allExtensionNumbersResponse"];
    • hasListServicesResponse

      public boolean hasListServicesResponse()
       This message is used to answer list_services request.
       
      .grpc.reflection.v1alpha.ListServiceResponse list_services_response = 6 [json_name = "listServicesResponse"];
      Specified by:
      hasListServicesResponse in interface ServerReflectionResponseOrBuilder
      Returns:
      Whether the listServicesResponse field is set.
    • getListServicesResponse

      public ListServiceResponse getListServicesResponse()
       This message is used to answer list_services request.
       
      .grpc.reflection.v1alpha.ListServiceResponse list_services_response = 6 [json_name = "listServicesResponse"];
      Specified by:
      getListServicesResponse in interface ServerReflectionResponseOrBuilder
      Returns:
      The listServicesResponse.
    • setListServicesResponse

      public ServerReflectionResponse.Builder setListServicesResponse(ListServiceResponse value)
       This message is used to answer list_services request.
       
      .grpc.reflection.v1alpha.ListServiceResponse list_services_response = 6 [json_name = "listServicesResponse"];
    • setListServicesResponse

      public ServerReflectionResponse.Builder setListServicesResponse(ListServiceResponse.Builder builderForValue)
       This message is used to answer list_services request.
       
      .grpc.reflection.v1alpha.ListServiceResponse list_services_response = 6 [json_name = "listServicesResponse"];
    • mergeListServicesResponse

      public ServerReflectionResponse.Builder mergeListServicesResponse(ListServiceResponse value)
       This message is used to answer list_services request.
       
      .grpc.reflection.v1alpha.ListServiceResponse list_services_response = 6 [json_name = "listServicesResponse"];
    • clearListServicesResponse

      public ServerReflectionResponse.Builder clearListServicesResponse()
       This message is used to answer list_services request.
       
      .grpc.reflection.v1alpha.ListServiceResponse list_services_response = 6 [json_name = "listServicesResponse"];
    • hasErrorResponse

      public boolean hasErrorResponse()
       This message is used when an error occurs.
       
      .grpc.reflection.v1alpha.ErrorResponse error_response = 7 [json_name = "errorResponse"];
      Specified by:
      hasErrorResponse in interface ServerReflectionResponseOrBuilder
      Returns:
      Whether the errorResponse field is set.
    • getErrorResponse

      public ErrorResponse getErrorResponse()
       This message is used when an error occurs.
       
      .grpc.reflection.v1alpha.ErrorResponse error_response = 7 [json_name = "errorResponse"];
      Specified by:
      getErrorResponse in interface ServerReflectionResponseOrBuilder
      Returns:
      The errorResponse.
    • setErrorResponse

      public ServerReflectionResponse.Builder setErrorResponse(ErrorResponse value)
       This message is used when an error occurs.
       
      .grpc.reflection.v1alpha.ErrorResponse error_response = 7 [json_name = "errorResponse"];
    • setErrorResponse

      public ServerReflectionResponse.Builder setErrorResponse(ErrorResponse.Builder builderForValue)
       This message is used when an error occurs.
       
      .grpc.reflection.v1alpha.ErrorResponse error_response = 7 [json_name = "errorResponse"];
    • mergeErrorResponse

      public ServerReflectionResponse.Builder mergeErrorResponse(ErrorResponse value)
       This message is used when an error occurs.
       
      .grpc.reflection.v1alpha.ErrorResponse error_response = 7 [json_name = "errorResponse"];
    • clearErrorResponse

      public ServerReflectionResponse.Builder clearErrorResponse()
       This message is used when an error occurs.
       
      .grpc.reflection.v1alpha.ErrorResponse error_response = 7 [json_name = "errorResponse"];