Class ErrorResponse.Builder

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

public static final class ErrorResponse.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ErrorResponse,ErrorResponse.Builder> implements ErrorResponseOrBuilder
 The error code and error message sent by the server when an error occurs.
 

Protobuf type grpc.reflection.v1alpha.ErrorResponse

  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    This field uses the error codes defined in grpc::StatusCode.
    string error_message = 2 [json_name = "errorMessage"];
    int
    This field uses the error codes defined in grpc::StatusCode.
    string error_message = 2 [json_name = "errorMessage"];
    com.google.protobuf.ByteString
    string error_message = 2 [json_name = "errorMessage"];
    setErrorCode(int value)
    This field uses the error codes defined in grpc::StatusCode.
    string error_message = 2 [json_name = "errorMessage"];
    setErrorMessageBytes(com.google.protobuf.ByteString value)
    string error_message = 2 [json_name = "errorMessage"];

    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

    • getErrorCode

      public int getErrorCode()
       This field uses the error codes defined in grpc::StatusCode.
       
      int32 error_code = 1 [json_name = "errorCode"];
      Specified by:
      getErrorCode in interface ErrorResponseOrBuilder
      Returns:
      The errorCode.
    • setErrorCode

      public ErrorResponse.Builder setErrorCode(int value)
       This field uses the error codes defined in grpc::StatusCode.
       
      int32 error_code = 1 [json_name = "errorCode"];
      Parameters:
      value - The errorCode to set.
      Returns:
      This builder for chaining.
    • clearErrorCode

      public ErrorResponse.Builder clearErrorCode()
       This field uses the error codes defined in grpc::StatusCode.
       
      int32 error_code = 1 [json_name = "errorCode"];
      Returns:
      This builder for chaining.
    • getErrorMessage

      public String getErrorMessage()
      string error_message = 2 [json_name = "errorMessage"];
      Specified by:
      getErrorMessage in interface ErrorResponseOrBuilder
      Returns:
      The errorMessage.
    • getErrorMessageBytes

      public com.google.protobuf.ByteString getErrorMessageBytes()
      string error_message = 2 [json_name = "errorMessage"];
      Specified by:
      getErrorMessageBytes in interface ErrorResponseOrBuilder
      Returns:
      The bytes for errorMessage.
    • setErrorMessage

      public ErrorResponse.Builder setErrorMessage(String value)
      string error_message = 2 [json_name = "errorMessage"];
      Parameters:
      value - The errorMessage to set.
      Returns:
      This builder for chaining.
    • clearErrorMessage

      public ErrorResponse.Builder clearErrorMessage()
      string error_message = 2 [json_name = "errorMessage"];
      Returns:
      This builder for chaining.
    • setErrorMessageBytes

      public ErrorResponse.Builder setErrorMessageBytes(com.google.protobuf.ByteString value)
      string error_message = 2 [json_name = "errorMessage"];
      Parameters:
      value - The bytes for errorMessage to set.
      Returns:
      This builder for chaining.