Interface StatusOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
All Known Implementing Classes:
Status, Status.Builder

public interface StatusOrBuilder extends com.google.protobuf.MessageLiteOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
    com.google.protobuf.Any
    getDetails(int index)
    A list of messages that carry the error details.
    int
    A list of messages that carry the error details.
    List<com.google.protobuf.Any>
    A list of messages that carry the error details.
    A developer-facing error message, which should be in English.
    com.google.protobuf.ByteString
    A developer-facing error message, which should be in English.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getCode

      int getCode()
       The status code, which should be an enum value of
       [google.rpc.Code][google.rpc.Code].
       
      int32 code = 1 [json_name = "code"];
      Returns:
      The code.
    • getMessage

      String getMessage()
       A developer-facing error message, which should be in English. Any
       user-facing error message should be localized and sent in the
       [google.rpc.Status.details][google.rpc.Status.details] field, or localized
       by the client.
       
      string message = 2 [json_name = "message"];
      Returns:
      The message.
    • getMessageBytes

      com.google.protobuf.ByteString getMessageBytes()
       A developer-facing error message, which should be in English. Any
       user-facing error message should be localized and sent in the
       [google.rpc.Status.details][google.rpc.Status.details] field, or localized
       by the client.
       
      string message = 2 [json_name = "message"];
      Returns:
      The bytes for message.
    • getDetailsList

      List<com.google.protobuf.Any> getDetailsList()
       A list of messages that carry the error details.  There is a common set of
       message types for APIs to use.
       
      repeated .google.protobuf.Any details = 3 [json_name = "details"];
    • getDetails

      com.google.protobuf.Any getDetails(int index)
       A list of messages that carry the error details.  There is a common set of
       message types for APIs to use.
       
      repeated .google.protobuf.Any details = 3 [json_name = "details"];
    • getDetailsCount

      int getDetailsCount()
       A list of messages that carry the error details.  There is a common set of
       message types for APIs to use.
       
      repeated .google.protobuf.Any details = 3 [json_name = "details"];