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 Event {
28 pub wall_time: f64,
30 pub step: i64,
31 pub what: ::std::option::Option<Event_oneof_what>,
33 pub unknown_fields: ::protobuf::UnknownFields,
35 pub cached_size: ::protobuf::CachedSize,
36}
37
38impl<'a> ::std::default::Default for &'a Event {
39 fn default() -> &'a Event {
40 <Event as ::protobuf::Message>::default_instance()
41 }
42}
43
44#[derive(Clone,PartialEq,Debug)]
45pub enum Event_oneof_what {
46 file_version(::std::string::String),
47 graph_def(::std::vec::Vec<u8>),
48 summary(super::summary::Summary),
49 log_message(LogMessage),
50 session_log(SessionLog),
51 tagged_run_metadata(TaggedRunMetadata),
52 meta_graph_def(::std::vec::Vec<u8>),
53}
54
55impl Event {
56 pub fn new() -> Event {
57 ::std::default::Default::default()
58 }
59
60 pub fn get_wall_time(&self) -> f64 {
64 self.wall_time
65 }
66 pub fn clear_wall_time(&mut self) {
67 self.wall_time = 0.;
68 }
69
70 pub fn set_wall_time(&mut self, v: f64) {
72 self.wall_time = v;
73 }
74
75 pub fn get_step(&self) -> i64 {
79 self.step
80 }
81 pub fn clear_step(&mut self) {
82 self.step = 0;
83 }
84
85 pub fn set_step(&mut self, v: i64) {
87 self.step = v;
88 }
89
90 pub fn get_file_version(&self) -> &str {
94 match self.what {
95 ::std::option::Option::Some(Event_oneof_what::file_version(ref v)) => v,
96 _ => "",
97 }
98 }
99 pub fn clear_file_version(&mut self) {
100 self.what = ::std::option::Option::None;
101 }
102
103 pub fn has_file_version(&self) -> bool {
104 match self.what {
105 ::std::option::Option::Some(Event_oneof_what::file_version(..)) => true,
106 _ => false,
107 }
108 }
109
110 pub fn set_file_version(&mut self, v: ::std::string::String) {
112 self.what = ::std::option::Option::Some(Event_oneof_what::file_version(v))
113 }
114
115 pub fn mut_file_version(&mut self) -> &mut ::std::string::String {
117 if let ::std::option::Option::Some(Event_oneof_what::file_version(_)) = self.what {
118 } else {
119 self.what = ::std::option::Option::Some(Event_oneof_what::file_version(::std::string::String::new()));
120 }
121 match self.what {
122 ::std::option::Option::Some(Event_oneof_what::file_version(ref mut v)) => v,
123 _ => panic!(),
124 }
125 }
126
127 pub fn take_file_version(&mut self) -> ::std::string::String {
129 if self.has_file_version() {
130 match self.what.take() {
131 ::std::option::Option::Some(Event_oneof_what::file_version(v)) => v,
132 _ => panic!(),
133 }
134 } else {
135 ::std::string::String::new()
136 }
137 }
138
139 pub fn get_graph_def(&self) -> &[u8] {
143 match self.what {
144 ::std::option::Option::Some(Event_oneof_what::graph_def(ref v)) => v,
145 _ => &[],
146 }
147 }
148 pub fn clear_graph_def(&mut self) {
149 self.what = ::std::option::Option::None;
150 }
151
152 pub fn has_graph_def(&self) -> bool {
153 match self.what {
154 ::std::option::Option::Some(Event_oneof_what::graph_def(..)) => true,
155 _ => false,
156 }
157 }
158
159 pub fn set_graph_def(&mut self, v: ::std::vec::Vec<u8>) {
161 self.what = ::std::option::Option::Some(Event_oneof_what::graph_def(v))
162 }
163
164 pub fn mut_graph_def(&mut self) -> &mut ::std::vec::Vec<u8> {
166 if let ::std::option::Option::Some(Event_oneof_what::graph_def(_)) = self.what {
167 } else {
168 self.what = ::std::option::Option::Some(Event_oneof_what::graph_def(::std::vec::Vec::new()));
169 }
170 match self.what {
171 ::std::option::Option::Some(Event_oneof_what::graph_def(ref mut v)) => v,
172 _ => panic!(),
173 }
174 }
175
176 pub fn take_graph_def(&mut self) -> ::std::vec::Vec<u8> {
178 if self.has_graph_def() {
179 match self.what.take() {
180 ::std::option::Option::Some(Event_oneof_what::graph_def(v)) => v,
181 _ => panic!(),
182 }
183 } else {
184 ::std::vec::Vec::new()
185 }
186 }
187
188 pub fn get_summary(&self) -> &super::summary::Summary {
192 match self.what {
193 ::std::option::Option::Some(Event_oneof_what::summary(ref v)) => v,
194 _ => <super::summary::Summary as ::protobuf::Message>::default_instance(),
195 }
196 }
197 pub fn clear_summary(&mut self) {
198 self.what = ::std::option::Option::None;
199 }
200
201 pub fn has_summary(&self) -> bool {
202 match self.what {
203 ::std::option::Option::Some(Event_oneof_what::summary(..)) => true,
204 _ => false,
205 }
206 }
207
208 pub fn set_summary(&mut self, v: super::summary::Summary) {
210 self.what = ::std::option::Option::Some(Event_oneof_what::summary(v))
211 }
212
213 pub fn mut_summary(&mut self) -> &mut super::summary::Summary {
215 if let ::std::option::Option::Some(Event_oneof_what::summary(_)) = self.what {
216 } else {
217 self.what = ::std::option::Option::Some(Event_oneof_what::summary(super::summary::Summary::new()));
218 }
219 match self.what {
220 ::std::option::Option::Some(Event_oneof_what::summary(ref mut v)) => v,
221 _ => panic!(),
222 }
223 }
224
225 pub fn take_summary(&mut self) -> super::summary::Summary {
227 if self.has_summary() {
228 match self.what.take() {
229 ::std::option::Option::Some(Event_oneof_what::summary(v)) => v,
230 _ => panic!(),
231 }
232 } else {
233 super::summary::Summary::new()
234 }
235 }
236
237 pub fn get_log_message(&self) -> &LogMessage {
241 match self.what {
242 ::std::option::Option::Some(Event_oneof_what::log_message(ref v)) => v,
243 _ => <LogMessage as ::protobuf::Message>::default_instance(),
244 }
245 }
246 pub fn clear_log_message(&mut self) {
247 self.what = ::std::option::Option::None;
248 }
249
250 pub fn has_log_message(&self) -> bool {
251 match self.what {
252 ::std::option::Option::Some(Event_oneof_what::log_message(..)) => true,
253 _ => false,
254 }
255 }
256
257 pub fn set_log_message(&mut self, v: LogMessage) {
259 self.what = ::std::option::Option::Some(Event_oneof_what::log_message(v))
260 }
261
262 pub fn mut_log_message(&mut self) -> &mut LogMessage {
264 if let ::std::option::Option::Some(Event_oneof_what::log_message(_)) = self.what {
265 } else {
266 self.what = ::std::option::Option::Some(Event_oneof_what::log_message(LogMessage::new()));
267 }
268 match self.what {
269 ::std::option::Option::Some(Event_oneof_what::log_message(ref mut v)) => v,
270 _ => panic!(),
271 }
272 }
273
274 pub fn take_log_message(&mut self) -> LogMessage {
276 if self.has_log_message() {
277 match self.what.take() {
278 ::std::option::Option::Some(Event_oneof_what::log_message(v)) => v,
279 _ => panic!(),
280 }
281 } else {
282 LogMessage::new()
283 }
284 }
285
286 pub fn get_session_log(&self) -> &SessionLog {
290 match self.what {
291 ::std::option::Option::Some(Event_oneof_what::session_log(ref v)) => v,
292 _ => <SessionLog as ::protobuf::Message>::default_instance(),
293 }
294 }
295 pub fn clear_session_log(&mut self) {
296 self.what = ::std::option::Option::None;
297 }
298
299 pub fn has_session_log(&self) -> bool {
300 match self.what {
301 ::std::option::Option::Some(Event_oneof_what::session_log(..)) => true,
302 _ => false,
303 }
304 }
305
306 pub fn set_session_log(&mut self, v: SessionLog) {
308 self.what = ::std::option::Option::Some(Event_oneof_what::session_log(v))
309 }
310
311 pub fn mut_session_log(&mut self) -> &mut SessionLog {
313 if let ::std::option::Option::Some(Event_oneof_what::session_log(_)) = self.what {
314 } else {
315 self.what = ::std::option::Option::Some(Event_oneof_what::session_log(SessionLog::new()));
316 }
317 match self.what {
318 ::std::option::Option::Some(Event_oneof_what::session_log(ref mut v)) => v,
319 _ => panic!(),
320 }
321 }
322
323 pub fn take_session_log(&mut self) -> SessionLog {
325 if self.has_session_log() {
326 match self.what.take() {
327 ::std::option::Option::Some(Event_oneof_what::session_log(v)) => v,
328 _ => panic!(),
329 }
330 } else {
331 SessionLog::new()
332 }
333 }
334
335 pub fn get_tagged_run_metadata(&self) -> &TaggedRunMetadata {
339 match self.what {
340 ::std::option::Option::Some(Event_oneof_what::tagged_run_metadata(ref v)) => v,
341 _ => <TaggedRunMetadata as ::protobuf::Message>::default_instance(),
342 }
343 }
344 pub fn clear_tagged_run_metadata(&mut self) {
345 self.what = ::std::option::Option::None;
346 }
347
348 pub fn has_tagged_run_metadata(&self) -> bool {
349 match self.what {
350 ::std::option::Option::Some(Event_oneof_what::tagged_run_metadata(..)) => true,
351 _ => false,
352 }
353 }
354
355 pub fn set_tagged_run_metadata(&mut self, v: TaggedRunMetadata) {
357 self.what = ::std::option::Option::Some(Event_oneof_what::tagged_run_metadata(v))
358 }
359
360 pub fn mut_tagged_run_metadata(&mut self) -> &mut TaggedRunMetadata {
362 if let ::std::option::Option::Some(Event_oneof_what::tagged_run_metadata(_)) = self.what {
363 } else {
364 self.what = ::std::option::Option::Some(Event_oneof_what::tagged_run_metadata(TaggedRunMetadata::new()));
365 }
366 match self.what {
367 ::std::option::Option::Some(Event_oneof_what::tagged_run_metadata(ref mut v)) => v,
368 _ => panic!(),
369 }
370 }
371
372 pub fn take_tagged_run_metadata(&mut self) -> TaggedRunMetadata {
374 if self.has_tagged_run_metadata() {
375 match self.what.take() {
376 ::std::option::Option::Some(Event_oneof_what::tagged_run_metadata(v)) => v,
377 _ => panic!(),
378 }
379 } else {
380 TaggedRunMetadata::new()
381 }
382 }
383
384 pub fn get_meta_graph_def(&self) -> &[u8] {
388 match self.what {
389 ::std::option::Option::Some(Event_oneof_what::meta_graph_def(ref v)) => v,
390 _ => &[],
391 }
392 }
393 pub fn clear_meta_graph_def(&mut self) {
394 self.what = ::std::option::Option::None;
395 }
396
397 pub fn has_meta_graph_def(&self) -> bool {
398 match self.what {
399 ::std::option::Option::Some(Event_oneof_what::meta_graph_def(..)) => true,
400 _ => false,
401 }
402 }
403
404 pub fn set_meta_graph_def(&mut self, v: ::std::vec::Vec<u8>) {
406 self.what = ::std::option::Option::Some(Event_oneof_what::meta_graph_def(v))
407 }
408
409 pub fn mut_meta_graph_def(&mut self) -> &mut ::std::vec::Vec<u8> {
411 if let ::std::option::Option::Some(Event_oneof_what::meta_graph_def(_)) = self.what {
412 } else {
413 self.what = ::std::option::Option::Some(Event_oneof_what::meta_graph_def(::std::vec::Vec::new()));
414 }
415 match self.what {
416 ::std::option::Option::Some(Event_oneof_what::meta_graph_def(ref mut v)) => v,
417 _ => panic!(),
418 }
419 }
420
421 pub fn take_meta_graph_def(&mut self) -> ::std::vec::Vec<u8> {
423 if self.has_meta_graph_def() {
424 match self.what.take() {
425 ::std::option::Option::Some(Event_oneof_what::meta_graph_def(v)) => v,
426 _ => panic!(),
427 }
428 } else {
429 ::std::vec::Vec::new()
430 }
431 }
432}
433
434impl ::protobuf::Message for Event {
435 fn is_initialized(&self) -> bool {
436 if let Some(Event_oneof_what::summary(ref v)) = self.what {
437 if !v.is_initialized() {
438 return false;
439 }
440 }
441 if let Some(Event_oneof_what::log_message(ref v)) = self.what {
442 if !v.is_initialized() {
443 return false;
444 }
445 }
446 if let Some(Event_oneof_what::session_log(ref v)) = self.what {
447 if !v.is_initialized() {
448 return false;
449 }
450 }
451 if let Some(Event_oneof_what::tagged_run_metadata(ref v)) = self.what {
452 if !v.is_initialized() {
453 return false;
454 }
455 }
456 true
457 }
458
459 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
460 while !is.eof()? {
461 let (field_number, wire_type) = is.read_tag_unpack()?;
462 match field_number {
463 1 => {
464 if wire_type != ::protobuf::wire_format::WireTypeFixed64 {
465 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
466 }
467 let tmp = is.read_double()?;
468 self.wall_time = tmp;
469 },
470 2 => {
471 if wire_type != ::protobuf::wire_format::WireTypeVarint {
472 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
473 }
474 let tmp = is.read_int64()?;
475 self.step = tmp;
476 },
477 3 => {
478 if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
479 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
480 }
481 self.what = ::std::option::Option::Some(Event_oneof_what::file_version(is.read_string()?));
482 },
483 4 => {
484 if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
485 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
486 }
487 self.what = ::std::option::Option::Some(Event_oneof_what::graph_def(is.read_bytes()?));
488 },
489 5 => {
490 if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
491 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
492 }
493 self.what = ::std::option::Option::Some(Event_oneof_what::summary(is.read_message()?));
494 },
495 6 => {
496 if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
497 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
498 }
499 self.what = ::std::option::Option::Some(Event_oneof_what::log_message(is.read_message()?));
500 },
501 7 => {
502 if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
503 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
504 }
505 self.what = ::std::option::Option::Some(Event_oneof_what::session_log(is.read_message()?));
506 },
507 8 => {
508 if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
509 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
510 }
511 self.what = ::std::option::Option::Some(Event_oneof_what::tagged_run_metadata(is.read_message()?));
512 },
513 9 => {
514 if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
515 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
516 }
517 self.what = ::std::option::Option::Some(Event_oneof_what::meta_graph_def(is.read_bytes()?));
518 },
519 _ => {
520 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
521 },
522 };
523 }
524 ::std::result::Result::Ok(())
525 }
526
527 #[allow(unused_variables)]
529 fn compute_size(&self) -> u32 {
530 let mut my_size = 0;
531 if self.wall_time != 0. {
532 my_size += 9;
533 }
534 if self.step != 0 {
535 my_size += ::protobuf::rt::value_size(2, self.step, ::protobuf::wire_format::WireTypeVarint);
536 }
537 if let ::std::option::Option::Some(ref v) = self.what {
538 match v {
539 &Event_oneof_what::file_version(ref v) => {
540 my_size += ::protobuf::rt::string_size(3, &v);
541 },
542 &Event_oneof_what::graph_def(ref v) => {
543 my_size += ::protobuf::rt::bytes_size(4, &v);
544 },
545 &Event_oneof_what::summary(ref v) => {
546 let len = v.compute_size();
547 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
548 },
549 &Event_oneof_what::log_message(ref v) => {
550 let len = v.compute_size();
551 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
552 },
553 &Event_oneof_what::session_log(ref v) => {
554 let len = v.compute_size();
555 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
556 },
557 &Event_oneof_what::tagged_run_metadata(ref v) => {
558 let len = v.compute_size();
559 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
560 },
561 &Event_oneof_what::meta_graph_def(ref v) => {
562 my_size += ::protobuf::rt::bytes_size(9, &v);
563 },
564 };
565 }
566 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
567 self.cached_size.set(my_size);
568 my_size
569 }
570
571 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
572 if self.wall_time != 0. {
573 os.write_double(1, self.wall_time)?;
574 }
575 if self.step != 0 {
576 os.write_int64(2, self.step)?;
577 }
578 if let ::std::option::Option::Some(ref v) = self.what {
579 match v {
580 &Event_oneof_what::file_version(ref v) => {
581 os.write_string(3, v)?;
582 },
583 &Event_oneof_what::graph_def(ref v) => {
584 os.write_bytes(4, v)?;
585 },
586 &Event_oneof_what::summary(ref v) => {
587 os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?;
588 os.write_raw_varint32(v.get_cached_size())?;
589 v.write_to_with_cached_sizes(os)?;
590 },
591 &Event_oneof_what::log_message(ref v) => {
592 os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?;
593 os.write_raw_varint32(v.get_cached_size())?;
594 v.write_to_with_cached_sizes(os)?;
595 },
596 &Event_oneof_what::session_log(ref v) => {
597 os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?;
598 os.write_raw_varint32(v.get_cached_size())?;
599 v.write_to_with_cached_sizes(os)?;
600 },
601 &Event_oneof_what::tagged_run_metadata(ref v) => {
602 os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?;
603 os.write_raw_varint32(v.get_cached_size())?;
604 v.write_to_with_cached_sizes(os)?;
605 },
606 &Event_oneof_what::meta_graph_def(ref v) => {
607 os.write_bytes(9, v)?;
608 },
609 };
610 }
611 os.write_unknown_fields(self.get_unknown_fields())?;
612 ::std::result::Result::Ok(())
613 }
614
615 fn get_cached_size(&self) -> u32 {
616 self.cached_size.get()
617 }
618
619 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
620 &self.unknown_fields
621 }
622
623 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
624 &mut self.unknown_fields
625 }
626
627 fn as_any(&self) -> &dyn (::std::any::Any) {
628 self as &dyn (::std::any::Any)
629 }
630 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
631 self as &mut dyn (::std::any::Any)
632 }
633 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
634 self
635 }
636
637 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
638 Self::descriptor_static()
639 }
640
641 fn new() -> Event {
642 Event::new()
643 }
644
645 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
646 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
647 descriptor.get(|| {
648 let mut fields = ::std::vec::Vec::new();
649 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>(
650 "wall_time",
651 |m: &Event| { &m.wall_time },
652 |m: &mut Event| { &mut m.wall_time },
653 ));
654 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
655 "step",
656 |m: &Event| { &m.step },
657 |m: &mut Event| { &mut m.step },
658 ));
659 fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
660 "file_version",
661 Event::has_file_version,
662 Event::get_file_version,
663 ));
664 fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>(
665 "graph_def",
666 Event::has_graph_def,
667 Event::get_graph_def,
668 ));
669 fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::summary::Summary>(
670 "summary",
671 Event::has_summary,
672 Event::get_summary,
673 ));
674 fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, LogMessage>(
675 "log_message",
676 Event::has_log_message,
677 Event::get_log_message,
678 ));
679 fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, SessionLog>(
680 "session_log",
681 Event::has_session_log,
682 Event::get_session_log,
683 ));
684 fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, TaggedRunMetadata>(
685 "tagged_run_metadata",
686 Event::has_tagged_run_metadata,
687 Event::get_tagged_run_metadata,
688 ));
689 fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>(
690 "meta_graph_def",
691 Event::has_meta_graph_def,
692 Event::get_meta_graph_def,
693 ));
694 ::protobuf::reflect::MessageDescriptor::new_pb_name::<Event>(
695 "Event",
696 fields,
697 file_descriptor_proto()
698 )
699 })
700 }
701
702 fn default_instance() -> &'static Event {
703 static instance: ::protobuf::rt::LazyV2<Event> = ::protobuf::rt::LazyV2::INIT;
704 instance.get(Event::new)
705 }
706}
707
708impl ::protobuf::Clear for Event {
709 fn clear(&mut self) {
710 self.wall_time = 0.;
711 self.step = 0;
712 self.what = ::std::option::Option::None;
713 self.what = ::std::option::Option::None;
714 self.what = ::std::option::Option::None;
715 self.what = ::std::option::Option::None;
716 self.what = ::std::option::Option::None;
717 self.what = ::std::option::Option::None;
718 self.what = ::std::option::Option::None;
719 self.unknown_fields.clear();
720 }
721}
722
723impl ::std::fmt::Debug for Event {
724 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
725 ::protobuf::text_format::fmt(self, f)
726 }
727}
728
729impl ::protobuf::reflect::ProtobufValue for Event {
730 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
731 ::protobuf::reflect::ReflectValueRef::Message(self)
732 }
733}
734
735#[derive(PartialEq,Clone,Default)]
736pub struct LogMessage {
737 pub level: LogMessage_Level,
739 pub message: ::std::string::String,
740 pub unknown_fields: ::protobuf::UnknownFields,
742 pub cached_size: ::protobuf::CachedSize,
743}
744
745impl<'a> ::std::default::Default for &'a LogMessage {
746 fn default() -> &'a LogMessage {
747 <LogMessage as ::protobuf::Message>::default_instance()
748 }
749}
750
751impl LogMessage {
752 pub fn new() -> LogMessage {
753 ::std::default::Default::default()
754 }
755
756 pub fn get_level(&self) -> LogMessage_Level {
760 self.level
761 }
762 pub fn clear_level(&mut self) {
763 self.level = LogMessage_Level::UNKNOWN;
764 }
765
766 pub fn set_level(&mut self, v: LogMessage_Level) {
768 self.level = v;
769 }
770
771 pub fn get_message(&self) -> &str {
775 &self.message
776 }
777 pub fn clear_message(&mut self) {
778 self.message.clear();
779 }
780
781 pub fn set_message(&mut self, v: ::std::string::String) {
783 self.message = v;
784 }
785
786 pub fn mut_message(&mut self) -> &mut ::std::string::String {
789 &mut self.message
790 }
791
792 pub fn take_message(&mut self) -> ::std::string::String {
794 ::std::mem::replace(&mut self.message, ::std::string::String::new())
795 }
796}
797
798impl ::protobuf::Message for LogMessage {
799 fn is_initialized(&self) -> bool {
800 true
801 }
802
803 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
804 while !is.eof()? {
805 let (field_number, wire_type) = is.read_tag_unpack()?;
806 match field_number {
807 1 => {
808 ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.level, 1, &mut self.unknown_fields)?
809 },
810 2 => {
811 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.message)?;
812 },
813 _ => {
814 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
815 },
816 };
817 }
818 ::std::result::Result::Ok(())
819 }
820
821 #[allow(unused_variables)]
823 fn compute_size(&self) -> u32 {
824 let mut my_size = 0;
825 if self.level != LogMessage_Level::UNKNOWN {
826 my_size += ::protobuf::rt::enum_size(1, self.level);
827 }
828 if !self.message.is_empty() {
829 my_size += ::protobuf::rt::string_size(2, &self.message);
830 }
831 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
832 self.cached_size.set(my_size);
833 my_size
834 }
835
836 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
837 if self.level != LogMessage_Level::UNKNOWN {
838 os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.level))?;
839 }
840 if !self.message.is_empty() {
841 os.write_string(2, &self.message)?;
842 }
843 os.write_unknown_fields(self.get_unknown_fields())?;
844 ::std::result::Result::Ok(())
845 }
846
847 fn get_cached_size(&self) -> u32 {
848 self.cached_size.get()
849 }
850
851 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
852 &self.unknown_fields
853 }
854
855 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
856 &mut self.unknown_fields
857 }
858
859 fn as_any(&self) -> &dyn (::std::any::Any) {
860 self as &dyn (::std::any::Any)
861 }
862 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
863 self as &mut dyn (::std::any::Any)
864 }
865 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
866 self
867 }
868
869 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
870 Self::descriptor_static()
871 }
872
873 fn new() -> LogMessage {
874 LogMessage::new()
875 }
876
877 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
878 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
879 descriptor.get(|| {
880 let mut fields = ::std::vec::Vec::new();
881 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<LogMessage_Level>>(
882 "level",
883 |m: &LogMessage| { &m.level },
884 |m: &mut LogMessage| { &mut m.level },
885 ));
886 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
887 "message",
888 |m: &LogMessage| { &m.message },
889 |m: &mut LogMessage| { &mut m.message },
890 ));
891 ::protobuf::reflect::MessageDescriptor::new_pb_name::<LogMessage>(
892 "LogMessage",
893 fields,
894 file_descriptor_proto()
895 )
896 })
897 }
898
899 fn default_instance() -> &'static LogMessage {
900 static instance: ::protobuf::rt::LazyV2<LogMessage> = ::protobuf::rt::LazyV2::INIT;
901 instance.get(LogMessage::new)
902 }
903}
904
905impl ::protobuf::Clear for LogMessage {
906 fn clear(&mut self) {
907 self.level = LogMessage_Level::UNKNOWN;
908 self.message.clear();
909 self.unknown_fields.clear();
910 }
911}
912
913impl ::std::fmt::Debug for LogMessage {
914 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
915 ::protobuf::text_format::fmt(self, f)
916 }
917}
918
919impl ::protobuf::reflect::ProtobufValue for LogMessage {
920 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
921 ::protobuf::reflect::ReflectValueRef::Message(self)
922 }
923}
924
925#[derive(Clone,PartialEq,Eq,Debug,Hash)]
926pub enum LogMessage_Level {
927 UNKNOWN = 0,
928 DEBUG = 10,
929 INFO = 20,
930 WARN = 30,
931 ERROR = 40,
932 FATAL = 50,
933}
934
935impl ::protobuf::ProtobufEnum for LogMessage_Level {
936 fn value(&self) -> i32 {
937 *self as i32
938 }
939
940 fn from_i32(value: i32) -> ::std::option::Option<LogMessage_Level> {
941 match value {
942 0 => ::std::option::Option::Some(LogMessage_Level::UNKNOWN),
943 10 => ::std::option::Option::Some(LogMessage_Level::DEBUG),
944 20 => ::std::option::Option::Some(LogMessage_Level::INFO),
945 30 => ::std::option::Option::Some(LogMessage_Level::WARN),
946 40 => ::std::option::Option::Some(LogMessage_Level::ERROR),
947 50 => ::std::option::Option::Some(LogMessage_Level::FATAL),
948 _ => ::std::option::Option::None
949 }
950 }
951
952 fn values() -> &'static [Self] {
953 static values: &'static [LogMessage_Level] = &[
954 LogMessage_Level::UNKNOWN,
955 LogMessage_Level::DEBUG,
956 LogMessage_Level::INFO,
957 LogMessage_Level::WARN,
958 LogMessage_Level::ERROR,
959 LogMessage_Level::FATAL,
960 ];
961 values
962 }
963
964 fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
965 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
966 descriptor.get(|| {
967 ::protobuf::reflect::EnumDescriptor::new_pb_name::<LogMessage_Level>("LogMessage.Level", file_descriptor_proto())
968 })
969 }
970}
971
972impl ::std::marker::Copy for LogMessage_Level {
973}
974
975impl ::std::default::Default for LogMessage_Level {
976 fn default() -> Self {
977 LogMessage_Level::UNKNOWN
978 }
979}
980
981impl ::protobuf::reflect::ProtobufValue for LogMessage_Level {
982 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
983 ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
984 }
985}
986
987#[derive(PartialEq,Clone,Default)]
988pub struct SessionLog {
989 pub status: SessionLog_SessionStatus,
991 pub checkpoint_path: ::std::string::String,
992 pub msg: ::std::string::String,
993 pub unknown_fields: ::protobuf::UnknownFields,
995 pub cached_size: ::protobuf::CachedSize,
996}
997
998impl<'a> ::std::default::Default for &'a SessionLog {
999 fn default() -> &'a SessionLog {
1000 <SessionLog as ::protobuf::Message>::default_instance()
1001 }
1002}
1003
1004impl SessionLog {
1005 pub fn new() -> SessionLog {
1006 ::std::default::Default::default()
1007 }
1008
1009 pub fn get_status(&self) -> SessionLog_SessionStatus {
1013 self.status
1014 }
1015 pub fn clear_status(&mut self) {
1016 self.status = SessionLog_SessionStatus::STATUS_UNSPECIFIED;
1017 }
1018
1019 pub fn set_status(&mut self, v: SessionLog_SessionStatus) {
1021 self.status = v;
1022 }
1023
1024 pub fn get_checkpoint_path(&self) -> &str {
1028 &self.checkpoint_path
1029 }
1030 pub fn clear_checkpoint_path(&mut self) {
1031 self.checkpoint_path.clear();
1032 }
1033
1034 pub fn set_checkpoint_path(&mut self, v: ::std::string::String) {
1036 self.checkpoint_path = v;
1037 }
1038
1039 pub fn mut_checkpoint_path(&mut self) -> &mut ::std::string::String {
1042 &mut self.checkpoint_path
1043 }
1044
1045 pub fn take_checkpoint_path(&mut self) -> ::std::string::String {
1047 ::std::mem::replace(&mut self.checkpoint_path, ::std::string::String::new())
1048 }
1049
1050 pub fn get_msg(&self) -> &str {
1054 &self.msg
1055 }
1056 pub fn clear_msg(&mut self) {
1057 self.msg.clear();
1058 }
1059
1060 pub fn set_msg(&mut self, v: ::std::string::String) {
1062 self.msg = v;
1063 }
1064
1065 pub fn mut_msg(&mut self) -> &mut ::std::string::String {
1068 &mut self.msg
1069 }
1070
1071 pub fn take_msg(&mut self) -> ::std::string::String {
1073 ::std::mem::replace(&mut self.msg, ::std::string::String::new())
1074 }
1075}
1076
1077impl ::protobuf::Message for SessionLog {
1078 fn is_initialized(&self) -> bool {
1079 true
1080 }
1081
1082 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1083 while !is.eof()? {
1084 let (field_number, wire_type) = is.read_tag_unpack()?;
1085 match field_number {
1086 1 => {
1087 ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.status, 1, &mut self.unknown_fields)?
1088 },
1089 2 => {
1090 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.checkpoint_path)?;
1091 },
1092 3 => {
1093 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.msg)?;
1094 },
1095 _ => {
1096 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1097 },
1098 };
1099 }
1100 ::std::result::Result::Ok(())
1101 }
1102
1103 #[allow(unused_variables)]
1105 fn compute_size(&self) -> u32 {
1106 let mut my_size = 0;
1107 if self.status != SessionLog_SessionStatus::STATUS_UNSPECIFIED {
1108 my_size += ::protobuf::rt::enum_size(1, self.status);
1109 }
1110 if !self.checkpoint_path.is_empty() {
1111 my_size += ::protobuf::rt::string_size(2, &self.checkpoint_path);
1112 }
1113 if !self.msg.is_empty() {
1114 my_size += ::protobuf::rt::string_size(3, &self.msg);
1115 }
1116 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1117 self.cached_size.set(my_size);
1118 my_size
1119 }
1120
1121 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1122 if self.status != SessionLog_SessionStatus::STATUS_UNSPECIFIED {
1123 os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.status))?;
1124 }
1125 if !self.checkpoint_path.is_empty() {
1126 os.write_string(2, &self.checkpoint_path)?;
1127 }
1128 if !self.msg.is_empty() {
1129 os.write_string(3, &self.msg)?;
1130 }
1131 os.write_unknown_fields(self.get_unknown_fields())?;
1132 ::std::result::Result::Ok(())
1133 }
1134
1135 fn get_cached_size(&self) -> u32 {
1136 self.cached_size.get()
1137 }
1138
1139 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1140 &self.unknown_fields
1141 }
1142
1143 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1144 &mut self.unknown_fields
1145 }
1146
1147 fn as_any(&self) -> &dyn (::std::any::Any) {
1148 self as &dyn (::std::any::Any)
1149 }
1150 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1151 self as &mut dyn (::std::any::Any)
1152 }
1153 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1154 self
1155 }
1156
1157 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1158 Self::descriptor_static()
1159 }
1160
1161 fn new() -> SessionLog {
1162 SessionLog::new()
1163 }
1164
1165 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1166 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
1167 descriptor.get(|| {
1168 let mut fields = ::std::vec::Vec::new();
1169 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<SessionLog_SessionStatus>>(
1170 "status",
1171 |m: &SessionLog| { &m.status },
1172 |m: &mut SessionLog| { &mut m.status },
1173 ));
1174 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1175 "checkpoint_path",
1176 |m: &SessionLog| { &m.checkpoint_path },
1177 |m: &mut SessionLog| { &mut m.checkpoint_path },
1178 ));
1179 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1180 "msg",
1181 |m: &SessionLog| { &m.msg },
1182 |m: &mut SessionLog| { &mut m.msg },
1183 ));
1184 ::protobuf::reflect::MessageDescriptor::new_pb_name::<SessionLog>(
1185 "SessionLog",
1186 fields,
1187 file_descriptor_proto()
1188 )
1189 })
1190 }
1191
1192 fn default_instance() -> &'static SessionLog {
1193 static instance: ::protobuf::rt::LazyV2<SessionLog> = ::protobuf::rt::LazyV2::INIT;
1194 instance.get(SessionLog::new)
1195 }
1196}
1197
1198impl ::protobuf::Clear for SessionLog {
1199 fn clear(&mut self) {
1200 self.status = SessionLog_SessionStatus::STATUS_UNSPECIFIED;
1201 self.checkpoint_path.clear();
1202 self.msg.clear();
1203 self.unknown_fields.clear();
1204 }
1205}
1206
1207impl ::std::fmt::Debug for SessionLog {
1208 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1209 ::protobuf::text_format::fmt(self, f)
1210 }
1211}
1212
1213impl ::protobuf::reflect::ProtobufValue for SessionLog {
1214 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1215 ::protobuf::reflect::ReflectValueRef::Message(self)
1216 }
1217}
1218
1219#[derive(Clone,PartialEq,Eq,Debug,Hash)]
1220pub enum SessionLog_SessionStatus {
1221 STATUS_UNSPECIFIED = 0,
1222 START = 1,
1223 STOP = 2,
1224 CHECKPOINT = 3,
1225}
1226
1227impl ::protobuf::ProtobufEnum for SessionLog_SessionStatus {
1228 fn value(&self) -> i32 {
1229 *self as i32
1230 }
1231
1232 fn from_i32(value: i32) -> ::std::option::Option<SessionLog_SessionStatus> {
1233 match value {
1234 0 => ::std::option::Option::Some(SessionLog_SessionStatus::STATUS_UNSPECIFIED),
1235 1 => ::std::option::Option::Some(SessionLog_SessionStatus::START),
1236 2 => ::std::option::Option::Some(SessionLog_SessionStatus::STOP),
1237 3 => ::std::option::Option::Some(SessionLog_SessionStatus::CHECKPOINT),
1238 _ => ::std::option::Option::None
1239 }
1240 }
1241
1242 fn values() -> &'static [Self] {
1243 static values: &'static [SessionLog_SessionStatus] = &[
1244 SessionLog_SessionStatus::STATUS_UNSPECIFIED,
1245 SessionLog_SessionStatus::START,
1246 SessionLog_SessionStatus::STOP,
1247 SessionLog_SessionStatus::CHECKPOINT,
1248 ];
1249 values
1250 }
1251
1252 fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
1253 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
1254 descriptor.get(|| {
1255 ::protobuf::reflect::EnumDescriptor::new_pb_name::<SessionLog_SessionStatus>("SessionLog.SessionStatus", file_descriptor_proto())
1256 })
1257 }
1258}
1259
1260impl ::std::marker::Copy for SessionLog_SessionStatus {
1261}
1262
1263impl ::std::default::Default for SessionLog_SessionStatus {
1264 fn default() -> Self {
1265 SessionLog_SessionStatus::STATUS_UNSPECIFIED
1266 }
1267}
1268
1269impl ::protobuf::reflect::ProtobufValue for SessionLog_SessionStatus {
1270 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1271 ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
1272 }
1273}
1274
1275#[derive(PartialEq,Clone,Default)]
1276pub struct TaggedRunMetadata {
1277 pub tag: ::std::string::String,
1279 pub run_metadata: ::std::vec::Vec<u8>,
1280 pub unknown_fields: ::protobuf::UnknownFields,
1282 pub cached_size: ::protobuf::CachedSize,
1283}
1284
1285impl<'a> ::std::default::Default for &'a TaggedRunMetadata {
1286 fn default() -> &'a TaggedRunMetadata {
1287 <TaggedRunMetadata as ::protobuf::Message>::default_instance()
1288 }
1289}
1290
1291impl TaggedRunMetadata {
1292 pub fn new() -> TaggedRunMetadata {
1293 ::std::default::Default::default()
1294 }
1295
1296 pub fn get_tag(&self) -> &str {
1300 &self.tag
1301 }
1302 pub fn clear_tag(&mut self) {
1303 self.tag.clear();
1304 }
1305
1306 pub fn set_tag(&mut self, v: ::std::string::String) {
1308 self.tag = v;
1309 }
1310
1311 pub fn mut_tag(&mut self) -> &mut ::std::string::String {
1314 &mut self.tag
1315 }
1316
1317 pub fn take_tag(&mut self) -> ::std::string::String {
1319 ::std::mem::replace(&mut self.tag, ::std::string::String::new())
1320 }
1321
1322 pub fn get_run_metadata(&self) -> &[u8] {
1326 &self.run_metadata
1327 }
1328 pub fn clear_run_metadata(&mut self) {
1329 self.run_metadata.clear();
1330 }
1331
1332 pub fn set_run_metadata(&mut self, v: ::std::vec::Vec<u8>) {
1334 self.run_metadata = v;
1335 }
1336
1337 pub fn mut_run_metadata(&mut self) -> &mut ::std::vec::Vec<u8> {
1340 &mut self.run_metadata
1341 }
1342
1343 pub fn take_run_metadata(&mut self) -> ::std::vec::Vec<u8> {
1345 ::std::mem::replace(&mut self.run_metadata, ::std::vec::Vec::new())
1346 }
1347}
1348
1349impl ::protobuf::Message for TaggedRunMetadata {
1350 fn is_initialized(&self) -> bool {
1351 true
1352 }
1353
1354 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1355 while !is.eof()? {
1356 let (field_number, wire_type) = is.read_tag_unpack()?;
1357 match field_number {
1358 1 => {
1359 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.tag)?;
1360 },
1361 2 => {
1362 ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.run_metadata)?;
1363 },
1364 _ => {
1365 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1366 },
1367 };
1368 }
1369 ::std::result::Result::Ok(())
1370 }
1371
1372 #[allow(unused_variables)]
1374 fn compute_size(&self) -> u32 {
1375 let mut my_size = 0;
1376 if !self.tag.is_empty() {
1377 my_size += ::protobuf::rt::string_size(1, &self.tag);
1378 }
1379 if !self.run_metadata.is_empty() {
1380 my_size += ::protobuf::rt::bytes_size(2, &self.run_metadata);
1381 }
1382 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1383 self.cached_size.set(my_size);
1384 my_size
1385 }
1386
1387 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1388 if !self.tag.is_empty() {
1389 os.write_string(1, &self.tag)?;
1390 }
1391 if !self.run_metadata.is_empty() {
1392 os.write_bytes(2, &self.run_metadata)?;
1393 }
1394 os.write_unknown_fields(self.get_unknown_fields())?;
1395 ::std::result::Result::Ok(())
1396 }
1397
1398 fn get_cached_size(&self) -> u32 {
1399 self.cached_size.get()
1400 }
1401
1402 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1403 &self.unknown_fields
1404 }
1405
1406 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1407 &mut self.unknown_fields
1408 }
1409
1410 fn as_any(&self) -> &dyn (::std::any::Any) {
1411 self as &dyn (::std::any::Any)
1412 }
1413 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1414 self as &mut dyn (::std::any::Any)
1415 }
1416 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1417 self
1418 }
1419
1420 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1421 Self::descriptor_static()
1422 }
1423
1424 fn new() -> TaggedRunMetadata {
1425 TaggedRunMetadata::new()
1426 }
1427
1428 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1429 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
1430 descriptor.get(|| {
1431 let mut fields = ::std::vec::Vec::new();
1432 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1433 "tag",
1434 |m: &TaggedRunMetadata| { &m.tag },
1435 |m: &mut TaggedRunMetadata| { &mut m.tag },
1436 ));
1437 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
1438 "run_metadata",
1439 |m: &TaggedRunMetadata| { &m.run_metadata },
1440 |m: &mut TaggedRunMetadata| { &mut m.run_metadata },
1441 ));
1442 ::protobuf::reflect::MessageDescriptor::new_pb_name::<TaggedRunMetadata>(
1443 "TaggedRunMetadata",
1444 fields,
1445 file_descriptor_proto()
1446 )
1447 })
1448 }
1449
1450 fn default_instance() -> &'static TaggedRunMetadata {
1451 static instance: ::protobuf::rt::LazyV2<TaggedRunMetadata> = ::protobuf::rt::LazyV2::INIT;
1452 instance.get(TaggedRunMetadata::new)
1453 }
1454}
1455
1456impl ::protobuf::Clear for TaggedRunMetadata {
1457 fn clear(&mut self) {
1458 self.tag.clear();
1459 self.run_metadata.clear();
1460 self.unknown_fields.clear();
1461 }
1462}
1463
1464impl ::std::fmt::Debug for TaggedRunMetadata {
1465 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1466 ::protobuf::text_format::fmt(self, f)
1467 }
1468}
1469
1470impl ::protobuf::reflect::ProtobufValue for TaggedRunMetadata {
1471 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1472 ::protobuf::reflect::ReflectValueRef::Message(self)
1473 }
1474}
1475
1476static file_descriptor_proto_data: &'static [u8] = b"\
1477 \n\x0fsrc/event.proto\x12\rtensorboardrs\x1a\x11src/summary.proto\"\xb0\
1478 \x03\n\x05Event\x12\x1b\n\twall_time\x18\x01\x20\x01(\x01R\x08wallTime\
1479 \x12\x12\n\x04step\x18\x02\x20\x01(\x03R\x04step\x12#\n\x0cfile_version\
1480 \x18\x03\x20\x01(\tH\0R\x0bfileVersion\x12\x1d\n\tgraph_def\x18\x04\x20\
1481 \x01(\x0cH\0R\x08graphDef\x122\n\x07summary\x18\x05\x20\x01(\x0b2\x16.te\
1482 nsorboardrs.SummaryH\0R\x07summary\x12<\n\x0blog_message\x18\x06\x20\x01\
1483 (\x0b2\x19.tensorboardrs.LogMessageH\0R\nlogMessage\x12<\n\x0bsession_lo\
1484 g\x18\x07\x20\x01(\x0b2\x19.tensorboardrs.SessionLogH\0R\nsessionLog\x12\
1485 R\n\x13tagged_run_metadata\x18\x08\x20\x01(\x0b2\x20.tensorboardrs.Tagge\
1486 dRunMetadataH\0R\x11taggedRunMetadata\x12&\n\x0emeta_graph_def\x18\t\x20\
1487 \x01(\x0cH\0R\x0cmetaGraphDefB\x06\n\x04what\"\xa8\x01\n\nLogMessage\x12\
1488 5\n\x05level\x18\x01\x20\x01(\x0e2\x1f.tensorboardrs.LogMessage.LevelR\
1489 \x05level\x12\x18\n\x07message\x18\x02\x20\x01(\tR\x07message\"I\n\x05Le\
1490 vel\x12\x0b\n\x07UNKNOWN\x10\0\x12\t\n\x05DEBUG\x10\n\x12\x08\n\x04INFO\
1491 \x10\x14\x12\x08\n\x04WARN\x10\x1e\x12\t\n\x05ERROR\x10(\x12\t\n\x05FATA\
1492 L\x102\"\xd6\x01\n\nSessionLog\x12?\n\x06status\x18\x01\x20\x01(\x0e2'.t\
1493 ensorboardrs.SessionLog.SessionStatusR\x06status\x12'\n\x0fcheckpoint_pa\
1494 th\x18\x02\x20\x01(\tR\x0echeckpointPath\x12\x10\n\x03msg\x18\x03\x20\
1495 \x01(\tR\x03msg\"L\n\rSessionStatus\x12\x16\n\x12STATUS_UNSPECIFIED\x10\
1496 \0\x12\t\n\x05START\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\x0e\n\nCHECKPO\
1497 INT\x10\x03\"H\n\x11TaggedRunMetadata\x12\x10\n\x03tag\x18\x01\x20\x01(\
1498 \tR\x03tag\x12!\n\x0crun_metadata\x18\x02\x20\x01(\x0cR\x0brunMetadataB'\
1499 \n\x13org.tensorflow.utilB\x0bEventProtosP\x01\xf8\x01\x01J\xc9\x15\n\
1500 \x06\x12\x04\0\0M\x01\n\x08\n\x01\x0c\x12\x03\0\0\x12\n\x08\n\x01\x02\
1501 \x12\x03\x02\0\x16\n\x08\n\x01\x08\x12\x03\x03\0\x1f\n\t\n\x02\x08\x1f\
1502 \x12\x03\x03\0\x1f\n\x08\n\x01\x08\x12\x03\x04\0,\n\t\n\x02\x08\x08\x12\
1503 \x03\x04\0,\n\x08\n\x01\x08\x12\x03\x05\0\"\n\t\n\x02\x08\n\x12\x03\x05\
1504 \0\"\n\x08\n\x01\x08\x12\x03\x06\0,\n\t\n\x02\x08\x01\x12\x03\x06\0,\n\t\
1505 \n\x02\x03\0\x12\x03\x08\0\x1b\ni\n\x02\x04\0\x12\x04\x0c\0'\x01\x1a]\
1506 \x20Protocol\x20buffer\x20representing\x20an\x20event\x20that\x20happene\
1507 d\x20during\n\x20the\x20execution\x20of\x20a\x20Brain\x20model.\n\n\n\n\
1508 \x03\x04\0\x01\x12\x03\x0c\x08\r\n&\n\x04\x04\0\x02\0\x12\x03\x0e\x02\
1509 \x17\x1a\x19\x20Timestamp\x20of\x20the\x20event.\n\n\x0c\n\x05\x04\0\x02\
1510 \0\x05\x12\x03\x0e\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x0e\t\x12\
1511 \n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x0e\x15\x16\n(\n\x04\x04\0\x02\x01\
1512 \x12\x03\x11\x02\x11\x1a\x1b\x20Global\x20step\x20of\x20the\x20event.\n\
1513 \n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03\x11\x02\x07\n\x0c\n\x05\x04\0\x02\
1514 \x01\x01\x12\x03\x11\x08\x0c\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x11\
1515 \x0f\x10\n\x0c\n\x04\x04\0\x08\0\x12\x04\x13\x02&\x03\n\x0c\n\x05\x04\0\
1516 \x08\0\x01\x12\x03\x13\x08\x0c\n\xdb\x01\n\x04\x04\0\x02\x02\x12\x03\x18\
1517 \x04\x1c\x1a\xcd\x01\x20An\x20event\x20file\x20was\x20started,\x20with\
1518 \x20the\x20specified\x20version.\n\x20This\x20is\x20use\x20to\x20identif\
1519 y\x20the\x20contents\x20of\x20the\x20record\x20IO\x20files\n\x20easily.\
1520 \x20\x20Current\x20version\x20is\x20\"brain.Event:2\".\x20\x20All\x20ver\
1521 sions\n\x20start\x20with\x20\"brain.Event:\".\n\n\x0c\n\x05\x04\0\x02\
1522 \x02\x05\x12\x03\x18\x04\n\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\x18\x0b\
1523 \x17\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03\x18\x1a\x1b\n0\n\x04\x04\0\
1524 \x02\x03\x12\x03\x1a\x04\x18\x1a#\x20An\x20encoded\x20version\x20of\x20a\
1525 \x20GraphDef.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03\x1a\x04\t\n\x0c\n\
1526 \x05\x04\0\x02\x03\x01\x12\x03\x1a\n\x13\n\x0c\n\x05\x04\0\x02\x03\x03\
1527 \x12\x03\x1a\x16\x17\n'\n\x04\x04\0\x02\x04\x12\x03\x1c\x04\x18\x1a\x1a\
1528 \x20A\x20summary\x20was\x20generated.\n\n\x0c\n\x05\x04\0\x02\x04\x06\
1529 \x12\x03\x1c\x04\x0b\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03\x1c\x0c\x13\n\
1530 \x0c\n\x05\x04\0\x02\x04\x03\x12\x03\x1c\x16\x17\n\x8a\x01\n\x04\x04\0\
1531 \x02\x05\x12\x03\x1f\x04\x1f\x1a}\x20The\x20user\x20output\x20a\x20log\
1532 \x20message.\x20Not\x20all\x20messages\x20are\x20logged,\x20only\x20ones\
1533 \n\x20generated\x20via\x20the\x20Python\x20tensorboard_logging\x20module\
1534 .\n\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03\x1f\x04\x0e\n\x0c\n\x05\x04\0\
1535 \x02\x05\x01\x12\x03\x1f\x0f\x1a\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03\
1536 \x1f\x1d\x1e\nW\n\x04\x04\0\x02\x06\x12\x03!\x04\x1f\x1aJ\x20The\x20stat\
1537 e\x20of\x20the\x20session\x20which\x20can\x20be\x20used\x20for\x20restar\
1538 ting\x20after\x20crashes.\n\n\x0c\n\x05\x04\0\x02\x06\x06\x12\x03!\x04\
1539 \x0e\n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03!\x0f\x1a\n\x0c\n\x05\x04\0\
1540 \x02\x06\x03\x12\x03!\x1d\x1e\nE\n\x04\x04\0\x02\x07\x12\x03#\x04.\x1a8\
1541 \x20The\x20metadata\x20returned\x20by\x20running\x20a\x20session.run()\
1542 \x20call.\n\n\x0c\n\x05\x04\0\x02\x07\x06\x12\x03#\x04\x15\n\x0c\n\x05\
1543 \x04\0\x02\x07\x01\x12\x03#\x16)\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03#,\
1544 -\n4\n\x04\x04\0\x02\x08\x12\x03%\x04\x1d\x1a'\x20An\x20encoded\x20versi\
1545 on\x20of\x20a\x20MetaGraphDef.\n\n\x0c\n\x05\x04\0\x02\x08\x05\x12\x03%\
1546 \x04\t\n\x0c\n\x05\x04\0\x02\x08\x01\x12\x03%\n\x18\n\x0c\n\x05\x04\0\
1547 \x02\x08\x03\x12\x03%\x1b\x1c\nK\n\x02\x04\x01\x12\x04*\05\x01\x1a?\x20P\
1548 rotocol\x20buffer\x20used\x20for\x20logging\x20messages\x20to\x20the\x20\
1549 events\x20file.\n\n\n\n\x03\x04\x01\x01\x12\x03*\x08\x12\n\x0c\n\x04\x04\
1550 \x01\x04\0\x12\x04+\x022\x03\n\x0c\n\x05\x04\x01\x04\0\x01\x12\x03+\x07\
1551 \x0c\n\r\n\x06\x04\x01\x04\0\x02\0\x12\x03,\x04\x10\n\x0e\n\x07\x04\x01\
1552 \x04\0\x02\0\x01\x12\x03,\x04\x0b\n\x0e\n\x07\x04\x01\x04\0\x02\0\x02\
1553 \x12\x03,\x0e\x0f\n\r\n\x06\x04\x01\x04\0\x02\x01\x12\x03-\x04\x0f\n\x0e\
1554 \n\x07\x04\x01\x04\0\x02\x01\x01\x12\x03-\x04\t\n\x0e\n\x07\x04\x01\x04\
1555 \0\x02\x01\x02\x12\x03-\x0c\x0e\n\r\n\x06\x04\x01\x04\0\x02\x02\x12\x03.\
1556 \x04\x0e\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x01\x12\x03.\x04\x08\n\x0e\n\
1557 \x07\x04\x01\x04\0\x02\x02\x02\x12\x03.\x0b\r\n\r\n\x06\x04\x01\x04\0\
1558 \x02\x03\x12\x03/\x04\x0e\n\x0e\n\x07\x04\x01\x04\0\x02\x03\x01\x12\x03/\
1559 \x04\x08\n\x0e\n\x07\x04\x01\x04\0\x02\x03\x02\x12\x03/\x0b\r\n\r\n\x06\
1560 \x04\x01\x04\0\x02\x04\x12\x030\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\
1561 \x04\x01\x12\x030\x04\t\n\x0e\n\x07\x04\x01\x04\0\x02\x04\x02\x12\x030\
1562 \x0c\x0e\n\r\n\x06\x04\x01\x04\0\x02\x05\x12\x031\x04\x0f\n\x0e\n\x07\
1563 \x04\x01\x04\0\x02\x05\x01\x12\x031\x04\t\n\x0e\n\x07\x04\x01\x04\0\x02\
1564 \x05\x02\x12\x031\x0c\x0e\n\x0b\n\x04\x04\x01\x02\0\x12\x033\x02\x12\n\
1565 \x0c\n\x05\x04\x01\x02\0\x06\x12\x033\x02\x07\n\x0c\n\x05\x04\x01\x02\0\
1566 \x01\x12\x033\x08\r\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x033\x10\x11\n\x0b\
1567 \n\x04\x04\x01\x02\x01\x12\x034\x02\x15\n\x0c\n\x05\x04\x01\x02\x01\x05\
1568 \x12\x034\x02\x08\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x034\t\x10\n\x0c\n\
1569 \x05\x04\x01\x02\x01\x03\x12\x034\x13\x14\n=\n\x02\x04\x02\x12\x048\0D\
1570 \x01\x1a1\x20Protocol\x20buffer\x20used\x20for\x20logging\x20session\x20\
1571 state.\n\n\n\n\x03\x04\x02\x01\x12\x038\x08\x12\n\x0c\n\x04\x04\x02\x04\
1572 \0\x12\x049\x02>\x03\n\x0c\n\x05\x04\x02\x04\0\x01\x12\x039\x07\x14\n\r\
1573 \n\x06\x04\x02\x04\0\x02\0\x12\x03:\x04\x1b\n\x0e\n\x07\x04\x02\x04\0\
1574 \x02\0\x01\x12\x03:\x04\x16\n\x0e\n\x07\x04\x02\x04\0\x02\0\x02\x12\x03:\
1575 \x19\x1a\n\r\n\x06\x04\x02\x04\0\x02\x01\x12\x03;\x04\x0e\n\x0e\n\x07\
1576 \x04\x02\x04\0\x02\x01\x01\x12\x03;\x04\t\n\x0e\n\x07\x04\x02\x04\0\x02\
1577 \x01\x02\x12\x03;\x0c\r\n\r\n\x06\x04\x02\x04\0\x02\x02\x12\x03<\x04\r\n\
1578 \x0e\n\x07\x04\x02\x04\0\x02\x02\x01\x12\x03<\x04\x08\n\x0e\n\x07\x04\
1579 \x02\x04\0\x02\x02\x02\x12\x03<\x0b\x0c\n\r\n\x06\x04\x02\x04\0\x02\x03\
1580 \x12\x03=\x04\x13\n\x0e\n\x07\x04\x02\x04\0\x02\x03\x01\x12\x03=\x04\x0e\
1581 \n\x0e\n\x07\x04\x02\x04\0\x02\x03\x02\x12\x03=\x11\x12\n\x0b\n\x04\x04\
1582 \x02\x02\0\x12\x03@\x02\x1b\n\x0c\n\x05\x04\x02\x02\0\x06\x12\x03@\x02\
1583 \x0f\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03@\x10\x16\n\x0c\n\x05\x04\x02\
1584 \x02\0\x03\x12\x03@\x19\x1a\nH\n\x04\x04\x02\x02\x01\x12\x03B\x02\x1d\
1585 \x1a;\x20This\x20checkpoint_path\x20contains\x20both\x20the\x20path\x20a\
1586 nd\x20filename.\n\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03B\x02\x08\n\x0c\
1587 \n\x05\x04\x02\x02\x01\x01\x12\x03B\t\x18\n\x0c\n\x05\x04\x02\x02\x01\
1588 \x03\x12\x03B\x1b\x1c\n\x0b\n\x04\x04\x02\x02\x02\x12\x03C\x02\x11\n\x0c\
1589 \n\x05\x04\x02\x02\x02\x05\x12\x03C\x02\x08\n\x0c\n\x05\x04\x02\x02\x02\
1590 \x01\x12\x03C\t\x0c\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03C\x0f\x10\nN\
1591 \n\x02\x04\x03\x12\x04G\0M\x01\x1aB\x20For\x20logging\x20the\x20metadata\
1592 \x20output\x20for\x20a\x20single\x20session.run()\x20call.\n\n\n\n\x03\
1593 \x04\x03\x01\x12\x03G\x08\x19\n6\n\x04\x04\x03\x02\0\x12\x03I\x02\x11\
1594 \x1a)\x20Tag\x20name\x20associated\x20with\x20this\x20metadata.\n\n\x0c\
1595 \n\x05\x04\x03\x02\0\x05\x12\x03I\x02\x08\n\x0c\n\x05\x04\x03\x02\0\x01\
1596 \x12\x03I\t\x0c\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03I\x0f\x10\ng\n\x04\
1597 \x04\x03\x02\x01\x12\x03L\x02\x19\x1aZ\x20Byte-encoded\x20version\x20of\
1598 \x20the\x20`RunMetadata`\x20proto\x20in\x20order\x20to\x20allow\x20lazy\
1599 \n\x20deserialization.\n\n\x0c\n\x05\x04\x03\x02\x01\x05\x12\x03L\x02\
1600 \x07\n\x0c\n\x05\x04\x03\x02\x01\x01\x12\x03L\x08\x14\n\x0c\n\x05\x04\
1601 \x03\x02\x01\x03\x12\x03L\x17\x18b\x06proto3\
1602";
1603
1604static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
1605
1606fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
1607 ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
1608}
1609
1610pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
1611 file_descriptor_proto_lazy.get(|| {
1612 parse_descriptor_proto()
1613 })
1614}