Package com.authzed.api.v1
Enum Class ErrorReason
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<ErrorReason>
,Constable
public enum ErrorReason
extends Enum<ErrorReason>
implements com.google.protobuf.ProtocolMessageEnum
Defines the supported values for `google.rpc.ErrorInfo.reason` for the `authzed.com` error domain.Protobuf enum
authzed.api.v1.ErrorReason
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe request failed because a relationship marked to be CREATEd was already present within the datastore.The request tries to write a relationship on a permission instead of a relation.The request failed to evaluate a caveat expression due to an error.The request tries to specify a caveat parameter value with the wrong type.The request failed because the counter was already registered.The request failed because the counter was not registered.The request failed because the precondition specified is empty.The request's specified limit is too large.The request failed because too many concurrent updates were attempted against the in-memory datastore.The request failed because the provided cursor was invalid in some way.The request failed because the provided filter was invalid in some way.The request tries to use a subject type that was not valid for a relation.The request failed because the client attempted to write a relationship with a context that exceeded the configured server limit.The request failed because it caused the maximum depth allowed to be exceeded.The request gave a schema that could not be parsed.The request contains a schema with a type error.The request failed due to a serialization error in the backend database.A write or delete request was made to an instance that is deployed in read-only mode.The request contained more check items than the maximum configured.The request contained more preconditions than the maximum configured.The request failed because there are too many matching relationships to be deleted within a single transactional deletion call.The WriteRelationships request contained more updates than the maximum configured.The request failed because the transaction metadata was too large.The request referenced an unknown caveat in the schema.The request referenced an unknown object definition in the schema.The request referenced an unknown relation or permission under a definition in the schema.Do not use this default value.The request tries to perform two or more updates on the same relationship in the same WriteRelationships call.The request failed because a wildcard was not allowed.The request contained a precondition that failed. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The request failed because a relationship marked to be CREATEd was already present within the datastore.static final int
The request tries to write a relationship on a permission instead of a relation.static final int
The request failed to evaluate a caveat expression due to an error.static final int
The request tries to specify a caveat parameter value with the wrong type.static final int
The request failed because the counter was already registered.static final int
The request failed because the counter was not registered.static final int
The request failed because the precondition specified is empty.static final int
The request's specified limit is too large.static final int
The request failed because too many concurrent updates were attempted against the in-memory datastore.static final int
The request failed because the provided cursor was invalid in some way.static final int
The request failed because the provided filter was invalid in some way.static final int
The request tries to use a subject type that was not valid for a relation.static final int
The request failed because the client attempted to write a relationship with a context that exceeded the configured server limit.static final int
The request failed because it caused the maximum depth allowed to be exceeded.static final int
The request gave a schema that could not be parsed.static final int
The request contains a schema with a type error.static final int
The request failed due to a serialization error in the backend database.static final int
A write or delete request was made to an instance that is deployed in read-only mode.static final int
The request contained more check items than the maximum configured.static final int
The request contained more preconditions than the maximum configured.static final int
The request failed because there are too many matching relationships to be deleted within a single transactional deletion call.static final int
The WriteRelationships request contained more updates than the maximum configured.static final int
The request failed because the transaction metadata was too large.static final int
The request referenced an unknown caveat in the schema.static final int
The request referenced an unknown object definition in the schema.static final int
The request referenced an unknown relation or permission under a definition in the schema.static final int
Do not use this default value.static final int
The request tries to perform two or more updates on the same relationship in the same WriteRelationships call.static final int
The request failed because a wildcard was not allowed.static final int
The request contained a precondition that failed. -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorReason
forNumber
(int value) static final com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap<ErrorReason>
static ErrorReason
valueOf
(int value) Deprecated.static ErrorReason
valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static ErrorReason
Returns the enum constant of this class with the specified name.static ErrorReason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ERROR_REASON_UNSPECIFIED
Do not use this default value.
ERROR_REASON_UNSPECIFIED = 0;
-
ERROR_REASON_SCHEMA_PARSE_ERROR
The request gave a schema that could not be parsed. Example of an ErrorInfo: { "reason": "ERROR_REASON_SCHEMA_PARSE_ERROR", "domain": "authzed.com", "metadata": { "start_line_number": "1", "start_column_position": "19", "end_line_number": "1", "end_column_position": "19", "source_code": "somedefinition", } } The line numbers and column positions are 0-indexed and may not be present.
ERROR_REASON_SCHEMA_PARSE_ERROR = 1;
-
ERROR_REASON_SCHEMA_TYPE_ERROR
The request contains a schema with a type error. Example of an ErrorInfo: { "reason": "ERROR_REASON_SCHEMA_TYPE_ERROR", "domain": "authzed.com", "metadata": { "definition_name": "somedefinition", ... additional keys based on the kind of type error ... } }
ERROR_REASON_SCHEMA_TYPE_ERROR = 2;
-
ERROR_REASON_UNKNOWN_DEFINITION
The request referenced an unknown object definition in the schema. Example of an ErrorInfo: { "reason": "ERROR_REASON_UNKNOWN_DEFINITION", "domain": "authzed.com", "metadata": { "definition_name": "somedefinition" } }
ERROR_REASON_UNKNOWN_DEFINITION = 3;
-
ERROR_REASON_UNKNOWN_RELATION_OR_PERMISSION
The request referenced an unknown relation or permission under a definition in the schema. Example of an ErrorInfo: { "reason": "ERROR_REASON_UNKNOWN_RELATION_OR_PERMISSION", "domain": "authzed.com", "metadata": { "definition_name": "somedefinition", "relation_or_permission_name": "somepermission" } }
ERROR_REASON_UNKNOWN_RELATION_OR_PERMISSION = 4;
-
ERROR_REASON_TOO_MANY_UPDATES_IN_REQUEST
The WriteRelationships request contained more updates than the maximum configured. Example of an ErrorInfo: { "reason": "ERROR_REASON_TOO_MANY_UPDATES_IN_REQUEST", "domain": "authzed.com", "metadata": { "update_count": "525", "maximum_updates_allowed": "500", } }
ERROR_REASON_TOO_MANY_UPDATES_IN_REQUEST = 5;
-
ERROR_REASON_TOO_MANY_PRECONDITIONS_IN_REQUEST
The request contained more preconditions than the maximum configured. Example of an ErrorInfo: { "reason": "ERROR_REASON_TOO_MANY_PRECONDITIONS_IN_REQUEST", "domain": "authzed.com", "metadata": { "precondition_count": "525", "maximum_preconditions_allowed": "500", } }
ERROR_REASON_TOO_MANY_PRECONDITIONS_IN_REQUEST = 6;
-
ERROR_REASON_WRITE_OR_DELETE_PRECONDITION_FAILURE
The request contained a precondition that failed. Example of an ErrorInfo: { "reason": "ERROR_REASON_WRITE_OR_DELETE_PRECONDITION_FAILURE", "domain": "authzed.com", "metadata": { "precondition_resource_type": "document", ... other fields for the filter ... "precondition_operation": "MUST_EXIST", } }
ERROR_REASON_WRITE_OR_DELETE_PRECONDITION_FAILURE = 7;
-
ERROR_REASON_SERVICE_READ_ONLY
A write or delete request was made to an instance that is deployed in read-only mode. Example of an ErrorInfo: { "reason": "ERROR_REASON_SERVICE_READ_ONLY", "domain": "authzed.com" }
ERROR_REASON_SERVICE_READ_ONLY = 8;
-
ERROR_REASON_UNKNOWN_CAVEAT
The request referenced an unknown caveat in the schema. Example of an ErrorInfo: { "reason": "ERROR_REASON_UNKNOWN_CAVEAT", "domain": "authzed.com", "metadata": { "caveat_name": "somecaveat" } }
ERROR_REASON_UNKNOWN_CAVEAT = 9;
-
ERROR_REASON_INVALID_SUBJECT_TYPE
The request tries to use a subject type that was not valid for a relation. Example of an ErrorInfo: { "reason": "ERROR_REASON_INVALID_SUBJECT_TYPE", "domain": "authzed.com", "metadata": { "definition_name": "somedefinition", "relation_name": "somerelation", "subject_type": "user:*" } }
ERROR_REASON_INVALID_SUBJECT_TYPE = 10;
-
ERROR_REASON_CAVEAT_PARAMETER_TYPE_ERROR
The request tries to specify a caveat parameter value with the wrong type. Example of an ErrorInfo: { "reason": "ERROR_REASON_CAVEAT_PARAMETER_TYPE_ERROR", "domain": "authzed.com", "metadata": { "definition_name": "somedefinition", "relation_name": "somerelation", "caveat_name": "somecaveat", "parameter_name": "someparameter", "expected_type": "int", } }
ERROR_REASON_CAVEAT_PARAMETER_TYPE_ERROR = 11;
-
ERROR_REASON_UPDATES_ON_SAME_RELATIONSHIP
The request tries to perform two or more updates on the same relationship in the same WriteRelationships call. Example of an ErrorInfo: { "reason": "ERROR_REASON_UPDATES_ON_SAME_RELATIONSHIP", "domain": "authzed.com", "metadata": { "definition_name": "somedefinition", "relationship": "somerelationship", } }
ERROR_REASON_UPDATES_ON_SAME_RELATIONSHIP = 12;
-
ERROR_REASON_CANNOT_UPDATE_PERMISSION
The request tries to write a relationship on a permission instead of a relation. Example of an ErrorInfo: { "reason": "ERROR_REASON_CANNOT_UPDATE_PERMISSION", "domain": "authzed.com", "metadata": { "definition_name": "somedefinition", "permission_name": "somerelation", } }
ERROR_REASON_CANNOT_UPDATE_PERMISSION = 13;
-
ERROR_REASON_CAVEAT_EVALUATION_ERROR
The request failed to evaluate a caveat expression due to an error. Example of an ErrorInfo: { "reason": "ERROR_REASON_CAVEAT_EVALUATION_ERROR", "domain": "authzed.com", "metadata": { "caveat_name": "somecaveat", } }
ERROR_REASON_CAVEAT_EVALUATION_ERROR = 14;
-
ERROR_REASON_INVALID_CURSOR
The request failed because the provided cursor was invalid in some way. Example of an ErrorInfo: { "reason": "ERROR_REASON_INVALID_CURSOR", "domain": "authzed.com", "metadata": { ... additional keys based on the kind of cursor error ... } }
ERROR_REASON_INVALID_CURSOR = 15;
-
ERROR_REASON_TOO_MANY_RELATIONSHIPS_FOR_TRANSACTIONAL_DELETE
The request failed because there are too many matching relationships to be deleted within a single transactional deletion call. To avoid, set `optional_allow_partial_deletions` to true on the DeleteRelationships call. Example of an ErrorInfo: { "reason": "ERROR_REASON_TOO_MANY_RELATIONSHIPS_FOR_TRANSACTIONAL_DELETE", "domain": "authzed.com", "metadata": { ... fields for the filter ... } }
ERROR_REASON_TOO_MANY_RELATIONSHIPS_FOR_TRANSACTIONAL_DELETE = 16;
-
ERROR_REASON_MAX_RELATIONSHIP_CONTEXT_SIZE
The request failed because the client attempted to write a relationship with a context that exceeded the configured server limit. Example of an ErrorInfo: { "reason": "ERROR_REASON_MAX_RELATIONSHIP_CONTEXT_SIZE", "domain": "authzed.com", "metadata": { "relationship": "relationship_exceeding_the_limit", "max_allowed_size": "server_max_allowed_context_size", "context_size": "actual_relationship_context_size" , } }
ERROR_REASON_MAX_RELATIONSHIP_CONTEXT_SIZE = 17;
-
ERROR_REASON_ATTEMPT_TO_RECREATE_RELATIONSHIP
The request failed because a relationship marked to be CREATEd was already present within the datastore. Example of an ErrorInfo: { "reason": "ERROR_REASON_ATTEMPT_TO_RECREATE_RELATIONSHIP", "domain": "authzed.com", "metadata": { "relationship": "relationship_that_already_existed", "resource_type": "resource type", "resource_object_id": "resource object id", ... additional decomposed relationship fields ... } }
ERROR_REASON_ATTEMPT_TO_RECREATE_RELATIONSHIP = 18;
-
ERROR_REASON_MAXIMUM_DEPTH_EXCEEDED
The request failed because it caused the maximum depth allowed to be exceeded. This typically indicates that there is a circular data traversal somewhere in the schema, but can also be raised if the data traversal is simply too deep. Example of an ErrorInfo: { "reason": "ERROR_REASON_MAXIMUM_DEPTH_EXCEEDED", "domain": "authzed.com", "metadata": { "maximum_depth_allowed": "50", ... additional fields based on request type ... } }
ERROR_REASON_MAXIMUM_DEPTH_EXCEEDED = 19;
-
ERROR_REASON_SERIALIZATION_FAILURE
The request failed due to a serialization error in the backend database. This typically indicates that various in flight transactions conflicted with each other and the database had to abort one or more of them. SpiceDB will retry a few times before returning the error to the client. Example of an ErrorInfo: { "reason": "ERROR_REASON_SERIALIZATION_FAILURE", "domain": "authzed.com", "metadata": {} }
ERROR_REASON_SERIALIZATION_FAILURE = 20;
-
ERROR_REASON_TOO_MANY_CHECKS_IN_REQUEST
The request contained more check items than the maximum configured. Example of an ErrorInfo: { "reason": "ERROR_REASON_TOO_MANY_CHECKS_IN_REQUEST", "domain": "authzed.com", "metadata": { "check_count": "525", "maximum_checks_allowed": "500", } }
ERROR_REASON_TOO_MANY_CHECKS_IN_REQUEST = 21;
-
ERROR_REASON_EXCEEDS_MAXIMUM_ALLOWABLE_LIMIT
The request's specified limit is too large. Example of an ErrorInfo: { "reason": "ERROR_REASON_EXCEEDS_MAXIMUM_ALLOWABLE_LIMIT", "domain": "authzed.com", "metadata": { "limit_provided": "525", "maximum_limit_allowed": "500", } }
ERROR_REASON_EXCEEDS_MAXIMUM_ALLOWABLE_LIMIT = 22;
-
ERROR_REASON_INVALID_FILTER
The request failed because the provided filter was invalid in some way. Example of an ErrorInfo: { "reason": "ERROR_REASON_INVALID_FILTER", "domain": "authzed.com", "metadata": { "filter": "...", } }
ERROR_REASON_INVALID_FILTER = 23;
-
ERROR_REASON_INMEMORY_TOO_MANY_CONCURRENT_UPDATES
The request failed because too many concurrent updates were attempted against the in-memory datastore. Example of an ErrorInfo: { "reason": "ERROR_REASON_INMEMORY_TOO_MANY_CONCURRENT_UPDATES", "domain": "authzed.com", "metadata": {} }
ERROR_REASON_INMEMORY_TOO_MANY_CONCURRENT_UPDATES = 24;
-
ERROR_REASON_EMPTY_PRECONDITION
The request failed because the precondition specified is empty. Example of an ErrorInfo: { "reason": "ERROR_REASON_EMPTY_PRECONDITION", "domain": "authzed.com", "metadata": {} }
ERROR_REASON_EMPTY_PRECONDITION = 25;
-
ERROR_REASON_COUNTER_ALREADY_REGISTERED
The request failed because the counter was already registered. Example of an ErrorInfo: { "reason": "ERROR_REASON_COUNTER_ALREADY_REGISTERED", "domain": "authzed.com", "metadata": { "counter_name": "name" } }
ERROR_REASON_COUNTER_ALREADY_REGISTERED = 26;
-
ERROR_REASON_COUNTER_NOT_REGISTERED
The request failed because the counter was not registered. Example of an ErrorInfo: { "reason": "ERROR_REASON_COUNTER_NOT_REGISTERED", "domain": "authzed.com", "metadata": { "counter_name": "name" } }
ERROR_REASON_COUNTER_NOT_REGISTERED = 27;
-
ERROR_REASON_WILDCARD_NOT_ALLOWED
The request failed because a wildcard was not allowed. For CheckPermission, this means that the subject or resource ID was a wildcard. For LookupResources, this means that the subject ID was a wildcard. Example of an ErrorInfo: { "reason": "ERROR_REASON_WILDCARD_NOT_ALLOWED", "domain": "authzed.com", "metadata": { "disallowed_field": "subject_id" } }
ERROR_REASON_WILDCARD_NOT_ALLOWED = 28;
-
ERROR_REASON_TRANSACTION_METADATA_TOO_LARGE
The request failed because the transaction metadata was too large. Example of an ErrorInfo: { "reason": "ERROR_REASON_TRANSACTION_METADATA_TOO_LARGE", "domain": "authzed.com", "metadata": { "metadata_byte_size": "1024", "maximum_allowed_metadata_byte_size": "512", } }
ERROR_REASON_TRANSACTION_METADATA_TOO_LARGE = 29;
-
UNRECOGNIZED
-
-
Field Details
-
ERROR_REASON_UNSPECIFIED_VALUE
public static final int ERROR_REASON_UNSPECIFIED_VALUEDo not use this default value.
ERROR_REASON_UNSPECIFIED = 0;
- See Also:
-
ERROR_REASON_SCHEMA_PARSE_ERROR_VALUE
public static final int ERROR_REASON_SCHEMA_PARSE_ERROR_VALUEThe request gave a schema that could not be parsed. Example of an ErrorInfo: { "reason": "ERROR_REASON_SCHEMA_PARSE_ERROR", "domain": "authzed.com", "metadata": { "start_line_number": "1", "start_column_position": "19", "end_line_number": "1", "end_column_position": "19", "source_code": "somedefinition", } } The line numbers and column positions are 0-indexed and may not be present.
ERROR_REASON_SCHEMA_PARSE_ERROR = 1;
- See Also:
-
ERROR_REASON_SCHEMA_TYPE_ERROR_VALUE
public static final int ERROR_REASON_SCHEMA_TYPE_ERROR_VALUEThe request contains a schema with a type error. Example of an ErrorInfo: { "reason": "ERROR_REASON_SCHEMA_TYPE_ERROR", "domain": "authzed.com", "metadata": { "definition_name": "somedefinition", ... additional keys based on the kind of type error ... } }
ERROR_REASON_SCHEMA_TYPE_ERROR = 2;
- See Also:
-
ERROR_REASON_UNKNOWN_DEFINITION_VALUE
public static final int ERROR_REASON_UNKNOWN_DEFINITION_VALUEThe request referenced an unknown object definition in the schema. Example of an ErrorInfo: { "reason": "ERROR_REASON_UNKNOWN_DEFINITION", "domain": "authzed.com", "metadata": { "definition_name": "somedefinition" } }
ERROR_REASON_UNKNOWN_DEFINITION = 3;
- See Also:
-
ERROR_REASON_UNKNOWN_RELATION_OR_PERMISSION_VALUE
public static final int ERROR_REASON_UNKNOWN_RELATION_OR_PERMISSION_VALUEThe request referenced an unknown relation or permission under a definition in the schema. Example of an ErrorInfo: { "reason": "ERROR_REASON_UNKNOWN_RELATION_OR_PERMISSION", "domain": "authzed.com", "metadata": { "definition_name": "somedefinition", "relation_or_permission_name": "somepermission" } }
ERROR_REASON_UNKNOWN_RELATION_OR_PERMISSION = 4;
- See Also:
-
ERROR_REASON_TOO_MANY_UPDATES_IN_REQUEST_VALUE
public static final int ERROR_REASON_TOO_MANY_UPDATES_IN_REQUEST_VALUEThe WriteRelationships request contained more updates than the maximum configured. Example of an ErrorInfo: { "reason": "ERROR_REASON_TOO_MANY_UPDATES_IN_REQUEST", "domain": "authzed.com", "metadata": { "update_count": "525", "maximum_updates_allowed": "500", } }
ERROR_REASON_TOO_MANY_UPDATES_IN_REQUEST = 5;
- See Also:
-
ERROR_REASON_TOO_MANY_PRECONDITIONS_IN_REQUEST_VALUE
public static final int ERROR_REASON_TOO_MANY_PRECONDITIONS_IN_REQUEST_VALUEThe request contained more preconditions than the maximum configured. Example of an ErrorInfo: { "reason": "ERROR_REASON_TOO_MANY_PRECONDITIONS_IN_REQUEST", "domain": "authzed.com", "metadata": { "precondition_count": "525", "maximum_preconditions_allowed": "500", } }
ERROR_REASON_TOO_MANY_PRECONDITIONS_IN_REQUEST = 6;
- See Also:
-
ERROR_REASON_WRITE_OR_DELETE_PRECONDITION_FAILURE_VALUE
public static final int ERROR_REASON_WRITE_OR_DELETE_PRECONDITION_FAILURE_VALUEThe request contained a precondition that failed. Example of an ErrorInfo: { "reason": "ERROR_REASON_WRITE_OR_DELETE_PRECONDITION_FAILURE", "domain": "authzed.com", "metadata": { "precondition_resource_type": "document", ... other fields for the filter ... "precondition_operation": "MUST_EXIST", } }
ERROR_REASON_WRITE_OR_DELETE_PRECONDITION_FAILURE = 7;
- See Also:
-
ERROR_REASON_SERVICE_READ_ONLY_VALUE
public static final int ERROR_REASON_SERVICE_READ_ONLY_VALUEA write or delete request was made to an instance that is deployed in read-only mode. Example of an ErrorInfo: { "reason": "ERROR_REASON_SERVICE_READ_ONLY", "domain": "authzed.com" }
ERROR_REASON_SERVICE_READ_ONLY = 8;
- See Also:
-
ERROR_REASON_UNKNOWN_CAVEAT_VALUE
public static final int ERROR_REASON_UNKNOWN_CAVEAT_VALUEThe request referenced an unknown caveat in the schema. Example of an ErrorInfo: { "reason": "ERROR_REASON_UNKNOWN_CAVEAT", "domain": "authzed.com", "metadata": { "caveat_name": "somecaveat" } }
ERROR_REASON_UNKNOWN_CAVEAT = 9;
- See Also:
-
ERROR_REASON_INVALID_SUBJECT_TYPE_VALUE
public static final int ERROR_REASON_INVALID_SUBJECT_TYPE_VALUEThe request tries to use a subject type that was not valid for a relation. Example of an ErrorInfo: { "reason": "ERROR_REASON_INVALID_SUBJECT_TYPE", "domain": "authzed.com", "metadata": { "definition_name": "somedefinition", "relation_name": "somerelation", "subject_type": "user:*" } }
ERROR_REASON_INVALID_SUBJECT_TYPE = 10;
- See Also:
-
ERROR_REASON_CAVEAT_PARAMETER_TYPE_ERROR_VALUE
public static final int ERROR_REASON_CAVEAT_PARAMETER_TYPE_ERROR_VALUEThe request tries to specify a caveat parameter value with the wrong type. Example of an ErrorInfo: { "reason": "ERROR_REASON_CAVEAT_PARAMETER_TYPE_ERROR", "domain": "authzed.com", "metadata": { "definition_name": "somedefinition", "relation_name": "somerelation", "caveat_name": "somecaveat", "parameter_name": "someparameter", "expected_type": "int", } }
ERROR_REASON_CAVEAT_PARAMETER_TYPE_ERROR = 11;
- See Also:
-
ERROR_REASON_UPDATES_ON_SAME_RELATIONSHIP_VALUE
public static final int ERROR_REASON_UPDATES_ON_SAME_RELATIONSHIP_VALUEThe request tries to perform two or more updates on the same relationship in the same WriteRelationships call. Example of an ErrorInfo: { "reason": "ERROR_REASON_UPDATES_ON_SAME_RELATIONSHIP", "domain": "authzed.com", "metadata": { "definition_name": "somedefinition", "relationship": "somerelationship", } }
ERROR_REASON_UPDATES_ON_SAME_RELATIONSHIP = 12;
- See Also:
-
ERROR_REASON_CANNOT_UPDATE_PERMISSION_VALUE
public static final int ERROR_REASON_CANNOT_UPDATE_PERMISSION_VALUEThe request tries to write a relationship on a permission instead of a relation. Example of an ErrorInfo: { "reason": "ERROR_REASON_CANNOT_UPDATE_PERMISSION", "domain": "authzed.com", "metadata": { "definition_name": "somedefinition", "permission_name": "somerelation", } }
ERROR_REASON_CANNOT_UPDATE_PERMISSION = 13;
- See Also:
-
ERROR_REASON_CAVEAT_EVALUATION_ERROR_VALUE
public static final int ERROR_REASON_CAVEAT_EVALUATION_ERROR_VALUEThe request failed to evaluate a caveat expression due to an error. Example of an ErrorInfo: { "reason": "ERROR_REASON_CAVEAT_EVALUATION_ERROR", "domain": "authzed.com", "metadata": { "caveat_name": "somecaveat", } }
ERROR_REASON_CAVEAT_EVALUATION_ERROR = 14;
- See Also:
-
ERROR_REASON_INVALID_CURSOR_VALUE
public static final int ERROR_REASON_INVALID_CURSOR_VALUEThe request failed because the provided cursor was invalid in some way. Example of an ErrorInfo: { "reason": "ERROR_REASON_INVALID_CURSOR", "domain": "authzed.com", "metadata": { ... additional keys based on the kind of cursor error ... } }
ERROR_REASON_INVALID_CURSOR = 15;
- See Also:
-
ERROR_REASON_TOO_MANY_RELATIONSHIPS_FOR_TRANSACTIONAL_DELETE_VALUE
public static final int ERROR_REASON_TOO_MANY_RELATIONSHIPS_FOR_TRANSACTIONAL_DELETE_VALUEThe request failed because there are too many matching relationships to be deleted within a single transactional deletion call. To avoid, set `optional_allow_partial_deletions` to true on the DeleteRelationships call. Example of an ErrorInfo: { "reason": "ERROR_REASON_TOO_MANY_RELATIONSHIPS_FOR_TRANSACTIONAL_DELETE", "domain": "authzed.com", "metadata": { ... fields for the filter ... } }
ERROR_REASON_TOO_MANY_RELATIONSHIPS_FOR_TRANSACTIONAL_DELETE = 16;
- See Also:
-
ERROR_REASON_MAX_RELATIONSHIP_CONTEXT_SIZE_VALUE
public static final int ERROR_REASON_MAX_RELATIONSHIP_CONTEXT_SIZE_VALUEThe request failed because the client attempted to write a relationship with a context that exceeded the configured server limit. Example of an ErrorInfo: { "reason": "ERROR_REASON_MAX_RELATIONSHIP_CONTEXT_SIZE", "domain": "authzed.com", "metadata": { "relationship": "relationship_exceeding_the_limit", "max_allowed_size": "server_max_allowed_context_size", "context_size": "actual_relationship_context_size" , } }
ERROR_REASON_MAX_RELATIONSHIP_CONTEXT_SIZE = 17;
- See Also:
-
ERROR_REASON_ATTEMPT_TO_RECREATE_RELATIONSHIP_VALUE
public static final int ERROR_REASON_ATTEMPT_TO_RECREATE_RELATIONSHIP_VALUEThe request failed because a relationship marked to be CREATEd was already present within the datastore. Example of an ErrorInfo: { "reason": "ERROR_REASON_ATTEMPT_TO_RECREATE_RELATIONSHIP", "domain": "authzed.com", "metadata": { "relationship": "relationship_that_already_existed", "resource_type": "resource type", "resource_object_id": "resource object id", ... additional decomposed relationship fields ... } }
ERROR_REASON_ATTEMPT_TO_RECREATE_RELATIONSHIP = 18;
- See Also:
-
ERROR_REASON_MAXIMUM_DEPTH_EXCEEDED_VALUE
public static final int ERROR_REASON_MAXIMUM_DEPTH_EXCEEDED_VALUEThe request failed because it caused the maximum depth allowed to be exceeded. This typically indicates that there is a circular data traversal somewhere in the schema, but can also be raised if the data traversal is simply too deep. Example of an ErrorInfo: { "reason": "ERROR_REASON_MAXIMUM_DEPTH_EXCEEDED", "domain": "authzed.com", "metadata": { "maximum_depth_allowed": "50", ... additional fields based on request type ... } }
ERROR_REASON_MAXIMUM_DEPTH_EXCEEDED = 19;
- See Also:
-
ERROR_REASON_SERIALIZATION_FAILURE_VALUE
public static final int ERROR_REASON_SERIALIZATION_FAILURE_VALUEThe request failed due to a serialization error in the backend database. This typically indicates that various in flight transactions conflicted with each other and the database had to abort one or more of them. SpiceDB will retry a few times before returning the error to the client. Example of an ErrorInfo: { "reason": "ERROR_REASON_SERIALIZATION_FAILURE", "domain": "authzed.com", "metadata": {} }
ERROR_REASON_SERIALIZATION_FAILURE = 20;
- See Also:
-
ERROR_REASON_TOO_MANY_CHECKS_IN_REQUEST_VALUE
public static final int ERROR_REASON_TOO_MANY_CHECKS_IN_REQUEST_VALUEThe request contained more check items than the maximum configured. Example of an ErrorInfo: { "reason": "ERROR_REASON_TOO_MANY_CHECKS_IN_REQUEST", "domain": "authzed.com", "metadata": { "check_count": "525", "maximum_checks_allowed": "500", } }
ERROR_REASON_TOO_MANY_CHECKS_IN_REQUEST = 21;
- See Also:
-
ERROR_REASON_EXCEEDS_MAXIMUM_ALLOWABLE_LIMIT_VALUE
public static final int ERROR_REASON_EXCEEDS_MAXIMUM_ALLOWABLE_LIMIT_VALUEThe request's specified limit is too large. Example of an ErrorInfo: { "reason": "ERROR_REASON_EXCEEDS_MAXIMUM_ALLOWABLE_LIMIT", "domain": "authzed.com", "metadata": { "limit_provided": "525", "maximum_limit_allowed": "500", } }
ERROR_REASON_EXCEEDS_MAXIMUM_ALLOWABLE_LIMIT = 22;
- See Also:
-
ERROR_REASON_INVALID_FILTER_VALUE
public static final int ERROR_REASON_INVALID_FILTER_VALUEThe request failed because the provided filter was invalid in some way. Example of an ErrorInfo: { "reason": "ERROR_REASON_INVALID_FILTER", "domain": "authzed.com", "metadata": { "filter": "...", } }
ERROR_REASON_INVALID_FILTER = 23;
- See Also:
-
ERROR_REASON_INMEMORY_TOO_MANY_CONCURRENT_UPDATES_VALUE
public static final int ERROR_REASON_INMEMORY_TOO_MANY_CONCURRENT_UPDATES_VALUEThe request failed because too many concurrent updates were attempted against the in-memory datastore. Example of an ErrorInfo: { "reason": "ERROR_REASON_INMEMORY_TOO_MANY_CONCURRENT_UPDATES", "domain": "authzed.com", "metadata": {} }
ERROR_REASON_INMEMORY_TOO_MANY_CONCURRENT_UPDATES = 24;
- See Also:
-
ERROR_REASON_EMPTY_PRECONDITION_VALUE
public static final int ERROR_REASON_EMPTY_PRECONDITION_VALUEThe request failed because the precondition specified is empty. Example of an ErrorInfo: { "reason": "ERROR_REASON_EMPTY_PRECONDITION", "domain": "authzed.com", "metadata": {} }
ERROR_REASON_EMPTY_PRECONDITION = 25;
- See Also:
-
ERROR_REASON_COUNTER_ALREADY_REGISTERED_VALUE
public static final int ERROR_REASON_COUNTER_ALREADY_REGISTERED_VALUEThe request failed because the counter was already registered. Example of an ErrorInfo: { "reason": "ERROR_REASON_COUNTER_ALREADY_REGISTERED", "domain": "authzed.com", "metadata": { "counter_name": "name" } }
ERROR_REASON_COUNTER_ALREADY_REGISTERED = 26;
- See Also:
-
ERROR_REASON_COUNTER_NOT_REGISTERED_VALUE
public static final int ERROR_REASON_COUNTER_NOT_REGISTERED_VALUEThe request failed because the counter was not registered. Example of an ErrorInfo: { "reason": "ERROR_REASON_COUNTER_NOT_REGISTERED", "domain": "authzed.com", "metadata": { "counter_name": "name" } }
ERROR_REASON_COUNTER_NOT_REGISTERED = 27;
- See Also:
-
ERROR_REASON_WILDCARD_NOT_ALLOWED_VALUE
public static final int ERROR_REASON_WILDCARD_NOT_ALLOWED_VALUEThe request failed because a wildcard was not allowed. For CheckPermission, this means that the subject or resource ID was a wildcard. For LookupResources, this means that the subject ID was a wildcard. Example of an ErrorInfo: { "reason": "ERROR_REASON_WILDCARD_NOT_ALLOWED", "domain": "authzed.com", "metadata": { "disallowed_field": "subject_id" } }
ERROR_REASON_WILDCARD_NOT_ALLOWED = 28;
- See Also:
-
ERROR_REASON_TRANSACTION_METADATA_TOO_LARGE_VALUE
public static final int ERROR_REASON_TRANSACTION_METADATA_TOO_LARGE_VALUEThe request failed because the transaction metadata was too large. Example of an ErrorInfo: { "reason": "ERROR_REASON_TRANSACTION_METADATA_TOO_LARGE", "domain": "authzed.com", "metadata": { "metadata_byte_size": "1024", "maximum_allowed_metadata_byte_size": "512", } }
ERROR_REASON_TRANSACTION_METADATA_TOO_LARGE = 29;
- See Also:
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException
- if the argument is null
-
forNumber
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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 nameNullPointerException
- if the argument is null
-