google_cloud_rust_raw/
empty.rs

1// This file is generated by rust-protobuf 2.28.0. Do not edit
2// @generated
3
4// https://github.com/rust-lang/rust-clippy/issues/702
5#![allow(unknown_lints)]
6#![allow(clippy::all)]
7
8#![allow(unused_attributes)]
9#![cfg_attr(rustfmt, rustfmt::skip)]
10
11#![allow(box_pointers)]
12#![allow(dead_code)]
13#![allow(missing_docs)]
14#![allow(non_camel_case_types)]
15#![allow(non_snake_case)]
16#![allow(non_upper_case_globals)]
17#![allow(trivial_casts)]
18#![allow(unused_imports)]
19#![allow(unused_results)]
20//! Generated file from `empty.proto`
21
22/// Generated files are compatible only with the same version
23/// of protobuf runtime.
24// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0;
25
26#[derive(PartialEq,Clone,Default)]
27pub struct Empty {
28    // special fields
29    pub unknown_fields: ::protobuf::UnknownFields,
30    pub cached_size: ::protobuf::CachedSize,
31}
32
33impl<'a> ::std::default::Default for &'a Empty {
34    fn default() -> &'a Empty {
35        <Empty as ::protobuf::Message>::default_instance()
36    }
37}
38
39impl Empty {
40    pub fn new() -> Empty {
41        ::std::default::Default::default()
42    }
43}
44
45impl ::protobuf::Message for Empty {
46    fn is_initialized(&self) -> bool {
47        true
48    }
49
50    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
51        while !is.eof()? {
52            let (field_number, wire_type) = is.read_tag_unpack()?;
53            match field_number {
54                _ => {
55                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
56                },
57            };
58        }
59        ::std::result::Result::Ok(())
60    }
61
62    // Compute sizes of nested messages
63    #[allow(unused_variables)]
64    fn compute_size(&self) -> u32 {
65        let mut my_size = 0;
66        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
67        self.cached_size.set(my_size);
68        my_size
69    }
70
71    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
72        os.write_unknown_fields(self.get_unknown_fields())?;
73        ::std::result::Result::Ok(())
74    }
75
76    fn get_cached_size(&self) -> u32 {
77        self.cached_size.get()
78    }
79
80    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
81        &self.unknown_fields
82    }
83
84    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
85        &mut self.unknown_fields
86    }
87
88    fn as_any(&self) -> &dyn (::std::any::Any) {
89        self as &dyn (::std::any::Any)
90    }
91    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
92        self as &mut dyn (::std::any::Any)
93    }
94    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
95        self
96    }
97
98    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
99        Self::descriptor_static()
100    }
101
102    fn new() -> Empty {
103        Empty::new()
104    }
105
106    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
107        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
108        descriptor.get(|| {
109            let fields = ::std::vec::Vec::new();
110            ::protobuf::reflect::MessageDescriptor::new_pb_name::<Empty>(
111                "Empty",
112                fields,
113                file_descriptor_proto()
114            )
115        })
116    }
117
118    fn default_instance() -> &'static Empty {
119        static instance: ::protobuf::rt::LazyV2<Empty> = ::protobuf::rt::LazyV2::INIT;
120        instance.get(Empty::new)
121    }
122}
123
124impl ::protobuf::Clear for Empty {
125    fn clear(&mut self) {
126        self.unknown_fields.clear();
127    }
128}
129
130impl ::std::fmt::Debug for Empty {
131    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
132        ::protobuf::text_format::fmt(self, f)
133    }
134}
135
136impl ::protobuf::reflect::ProtobufValue for Empty {
137    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
138        ::protobuf::reflect::ReflectValueRef::Message(self)
139    }
140}
141
142static file_descriptor_proto_data: &'static [u8] = b"\
143    \n\x0bempty.proto\x12\x0cgrpc.testing\"\x07\n\x05EmptyJ\x90\x07\n\x06\
144    \x12\x04\x0f\0\x1b\x10\n\xbf\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb4\x04\
145    \x20Copyright\x202015\x20gRPC\x20authors.\n\n\x20Licensed\x20under\x20th\
146    e\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20\
147    you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\
148    \x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\
149    \x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/li\
150    censes/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\
151    \x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\
152    \x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20\
153    IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\
154    NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\
155    cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\
156    \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\
157    \x12\x03\x11\0\x15\n\xad\x02\n\x02\x04\0\x12\x03\x1b\0\x10\x1a\xa1\x02\
158    \x20An\x20empty\x20message\x20that\x20you\x20can\x20re-use\x20to\x20avoi\
159    d\x20defining\x20duplicated\x20empty\n\x20messages\x20in\x20your\x20proj\
160    ect.\x20A\x20typical\x20example\x20is\x20to\x20use\x20it\x20as\x20argume\
161    nt\x20or\x20the\n\x20return\x20value\x20of\x20a\x20service\x20API.\x20Fo\
162    r\x20instance:\n\n\x20\x20\x20service\x20Foo\x20{\n\x20\x20\x20\x20\x20r\
163    pc\x20Bar\x20(grpc.testing.Empty)\x20returns\x20(grpc.testing.Empty)\x20\
164    {\x20};\n\x20\x20\x20};\n\n\n\n\n\x03\x04\0\x01\x12\x03\x1b\x08\rb\x06pr\
165    oto3\
166";
167
168static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
169
170fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
171    ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
172}
173
174pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
175    file_descriptor_proto_lazy.get(|| {
176        parse_descriptor_proto()
177    })
178}