tensorflow_serving_client/
input.rs1#![allow(unknown_lints)]
6#![allow(clippy::all)]
7
8#![cfg_attr(rustfmt, rustfmt_skip)]
9
10#![allow(box_pointers)]
11#![allow(dead_code)]
12#![allow(missing_docs)]
13#![allow(non_camel_case_types)]
14#![allow(non_snake_case)]
15#![allow(non_upper_case_globals)]
16#![allow(trivial_casts)]
17#![allow(unsafe_code)]
18#![allow(unused_imports)]
19#![allow(unused_results)]
20use protobuf::Message as Message_imported_for_functions;
23use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
24
25#[derive(PartialEq,Clone,Default)]
30pub struct ExampleList {
31 pub examples: ::protobuf::RepeatedField<super::example::Example>,
33 pub unknown_fields: ::protobuf::UnknownFields,
35 pub cached_size: ::protobuf::CachedSize,
36}
37
38impl<'a> ::std::default::Default for &'a ExampleList {
39 fn default() -> &'a ExampleList {
40 <ExampleList as ::protobuf::Message>::default_instance()
41 }
42}
43
44impl ExampleList {
45 pub fn new() -> ExampleList {
46 ::std::default::Default::default()
47 }
48
49 pub fn get_examples(&self) -> &[super::example::Example] {
53 &self.examples
54 }
55 pub fn clear_examples(&mut self) {
56 self.examples.clear();
57 }
58
59 pub fn set_examples(&mut self, v: ::protobuf::RepeatedField<super::example::Example>) {
61 self.examples = v;
62 }
63
64 pub fn mut_examples(&mut self) -> &mut ::protobuf::RepeatedField<super::example::Example> {
66 &mut self.examples
67 }
68
69 pub fn take_examples(&mut self) -> ::protobuf::RepeatedField<super::example::Example> {
71 ::std::mem::replace(&mut self.examples, ::protobuf::RepeatedField::new())
72 }
73}
74
75impl ::protobuf::Message for ExampleList {
76 fn is_initialized(&self) -> bool {
77 for v in &self.examples {
78 if !v.is_initialized() {
79 return false;
80 }
81 };
82 true
83 }
84
85 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
86 while !is.eof()? {
87 let (field_number, wire_type) = is.read_tag_unpack()?;
88 match field_number {
89 1 => {
90 ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.examples)?;
91 },
92 _ => {
93 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
94 },
95 };
96 }
97 ::std::result::Result::Ok(())
98 }
99
100 #[allow(unused_variables)]
102 fn compute_size(&self) -> u32 {
103 let mut my_size = 0;
104 for value in &self.examples {
105 let len = value.compute_size();
106 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
107 };
108 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
109 self.cached_size.set(my_size);
110 my_size
111 }
112
113 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
114 for v in &self.examples {
115 os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
116 os.write_raw_varint32(v.get_cached_size())?;
117 v.write_to_with_cached_sizes(os)?;
118 };
119 os.write_unknown_fields(self.get_unknown_fields())?;
120 ::std::result::Result::Ok(())
121 }
122
123 fn get_cached_size(&self) -> u32 {
124 self.cached_size.get()
125 }
126
127 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
128 &self.unknown_fields
129 }
130
131 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
132 &mut self.unknown_fields
133 }
134
135 fn as_any(&self) -> &dyn (::std::any::Any) {
136 self as &dyn (::std::any::Any)
137 }
138 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
139 self as &mut dyn (::std::any::Any)
140 }
141 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
142 self
143 }
144
145 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
146 Self::descriptor_static()
147 }
148
149 fn new() -> ExampleList {
150 ExampleList::new()
151 }
152
153 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
154 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
155 unsafe {
156 descriptor.get(|| {
157 let mut fields = ::std::vec::Vec::new();
158 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::example::Example>>(
159 "examples",
160 |m: &ExampleList| { &m.examples },
161 |m: &mut ExampleList| { &mut m.examples },
162 ));
163 ::protobuf::reflect::MessageDescriptor::new_pb_name::<ExampleList>(
164 "ExampleList",
165 fields,
166 file_descriptor_proto()
167 )
168 })
169 }
170 }
171
172 fn default_instance() -> &'static ExampleList {
173 static mut instance: ::protobuf::lazy::Lazy<ExampleList> = ::protobuf::lazy::Lazy::INIT;
174 unsafe {
175 instance.get(ExampleList::new)
176 }
177 }
178}
179
180impl ::protobuf::Clear for ExampleList {
181 fn clear(&mut self) {
182 self.examples.clear();
183 self.unknown_fields.clear();
184 }
185}
186
187impl ::std::fmt::Debug for ExampleList {
188 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
189 ::protobuf::text_format::fmt(self, f)
190 }
191}
192
193impl ::protobuf::reflect::ProtobufValue for ExampleList {
194 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
195 ::protobuf::reflect::ReflectValueRef::Message(self)
196 }
197}
198
199#[derive(PartialEq,Clone,Default)]
200pub struct ExampleListWithContext {
201 pub examples: ::protobuf::RepeatedField<super::example::Example>,
203 pub context: ::protobuf::SingularPtrField<super::example::Example>,
204 pub unknown_fields: ::protobuf::UnknownFields,
206 pub cached_size: ::protobuf::CachedSize,
207}
208
209impl<'a> ::std::default::Default for &'a ExampleListWithContext {
210 fn default() -> &'a ExampleListWithContext {
211 <ExampleListWithContext as ::protobuf::Message>::default_instance()
212 }
213}
214
215impl ExampleListWithContext {
216 pub fn new() -> ExampleListWithContext {
217 ::std::default::Default::default()
218 }
219
220 pub fn get_examples(&self) -> &[super::example::Example] {
224 &self.examples
225 }
226 pub fn clear_examples(&mut self) {
227 self.examples.clear();
228 }
229
230 pub fn set_examples(&mut self, v: ::protobuf::RepeatedField<super::example::Example>) {
232 self.examples = v;
233 }
234
235 pub fn mut_examples(&mut self) -> &mut ::protobuf::RepeatedField<super::example::Example> {
237 &mut self.examples
238 }
239
240 pub fn take_examples(&mut self) -> ::protobuf::RepeatedField<super::example::Example> {
242 ::std::mem::replace(&mut self.examples, ::protobuf::RepeatedField::new())
243 }
244
245 pub fn get_context(&self) -> &super::example::Example {
249 self.context.as_ref().unwrap_or_else(|| super::example::Example::default_instance())
250 }
251 pub fn clear_context(&mut self) {
252 self.context.clear();
253 }
254
255 pub fn has_context(&self) -> bool {
256 self.context.is_some()
257 }
258
259 pub fn set_context(&mut self, v: super::example::Example) {
261 self.context = ::protobuf::SingularPtrField::some(v);
262 }
263
264 pub fn mut_context(&mut self) -> &mut super::example::Example {
267 if self.context.is_none() {
268 self.context.set_default();
269 }
270 self.context.as_mut().unwrap()
271 }
272
273 pub fn take_context(&mut self) -> super::example::Example {
275 self.context.take().unwrap_or_else(|| super::example::Example::new())
276 }
277}
278
279impl ::protobuf::Message for ExampleListWithContext {
280 fn is_initialized(&self) -> bool {
281 for v in &self.examples {
282 if !v.is_initialized() {
283 return false;
284 }
285 };
286 for v in &self.context {
287 if !v.is_initialized() {
288 return false;
289 }
290 };
291 true
292 }
293
294 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
295 while !is.eof()? {
296 let (field_number, wire_type) = is.read_tag_unpack()?;
297 match field_number {
298 1 => {
299 ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.examples)?;
300 },
301 2 => {
302 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.context)?;
303 },
304 _ => {
305 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
306 },
307 };
308 }
309 ::std::result::Result::Ok(())
310 }
311
312 #[allow(unused_variables)]
314 fn compute_size(&self) -> u32 {
315 let mut my_size = 0;
316 for value in &self.examples {
317 let len = value.compute_size();
318 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
319 };
320 if let Some(ref v) = self.context.as_ref() {
321 let len = v.compute_size();
322 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
323 }
324 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
325 self.cached_size.set(my_size);
326 my_size
327 }
328
329 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
330 for v in &self.examples {
331 os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
332 os.write_raw_varint32(v.get_cached_size())?;
333 v.write_to_with_cached_sizes(os)?;
334 };
335 if let Some(ref v) = self.context.as_ref() {
336 os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
337 os.write_raw_varint32(v.get_cached_size())?;
338 v.write_to_with_cached_sizes(os)?;
339 }
340 os.write_unknown_fields(self.get_unknown_fields())?;
341 ::std::result::Result::Ok(())
342 }
343
344 fn get_cached_size(&self) -> u32 {
345 self.cached_size.get()
346 }
347
348 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
349 &self.unknown_fields
350 }
351
352 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
353 &mut self.unknown_fields
354 }
355
356 fn as_any(&self) -> &dyn (::std::any::Any) {
357 self as &dyn (::std::any::Any)
358 }
359 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
360 self as &mut dyn (::std::any::Any)
361 }
362 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
363 self
364 }
365
366 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
367 Self::descriptor_static()
368 }
369
370 fn new() -> ExampleListWithContext {
371 ExampleListWithContext::new()
372 }
373
374 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
375 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
376 unsafe {
377 descriptor.get(|| {
378 let mut fields = ::std::vec::Vec::new();
379 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::example::Example>>(
380 "examples",
381 |m: &ExampleListWithContext| { &m.examples },
382 |m: &mut ExampleListWithContext| { &mut m.examples },
383 ));
384 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::example::Example>>(
385 "context",
386 |m: &ExampleListWithContext| { &m.context },
387 |m: &mut ExampleListWithContext| { &mut m.context },
388 ));
389 ::protobuf::reflect::MessageDescriptor::new_pb_name::<ExampleListWithContext>(
390 "ExampleListWithContext",
391 fields,
392 file_descriptor_proto()
393 )
394 })
395 }
396 }
397
398 fn default_instance() -> &'static ExampleListWithContext {
399 static mut instance: ::protobuf::lazy::Lazy<ExampleListWithContext> = ::protobuf::lazy::Lazy::INIT;
400 unsafe {
401 instance.get(ExampleListWithContext::new)
402 }
403 }
404}
405
406impl ::protobuf::Clear for ExampleListWithContext {
407 fn clear(&mut self) {
408 self.examples.clear();
409 self.context.clear();
410 self.unknown_fields.clear();
411 }
412}
413
414impl ::std::fmt::Debug for ExampleListWithContext {
415 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
416 ::protobuf::text_format::fmt(self, f)
417 }
418}
419
420impl ::protobuf::reflect::ProtobufValue for ExampleListWithContext {
421 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
422 ::protobuf::reflect::ReflectValueRef::Message(self)
423 }
424}
425
426#[derive(PartialEq,Clone,Default)]
427pub struct Input {
428 pub kind: ::std::option::Option<Input_oneof_kind>,
430 pub unknown_fields: ::protobuf::UnknownFields,
432 pub cached_size: ::protobuf::CachedSize,
433}
434
435impl<'a> ::std::default::Default for &'a Input {
436 fn default() -> &'a Input {
437 <Input as ::protobuf::Message>::default_instance()
438 }
439}
440
441#[derive(Clone,PartialEq,Debug)]
442pub enum Input_oneof_kind {
443 example_list(ExampleList),
444 example_list_with_context(ExampleListWithContext),
445}
446
447impl Input {
448 pub fn new() -> Input {
449 ::std::default::Default::default()
450 }
451
452 pub fn get_example_list(&self) -> &ExampleList {
456 match self.kind {
457 ::std::option::Option::Some(Input_oneof_kind::example_list(ref v)) => v,
458 _ => ExampleList::default_instance(),
459 }
460 }
461 pub fn clear_example_list(&mut self) {
462 self.kind = ::std::option::Option::None;
463 }
464
465 pub fn has_example_list(&self) -> bool {
466 match self.kind {
467 ::std::option::Option::Some(Input_oneof_kind::example_list(..)) => true,
468 _ => false,
469 }
470 }
471
472 pub fn set_example_list(&mut self, v: ExampleList) {
474 self.kind = ::std::option::Option::Some(Input_oneof_kind::example_list(v))
475 }
476
477 pub fn mut_example_list(&mut self) -> &mut ExampleList {
479 if let ::std::option::Option::Some(Input_oneof_kind::example_list(_)) = self.kind {
480 } else {
481 self.kind = ::std::option::Option::Some(Input_oneof_kind::example_list(ExampleList::new()));
482 }
483 match self.kind {
484 ::std::option::Option::Some(Input_oneof_kind::example_list(ref mut v)) => v,
485 _ => panic!(),
486 }
487 }
488
489 pub fn take_example_list(&mut self) -> ExampleList {
491 if self.has_example_list() {
492 match self.kind.take() {
493 ::std::option::Option::Some(Input_oneof_kind::example_list(v)) => v,
494 _ => panic!(),
495 }
496 } else {
497 ExampleList::new()
498 }
499 }
500
501 pub fn get_example_list_with_context(&self) -> &ExampleListWithContext {
505 match self.kind {
506 ::std::option::Option::Some(Input_oneof_kind::example_list_with_context(ref v)) => v,
507 _ => ExampleListWithContext::default_instance(),
508 }
509 }
510 pub fn clear_example_list_with_context(&mut self) {
511 self.kind = ::std::option::Option::None;
512 }
513
514 pub fn has_example_list_with_context(&self) -> bool {
515 match self.kind {
516 ::std::option::Option::Some(Input_oneof_kind::example_list_with_context(..)) => true,
517 _ => false,
518 }
519 }
520
521 pub fn set_example_list_with_context(&mut self, v: ExampleListWithContext) {
523 self.kind = ::std::option::Option::Some(Input_oneof_kind::example_list_with_context(v))
524 }
525
526 pub fn mut_example_list_with_context(&mut self) -> &mut ExampleListWithContext {
528 if let ::std::option::Option::Some(Input_oneof_kind::example_list_with_context(_)) = self.kind {
529 } else {
530 self.kind = ::std::option::Option::Some(Input_oneof_kind::example_list_with_context(ExampleListWithContext::new()));
531 }
532 match self.kind {
533 ::std::option::Option::Some(Input_oneof_kind::example_list_with_context(ref mut v)) => v,
534 _ => panic!(),
535 }
536 }
537
538 pub fn take_example_list_with_context(&mut self) -> ExampleListWithContext {
540 if self.has_example_list_with_context() {
541 match self.kind.take() {
542 ::std::option::Option::Some(Input_oneof_kind::example_list_with_context(v)) => v,
543 _ => panic!(),
544 }
545 } else {
546 ExampleListWithContext::new()
547 }
548 }
549}
550
551impl ::protobuf::Message for Input {
552 fn is_initialized(&self) -> bool {
553 if let Some(Input_oneof_kind::example_list(ref v)) = self.kind {
554 if !v.is_initialized() {
555 return false;
556 }
557 }
558 if let Some(Input_oneof_kind::example_list_with_context(ref v)) = self.kind {
559 if !v.is_initialized() {
560 return false;
561 }
562 }
563 true
564 }
565
566 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
567 while !is.eof()? {
568 let (field_number, wire_type) = is.read_tag_unpack()?;
569 match field_number {
570 1 => {
571 if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
572 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
573 }
574 self.kind = ::std::option::Option::Some(Input_oneof_kind::example_list(is.read_message()?));
575 },
576 2 => {
577 if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
578 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
579 }
580 self.kind = ::std::option::Option::Some(Input_oneof_kind::example_list_with_context(is.read_message()?));
581 },
582 _ => {
583 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
584 },
585 };
586 }
587 ::std::result::Result::Ok(())
588 }
589
590 #[allow(unused_variables)]
592 fn compute_size(&self) -> u32 {
593 let mut my_size = 0;
594 if let ::std::option::Option::Some(ref v) = self.kind {
595 match v {
596 &Input_oneof_kind::example_list(ref v) => {
597 let len = v.compute_size();
598 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
599 },
600 &Input_oneof_kind::example_list_with_context(ref v) => {
601 let len = v.compute_size();
602 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
603 },
604 };
605 }
606 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
607 self.cached_size.set(my_size);
608 my_size
609 }
610
611 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
612 if let ::std::option::Option::Some(ref v) = self.kind {
613 match v {
614 &Input_oneof_kind::example_list(ref v) => {
615 os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
616 os.write_raw_varint32(v.get_cached_size())?;
617 v.write_to_with_cached_sizes(os)?;
618 },
619 &Input_oneof_kind::example_list_with_context(ref v) => {
620 os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
621 os.write_raw_varint32(v.get_cached_size())?;
622 v.write_to_with_cached_sizes(os)?;
623 },
624 };
625 }
626 os.write_unknown_fields(self.get_unknown_fields())?;
627 ::std::result::Result::Ok(())
628 }
629
630 fn get_cached_size(&self) -> u32 {
631 self.cached_size.get()
632 }
633
634 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
635 &self.unknown_fields
636 }
637
638 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
639 &mut self.unknown_fields
640 }
641
642 fn as_any(&self) -> &dyn (::std::any::Any) {
643 self as &dyn (::std::any::Any)
644 }
645 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
646 self as &mut dyn (::std::any::Any)
647 }
648 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
649 self
650 }
651
652 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
653 Self::descriptor_static()
654 }
655
656 fn new() -> Input {
657 Input::new()
658 }
659
660 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
661 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
662 unsafe {
663 descriptor.get(|| {
664 let mut fields = ::std::vec::Vec::new();
665 fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ExampleList>(
666 "example_list",
667 Input::has_example_list,
668 Input::get_example_list,
669 ));
670 fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ExampleListWithContext>(
671 "example_list_with_context",
672 Input::has_example_list_with_context,
673 Input::get_example_list_with_context,
674 ));
675 ::protobuf::reflect::MessageDescriptor::new_pb_name::<Input>(
676 "Input",
677 fields,
678 file_descriptor_proto()
679 )
680 })
681 }
682 }
683
684 fn default_instance() -> &'static Input {
685 static mut instance: ::protobuf::lazy::Lazy<Input> = ::protobuf::lazy::Lazy::INIT;
686 unsafe {
687 instance.get(Input::new)
688 }
689 }
690}
691
692impl ::protobuf::Clear for Input {
693 fn clear(&mut self) {
694 self.kind = ::std::option::Option::None;
695 self.kind = ::std::option::Option::None;
696 self.unknown_fields.clear();
697 }
698}
699
700impl ::std::fmt::Debug for Input {
701 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
702 ::protobuf::text_format::fmt(self, f)
703 }
704}
705
706impl ::protobuf::reflect::ProtobufValue for Input {
707 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
708 ::protobuf::reflect::ReflectValueRef::Message(self)
709 }
710}
711
712static file_descriptor_proto_data: &'static [u8] = b"\
713 \n#tensorflow_serving/apis/input.proto\x12\x12tensorflow.serving\x1a%ten\
714 sorflow/core/example/example.proto\">\n\x0bExampleList\x12/\n\x08example\
715 s\x18\x01\x20\x03(\x0b2\x13.tensorflow.ExampleR\x08examples\"x\n\x16Exam\
716 pleListWithContext\x12/\n\x08examples\x18\x01\x20\x03(\x0b2\x13.tensorfl\
717 ow.ExampleR\x08examples\x12-\n\x07context\x18\x02\x20\x01(\x0b2\x13.tens\
718 orflow.ExampleR\x07context\"\xc6\x01\n\x05Input\x12H\n\x0cexample_list\
719 \x18\x01\x20\x01(\x0b2\x1f.tensorflow.serving.ExampleListH\0R\x0bexample\
720 ListB\x02(\x01\x12k\n\x19example_list_with_context\x18\x02\x20\x01(\x0b2\
721 *.tensorflow.serving.ExampleListWithContextH\0R\x16exampleListWithContex\
722 tB\x02(\x01B\x06\n\x04kindB\x03\xf8\x01\x01J\xbe\x0f\n\x06\x12\x04\x03\0\
723 Q\x01\nl\n\x01\x0c\x12\x03\x03\0\x122b\x20Input\x20used\x20in\x20serving\
724 \x20APIs.\x20\x20Based\x20on\x20the\x20tensorflow.Example\x20family\x20o\
725 f\n\x20feature\x20representations.\n\n\x08\n\x01\x08\x12\x03\x05\0\x1f\n\
726 \t\n\x02\x08\x1f\x12\x03\x05\0\x1f\n\t\n\x02\x03\0\x12\x03\x07\0/\n\x08\
727 \n\x01\x02\x12\x03\t\0\x1b\n\xb8\x01\n\x02\x04\0\x12\x04\x0e\0\x10\x01\
728 \x1a\xab\x01\x20Specifies\x20one\x20or\x20more\x20fully\x20independent\
729 \x20input\x20Examples.\n\x20See\x20examples\x20at:\n\x20\x20\x20\x20\x20\
730 https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/exa\
731 mple/example.proto\n\n\n\n\x03\x04\0\x01\x12\x03\x0e\x08\x13\n\x0b\n\x04\
732 \x04\0\x02\0\x12\x03\x0f\x02+\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03\x0f\
733 \x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03\x0f\x0b\x1d\n\x0c\n\x05\x04\0\
734 \x02\0\x01\x12\x03\x0f\x1e&\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x0f)*\n\
735 \xab\t\n\x02\x04\x01\x12\x04G\0J\x01\x1a\x9e\t\x20Specifies\x20one\x20or\
736 \x20more\x20independent\x20input\x20Examples,\x20with\x20a\x20common\x20\
737 context\n\x20Example.\n\n\x20The\x20common\x20use\x20case\x20for\x20cont\
738 ext\x20is\x20to\x20cleanly\x20and\x20optimally\x20specify\x20some\n\x20f\
739 eatures\x20that\x20are\x20common\x20across\x20multiple\x20examples.\n\n\
740 \x20See\x20example\x20below\x20with\x20a\x20search\x20query\x20as\x20the\
741 \x20context\x20and\x20multiple\x20restaurants\n\x20to\x20perform\x20some\
742 \x20inference\x20on.\n\n\x20context:\x20{\n\x20\x20\x20features:\x20{\n\
743 \x20\x20\x20\x20\x20feature:\x20{\n\x20\x20\x20\x20\x20\x20\x20key\x20\
744 \x20:\x20\"query\"\n\x20\x20\x20\x20\x20\x20\x20value:\x20{\n\x20\x20\
745 \x20\x20\x20\x20\x20\x20\x20bytes_list:\x20{\n\x20\x20\x20\x20\x20\x20\
746 \x20\x20\x20\x20\x20value:\x20[\x20\"pizza\"\x20]\n\x20\x20\x20\x20\x20\
747 \x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\
748 \n\x20\x20\x20}\n\x20}\n\x20examples:\x20{\n\x20\x20\x20features:\x20{\n\
749 \x20\x20\x20\x20\x20feature:\x20{\n\x20\x20\x20\x20\x20\x20\x20key\x20\
750 \x20:\x20\"cuisine\"\n\x20\x20\x20\x20\x20\x20\x20value:\x20{\n\x20\x20\
751 \x20\x20\x20\x20\x20\x20\x20bytes_list:\x20{\n\x20\x20\x20\x20\x20\x20\
752 \x20\x20\x20\x20\x20value:\x20[\x20\"Pizzeria\"\x20]\n\x20\x20\x20\x20\
753 \x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\
754 \x20}\n\x20\x20\x20}\n\x20}\n\x20examples:\x20{\n\x20\x20\x20features:\
755 \x20{\n\x20\x20\x20\x20\x20feature:\x20{\n\x20\x20\x20\x20\x20\x20\x20ke\
756 y\x20\x20:\x20\"cuisine\"\n\x20\x20\x20\x20\x20\x20\x20value:\x20{\n\x20\
757 \x20\x20\x20\x20\x20\x20\x20\x20bytes_list:\x20{\n\x20\x20\x20\x20\x20\
758 \x20\x20\x20\x20\x20\x20value:\x20[\x20\"Taqueria\"\x20]\n\x20\x20\x20\
759 \x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\
760 \x20\x20}\n\x20\x20\x20}\n\x20}\n\n\x20Implementations\x20of\x20ExampleL\
761 istWithContext\x20merge\x20the\x20context\x20Example\x20into\x20each\n\
762 \x20of\x20the\x20Examples.\x20Note\x20that\x20feature\x20keys\x20must\
763 \x20not\x20be\x20duplicated\x20between\x20the\n\x20Examples\x20and\x20co\
764 ntext\x20Example,\x20or\x20the\x20behavior\x20is\x20undefined.\n\n\x20Se\
765 e\x20also:\n\x20\x20\x20\x20\x20tensorflow/core/example/example.proto\n\
766 \x20\x20\x20\x20\x20https://developers.google.com/protocol-buffers/docs/\
767 proto3#maps\n\n\n\n\x03\x04\x01\x01\x12\x03G\x08\x1e\n\x0b\n\x04\x04\x01\
768 \x02\0\x12\x03H\x02+\n\x0c\n\x05\x04\x01\x02\0\x04\x12\x03H\x02\n\n\x0c\
769 \n\x05\x04\x01\x02\0\x06\x12\x03H\x0b\x1d\n\x0c\n\x05\x04\x01\x02\0\x01\
770 \x12\x03H\x1e&\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03H)*\n\x0b\n\x04\x04\
771 \x01\x02\x01\x12\x03I\x02!\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03I\x02\
772 \x14\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03I\x15\x1c\n\x0c\n\x05\x04\
773 \x01\x02\x01\x03\x12\x03I\x1f\x20\n\n\n\x02\x04\x02\x12\x04L\0Q\x01\n\n\
774 \n\x03\x04\x02\x01\x12\x03L\x08\r\n\x0c\n\x04\x04\x02\x08\0\x12\x04M\x02\
775 P\x03\n\x0c\n\x05\x04\x02\x08\0\x01\x12\x03M\x08\x0c\n\x0b\n\x04\x04\x02\
776 \x02\0\x12\x03N\x04/\n\x0c\n\x05\x04\x02\x02\0\x06\x12\x03N\x04\x0f\n\
777 \x0c\n\x05\x04\x02\x02\0\x01\x12\x03N\x10\x1c\n\x0c\n\x05\x04\x02\x02\0\
778 \x03\x12\x03N\x1f\x20\n\x0c\n\x05\x04\x02\x02\0\x08\x12\x03N!.\n\r\n\x06\
779 \x04\x02\x02\0\x08\x05\x12\x03N\"-\n\x0b\n\x04\x04\x02\x02\x01\x12\x03O\
780 \x04G\n\x0c\n\x05\x04\x02\x02\x01\x06\x12\x03O\x04\x1a\n\x0c\n\x05\x04\
781 \x02\x02\x01\x01\x12\x03O\x1b4\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03O7\
782 8\n\x0c\n\x05\x04\x02\x02\x01\x08\x12\x03O9F\n\r\n\x06\x04\x02\x02\x01\
783 \x08\x05\x12\x03O:Eb\x06proto3\
784";
785
786static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT;
787
788fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
789 ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
790}
791
792pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
793 unsafe {
794 file_descriptor_proto_lazy.get(|| {
795 parse_descriptor_proto()
796 })
797 }
798}