google_cloud_rust_raw/api/
log.rs1#![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#[derive(PartialEq,Clone,Default)]
27pub struct LogDescriptor {
28 pub name: ::std::string::String,
30 pub labels: ::protobuf::RepeatedField<super::label::LabelDescriptor>,
31 pub description: ::std::string::String,
32 pub display_name: ::std::string::String,
33 pub unknown_fields: ::protobuf::UnknownFields,
35 pub cached_size: ::protobuf::CachedSize,
36}
37
38impl<'a> ::std::default::Default for &'a LogDescriptor {
39 fn default() -> &'a LogDescriptor {
40 <LogDescriptor as ::protobuf::Message>::default_instance()
41 }
42}
43
44impl LogDescriptor {
45 pub fn new() -> LogDescriptor {
46 ::std::default::Default::default()
47 }
48
49 pub fn get_name(&self) -> &str {
53 &self.name
54 }
55 pub fn clear_name(&mut self) {
56 self.name.clear();
57 }
58
59 pub fn set_name(&mut self, v: ::std::string::String) {
61 self.name = v;
62 }
63
64 pub fn mut_name(&mut self) -> &mut ::std::string::String {
67 &mut self.name
68 }
69
70 pub fn take_name(&mut self) -> ::std::string::String {
72 ::std::mem::replace(&mut self.name, ::std::string::String::new())
73 }
74
75 pub fn get_labels(&self) -> &[super::label::LabelDescriptor] {
79 &self.labels
80 }
81 pub fn clear_labels(&mut self) {
82 self.labels.clear();
83 }
84
85 pub fn set_labels(&mut self, v: ::protobuf::RepeatedField<super::label::LabelDescriptor>) {
87 self.labels = v;
88 }
89
90 pub fn mut_labels(&mut self) -> &mut ::protobuf::RepeatedField<super::label::LabelDescriptor> {
92 &mut self.labels
93 }
94
95 pub fn take_labels(&mut self) -> ::protobuf::RepeatedField<super::label::LabelDescriptor> {
97 ::std::mem::replace(&mut self.labels, ::protobuf::RepeatedField::new())
98 }
99
100 pub fn get_description(&self) -> &str {
104 &self.description
105 }
106 pub fn clear_description(&mut self) {
107 self.description.clear();
108 }
109
110 pub fn set_description(&mut self, v: ::std::string::String) {
112 self.description = v;
113 }
114
115 pub fn mut_description(&mut self) -> &mut ::std::string::String {
118 &mut self.description
119 }
120
121 pub fn take_description(&mut self) -> ::std::string::String {
123 ::std::mem::replace(&mut self.description, ::std::string::String::new())
124 }
125
126 pub fn get_display_name(&self) -> &str {
130 &self.display_name
131 }
132 pub fn clear_display_name(&mut self) {
133 self.display_name.clear();
134 }
135
136 pub fn set_display_name(&mut self, v: ::std::string::String) {
138 self.display_name = v;
139 }
140
141 pub fn mut_display_name(&mut self) -> &mut ::std::string::String {
144 &mut self.display_name
145 }
146
147 pub fn take_display_name(&mut self) -> ::std::string::String {
149 ::std::mem::replace(&mut self.display_name, ::std::string::String::new())
150 }
151}
152
153impl ::protobuf::Message for LogDescriptor {
154 fn is_initialized(&self) -> bool {
155 for v in &self.labels {
156 if !v.is_initialized() {
157 return false;
158 }
159 };
160 true
161 }
162
163 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
164 while !is.eof()? {
165 let (field_number, wire_type) = is.read_tag_unpack()?;
166 match field_number {
167 1 => {
168 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
169 },
170 2 => {
171 ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.labels)?;
172 },
173 3 => {
174 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?;
175 },
176 4 => {
177 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?;
178 },
179 _ => {
180 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
181 },
182 };
183 }
184 ::std::result::Result::Ok(())
185 }
186
187 #[allow(unused_variables)]
189 fn compute_size(&self) -> u32 {
190 let mut my_size = 0;
191 if !self.name.is_empty() {
192 my_size += ::protobuf::rt::string_size(1, &self.name);
193 }
194 for value in &self.labels {
195 let len = value.compute_size();
196 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
197 };
198 if !self.description.is_empty() {
199 my_size += ::protobuf::rt::string_size(3, &self.description);
200 }
201 if !self.display_name.is_empty() {
202 my_size += ::protobuf::rt::string_size(4, &self.display_name);
203 }
204 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
205 self.cached_size.set(my_size);
206 my_size
207 }
208
209 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
210 if !self.name.is_empty() {
211 os.write_string(1, &self.name)?;
212 }
213 for v in &self.labels {
214 os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
215 os.write_raw_varint32(v.get_cached_size())?;
216 v.write_to_with_cached_sizes(os)?;
217 };
218 if !self.description.is_empty() {
219 os.write_string(3, &self.description)?;
220 }
221 if !self.display_name.is_empty() {
222 os.write_string(4, &self.display_name)?;
223 }
224 os.write_unknown_fields(self.get_unknown_fields())?;
225 ::std::result::Result::Ok(())
226 }
227
228 fn get_cached_size(&self) -> u32 {
229 self.cached_size.get()
230 }
231
232 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
233 &self.unknown_fields
234 }
235
236 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
237 &mut self.unknown_fields
238 }
239
240 fn as_any(&self) -> &dyn (::std::any::Any) {
241 self as &dyn (::std::any::Any)
242 }
243 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
244 self as &mut dyn (::std::any::Any)
245 }
246 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
247 self
248 }
249
250 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
251 Self::descriptor_static()
252 }
253
254 fn new() -> LogDescriptor {
255 LogDescriptor::new()
256 }
257
258 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
259 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
260 descriptor.get(|| {
261 let mut fields = ::std::vec::Vec::new();
262 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
263 "name",
264 |m: &LogDescriptor| { &m.name },
265 |m: &mut LogDescriptor| { &mut m.name },
266 ));
267 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::label::LabelDescriptor>>(
268 "labels",
269 |m: &LogDescriptor| { &m.labels },
270 |m: &mut LogDescriptor| { &mut m.labels },
271 ));
272 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
273 "description",
274 |m: &LogDescriptor| { &m.description },
275 |m: &mut LogDescriptor| { &mut m.description },
276 ));
277 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
278 "display_name",
279 |m: &LogDescriptor| { &m.display_name },
280 |m: &mut LogDescriptor| { &mut m.display_name },
281 ));
282 ::protobuf::reflect::MessageDescriptor::new_pb_name::<LogDescriptor>(
283 "LogDescriptor",
284 fields,
285 file_descriptor_proto()
286 )
287 })
288 }
289
290 fn default_instance() -> &'static LogDescriptor {
291 static instance: ::protobuf::rt::LazyV2<LogDescriptor> = ::protobuf::rt::LazyV2::INIT;
292 instance.get(LogDescriptor::new)
293 }
294}
295
296impl ::protobuf::Clear for LogDescriptor {
297 fn clear(&mut self) {
298 self.name.clear();
299 self.labels.clear();
300 self.description.clear();
301 self.display_name.clear();
302 self.unknown_fields.clear();
303 }
304}
305
306impl ::std::fmt::Debug for LogDescriptor {
307 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
308 ::protobuf::text_format::fmt(self, f)
309 }
310}
311
312impl ::protobuf::reflect::ProtobufValue for LogDescriptor {
313 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
314 ::protobuf::reflect::ReflectValueRef::Message(self)
315 }
316}
317
318static file_descriptor_proto_data: &'static [u8] = b"\
319 \n\x14google/api/log.proto\x12\ngoogle.api\x1a\x16google/api/label.proto\
320 \"\x9d\x01\n\rLogDescriptor\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04nam\
321 e\x123\n\x06labels\x18\x02\x20\x03(\x0b2\x1b.google.api.LabelDescriptorR\
322 \x06labels\x12\x20\n\x0bdescription\x18\x03\x20\x01(\tR\x0bdescription\
323 \x12!\n\x0cdisplay_name\x18\x04\x20\x01(\tR\x0bdisplayNameBj\n\x0ecom.go\
324 ogle.apiB\x08LogProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/se\
325 rviceconfig;serviceconfig\xa2\x02\x04GAPIJ\xfe\x0e\n\x06\x12\x04\x0e\05\
326 \x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\
327 \x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\
328 \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\
329 e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\
330 e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\
331 \n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\
332 \x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\
333 \x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\
334 se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\
335 UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\
336 express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\
337 ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\
338 \x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\
339 \x02\x03\0\x12\x03\x12\0\x20\n\x08\n\x01\x08\x12\x03\x14\0\\\n\t\n\x02\
340 \x08\x0b\x12\x03\x14\0\\\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\
341 \x12\x03\x15\0\"\n\x08\n\x01\x08\x12\x03\x16\0)\n\t\n\x02\x08\x08\x12\
342 \x03\x16\0)\n\x08\n\x01\x08\x12\x03\x17\0'\n\t\n\x02\x08\x01\x12\x03\x17\
343 \0'\n\x08\n\x01\x08\x12\x03\x18\0\"\n\t\n\x02\x08$\x12\x03\x18\0\"\n\xc2\
344 \x02\n\x02\x04\0\x12\x04\"\05\x01\x1a\xb5\x02\x20A\x20description\x20of\
345 \x20a\x20log\x20type.\x20Example\x20in\x20YAML\x20format:\n\n\x20\x20\
346 \x20\x20\x20-\x20name:\x20library.googleapis.com/activity_history\n\x20\
347 \x20\x20\x20\x20\x20\x20description:\x20The\x20history\x20of\x20borrowin\
348 g\x20and\x20returning\x20library\x20items.\n\x20\x20\x20\x20\x20\x20\x20\
349 display_name:\x20Activity\n\x20\x20\x20\x20\x20\x20\x20labels:\n\x20\x20\
350 \x20\x20\x20\x20\x20-\x20key:\x20/customer_id\n\x20\x20\x20\x20\x20\x20\
351 \x20\x20\x20description:\x20Identifier\x20of\x20a\x20library\x20customer\
352 \n\n\n\n\x03\x04\0\x01\x12\x03\"\x08\x15\n\x84\x02\n\x04\x04\0\x02\0\x12\
353 \x03'\x02\x12\x1a\xf6\x01\x20The\x20name\x20of\x20the\x20log.\x20It\x20m\
354 ust\x20be\x20less\x20than\x20512\x20characters\x20long\x20and\x20can\n\
355 \x20include\x20the\x20following\x20characters:\x20upper-\x20and\x20lower\
356 -case\x20alphanumeric\n\x20characters\x20[A-Za-z0-9],\x20and\x20punctuat\
357 ion\x20characters\x20including\n\x20slash,\x20underscore,\x20hyphen,\x20\
358 period\x20[/_-.].\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03'\x02\x08\n\x0c\n\
359 \x05\x04\0\x02\0\x01\x12\x03'\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03'\
360 \x10\x11\n\xa8\x01\n\x04\x04\0\x02\x01\x12\x03,\x02&\x1a\x9a\x01\x20The\
361 \x20set\x20of\x20labels\x20that\x20are\x20available\x20to\x20describe\
362 \x20a\x20specific\x20log\x20entry.\n\x20Runtime\x20requests\x20that\x20c\
363 ontain\x20labels\x20not\x20specified\x20here\x20are\n\x20considered\x20i\
364 nvalid.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03,\x02\n\n\x0c\n\x05\x04\0\
365 \x02\x01\x06\x12\x03,\x0b\x1a\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03,\x1b\
366 !\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03,$%\n\x80\x01\n\x04\x04\0\x02\x02\
367 \x12\x030\x02\x19\x1as\x20A\x20human-readable\x20description\x20of\x20th\
368 is\x20log.\x20This\x20information\x20appears\x20in\n\x20the\x20documenta\
369 tion\x20and\x20can\x20contain\x20details.\n\n\x0c\n\x05\x04\0\x02\x02\
370 \x05\x12\x030\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x030\t\x14\n\x0c\
371 \n\x05\x04\0\x02\x02\x03\x12\x030\x17\x18\n{\n\x04\x04\0\x02\x03\x12\x03\
372 4\x02\x1a\x1an\x20The\x20human-readable\x20name\x20for\x20this\x20log.\
373 \x20This\x20information\x20appears\x20on\n\x20the\x20user\x20interface\
374 \x20and\x20should\x20be\x20concise.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\
375 \x034\x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x034\t\x15\n\x0c\n\x05\
376 \x04\0\x02\x03\x03\x12\x034\x18\x19b\x06proto3\
377";
378
379static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
380
381fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
382 ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
383}
384
385pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
386 file_descriptor_proto_lazy.get(|| {
387 parse_descriptor_proto()
388 })
389}