#![allow(unknown_lints)]
#![allow(clippy::all)]
#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]
#![allow(box_pointers)]
#![allow(dead_code)]
#![allow(missing_docs)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
#![allow(trivial_casts)]
#![allow(unused_imports)]
#![allow(unused_results)]
#[derive(PartialEq,Clone,Default)]
pub struct Status {
pub code: i32,
pub message: ::std::string::String,
pub details: ::protobuf::RepeatedField<::protobuf::well_known_types::Any>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a Status {
fn default() -> &'a Status {
<Status as ::protobuf::Message>::default_instance()
}
}
impl Status {
pub fn new() -> Status {
::std::default::Default::default()
}
pub fn get_code(&self) -> i32 {
self.code
}
pub fn clear_code(&mut self) {
self.code = 0;
}
pub fn set_code(&mut self, v: i32) {
self.code = v;
}
pub fn get_message(&self) -> &str {
&self.message
}
pub fn clear_message(&mut self) {
self.message.clear();
}
pub fn set_message(&mut self, v: ::std::string::String) {
self.message = v;
}
pub fn mut_message(&mut self) -> &mut ::std::string::String {
&mut self.message
}
pub fn take_message(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.message, ::std::string::String::new())
}
pub fn get_details(&self) -> &[::protobuf::well_known_types::Any] {
&self.details
}
pub fn clear_details(&mut self) {
self.details.clear();
}
pub fn set_details(&mut self, v: ::protobuf::RepeatedField<::protobuf::well_known_types::Any>) {
self.details = v;
}
pub fn mut_details(&mut self) -> &mut ::protobuf::RepeatedField<::protobuf::well_known_types::Any> {
&mut self.details
}
pub fn take_details(&mut self) -> ::protobuf::RepeatedField<::protobuf::well_known_types::Any> {
::std::mem::replace(&mut self.details, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for Status {
fn is_initialized(&self) -> bool {
for v in &self.details {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.code = tmp;
},
2 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.message)?;
},
3 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.details)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if self.code != 0 {
my_size += ::protobuf::rt::value_size(1, self.code, ::protobuf::wire_format::WireTypeVarint);
}
if !self.message.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.message);
}
for value in &self.details {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if self.code != 0 {
os.write_int32(1, self.code)?;
}
if !self.message.is_empty() {
os.write_string(2, &self.message)?;
}
for v in &self.details {
os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> Status {
Status::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"code",
|m: &Status| { &m.code },
|m: &mut Status| { &mut m.code },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"message",
|m: &Status| { &m.message },
|m: &mut Status| { &mut m.message },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Any>>(
"details",
|m: &Status| { &m.details },
|m: &mut Status| { &mut m.details },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<Status>(
"Status",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static Status {
static instance: ::protobuf::rt::LazyV2<Status> = ::protobuf::rt::LazyV2::INIT;
instance.get(Status::new)
}
}
impl ::protobuf::Clear for Status {
fn clear(&mut self) {
self.code = 0;
self.message.clear();
self.details.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Status {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Status {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x17google/rpc/status.proto\x12\ngoogle.rpc\x1a\x19google/protobuf/any\
.proto\"f\n\x06Status\x12\x12\n\x04code\x18\x01\x20\x01(\x05R\x04code\
\x12\x18\n\x07message\x18\x02\x20\x01(\tR\x07message\x12.\n\x07details\
\x18\x03\x20\x03(\x0b2\x14.google.protobuf.AnyR\x07detailsBa\n\x0ecom.go\
ogle.rpcB\x0bStatusProtoP\x01Z7google.golang.org/genproto/googleapis/rpc\
/status;status\xf8\x01\x01\xa2\x02\x03RPCJ\x84\x0e\n\x06\x12\x04\x0e\00\
\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202022\
\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\
\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\
e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\
e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\
\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\
\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\
\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\
se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\
UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\
express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\
ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\
\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\
\x02\x03\0\x12\x03\x12\0#\n\x08\n\x01\x08\x12\x03\x14\0\x1f\n\t\n\x02\
\x08\x1f\x12\x03\x14\0\x1f\n\x08\n\x01\x08\x12\x03\x15\0N\n\t\n\x02\x08\
\x0b\x12\x03\x15\0N\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\
\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\0,\n\t\n\x02\x08\x08\x12\x03\
\x17\0,\n\x08\n\x01\x08\x12\x03\x18\0'\n\t\n\x02\x08\x01\x12\x03\x18\0'\
\n\x08\n\x01\x08\x12\x03\x19\0!\n\t\n\x02\x08$\x12\x03\x19\0!\n\xbe\x03\
\n\x02\x04\0\x12\x04\"\00\x01\x1a\xb1\x03\x20The\x20`Status`\x20type\x20\
defines\x20a\x20logical\x20error\x20model\x20that\x20is\x20suitable\x20f\
or\n\x20different\x20programming\x20environments,\x20including\x20REST\
\x20APIs\x20and\x20RPC\x20APIs.\x20It\x20is\n\x20used\x20by\x20[gRPC](ht\
tps://github.com/grpc).\x20Each\x20`Status`\x20message\x20contains\n\x20\
three\x20pieces\x20of\x20data:\x20error\x20code,\x20error\x20message,\
\x20and\x20error\x20details.\n\n\x20You\x20can\x20find\x20out\x20more\
\x20about\x20this\x20error\x20model\x20and\x20how\x20to\x20work\x20with\
\x20it\x20in\x20the\n\x20[API\x20Design\x20Guide](https://cloud.google.c\
om/apis/design/errors).\n\n\n\n\x03\x04\0\x01\x12\x03\"\x08\x0e\ne\n\x04\
\x04\0\x02\0\x12\x03%\x02\x11\x1aX\x20The\x20status\x20code,\x20which\
\x20should\x20be\x20an\x20enum\x20value\x20of\n\x20[google.rpc.Code][goo\
gle.rpc.Code].\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03%\x02\x07\n\x0c\n\
\x05\x04\0\x02\0\x01\x12\x03%\x08\x0c\n\x0c\n\x05\x04\0\x02\0\x03\x12\
\x03%\x0f\x10\n\xec\x01\n\x04\x04\0\x02\x01\x12\x03+\x02\x15\x1a\xde\x01\
\x20A\x20developer-facing\x20error\x20message,\x20which\x20should\x20be\
\x20in\x20English.\x20Any\n\x20user-facing\x20error\x20message\x20should\
\x20be\x20localized\x20and\x20sent\x20in\x20the\n\x20[google.rpc.Status.\
details][google.rpc.Status.details]\x20field,\x20or\x20localized\n\x20by\
\x20the\x20client.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03+\x02\x08\n\
\x0c\n\x05\x04\0\x02\x01\x01\x12\x03+\t\x10\n\x0c\n\x05\x04\0\x02\x01\
\x03\x12\x03+\x13\x14\ny\n\x04\x04\0\x02\x02\x12\x03/\x02+\x1al\x20A\x20\
list\x20of\x20messages\x20that\x20carry\x20the\x20error\x20details.\x20\
\x20There\x20is\x20a\x20common\x20set\x20of\n\x20message\x20types\x20for\
\x20APIs\x20to\x20use.\n\n\x0c\n\x05\x04\0\x02\x02\x04\x12\x03/\x02\n\n\
\x0c\n\x05\x04\0\x02\x02\x06\x12\x03/\x0b\x1e\n\x0c\n\x05\x04\0\x02\x02\
\x01\x12\x03/\x1f&\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03/)*b\x06proto3\
";
static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
}
pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}