Interface ErrorOrBuilder

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

public interface ErrorOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Additional error details which may be different for each response.
    int
    The error code which should be one of "Error.Code" enums.
    Deprecated.
    int
    Additional error details which may be different for each response.
    Additional error details which may be different for each response.
    getContextOrDefault(String key, String defaultValue)
    Additional error details which may be different for each response.
    Additional error details which may be different for each response.
    A message in English to help developers debug the response.
    com.google.protobuf.ByteString
    A message in English to help developers debug the response.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getCode

      int getCode()
       The error code which should be one of "Error.Code" enums.
       
      int32 code = 1;
      Returns:
      The code.
    • getMessage

      String getMessage()
       A message in English to help developers debug the response.
       
      string message = 2;
      Returns:
      The message.
    • getMessageBytes

      com.google.protobuf.ByteString getMessageBytes()
       A message in English to help developers debug the response.
       
      string message = 2;
      Returns:
      The bytes for message.
    • getContextCount

      int getContextCount()
       Additional error details which may be different for each response.
       
      map<string, string> context = 3;
    • containsContext

      boolean containsContext(String key)
       Additional error details which may be different for each response.
       
      map<string, string> context = 3;
    • getContext

      @Deprecated Map<String,String> getContext()
      Deprecated.
      Use getContextMap() instead.
    • getContextMap

      Map<String,String> getContextMap()
       Additional error details which may be different for each response.
       
      map<string, string> context = 3;
    • getContextOrDefault

      String getContextOrDefault(String key, String defaultValue)
       Additional error details which may be different for each response.
       
      map<string, string> context = 3;
    • getContextOrThrow

      String getContextOrThrow(String key)
       Additional error details which may be different for each response.
       
      map<string, string> context = 3;