protos library
This separate export file helps in reducing conflicts between the dart:core
Duration and the proto Duration class.
The error types are exported to allow users to switch based on the type.
Classes
- BadRequest
- Describes violations in a client request. This error type focuses on the syntactic aspects of the request.
- BadRequest_FieldViolation
- A message type used to describe a single bad request field.
- DebugInfo
- Describes additional debugging info.
- Duration
- A Duration represents a signed, fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". It is related to Timestamp in that the difference between two Timestamp values is a Duration and it can be added or subtracted from a Timestamp. Range is approximately +-10,000 years.
- ErrorInfo
- Describes the cause of the error with structured details.
- Help
- Provides links to documentation or for performing an out of band action.
- Help_Link
- Describes a URL link.
- LocalizedMessage
- Provides a localized error message that is safe to return to the user which can be attached to an RPC error.
- PreconditionFailure
- Describes what preconditions have failed.
- PreconditionFailure_Violation
- A message type used to describe a single precondition failure.
- QuotaFailure
- Describes how a quota check failed.
- QuotaFailure_Violation
- A message type used to describe a single quota violation. For example, a daily quota or a custom quota that was exceeded.
- RequestInfo
- Contains metadata about the request that clients can attach when filing a bug or providing other forms of feedback.
- ResourceInfo
- Describes the resource that is being accessed.
- RetryInfo
- Describes when the clients can retry a failed request. Clients could ignore the recommendation here or retry when this information is missing from error responses.