Enum Class ErrorKind

java.lang.Object
java.lang.Enum<ErrorKind>
dev.restate.ingestion.v1.ErrorKind
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<ErrorKind>, Constable

public enum ErrorKind extends Enum<ErrorKind> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum dev.restate.ingress.ingestion.v1.ErrorKind
  • Enum Constant Details

    • ERROR_KIND_UNKNOWN

      public static final ErrorKind ERROR_KIND_UNKNOWN
      ERROR_KIND_UNKNOWN = 0;
    • ERROR_KIND_SHUTTING_DOWN

      public static final ErrorKind ERROR_KIND_SHUTTING_DOWN
      The server is shutting down and can't accept more
      records. The caller must switch to a new ingress
      node and respect the reported last_committed.
      
      ERROR_KIND_SHUTTING_DOWN = 1;
    • ERROR_KIND_GO_AWAY

      public static final ErrorKind ERROR_KIND_GO_AWAY
      A protocol violation, for example sending another
      Start message after the initial one or not
      respecting the send window.
      
      ERROR_KIND_GO_AWAY = 2;
    • ERROR_KIND_NOT_FOUND

      public static final ErrorKind ERROR_KIND_NOT_FOUND
      The invocation target was not found (unknown
      service or handler).
      
      ERROR_KIND_NOT_FOUND = 3;
    • ERROR_KIND_BAD_REQUEST

      public static final ErrorKind ERROR_KIND_BAD_REQUEST
      Covers a wide range of client errors, including:
      - unexpected key
      - missing key
      - invalid scope format
      and similar errors. The `Error.message` should
      carry more details.
      
      ERROR_KIND_BAD_REQUEST = 4;
    • UNRECOGNIZED

      public static final ErrorKind UNRECOGNIZED
  • Field Details

    • ERROR_KIND_UNKNOWN_VALUE

      public static final int ERROR_KIND_UNKNOWN_VALUE
      ERROR_KIND_UNKNOWN = 0;
      See Also:
    • ERROR_KIND_SHUTTING_DOWN_VALUE

      public static final int ERROR_KIND_SHUTTING_DOWN_VALUE
      The server is shutting down and can't accept more
      records. The caller must switch to a new ingress
      node and respect the reported last_committed.
      
      ERROR_KIND_SHUTTING_DOWN = 1;
      See Also:
    • ERROR_KIND_GO_AWAY_VALUE

      public static final int ERROR_KIND_GO_AWAY_VALUE
      A protocol violation, for example sending another
      Start message after the initial one or not
      respecting the send window.
      
      ERROR_KIND_GO_AWAY = 2;
      See Also:
    • ERROR_KIND_NOT_FOUND_VALUE

      public static final int ERROR_KIND_NOT_FOUND_VALUE
      The invocation target was not found (unknown
      service or handler).
      
      ERROR_KIND_NOT_FOUND = 3;
      See Also:
    • ERROR_KIND_BAD_REQUEST_VALUE

      public static final int ERROR_KIND_BAD_REQUEST_VALUE
      Covers a wide range of client errors, including:
      - unexpected key
      - missing key
      - invalid scope format
      and similar errors. The `Error.message` should
      carry more details.
      
      ERROR_KIND_BAD_REQUEST = 4;
      See Also:
  • Method Details

    • values

      public static ErrorKind[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ErrorKind valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static ErrorKind valueOf(int value)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static ErrorKind forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<ErrorKind> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static ErrorKind valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null