1#![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 LogEntry {
28 pub name: ::std::string::String,
30 pub timestamp: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>,
31 pub severity: super::log_severity::LogSeverity,
32 pub http_request: ::protobuf::SingularPtrField<super::http_request::HttpRequest>,
33 pub trace: ::std::string::String,
34 pub insert_id: ::std::string::String,
35 pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
36 pub operation: ::protobuf::SingularPtrField<LogEntryOperation>,
37 pub source_location: ::protobuf::SingularPtrField<LogEntrySourceLocation>,
38 pub payload: ::std::option::Option<LogEntry_oneof_payload>,
40 pub unknown_fields: ::protobuf::UnknownFields,
42 pub cached_size: ::protobuf::CachedSize,
43}
44
45impl<'a> ::std::default::Default for &'a LogEntry {
46 fn default() -> &'a LogEntry {
47 <LogEntry as ::protobuf::Message>::default_instance()
48 }
49}
50
51#[derive(Clone,PartialEq,Debug)]
52pub enum LogEntry_oneof_payload {
53 proto_payload(::protobuf::well_known_types::Any),
54 text_payload(::std::string::String),
55 struct_payload(::protobuf::well_known_types::Struct),
56}
57
58impl LogEntry {
59 pub fn new() -> LogEntry {
60 ::std::default::Default::default()
61 }
62
63 pub fn get_name(&self) -> &str {
67 &self.name
68 }
69 pub fn clear_name(&mut self) {
70 self.name.clear();
71 }
72
73 pub fn set_name(&mut self, v: ::std::string::String) {
75 self.name = v;
76 }
77
78 pub fn mut_name(&mut self) -> &mut ::std::string::String {
81 &mut self.name
82 }
83
84 pub fn take_name(&mut self) -> ::std::string::String {
86 ::std::mem::replace(&mut self.name, ::std::string::String::new())
87 }
88
89 pub fn get_timestamp(&self) -> &::protobuf::well_known_types::Timestamp {
93 self.timestamp.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance())
94 }
95 pub fn clear_timestamp(&mut self) {
96 self.timestamp.clear();
97 }
98
99 pub fn has_timestamp(&self) -> bool {
100 self.timestamp.is_some()
101 }
102
103 pub fn set_timestamp(&mut self, v: ::protobuf::well_known_types::Timestamp) {
105 self.timestamp = ::protobuf::SingularPtrField::some(v);
106 }
107
108 pub fn mut_timestamp(&mut self) -> &mut ::protobuf::well_known_types::Timestamp {
111 if self.timestamp.is_none() {
112 self.timestamp.set_default();
113 }
114 self.timestamp.as_mut().unwrap()
115 }
116
117 pub fn take_timestamp(&mut self) -> ::protobuf::well_known_types::Timestamp {
119 self.timestamp.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new())
120 }
121
122 pub fn get_severity(&self) -> super::log_severity::LogSeverity {
126 self.severity
127 }
128 pub fn clear_severity(&mut self) {
129 self.severity = super::log_severity::LogSeverity::DEFAULT;
130 }
131
132 pub fn set_severity(&mut self, v: super::log_severity::LogSeverity) {
134 self.severity = v;
135 }
136
137 pub fn get_http_request(&self) -> &super::http_request::HttpRequest {
141 self.http_request.as_ref().unwrap_or_else(|| <super::http_request::HttpRequest as ::protobuf::Message>::default_instance())
142 }
143 pub fn clear_http_request(&mut self) {
144 self.http_request.clear();
145 }
146
147 pub fn has_http_request(&self) -> bool {
148 self.http_request.is_some()
149 }
150
151 pub fn set_http_request(&mut self, v: super::http_request::HttpRequest) {
153 self.http_request = ::protobuf::SingularPtrField::some(v);
154 }
155
156 pub fn mut_http_request(&mut self) -> &mut super::http_request::HttpRequest {
159 if self.http_request.is_none() {
160 self.http_request.set_default();
161 }
162 self.http_request.as_mut().unwrap()
163 }
164
165 pub fn take_http_request(&mut self) -> super::http_request::HttpRequest {
167 self.http_request.take().unwrap_or_else(|| super::http_request::HttpRequest::new())
168 }
169
170 pub fn get_trace(&self) -> &str {
174 &self.trace
175 }
176 pub fn clear_trace(&mut self) {
177 self.trace.clear();
178 }
179
180 pub fn set_trace(&mut self, v: ::std::string::String) {
182 self.trace = v;
183 }
184
185 pub fn mut_trace(&mut self) -> &mut ::std::string::String {
188 &mut self.trace
189 }
190
191 pub fn take_trace(&mut self) -> ::std::string::String {
193 ::std::mem::replace(&mut self.trace, ::std::string::String::new())
194 }
195
196 pub fn get_insert_id(&self) -> &str {
200 &self.insert_id
201 }
202 pub fn clear_insert_id(&mut self) {
203 self.insert_id.clear();
204 }
205
206 pub fn set_insert_id(&mut self, v: ::std::string::String) {
208 self.insert_id = v;
209 }
210
211 pub fn mut_insert_id(&mut self) -> &mut ::std::string::String {
214 &mut self.insert_id
215 }
216
217 pub fn take_insert_id(&mut self) -> ::std::string::String {
219 ::std::mem::replace(&mut self.insert_id, ::std::string::String::new())
220 }
221
222 pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
226 &self.labels
227 }
228 pub fn clear_labels(&mut self) {
229 self.labels.clear();
230 }
231
232 pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) {
234 self.labels = v;
235 }
236
237 pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> {
239 &mut self.labels
240 }
241
242 pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
244 ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new())
245 }
246
247 pub fn get_proto_payload(&self) -> &::protobuf::well_known_types::Any {
251 match self.payload {
252 ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(ref v)) => v,
253 _ => <::protobuf::well_known_types::Any as ::protobuf::Message>::default_instance(),
254 }
255 }
256 pub fn clear_proto_payload(&mut self) {
257 self.payload = ::std::option::Option::None;
258 }
259
260 pub fn has_proto_payload(&self) -> bool {
261 match self.payload {
262 ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(..)) => true,
263 _ => false,
264 }
265 }
266
267 pub fn set_proto_payload(&mut self, v: ::protobuf::well_known_types::Any) {
269 self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(v))
270 }
271
272 pub fn mut_proto_payload(&mut self) -> &mut ::protobuf::well_known_types::Any {
274 if let ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(_)) = self.payload {
275 } else {
276 self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(::protobuf::well_known_types::Any::new()));
277 }
278 match self.payload {
279 ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(ref mut v)) => v,
280 _ => panic!(),
281 }
282 }
283
284 pub fn take_proto_payload(&mut self) -> ::protobuf::well_known_types::Any {
286 if self.has_proto_payload() {
287 match self.payload.take() {
288 ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(v)) => v,
289 _ => panic!(),
290 }
291 } else {
292 ::protobuf::well_known_types::Any::new()
293 }
294 }
295
296 pub fn get_text_payload(&self) -> &str {
300 match self.payload {
301 ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(ref v)) => v,
302 _ => "",
303 }
304 }
305 pub fn clear_text_payload(&mut self) {
306 self.payload = ::std::option::Option::None;
307 }
308
309 pub fn has_text_payload(&self) -> bool {
310 match self.payload {
311 ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(..)) => true,
312 _ => false,
313 }
314 }
315
316 pub fn set_text_payload(&mut self, v: ::std::string::String) {
318 self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(v))
319 }
320
321 pub fn mut_text_payload(&mut self) -> &mut ::std::string::String {
323 if let ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(_)) = self.payload {
324 } else {
325 self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(::std::string::String::new()));
326 }
327 match self.payload {
328 ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(ref mut v)) => v,
329 _ => panic!(),
330 }
331 }
332
333 pub fn take_text_payload(&mut self) -> ::std::string::String {
335 if self.has_text_payload() {
336 match self.payload.take() {
337 ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(v)) => v,
338 _ => panic!(),
339 }
340 } else {
341 ::std::string::String::new()
342 }
343 }
344
345 pub fn get_struct_payload(&self) -> &::protobuf::well_known_types::Struct {
349 match self.payload {
350 ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(ref v)) => v,
351 _ => <::protobuf::well_known_types::Struct as ::protobuf::Message>::default_instance(),
352 }
353 }
354 pub fn clear_struct_payload(&mut self) {
355 self.payload = ::std::option::Option::None;
356 }
357
358 pub fn has_struct_payload(&self) -> bool {
359 match self.payload {
360 ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(..)) => true,
361 _ => false,
362 }
363 }
364
365 pub fn set_struct_payload(&mut self, v: ::protobuf::well_known_types::Struct) {
367 self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(v))
368 }
369
370 pub fn mut_struct_payload(&mut self) -> &mut ::protobuf::well_known_types::Struct {
372 if let ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(_)) = self.payload {
373 } else {
374 self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(::protobuf::well_known_types::Struct::new()));
375 }
376 match self.payload {
377 ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(ref mut v)) => v,
378 _ => panic!(),
379 }
380 }
381
382 pub fn take_struct_payload(&mut self) -> ::protobuf::well_known_types::Struct {
384 if self.has_struct_payload() {
385 match self.payload.take() {
386 ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(v)) => v,
387 _ => panic!(),
388 }
389 } else {
390 ::protobuf::well_known_types::Struct::new()
391 }
392 }
393
394 pub fn get_operation(&self) -> &LogEntryOperation {
398 self.operation.as_ref().unwrap_or_else(|| <LogEntryOperation as ::protobuf::Message>::default_instance())
399 }
400 pub fn clear_operation(&mut self) {
401 self.operation.clear();
402 }
403
404 pub fn has_operation(&self) -> bool {
405 self.operation.is_some()
406 }
407
408 pub fn set_operation(&mut self, v: LogEntryOperation) {
410 self.operation = ::protobuf::SingularPtrField::some(v);
411 }
412
413 pub fn mut_operation(&mut self) -> &mut LogEntryOperation {
416 if self.operation.is_none() {
417 self.operation.set_default();
418 }
419 self.operation.as_mut().unwrap()
420 }
421
422 pub fn take_operation(&mut self) -> LogEntryOperation {
424 self.operation.take().unwrap_or_else(|| LogEntryOperation::new())
425 }
426
427 pub fn get_source_location(&self) -> &LogEntrySourceLocation {
431 self.source_location.as_ref().unwrap_or_else(|| <LogEntrySourceLocation as ::protobuf::Message>::default_instance())
432 }
433 pub fn clear_source_location(&mut self) {
434 self.source_location.clear();
435 }
436
437 pub fn has_source_location(&self) -> bool {
438 self.source_location.is_some()
439 }
440
441 pub fn set_source_location(&mut self, v: LogEntrySourceLocation) {
443 self.source_location = ::protobuf::SingularPtrField::some(v);
444 }
445
446 pub fn mut_source_location(&mut self) -> &mut LogEntrySourceLocation {
449 if self.source_location.is_none() {
450 self.source_location.set_default();
451 }
452 self.source_location.as_mut().unwrap()
453 }
454
455 pub fn take_source_location(&mut self) -> LogEntrySourceLocation {
457 self.source_location.take().unwrap_or_else(|| LogEntrySourceLocation::new())
458 }
459}
460
461impl ::protobuf::Message for LogEntry {
462 fn is_initialized(&self) -> bool {
463 for v in &self.timestamp {
464 if !v.is_initialized() {
465 return false;
466 }
467 };
468 for v in &self.http_request {
469 if !v.is_initialized() {
470 return false;
471 }
472 };
473 if let Some(LogEntry_oneof_payload::proto_payload(ref v)) = self.payload {
474 if !v.is_initialized() {
475 return false;
476 }
477 }
478 if let Some(LogEntry_oneof_payload::struct_payload(ref v)) = self.payload {
479 if !v.is_initialized() {
480 return false;
481 }
482 }
483 for v in &self.operation {
484 if !v.is_initialized() {
485 return false;
486 }
487 };
488 for v in &self.source_location {
489 if !v.is_initialized() {
490 return false;
491 }
492 };
493 true
494 }
495
496 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
497 while !is.eof()? {
498 let (field_number, wire_type) = is.read_tag_unpack()?;
499 match field_number {
500 10 => {
501 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
502 },
503 11 => {
504 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.timestamp)?;
505 },
506 12 => {
507 ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.severity, 12, &mut self.unknown_fields)?
508 },
509 14 => {
510 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.http_request)?;
511 },
512 15 => {
513 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.trace)?;
514 },
515 4 => {
516 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.insert_id)?;
517 },
518 13 => {
519 ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?;
520 },
521 2 => {
522 if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
523 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
524 }
525 self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(is.read_message()?));
526 },
527 3 => {
528 if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
529 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
530 }
531 self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(is.read_string()?));
532 },
533 6 => {
534 if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
535 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
536 }
537 self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(is.read_message()?));
538 },
539 16 => {
540 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.operation)?;
541 },
542 17 => {
543 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source_location)?;
544 },
545 _ => {
546 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
547 },
548 };
549 }
550 ::std::result::Result::Ok(())
551 }
552
553 #[allow(unused_variables)]
555 fn compute_size(&self) -> u32 {
556 let mut my_size = 0;
557 if !self.name.is_empty() {
558 my_size += ::protobuf::rt::string_size(10, &self.name);
559 }
560 if let Some(ref v) = self.timestamp.as_ref() {
561 let len = v.compute_size();
562 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
563 }
564 if self.severity != super::log_severity::LogSeverity::DEFAULT {
565 my_size += ::protobuf::rt::enum_size(12, self.severity);
566 }
567 if let Some(ref v) = self.http_request.as_ref() {
568 let len = v.compute_size();
569 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
570 }
571 if !self.trace.is_empty() {
572 my_size += ::protobuf::rt::string_size(15, &self.trace);
573 }
574 if !self.insert_id.is_empty() {
575 my_size += ::protobuf::rt::string_size(4, &self.insert_id);
576 }
577 my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(13, &self.labels);
578 if let Some(ref v) = self.operation.as_ref() {
579 let len = v.compute_size();
580 my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
581 }
582 if let Some(ref v) = self.source_location.as_ref() {
583 let len = v.compute_size();
584 my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
585 }
586 if let ::std::option::Option::Some(ref v) = self.payload {
587 match v {
588 &LogEntry_oneof_payload::proto_payload(ref v) => {
589 let len = v.compute_size();
590 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
591 },
592 &LogEntry_oneof_payload::text_payload(ref v) => {
593 my_size += ::protobuf::rt::string_size(3, &v);
594 },
595 &LogEntry_oneof_payload::struct_payload(ref v) => {
596 let len = v.compute_size();
597 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
598 },
599 };
600 }
601 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
602 self.cached_size.set(my_size);
603 my_size
604 }
605
606 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
607 if !self.name.is_empty() {
608 os.write_string(10, &self.name)?;
609 }
610 if let Some(ref v) = self.timestamp.as_ref() {
611 os.write_tag(11, ::protobuf::wire_format::WireTypeLengthDelimited)?;
612 os.write_raw_varint32(v.get_cached_size())?;
613 v.write_to_with_cached_sizes(os)?;
614 }
615 if self.severity != super::log_severity::LogSeverity::DEFAULT {
616 os.write_enum(12, ::protobuf::ProtobufEnum::value(&self.severity))?;
617 }
618 if let Some(ref v) = self.http_request.as_ref() {
619 os.write_tag(14, ::protobuf::wire_format::WireTypeLengthDelimited)?;
620 os.write_raw_varint32(v.get_cached_size())?;
621 v.write_to_with_cached_sizes(os)?;
622 }
623 if !self.trace.is_empty() {
624 os.write_string(15, &self.trace)?;
625 }
626 if !self.insert_id.is_empty() {
627 os.write_string(4, &self.insert_id)?;
628 }
629 ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(13, &self.labels, os)?;
630 if let Some(ref v) = self.operation.as_ref() {
631 os.write_tag(16, ::protobuf::wire_format::WireTypeLengthDelimited)?;
632 os.write_raw_varint32(v.get_cached_size())?;
633 v.write_to_with_cached_sizes(os)?;
634 }
635 if let Some(ref v) = self.source_location.as_ref() {
636 os.write_tag(17, ::protobuf::wire_format::WireTypeLengthDelimited)?;
637 os.write_raw_varint32(v.get_cached_size())?;
638 v.write_to_with_cached_sizes(os)?;
639 }
640 if let ::std::option::Option::Some(ref v) = self.payload {
641 match v {
642 &LogEntry_oneof_payload::proto_payload(ref v) => {
643 os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
644 os.write_raw_varint32(v.get_cached_size())?;
645 v.write_to_with_cached_sizes(os)?;
646 },
647 &LogEntry_oneof_payload::text_payload(ref v) => {
648 os.write_string(3, v)?;
649 },
650 &LogEntry_oneof_payload::struct_payload(ref v) => {
651 os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?;
652 os.write_raw_varint32(v.get_cached_size())?;
653 v.write_to_with_cached_sizes(os)?;
654 },
655 };
656 }
657 os.write_unknown_fields(self.get_unknown_fields())?;
658 ::std::result::Result::Ok(())
659 }
660
661 fn get_cached_size(&self) -> u32 {
662 self.cached_size.get()
663 }
664
665 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
666 &self.unknown_fields
667 }
668
669 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
670 &mut self.unknown_fields
671 }
672
673 fn as_any(&self) -> &dyn (::std::any::Any) {
674 self as &dyn (::std::any::Any)
675 }
676 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
677 self as &mut dyn (::std::any::Any)
678 }
679 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
680 self
681 }
682
683 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
684 Self::descriptor_static()
685 }
686
687 fn new() -> LogEntry {
688 LogEntry::new()
689 }
690
691 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
692 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
693 descriptor.get(|| {
694 let mut fields = ::std::vec::Vec::new();
695 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
696 "name",
697 |m: &LogEntry| { &m.name },
698 |m: &mut LogEntry| { &mut m.name },
699 ));
700 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>(
701 "timestamp",
702 |m: &LogEntry| { &m.timestamp },
703 |m: &mut LogEntry| { &mut m.timestamp },
704 ));
705 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<super::log_severity::LogSeverity>>(
706 "severity",
707 |m: &LogEntry| { &m.severity },
708 |m: &mut LogEntry| { &mut m.severity },
709 ));
710 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::http_request::HttpRequest>>(
711 "http_request",
712 |m: &LogEntry| { &m.http_request },
713 |m: &mut LogEntry| { &mut m.http_request },
714 ));
715 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
716 "trace",
717 |m: &LogEntry| { &m.trace },
718 |m: &mut LogEntry| { &mut m.trace },
719 ));
720 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
721 "insert_id",
722 |m: &LogEntry| { &m.insert_id },
723 |m: &mut LogEntry| { &mut m.insert_id },
724 ));
725 fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(
726 "labels",
727 |m: &LogEntry| { &m.labels },
728 |m: &mut LogEntry| { &mut m.labels },
729 ));
730 fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::Any>(
731 "proto_payload",
732 LogEntry::has_proto_payload,
733 LogEntry::get_proto_payload,
734 ));
735 fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
736 "text_payload",
737 LogEntry::has_text_payload,
738 LogEntry::get_text_payload,
739 ));
740 fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::Struct>(
741 "struct_payload",
742 LogEntry::has_struct_payload,
743 LogEntry::get_struct_payload,
744 ));
745 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LogEntryOperation>>(
746 "operation",
747 |m: &LogEntry| { &m.operation },
748 |m: &mut LogEntry| { &mut m.operation },
749 ));
750 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LogEntrySourceLocation>>(
751 "source_location",
752 |m: &LogEntry| { &m.source_location },
753 |m: &mut LogEntry| { &mut m.source_location },
754 ));
755 ::protobuf::reflect::MessageDescriptor::new_pb_name::<LogEntry>(
756 "LogEntry",
757 fields,
758 file_descriptor_proto()
759 )
760 })
761 }
762
763 fn default_instance() -> &'static LogEntry {
764 static instance: ::protobuf::rt::LazyV2<LogEntry> = ::protobuf::rt::LazyV2::INIT;
765 instance.get(LogEntry::new)
766 }
767}
768
769impl ::protobuf::Clear for LogEntry {
770 fn clear(&mut self) {
771 self.name.clear();
772 self.timestamp.clear();
773 self.severity = super::log_severity::LogSeverity::DEFAULT;
774 self.http_request.clear();
775 self.trace.clear();
776 self.insert_id.clear();
777 self.labels.clear();
778 self.payload = ::std::option::Option::None;
779 self.payload = ::std::option::Option::None;
780 self.payload = ::std::option::Option::None;
781 self.operation.clear();
782 self.source_location.clear();
783 self.unknown_fields.clear();
784 }
785}
786
787impl ::std::fmt::Debug for LogEntry {
788 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
789 ::protobuf::text_format::fmt(self, f)
790 }
791}
792
793impl ::protobuf::reflect::ProtobufValue for LogEntry {
794 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
795 ::protobuf::reflect::ReflectValueRef::Message(self)
796 }
797}
798
799#[derive(PartialEq,Clone,Default)]
800pub struct LogEntryOperation {
801 pub id: ::std::string::String,
803 pub producer: ::std::string::String,
804 pub first: bool,
805 pub last: bool,
806 pub unknown_fields: ::protobuf::UnknownFields,
808 pub cached_size: ::protobuf::CachedSize,
809}
810
811impl<'a> ::std::default::Default for &'a LogEntryOperation {
812 fn default() -> &'a LogEntryOperation {
813 <LogEntryOperation as ::protobuf::Message>::default_instance()
814 }
815}
816
817impl LogEntryOperation {
818 pub fn new() -> LogEntryOperation {
819 ::std::default::Default::default()
820 }
821
822 pub fn get_id(&self) -> &str {
826 &self.id
827 }
828 pub fn clear_id(&mut self) {
829 self.id.clear();
830 }
831
832 pub fn set_id(&mut self, v: ::std::string::String) {
834 self.id = v;
835 }
836
837 pub fn mut_id(&mut self) -> &mut ::std::string::String {
840 &mut self.id
841 }
842
843 pub fn take_id(&mut self) -> ::std::string::String {
845 ::std::mem::replace(&mut self.id, ::std::string::String::new())
846 }
847
848 pub fn get_producer(&self) -> &str {
852 &self.producer
853 }
854 pub fn clear_producer(&mut self) {
855 self.producer.clear();
856 }
857
858 pub fn set_producer(&mut self, v: ::std::string::String) {
860 self.producer = v;
861 }
862
863 pub fn mut_producer(&mut self) -> &mut ::std::string::String {
866 &mut self.producer
867 }
868
869 pub fn take_producer(&mut self) -> ::std::string::String {
871 ::std::mem::replace(&mut self.producer, ::std::string::String::new())
872 }
873
874 pub fn get_first(&self) -> bool {
878 self.first
879 }
880 pub fn clear_first(&mut self) {
881 self.first = false;
882 }
883
884 pub fn set_first(&mut self, v: bool) {
886 self.first = v;
887 }
888
889 pub fn get_last(&self) -> bool {
893 self.last
894 }
895 pub fn clear_last(&mut self) {
896 self.last = false;
897 }
898
899 pub fn set_last(&mut self, v: bool) {
901 self.last = v;
902 }
903}
904
905impl ::protobuf::Message for LogEntryOperation {
906 fn is_initialized(&self) -> bool {
907 true
908 }
909
910 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
911 while !is.eof()? {
912 let (field_number, wire_type) = is.read_tag_unpack()?;
913 match field_number {
914 1 => {
915 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;
916 },
917 2 => {
918 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.producer)?;
919 },
920 3 => {
921 if wire_type != ::protobuf::wire_format::WireTypeVarint {
922 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
923 }
924 let tmp = is.read_bool()?;
925 self.first = tmp;
926 },
927 4 => {
928 if wire_type != ::protobuf::wire_format::WireTypeVarint {
929 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
930 }
931 let tmp = is.read_bool()?;
932 self.last = tmp;
933 },
934 _ => {
935 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
936 },
937 };
938 }
939 ::std::result::Result::Ok(())
940 }
941
942 #[allow(unused_variables)]
944 fn compute_size(&self) -> u32 {
945 let mut my_size = 0;
946 if !self.id.is_empty() {
947 my_size += ::protobuf::rt::string_size(1, &self.id);
948 }
949 if !self.producer.is_empty() {
950 my_size += ::protobuf::rt::string_size(2, &self.producer);
951 }
952 if self.first != false {
953 my_size += 2;
954 }
955 if self.last != false {
956 my_size += 2;
957 }
958 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
959 self.cached_size.set(my_size);
960 my_size
961 }
962
963 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
964 if !self.id.is_empty() {
965 os.write_string(1, &self.id)?;
966 }
967 if !self.producer.is_empty() {
968 os.write_string(2, &self.producer)?;
969 }
970 if self.first != false {
971 os.write_bool(3, self.first)?;
972 }
973 if self.last != false {
974 os.write_bool(4, self.last)?;
975 }
976 os.write_unknown_fields(self.get_unknown_fields())?;
977 ::std::result::Result::Ok(())
978 }
979
980 fn get_cached_size(&self) -> u32 {
981 self.cached_size.get()
982 }
983
984 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
985 &self.unknown_fields
986 }
987
988 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
989 &mut self.unknown_fields
990 }
991
992 fn as_any(&self) -> &dyn (::std::any::Any) {
993 self as &dyn (::std::any::Any)
994 }
995 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
996 self as &mut dyn (::std::any::Any)
997 }
998 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
999 self
1000 }
1001
1002 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1003 Self::descriptor_static()
1004 }
1005
1006 fn new() -> LogEntryOperation {
1007 LogEntryOperation::new()
1008 }
1009
1010 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1011 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
1012 descriptor.get(|| {
1013 let mut fields = ::std::vec::Vec::new();
1014 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1015 "id",
1016 |m: &LogEntryOperation| { &m.id },
1017 |m: &mut LogEntryOperation| { &mut m.id },
1018 ));
1019 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1020 "producer",
1021 |m: &LogEntryOperation| { &m.producer },
1022 |m: &mut LogEntryOperation| { &mut m.producer },
1023 ));
1024 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
1025 "first",
1026 |m: &LogEntryOperation| { &m.first },
1027 |m: &mut LogEntryOperation| { &mut m.first },
1028 ));
1029 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
1030 "last",
1031 |m: &LogEntryOperation| { &m.last },
1032 |m: &mut LogEntryOperation| { &mut m.last },
1033 ));
1034 ::protobuf::reflect::MessageDescriptor::new_pb_name::<LogEntryOperation>(
1035 "LogEntryOperation",
1036 fields,
1037 file_descriptor_proto()
1038 )
1039 })
1040 }
1041
1042 fn default_instance() -> &'static LogEntryOperation {
1043 static instance: ::protobuf::rt::LazyV2<LogEntryOperation> = ::protobuf::rt::LazyV2::INIT;
1044 instance.get(LogEntryOperation::new)
1045 }
1046}
1047
1048impl ::protobuf::Clear for LogEntryOperation {
1049 fn clear(&mut self) {
1050 self.id.clear();
1051 self.producer.clear();
1052 self.first = false;
1053 self.last = false;
1054 self.unknown_fields.clear();
1055 }
1056}
1057
1058impl ::std::fmt::Debug for LogEntryOperation {
1059 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1060 ::protobuf::text_format::fmt(self, f)
1061 }
1062}
1063
1064impl ::protobuf::reflect::ProtobufValue for LogEntryOperation {
1065 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1066 ::protobuf::reflect::ReflectValueRef::Message(self)
1067 }
1068}
1069
1070#[derive(PartialEq,Clone,Default)]
1071pub struct LogEntrySourceLocation {
1072 pub file: ::std::string::String,
1074 pub line: i64,
1075 pub function: ::std::string::String,
1076 pub unknown_fields: ::protobuf::UnknownFields,
1078 pub cached_size: ::protobuf::CachedSize,
1079}
1080
1081impl<'a> ::std::default::Default for &'a LogEntrySourceLocation {
1082 fn default() -> &'a LogEntrySourceLocation {
1083 <LogEntrySourceLocation as ::protobuf::Message>::default_instance()
1084 }
1085}
1086
1087impl LogEntrySourceLocation {
1088 pub fn new() -> LogEntrySourceLocation {
1089 ::std::default::Default::default()
1090 }
1091
1092 pub fn get_file(&self) -> &str {
1096 &self.file
1097 }
1098 pub fn clear_file(&mut self) {
1099 self.file.clear();
1100 }
1101
1102 pub fn set_file(&mut self, v: ::std::string::String) {
1104 self.file = v;
1105 }
1106
1107 pub fn mut_file(&mut self) -> &mut ::std::string::String {
1110 &mut self.file
1111 }
1112
1113 pub fn take_file(&mut self) -> ::std::string::String {
1115 ::std::mem::replace(&mut self.file, ::std::string::String::new())
1116 }
1117
1118 pub fn get_line(&self) -> i64 {
1122 self.line
1123 }
1124 pub fn clear_line(&mut self) {
1125 self.line = 0;
1126 }
1127
1128 pub fn set_line(&mut self, v: i64) {
1130 self.line = v;
1131 }
1132
1133 pub fn get_function(&self) -> &str {
1137 &self.function
1138 }
1139 pub fn clear_function(&mut self) {
1140 self.function.clear();
1141 }
1142
1143 pub fn set_function(&mut self, v: ::std::string::String) {
1145 self.function = v;
1146 }
1147
1148 pub fn mut_function(&mut self) -> &mut ::std::string::String {
1151 &mut self.function
1152 }
1153
1154 pub fn take_function(&mut self) -> ::std::string::String {
1156 ::std::mem::replace(&mut self.function, ::std::string::String::new())
1157 }
1158}
1159
1160impl ::protobuf::Message for LogEntrySourceLocation {
1161 fn is_initialized(&self) -> bool {
1162 true
1163 }
1164
1165 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1166 while !is.eof()? {
1167 let (field_number, wire_type) = is.read_tag_unpack()?;
1168 match field_number {
1169 1 => {
1170 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.file)?;
1171 },
1172 2 => {
1173 if wire_type != ::protobuf::wire_format::WireTypeVarint {
1174 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1175 }
1176 let tmp = is.read_int64()?;
1177 self.line = tmp;
1178 },
1179 3 => {
1180 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.function)?;
1181 },
1182 _ => {
1183 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1184 },
1185 };
1186 }
1187 ::std::result::Result::Ok(())
1188 }
1189
1190 #[allow(unused_variables)]
1192 fn compute_size(&self) -> u32 {
1193 let mut my_size = 0;
1194 if !self.file.is_empty() {
1195 my_size += ::protobuf::rt::string_size(1, &self.file);
1196 }
1197 if self.line != 0 {
1198 my_size += ::protobuf::rt::value_size(2, self.line, ::protobuf::wire_format::WireTypeVarint);
1199 }
1200 if !self.function.is_empty() {
1201 my_size += ::protobuf::rt::string_size(3, &self.function);
1202 }
1203 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1204 self.cached_size.set(my_size);
1205 my_size
1206 }
1207
1208 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1209 if !self.file.is_empty() {
1210 os.write_string(1, &self.file)?;
1211 }
1212 if self.line != 0 {
1213 os.write_int64(2, self.line)?;
1214 }
1215 if !self.function.is_empty() {
1216 os.write_string(3, &self.function)?;
1217 }
1218 os.write_unknown_fields(self.get_unknown_fields())?;
1219 ::std::result::Result::Ok(())
1220 }
1221
1222 fn get_cached_size(&self) -> u32 {
1223 self.cached_size.get()
1224 }
1225
1226 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1227 &self.unknown_fields
1228 }
1229
1230 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1231 &mut self.unknown_fields
1232 }
1233
1234 fn as_any(&self) -> &dyn (::std::any::Any) {
1235 self as &dyn (::std::any::Any)
1236 }
1237 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1238 self as &mut dyn (::std::any::Any)
1239 }
1240 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1241 self
1242 }
1243
1244 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1245 Self::descriptor_static()
1246 }
1247
1248 fn new() -> LogEntrySourceLocation {
1249 LogEntrySourceLocation::new()
1250 }
1251
1252 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1253 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
1254 descriptor.get(|| {
1255 let mut fields = ::std::vec::Vec::new();
1256 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1257 "file",
1258 |m: &LogEntrySourceLocation| { &m.file },
1259 |m: &mut LogEntrySourceLocation| { &mut m.file },
1260 ));
1261 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
1262 "line",
1263 |m: &LogEntrySourceLocation| { &m.line },
1264 |m: &mut LogEntrySourceLocation| { &mut m.line },
1265 ));
1266 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1267 "function",
1268 |m: &LogEntrySourceLocation| { &m.function },
1269 |m: &mut LogEntrySourceLocation| { &mut m.function },
1270 ));
1271 ::protobuf::reflect::MessageDescriptor::new_pb_name::<LogEntrySourceLocation>(
1272 "LogEntrySourceLocation",
1273 fields,
1274 file_descriptor_proto()
1275 )
1276 })
1277 }
1278
1279 fn default_instance() -> &'static LogEntrySourceLocation {
1280 static instance: ::protobuf::rt::LazyV2<LogEntrySourceLocation> = ::protobuf::rt::LazyV2::INIT;
1281 instance.get(LogEntrySourceLocation::new)
1282 }
1283}
1284
1285impl ::protobuf::Clear for LogEntrySourceLocation {
1286 fn clear(&mut self) {
1287 self.file.clear();
1288 self.line = 0;
1289 self.function.clear();
1290 self.unknown_fields.clear();
1291 }
1292}
1293
1294impl ::std::fmt::Debug for LogEntrySourceLocation {
1295 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1296 ::protobuf::text_format::fmt(self, f)
1297 }
1298}
1299
1300impl ::protobuf::reflect::ProtobufValue for LogEntrySourceLocation {
1301 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1302 ::protobuf::reflect::ReflectValueRef::Message(self)
1303 }
1304}
1305
1306static file_descriptor_proto_data: &'static [u8] = b"\
1307 \n,google/api/servicecontrol/v1/log_entry.proto\x12\x1cgoogle.api.servic\
1308 econtrol.v1\x1a/google/api/servicecontrol/v1/http_request.proto\x1a&goog\
1309 le/logging/type/log_severity.proto\x1a\x19google/protobuf/any.proto\x1a\
1310 \x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\
1311 \"\xfb\x05\n\x08LogEntry\x12\x12\n\x04name\x18\n\x20\x01(\tR\x04name\x12\
1312 8\n\ttimestamp\x18\x0b\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ttim\
1313 estamp\x12<\n\x08severity\x18\x0c\x20\x01(\x0e2\x20.google.logging.type.\
1314 LogSeverityR\x08severity\x12L\n\x0chttp_request\x18\x0e\x20\x01(\x0b2).g\
1315 oogle.api.servicecontrol.v1.HttpRequestR\x0bhttpRequest\x12\x14\n\x05tra\
1316 ce\x18\x0f\x20\x01(\tR\x05trace\x12\x1b\n\tinsert_id\x18\x04\x20\x01(\tR\
1317 \x08insertId\x12J\n\x06labels\x18\r\x20\x03(\x0b22.google.api.servicecon\
1318 trol.v1.LogEntry.LabelsEntryR\x06labels\x12;\n\rproto_payload\x18\x02\
1319 \x20\x01(\x0b2\x14.google.protobuf.AnyH\0R\x0cprotoPayload\x12#\n\x0ctex\
1320 t_payload\x18\x03\x20\x01(\tH\0R\x0btextPayload\x12@\n\x0estruct_payload\
1321 \x18\x06\x20\x01(\x0b2\x17.google.protobuf.StructH\0R\rstructPayload\x12\
1322 M\n\toperation\x18\x10\x20\x01(\x0b2/.google.api.servicecontrol.v1.LogEn\
1323 tryOperationR\toperation\x12]\n\x0fsource_location\x18\x11\x20\x01(\x0b2\
1324 4.google.api.servicecontrol.v1.LogEntrySourceLocationR\x0esourceLocation\
1325 \x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\
1326 \x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01B\t\n\x07payload\"\
1327 i\n\x11LogEntryOperation\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12\
1328 \x1a\n\x08producer\x18\x02\x20\x01(\tR\x08producer\x12\x14\n\x05first\
1329 \x18\x03\x20\x01(\x08R\x05first\x12\x12\n\x04last\x18\x04\x20\x01(\x08R\
1330 \x04last\"\\\n\x16LogEntrySourceLocation\x12\x12\n\x04file\x18\x01\x20\
1331 \x01(\tR\x04file\x12\x12\n\x04line\x18\x02\x20\x01(\x03R\x04line\x12\x1a\
1332 \n\x08function\x18\x03\x20\x01(\tR\x08functionB\xe5\x01\n\x20com.google.\
1333 api.servicecontrol.v1B\rLogEntryProtoP\x01ZJcloud.google.com/go/servicec\
1334 ontrol/apiv1/servicecontrolpb;servicecontrolpb\xaa\x02\x1eGoogle.Cloud.S\
1335 erviceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Go\
1336 ogle::Cloud::ServiceControl::V1J\xec$\n\x06\x12\x04\x0e\0}\x01\n\xbc\x04\
1337 \n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Google\x20\
1338 LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x20\
1339 2.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20fi\
1340 le\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20\
1341 may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\
1342 \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\
1343 ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\
1344 \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\
1345 buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\
1346 \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\
1347 \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\
1348 guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\
1349 e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0%\n\t\n\x02\x03\0\x12\x03\
1350 \x12\09\n\t\n\x02\x03\x01\x12\x03\x13\00\n\t\n\x02\x03\x02\x12\x03\x14\0\
1351 #\n\t\n\x02\x03\x03\x12\x03\x15\0&\n\t\n\x02\x03\x04\x12\x03\x16\0)\n\
1352 \x08\n\x01\x08\x12\x03\x18\0;\n\t\n\x02\x08%\x12\x03\x18\0;\n\x08\n\x01\
1353 \x08\x12\x03\x19\0a\n\t\n\x02\x08\x0b\x12\x03\x19\0a\n\x08\n\x01\x08\x12\
1354 \x03\x1a\0\"\n\t\n\x02\x08\n\x12\x03\x1a\0\"\n\x08\n\x01\x08\x12\x03\x1b\
1355 \0.\n\t\n\x02\x08\x08\x12\x03\x1b\0.\n\x08\n\x01\x08\x12\x03\x1c\09\n\t\
1356 \n\x02\x08\x01\x12\x03\x1c\09\n\x08\n\x01\x08\x12\x03\x1d\0;\n\t\n\x02\
1357 \x08)\x12\x03\x1d\0;\n\x08\n\x01\x08\x12\x03\x1e\0:\n\t\n\x02\x08-\x12\
1358 \x03\x1e\0:\n&\n\x02\x04\0\x12\x04!\0V\x01\x1a\x1a\x20An\x20individual\
1359 \x20log\x20entry.\n\n\n\n\x03\x04\0\x01\x12\x03!\x08\x10\nf\n\x04\x04\0\
1360 \x02\0\x12\x03$\x02\x13\x1aY\x20Required.\x20The\x20log\x20to\x20which\
1361 \x20this\x20log\x20entry\x20belongs.\x20Examples:\x20`\"syslog\"`,\n\x20\
1362 `\"book_log\"`.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03$\x02\x08\n\x0c\n\
1363 \x05\x04\0\x02\0\x01\x12\x03$\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03$\
1364 \x10\x12\nu\n\x04\x04\0\x02\x01\x12\x03(\x02+\x1ah\x20The\x20time\x20the\
1365 \x20event\x20described\x20by\x20the\x20log\x20entry\x20occurred.\x20If\n\
1366 \x20omitted,\x20defaults\x20to\x20operation\x20start\x20time.\n\n\x0c\n\
1367 \x05\x04\0\x02\x01\x06\x12\x03(\x02\x1b\n\x0c\n\x05\x04\0\x02\x01\x01\
1368 \x12\x03(\x1c%\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03((*\nZ\n\x04\x04\0\
1369 \x02\x02\x12\x03,\x020\x1aM\x20The\x20severity\x20of\x20the\x20log\x20en\
1370 try.\x20The\x20default\x20value\x20is\n\x20`LogSeverity.DEFAULT`.\n\n\
1371 \x0c\n\x05\x04\0\x02\x02\x06\x12\x03,\x02!\n\x0c\n\x05\x04\0\x02\x02\x01\
1372 \x12\x03,\"*\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03,-/\nk\n\x04\x04\0\x02\
1373 \x03\x12\x030\x02\x20\x1a^\x20Optional.\x20Information\x20about\x20the\
1374 \x20HTTP\x20request\x20associated\x20with\x20this\n\x20log\x20entry,\x20\
1375 if\x20applicable.\n\n\x0c\n\x05\x04\0\x02\x03\x06\x12\x030\x02\r\n\x0c\n\
1376 \x05\x04\0\x02\x03\x01\x12\x030\x0e\x1a\n\x0c\n\x05\x04\0\x02\x03\x03\
1377 \x12\x030\x1d\x1f\n\x9b\x02\n\x04\x04\0\x02\x04\x12\x036\x02\x14\x1a\x8d\
1378 \x02\x20Optional.\x20Resource\x20name\x20of\x20the\x20trace\x20associate\
1379 d\x20with\x20the\x20log\x20entry,\x20if\x20any.\n\x20If\x20this\x20field\
1380 \x20contains\x20a\x20relative\x20resource\x20name,\x20you\x20can\x20assu\
1381 me\x20the\x20name\x20is\n\x20relative\x20to\x20`//tracing.googleapis.com\
1382 `.\x20Example:\n\x20`projects/my-projectid/traces/06796866738c859f2f19b7\
1383 cfb3214824`\n\n\x0c\n\x05\x04\0\x02\x04\x05\x12\x036\x02\x08\n\x0c\n\x05\
1384 \x04\0\x02\x04\x01\x12\x036\t\x0e\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x036\
1385 \x11\x13\n\x8e\x01\n\x04\x04\0\x02\x05\x12\x03:\x02\x17\x1a\x80\x01\x20A\
1386 \x20unique\x20ID\x20for\x20the\x20log\x20entry\x20used\x20for\x20dedupli\
1387 cation.\x20If\x20omitted,\n\x20the\x20implementation\x20will\x20generate\
1388 \x20one\x20based\x20on\x20operation_id.\n\n\x0c\n\x05\x04\0\x02\x05\x05\
1389 \x12\x03:\x02\x08\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03:\t\x12\n\x0c\n\
1390 \x05\x04\0\x02\x05\x03\x12\x03:\x15\x16\nq\n\x04\x04\0\x02\x06\x12\x03>\
1391 \x02\"\x1ad\x20A\x20set\x20of\x20user-defined\x20(key,\x20value)\x20data\
1392 \x20that\x20provides\x20additional\n\x20information\x20about\x20the\x20l\
1393 og\x20entry.\n\n\x0c\n\x05\x04\0\x02\x06\x06\x12\x03>\x02\x15\n\x0c\n\
1394 \x05\x04\0\x02\x06\x01\x12\x03>\x16\x1c\n\x0c\n\x05\x04\0\x02\x06\x03\
1395 \x12\x03>\x1f!\nJ\n\x04\x04\0\x08\0\x12\x04A\x02M\x03\x1a<\x20The\x20log\
1396 \x20entry\x20payload,\x20which\x20can\x20be\x20one\x20of\x20multiple\x20\
1397 types.\n\n\x0c\n\x05\x04\0\x08\0\x01\x12\x03A\x08\x0f\n\xba\x01\n\x04\
1398 \x04\0\x02\x07\x12\x03E\x04*\x1a\xac\x01\x20The\x20log\x20entry\x20paylo\
1399 ad,\x20represented\x20as\x20a\x20protocol\x20buffer\x20that\x20is\n\x20e\
1400 xpressed\x20as\x20a\x20JSON\x20object.\x20The\x20only\x20accepted\x20typ\
1401 e\x20currently\x20is\n\x20[AuditLog][google.cloud.audit.AuditLog].\n\n\
1402 \x0c\n\x05\x04\0\x02\x07\x06\x12\x03E\x04\x17\n\x0c\n\x05\x04\0\x02\x07\
1403 \x01\x12\x03E\x18%\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03E()\nN\n\x04\x04\
1404 \0\x02\x08\x12\x03H\x04\x1c\x1aA\x20The\x20log\x20entry\x20payload,\x20r\
1405 epresented\x20as\x20a\x20Unicode\x20string\x20(UTF-8).\n\n\x0c\n\x05\x04\
1406 \0\x02\x08\x05\x12\x03H\x04\n\n\x0c\n\x05\x04\0\x02\x08\x01\x12\x03H\x0b\
1407 \x17\n\x0c\n\x05\x04\0\x02\x08\x03\x12\x03H\x1a\x1b\ne\n\x04\x04\0\x02\t\
1408 \x12\x03L\x04.\x1aX\x20The\x20log\x20entry\x20payload,\x20represented\
1409 \x20as\x20a\x20structure\x20that\n\x20is\x20expressed\x20as\x20a\x20JSON\
1410 \x20object.\n\n\x0c\n\x05\x04\0\x02\t\x06\x12\x03L\x04\x1a\n\x0c\n\x05\
1411 \x04\0\x02\t\x01\x12\x03L\x1b)\n\x0c\n\x05\x04\0\x02\t\x03\x12\x03L,-\nf\
1412 \n\x04\x04\0\x02\n\x12\x03Q\x02#\x1aY\x20Optional.\x20Information\x20abo\
1413 ut\x20an\x20operation\x20associated\x20with\x20the\x20log\x20entry,\x20i\
1414 f\n\x20applicable.\n\n\x0c\n\x05\x04\0\x02\n\x06\x12\x03Q\x02\x13\n\x0c\
1415 \n\x05\x04\0\x02\n\x01\x12\x03Q\x14\x1d\n\x0c\n\x05\x04\0\x02\n\x03\x12\
1416 \x03Q\x20\"\na\n\x04\x04\0\x02\x0b\x12\x03U\x02.\x1aT\x20Optional.\x20So\
1417 urce\x20code\x20location\x20information\x20associated\x20with\x20the\x20\
1418 log\x20entry,\n\x20if\x20any.\n\n\x0c\n\x05\x04\0\x02\x0b\x06\x12\x03U\
1419 \x02\x18\n\x0c\n\x05\x04\0\x02\x0b\x01\x12\x03U\x19(\n\x0c\n\x05\x04\0\
1420 \x02\x0b\x03\x12\x03U+-\nv\n\x02\x04\x01\x12\x04Z\0i\x01\x1aj\x20Additio\
1421 nal\x20information\x20about\x20a\x20potentially\x20long-running\x20opera\
1422 tion\x20with\x20which\n\x20a\x20log\x20entry\x20is\x20associated.\n\n\n\
1423 \n\x03\x04\x01\x01\x12\x03Z\x08\x19\n\x90\x01\n\x04\x04\x01\x02\0\x12\
1424 \x03]\x02\x10\x1a\x82\x01\x20Optional.\x20An\x20arbitrary\x20operation\
1425 \x20identifier.\x20Log\x20entries\x20with\x20the\n\x20same\x20identifier\
1426 \x20are\x20assumed\x20to\x20be\x20part\x20of\x20the\x20same\x20operation\
1427 .\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03]\x02\x08\n\x0c\n\x05\x04\x01\
1428 \x02\0\x01\x12\x03]\t\x0b\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03]\x0e\x0f\
1429 \n\xe0\x01\n\x04\x04\x01\x02\x01\x12\x03b\x02\x16\x1a\xd2\x01\x20Optiona\
1430 l.\x20An\x20arbitrary\x20producer\x20identifier.\x20The\x20combination\
1431 \x20of\n\x20`id`\x20and\x20`producer`\x20must\x20be\x20globally\x20uniqu\
1432 e.\x20\x20Examples\x20for\x20`producer`:\n\x20`\"MyDivision.MyBigCompany\
1433 .com\"`,\x20`\"github.com/MyProject/MyApplication\"`.\n\n\x0c\n\x05\x04\
1434 \x01\x02\x01\x05\x12\x03b\x02\x08\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\
1435 \x03b\t\x11\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03b\x14\x15\nZ\n\x04\
1436 \x04\x01\x02\x02\x12\x03e\x02\x11\x1aM\x20Optional.\x20Set\x20this\x20to\
1437 \x20True\x20if\x20this\x20is\x20the\x20first\x20log\x20entry\x20in\x20th\
1438 e\x20operation.\n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03e\x02\x06\n\x0c\
1439 \n\x05\x04\x01\x02\x02\x01\x12\x03e\x07\x0c\n\x0c\n\x05\x04\x01\x02\x02\
1440 \x03\x12\x03e\x0f\x10\nY\n\x04\x04\x01\x02\x03\x12\x03h\x02\x10\x1aL\x20\
1441 Optional.\x20Set\x20this\x20to\x20True\x20if\x20this\x20is\x20the\x20las\
1442 t\x20log\x20entry\x20in\x20the\x20operation.\n\n\x0c\n\x05\x04\x01\x02\
1443 \x03\x05\x12\x03h\x02\x06\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03h\x07\
1444 \x0b\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03h\x0e\x0f\na\n\x02\x04\x02\
1445 \x12\x04m\0}\x01\x1aU\x20Additional\x20information\x20about\x20the\x20so\
1446 urce\x20code\x20location\x20that\x20produced\x20the\x20log\n\x20entry.\n\
1447 \n\n\n\x03\x04\x02\x01\x12\x03m\x08\x1e\n\x88\x01\n\x04\x04\x02\x02\0\
1448 \x12\x03p\x02\x12\x1a{\x20Optional.\x20Source\x20file\x20name.\x20Depend\
1449 ing\x20on\x20the\x20runtime\x20environment,\x20this\n\x20might\x20be\x20\
1450 a\x20simple\x20name\x20or\x20a\x20fully-qualified\x20name.\n\n\x0c\n\x05\
1451 \x04\x02\x02\0\x05\x12\x03p\x02\x08\n\x0c\n\x05\x04\x02\x02\0\x01\x12\
1452 \x03p\t\r\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03p\x10\x11\ne\n\x04\x04\
1453 \x02\x02\x01\x12\x03t\x02\x11\x1aX\x20Optional.\x20Line\x20within\x20the\
1454 \x20source\x20file.\x201-based;\x200\x20indicates\x20no\x20line\x20numbe\
1455 r\n\x20available.\n\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03t\x02\x07\n\
1456 \x0c\n\x05\x04\x02\x02\x01\x01\x12\x03t\x08\x0c\n\x0c\n\x05\x04\x02\x02\
1457 \x01\x03\x12\x03t\x0f\x10\n\x87\x03\n\x04\x04\x02\x02\x02\x12\x03|\x02\
1458 \x16\x1a\xf9\x02\x20Optional.\x20Human-readable\x20name\x20of\x20the\x20\
1459 function\x20or\x20method\x20being\x20invoked,\x20with\n\x20optional\x20c\
1460 ontext\x20such\x20as\x20the\x20class\x20or\x20package\x20name.\x20This\
1461 \x20information\x20may\x20be\n\x20used\x20in\x20contexts\x20such\x20as\
1462 \x20the\x20logs\x20viewer,\x20where\x20a\x20file\x20and\x20line\x20numbe\
1463 r\x20are\n\x20less\x20meaningful.\x20The\x20format\x20can\x20vary\x20by\
1464 \x20language.\x20For\x20example:\n\x20`qual.if.ied.Class.method`\x20(Jav\
1465 a),\x20`dir/package.func`\x20(Go),\x20`function`\n\x20(Python).\n\n\x0c\
1466 \n\x05\x04\x02\x02\x02\x05\x12\x03|\x02\x08\n\x0c\n\x05\x04\x02\x02\x02\
1467 \x01\x12\x03|\t\x11\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03|\x14\x15b\
1468 \x06proto3\
1469";
1470
1471static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
1472
1473fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
1474 ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
1475}
1476
1477pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
1478 file_descriptor_proto_lazy.get(|| {
1479 parse_descriptor_proto()
1480 })
1481}