Enum Class ErrorCode

java.lang.Object
java.lang.Enum<ErrorCode>
ai.chalk.protos.chalk.common.v1.ErrorCode
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<ErrorCode>, Constable

public enum ErrorCode extends Enum<ErrorCode> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum chalk.common.v1.ErrorCode
  • Enum Constant Details

    • ERROR_CODE_INTERNAL_SERVER_ERROR_UNSPECIFIED

      public static final ErrorCode ERROR_CODE_INTERNAL_SERVER_ERROR_UNSPECIFIED
       An unspecified error occurred.
       
      ERROR_CODE_INTERNAL_SERVER_ERROR_UNSPECIFIED = 0;
    • ERROR_CODE_PARSE_FAILED

      public static final ErrorCode ERROR_CODE_PARSE_FAILED
       The query contained features that do not exist
       
      ERROR_CODE_PARSE_FAILED = 1;
    • ERROR_CODE_RESOLVER_NOT_FOUND

      public static final ErrorCode ERROR_CODE_RESOLVER_NOT_FOUND
      
      A resolver was required as part of running the dependency
      graph that could not be found.
       
      ERROR_CODE_RESOLVER_NOT_FOUND = 2;
    • ERROR_CODE_INVALID_QUERY

      public static final ErrorCode ERROR_CODE_INVALID_QUERY
      
      The query is invalid. All supplied features need to be
      rooted in the same top-level entity.
       
      ERROR_CODE_INVALID_QUERY = 3;
    • ERROR_CODE_VALIDATION_FAILED

      public static final ErrorCode ERROR_CODE_VALIDATION_FAILED
      
      A feature value did not match the expected schema
      (e.g. `incompatible type "int"; expected "str"`)
       
      ERROR_CODE_VALIDATION_FAILED = 4;
    • ERROR_CODE_RESOLVER_FAILED

      public static final ErrorCode ERROR_CODE_RESOLVER_FAILED
       The resolver for a feature errored.
       
      ERROR_CODE_RESOLVER_FAILED = 5;
    • ERROR_CODE_RESOLVER_TIMED_OUT

      public static final ErrorCode ERROR_CODE_RESOLVER_TIMED_OUT
       The resolver for a feature timed out.
       
      ERROR_CODE_RESOLVER_TIMED_OUT = 6;
    • ERROR_CODE_UPSTREAM_FAILED

      public static final ErrorCode ERROR_CODE_UPSTREAM_FAILED
      
      A crash in a resolver that was to produce an input for
      the resolver crashed, and so the resolver could not run
      crashed, and so the resolver could not run.
       
      ERROR_CODE_UPSTREAM_FAILED = 7;
    • ERROR_CODE_UNAUTHENTICATED

      public static final ErrorCode ERROR_CODE_UNAUTHENTICATED
       The request was submitted with an invalid authentication header.
       
      ERROR_CODE_UNAUTHENTICATED = 8;
    • ERROR_CODE_UNAUTHORIZED

      public static final ErrorCode ERROR_CODE_UNAUTHORIZED
       The supplied credentials do not provide the right authorization to execute the request.
       
      ERROR_CODE_UNAUTHORIZED = 9;
    • ERROR_CODE_CANCELLED

      public static final ErrorCode ERROR_CODE_CANCELLED
       The operation was cancelled, typically by the caller.
       
      ERROR_CODE_CANCELLED = 10;
    • ERROR_CODE_DEADLINE_EXCEEDED

      public static final ErrorCode ERROR_CODE_DEADLINE_EXCEEDED
       The deadline expired before the operation could complete.
       
      ERROR_CODE_DEADLINE_EXCEEDED = 11;
    • UNRECOGNIZED

      public static final ErrorCode UNRECOGNIZED
  • Field Details

    • ERROR_CODE_INTERNAL_SERVER_ERROR_UNSPECIFIED_VALUE

      public static final int ERROR_CODE_INTERNAL_SERVER_ERROR_UNSPECIFIED_VALUE
       An unspecified error occurred.
       
      ERROR_CODE_INTERNAL_SERVER_ERROR_UNSPECIFIED = 0;
      See Also:
    • ERROR_CODE_PARSE_FAILED_VALUE

      public static final int ERROR_CODE_PARSE_FAILED_VALUE
       The query contained features that do not exist
       
      ERROR_CODE_PARSE_FAILED = 1;
      See Also:
    • ERROR_CODE_RESOLVER_NOT_FOUND_VALUE

      public static final int ERROR_CODE_RESOLVER_NOT_FOUND_VALUE
      
      A resolver was required as part of running the dependency
      graph that could not be found.
       
      ERROR_CODE_RESOLVER_NOT_FOUND = 2;
      See Also:
    • ERROR_CODE_INVALID_QUERY_VALUE

      public static final int ERROR_CODE_INVALID_QUERY_VALUE
      
      The query is invalid. All supplied features need to be
      rooted in the same top-level entity.
       
      ERROR_CODE_INVALID_QUERY = 3;
      See Also:
    • ERROR_CODE_VALIDATION_FAILED_VALUE

      public static final int ERROR_CODE_VALIDATION_FAILED_VALUE
      
      A feature value did not match the expected schema
      (e.g. `incompatible type "int"; expected "str"`)
       
      ERROR_CODE_VALIDATION_FAILED = 4;
      See Also:
    • ERROR_CODE_RESOLVER_FAILED_VALUE

      public static final int ERROR_CODE_RESOLVER_FAILED_VALUE
       The resolver for a feature errored.
       
      ERROR_CODE_RESOLVER_FAILED = 5;
      See Also:
    • ERROR_CODE_RESOLVER_TIMED_OUT_VALUE

      public static final int ERROR_CODE_RESOLVER_TIMED_OUT_VALUE
       The resolver for a feature timed out.
       
      ERROR_CODE_RESOLVER_TIMED_OUT = 6;
      See Also:
    • ERROR_CODE_UPSTREAM_FAILED_VALUE

      public static final int ERROR_CODE_UPSTREAM_FAILED_VALUE
      
      A crash in a resolver that was to produce an input for
      the resolver crashed, and so the resolver could not run
      crashed, and so the resolver could not run.
       
      ERROR_CODE_UPSTREAM_FAILED = 7;
      See Also:
    • ERROR_CODE_UNAUTHENTICATED_VALUE

      public static final int ERROR_CODE_UNAUTHENTICATED_VALUE
       The request was submitted with an invalid authentication header.
       
      ERROR_CODE_UNAUTHENTICATED = 8;
      See Also:
    • ERROR_CODE_UNAUTHORIZED_VALUE

      public static final int ERROR_CODE_UNAUTHORIZED_VALUE
       The supplied credentials do not provide the right authorization to execute the request.
       
      ERROR_CODE_UNAUTHORIZED = 9;
      See Also:
    • ERROR_CODE_CANCELLED_VALUE

      public static final int ERROR_CODE_CANCELLED_VALUE
       The operation was cancelled, typically by the caller.
       
      ERROR_CODE_CANCELLED = 10;
      See Also:
    • ERROR_CODE_DEADLINE_EXCEEDED_VALUE

      public static final int ERROR_CODE_DEADLINE_EXCEEDED_VALUE
       The deadline expired before the operation could complete.
       
      ERROR_CODE_DEADLINE_EXCEEDED = 11;
      See Also:
  • Method Details

    • values

      public static ErrorCode[] 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 ErrorCode 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 ErrorCode 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 ErrorCode 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<ErrorCode> 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 ErrorCode 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