gcp_bigquery_client/google/
google.rpc.rs

1// This file is @generated by prost-build.
2/// The `Status` type defines a logical error model that is suitable for
3/// different programming environments, including REST APIs and RPC APIs. It is
4/// used by [gRPC](<https://github.com/grpc>). Each `Status` message contains
5/// three pieces of data: error code, error message, and error details.
6///
7/// You can find out more about this error model and how to work with it in the
8/// [API Design Guide](<https://cloud.google.com/apis/design/errors>).
9#[allow(clippy::derive_partial_eq_without_eq)]
10#[derive(Clone, PartialEq, ::prost::Message)]
11pub struct Status {
12    /// The status code, which should be an enum value of
13    /// \[google.rpc.Code\]\[google.rpc.Code\].
14    #[prost(int32, tag = "1")]
15    pub code: i32,
16    /// A developer-facing error message, which should be in English. Any
17    /// user-facing error message should be localized and sent in the
18    /// \[google.rpc.Status.details\]\[google.rpc.Status.details\] field, or localized
19    /// by the client.
20    #[prost(string, tag = "2")]
21    pub message: ::prost::alloc::string::String,
22    /// A list of messages that carry the error details.  There is a common set of
23    /// message types for APIs to use.
24    #[prost(message, repeated, tag = "3")]
25    pub details: ::prost::alloc::vec::Vec<::prost_types::Any>,
26}