opentelemetry_stackdriver/proto/
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#[derive(Clone, PartialEq, ::prost::Message)]
10pub struct Status {
11    /// The status code, which should be an enum value of
12    /// [google.rpc.Code][google.rpc.Code].
13    #[prost(int32, tag = "1")]
14    pub code: i32,
15    /// A developer-facing error message, which should be in English. Any
16    /// user-facing error message should be localized and sent in the
17    /// [google.rpc.Status.details][google.rpc.Status.details] field, or localized
18    /// by the client.
19    #[prost(string, tag = "2")]
20    pub message: ::prost::alloc::string::String,
21    /// A list of messages that carry the error details.  There is a common set of
22    /// message types for APIs to use.
23    #[prost(message, repeated, tag = "3")]
24    pub details: ::prost::alloc::vec::Vec<::prost_types::Any>,
25}