tensorflow_serving_client/
get_model_status.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 GetModelStatusRequest {
31 pub model_spec: ::protobuf::SingularPtrField<super::model::ModelSpec>,
33 pub unknown_fields: ::protobuf::UnknownFields,
35 pub cached_size: ::protobuf::CachedSize,
36}
37
38impl<'a> ::std::default::Default for &'a GetModelStatusRequest {
39 fn default() -> &'a GetModelStatusRequest {
40 <GetModelStatusRequest as ::protobuf::Message>::default_instance()
41 }
42}
43
44impl GetModelStatusRequest {
45 pub fn new() -> GetModelStatusRequest {
46 ::std::default::Default::default()
47 }
48
49 pub fn get_model_spec(&self) -> &super::model::ModelSpec {
53 self.model_spec.as_ref().unwrap_or_else(|| super::model::ModelSpec::default_instance())
54 }
55 pub fn clear_model_spec(&mut self) {
56 self.model_spec.clear();
57 }
58
59 pub fn has_model_spec(&self) -> bool {
60 self.model_spec.is_some()
61 }
62
63 pub fn set_model_spec(&mut self, v: super::model::ModelSpec) {
65 self.model_spec = ::protobuf::SingularPtrField::some(v);
66 }
67
68 pub fn mut_model_spec(&mut self) -> &mut super::model::ModelSpec {
71 if self.model_spec.is_none() {
72 self.model_spec.set_default();
73 }
74 self.model_spec.as_mut().unwrap()
75 }
76
77 pub fn take_model_spec(&mut self) -> super::model::ModelSpec {
79 self.model_spec.take().unwrap_or_else(|| super::model::ModelSpec::new())
80 }
81}
82
83impl ::protobuf::Message for GetModelStatusRequest {
84 fn is_initialized(&self) -> bool {
85 for v in &self.model_spec {
86 if !v.is_initialized() {
87 return false;
88 }
89 };
90 true
91 }
92
93 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
94 while !is.eof()? {
95 let (field_number, wire_type) = is.read_tag_unpack()?;
96 match field_number {
97 1 => {
98 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.model_spec)?;
99 },
100 _ => {
101 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
102 },
103 };
104 }
105 ::std::result::Result::Ok(())
106 }
107
108 #[allow(unused_variables)]
110 fn compute_size(&self) -> u32 {
111 let mut my_size = 0;
112 if let Some(ref v) = self.model_spec.as_ref() {
113 let len = v.compute_size();
114 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
115 }
116 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
117 self.cached_size.set(my_size);
118 my_size
119 }
120
121 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
122 if let Some(ref v) = self.model_spec.as_ref() {
123 os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
124 os.write_raw_varint32(v.get_cached_size())?;
125 v.write_to_with_cached_sizes(os)?;
126 }
127 os.write_unknown_fields(self.get_unknown_fields())?;
128 ::std::result::Result::Ok(())
129 }
130
131 fn get_cached_size(&self) -> u32 {
132 self.cached_size.get()
133 }
134
135 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
136 &self.unknown_fields
137 }
138
139 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
140 &mut self.unknown_fields
141 }
142
143 fn as_any(&self) -> &dyn (::std::any::Any) {
144 self as &dyn (::std::any::Any)
145 }
146 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
147 self as &mut dyn (::std::any::Any)
148 }
149 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
150 self
151 }
152
153 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
154 Self::descriptor_static()
155 }
156
157 fn new() -> GetModelStatusRequest {
158 GetModelStatusRequest::new()
159 }
160
161 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
162 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
163 unsafe {
164 descriptor.get(|| {
165 let mut fields = ::std::vec::Vec::new();
166 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::model::ModelSpec>>(
167 "model_spec",
168 |m: &GetModelStatusRequest| { &m.model_spec },
169 |m: &mut GetModelStatusRequest| { &mut m.model_spec },
170 ));
171 ::protobuf::reflect::MessageDescriptor::new_pb_name::<GetModelStatusRequest>(
172 "GetModelStatusRequest",
173 fields,
174 file_descriptor_proto()
175 )
176 })
177 }
178 }
179
180 fn default_instance() -> &'static GetModelStatusRequest {
181 static mut instance: ::protobuf::lazy::Lazy<GetModelStatusRequest> = ::protobuf::lazy::Lazy::INIT;
182 unsafe {
183 instance.get(GetModelStatusRequest::new)
184 }
185 }
186}
187
188impl ::protobuf::Clear for GetModelStatusRequest {
189 fn clear(&mut self) {
190 self.model_spec.clear();
191 self.unknown_fields.clear();
192 }
193}
194
195impl ::std::fmt::Debug for GetModelStatusRequest {
196 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
197 ::protobuf::text_format::fmt(self, f)
198 }
199}
200
201impl ::protobuf::reflect::ProtobufValue for GetModelStatusRequest {
202 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
203 ::protobuf::reflect::ReflectValueRef::Message(self)
204 }
205}
206
207#[derive(PartialEq,Clone,Default)]
208pub struct ModelVersionStatus {
209 pub version: i64,
211 pub state: ModelVersionStatus_State,
212 pub status: ::protobuf::SingularPtrField<super::status::StatusProto>,
213 pub unknown_fields: ::protobuf::UnknownFields,
215 pub cached_size: ::protobuf::CachedSize,
216}
217
218impl<'a> ::std::default::Default for &'a ModelVersionStatus {
219 fn default() -> &'a ModelVersionStatus {
220 <ModelVersionStatus as ::protobuf::Message>::default_instance()
221 }
222}
223
224impl ModelVersionStatus {
225 pub fn new() -> ModelVersionStatus {
226 ::std::default::Default::default()
227 }
228
229 pub fn get_version(&self) -> i64 {
233 self.version
234 }
235 pub fn clear_version(&mut self) {
236 self.version = 0;
237 }
238
239 pub fn set_version(&mut self, v: i64) {
241 self.version = v;
242 }
243
244 pub fn get_state(&self) -> ModelVersionStatus_State {
248 self.state
249 }
250 pub fn clear_state(&mut self) {
251 self.state = ModelVersionStatus_State::UNKNOWN;
252 }
253
254 pub fn set_state(&mut self, v: ModelVersionStatus_State) {
256 self.state = v;
257 }
258
259 pub fn get_status(&self) -> &super::status::StatusProto {
263 self.status.as_ref().unwrap_or_else(|| super::status::StatusProto::default_instance())
264 }
265 pub fn clear_status(&mut self) {
266 self.status.clear();
267 }
268
269 pub fn has_status(&self) -> bool {
270 self.status.is_some()
271 }
272
273 pub fn set_status(&mut self, v: super::status::StatusProto) {
275 self.status = ::protobuf::SingularPtrField::some(v);
276 }
277
278 pub fn mut_status(&mut self) -> &mut super::status::StatusProto {
281 if self.status.is_none() {
282 self.status.set_default();
283 }
284 self.status.as_mut().unwrap()
285 }
286
287 pub fn take_status(&mut self) -> super::status::StatusProto {
289 self.status.take().unwrap_or_else(|| super::status::StatusProto::new())
290 }
291}
292
293impl ::protobuf::Message for ModelVersionStatus {
294 fn is_initialized(&self) -> bool {
295 for v in &self.status {
296 if !v.is_initialized() {
297 return false;
298 }
299 };
300 true
301 }
302
303 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
304 while !is.eof()? {
305 let (field_number, wire_type) = is.read_tag_unpack()?;
306 match field_number {
307 1 => {
308 if wire_type != ::protobuf::wire_format::WireTypeVarint {
309 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
310 }
311 let tmp = is.read_int64()?;
312 self.version = tmp;
313 },
314 2 => {
315 ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 2, &mut self.unknown_fields)?
316 },
317 3 => {
318 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.status)?;
319 },
320 _ => {
321 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
322 },
323 };
324 }
325 ::std::result::Result::Ok(())
326 }
327
328 #[allow(unused_variables)]
330 fn compute_size(&self) -> u32 {
331 let mut my_size = 0;
332 if self.version != 0 {
333 my_size += ::protobuf::rt::value_size(1, self.version, ::protobuf::wire_format::WireTypeVarint);
334 }
335 if self.state != ModelVersionStatus_State::UNKNOWN {
336 my_size += ::protobuf::rt::enum_size(2, self.state);
337 }
338 if let Some(ref v) = self.status.as_ref() {
339 let len = v.compute_size();
340 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
341 }
342 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
343 self.cached_size.set(my_size);
344 my_size
345 }
346
347 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
348 if self.version != 0 {
349 os.write_int64(1, self.version)?;
350 }
351 if self.state != ModelVersionStatus_State::UNKNOWN {
352 os.write_enum(2, self.state.value())?;
353 }
354 if let Some(ref v) = self.status.as_ref() {
355 os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
356 os.write_raw_varint32(v.get_cached_size())?;
357 v.write_to_with_cached_sizes(os)?;
358 }
359 os.write_unknown_fields(self.get_unknown_fields())?;
360 ::std::result::Result::Ok(())
361 }
362
363 fn get_cached_size(&self) -> u32 {
364 self.cached_size.get()
365 }
366
367 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
368 &self.unknown_fields
369 }
370
371 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
372 &mut self.unknown_fields
373 }
374
375 fn as_any(&self) -> &dyn (::std::any::Any) {
376 self as &dyn (::std::any::Any)
377 }
378 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
379 self as &mut dyn (::std::any::Any)
380 }
381 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
382 self
383 }
384
385 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
386 Self::descriptor_static()
387 }
388
389 fn new() -> ModelVersionStatus {
390 ModelVersionStatus::new()
391 }
392
393 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
394 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
395 unsafe {
396 descriptor.get(|| {
397 let mut fields = ::std::vec::Vec::new();
398 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
399 "version",
400 |m: &ModelVersionStatus| { &m.version },
401 |m: &mut ModelVersionStatus| { &mut m.version },
402 ));
403 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ModelVersionStatus_State>>(
404 "state",
405 |m: &ModelVersionStatus| { &m.state },
406 |m: &mut ModelVersionStatus| { &mut m.state },
407 ));
408 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::status::StatusProto>>(
409 "status",
410 |m: &ModelVersionStatus| { &m.status },
411 |m: &mut ModelVersionStatus| { &mut m.status },
412 ));
413 ::protobuf::reflect::MessageDescriptor::new_pb_name::<ModelVersionStatus>(
414 "ModelVersionStatus",
415 fields,
416 file_descriptor_proto()
417 )
418 })
419 }
420 }
421
422 fn default_instance() -> &'static ModelVersionStatus {
423 static mut instance: ::protobuf::lazy::Lazy<ModelVersionStatus> = ::protobuf::lazy::Lazy::INIT;
424 unsafe {
425 instance.get(ModelVersionStatus::new)
426 }
427 }
428}
429
430impl ::protobuf::Clear for ModelVersionStatus {
431 fn clear(&mut self) {
432 self.version = 0;
433 self.state = ModelVersionStatus_State::UNKNOWN;
434 self.status.clear();
435 self.unknown_fields.clear();
436 }
437}
438
439impl ::std::fmt::Debug for ModelVersionStatus {
440 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
441 ::protobuf::text_format::fmt(self, f)
442 }
443}
444
445impl ::protobuf::reflect::ProtobufValue for ModelVersionStatus {
446 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
447 ::protobuf::reflect::ReflectValueRef::Message(self)
448 }
449}
450
451#[derive(Clone,PartialEq,Eq,Debug,Hash)]
452pub enum ModelVersionStatus_State {
453 UNKNOWN = 0,
454 START = 10,
455 LOADING = 20,
456 AVAILABLE = 30,
457 UNLOADING = 40,
458 END = 50,
459}
460
461impl ::protobuf::ProtobufEnum for ModelVersionStatus_State {
462 fn value(&self) -> i32 {
463 *self as i32
464 }
465
466 fn from_i32(value: i32) -> ::std::option::Option<ModelVersionStatus_State> {
467 match value {
468 0 => ::std::option::Option::Some(ModelVersionStatus_State::UNKNOWN),
469 10 => ::std::option::Option::Some(ModelVersionStatus_State::START),
470 20 => ::std::option::Option::Some(ModelVersionStatus_State::LOADING),
471 30 => ::std::option::Option::Some(ModelVersionStatus_State::AVAILABLE),
472 40 => ::std::option::Option::Some(ModelVersionStatus_State::UNLOADING),
473 50 => ::std::option::Option::Some(ModelVersionStatus_State::END),
474 _ => ::std::option::Option::None
475 }
476 }
477
478 fn values() -> &'static [Self] {
479 static values: &'static [ModelVersionStatus_State] = &[
480 ModelVersionStatus_State::UNKNOWN,
481 ModelVersionStatus_State::START,
482 ModelVersionStatus_State::LOADING,
483 ModelVersionStatus_State::AVAILABLE,
484 ModelVersionStatus_State::UNLOADING,
485 ModelVersionStatus_State::END,
486 ];
487 values
488 }
489
490 fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
491 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT;
492 unsafe {
493 descriptor.get(|| {
494 ::protobuf::reflect::EnumDescriptor::new_pb_name::<ModelVersionStatus_State>("ModelVersionStatus.State", file_descriptor_proto())
495 })
496 }
497 }
498}
499
500impl ::std::marker::Copy for ModelVersionStatus_State {
501}
502
503impl ::std::default::Default for ModelVersionStatus_State {
504 fn default() -> Self {
505 ModelVersionStatus_State::UNKNOWN
506 }
507}
508
509impl ::protobuf::reflect::ProtobufValue for ModelVersionStatus_State {
510 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
511 ::protobuf::reflect::ReflectValueRef::Enum(self.descriptor())
512 }
513}
514
515#[derive(PartialEq,Clone,Default)]
516pub struct GetModelStatusResponse {
517 pub model_version_status: ::protobuf::RepeatedField<ModelVersionStatus>,
519 pub unknown_fields: ::protobuf::UnknownFields,
521 pub cached_size: ::protobuf::CachedSize,
522}
523
524impl<'a> ::std::default::Default for &'a GetModelStatusResponse {
525 fn default() -> &'a GetModelStatusResponse {
526 <GetModelStatusResponse as ::protobuf::Message>::default_instance()
527 }
528}
529
530impl GetModelStatusResponse {
531 pub fn new() -> GetModelStatusResponse {
532 ::std::default::Default::default()
533 }
534
535 pub fn get_model_version_status(&self) -> &[ModelVersionStatus] {
539 &self.model_version_status
540 }
541 pub fn clear_model_version_status(&mut self) {
542 self.model_version_status.clear();
543 }
544
545 pub fn set_model_version_status(&mut self, v: ::protobuf::RepeatedField<ModelVersionStatus>) {
547 self.model_version_status = v;
548 }
549
550 pub fn mut_model_version_status(&mut self) -> &mut ::protobuf::RepeatedField<ModelVersionStatus> {
552 &mut self.model_version_status
553 }
554
555 pub fn take_model_version_status(&mut self) -> ::protobuf::RepeatedField<ModelVersionStatus> {
557 ::std::mem::replace(&mut self.model_version_status, ::protobuf::RepeatedField::new())
558 }
559}
560
561impl ::protobuf::Message for GetModelStatusResponse {
562 fn is_initialized(&self) -> bool {
563 for v in &self.model_version_status {
564 if !v.is_initialized() {
565 return false;
566 }
567 };
568 true
569 }
570
571 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
572 while !is.eof()? {
573 let (field_number, wire_type) = is.read_tag_unpack()?;
574 match field_number {
575 1 => {
576 ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.model_version_status)?;
577 },
578 _ => {
579 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
580 },
581 };
582 }
583 ::std::result::Result::Ok(())
584 }
585
586 #[allow(unused_variables)]
588 fn compute_size(&self) -> u32 {
589 let mut my_size = 0;
590 for value in &self.model_version_status {
591 let len = value.compute_size();
592 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
593 };
594 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
595 self.cached_size.set(my_size);
596 my_size
597 }
598
599 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
600 for v in &self.model_version_status {
601 os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
602 os.write_raw_varint32(v.get_cached_size())?;
603 v.write_to_with_cached_sizes(os)?;
604 };
605 os.write_unknown_fields(self.get_unknown_fields())?;
606 ::std::result::Result::Ok(())
607 }
608
609 fn get_cached_size(&self) -> u32 {
610 self.cached_size.get()
611 }
612
613 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
614 &self.unknown_fields
615 }
616
617 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
618 &mut self.unknown_fields
619 }
620
621 fn as_any(&self) -> &dyn (::std::any::Any) {
622 self as &dyn (::std::any::Any)
623 }
624 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
625 self as &mut dyn (::std::any::Any)
626 }
627 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
628 self
629 }
630
631 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
632 Self::descriptor_static()
633 }
634
635 fn new() -> GetModelStatusResponse {
636 GetModelStatusResponse::new()
637 }
638
639 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
640 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
641 unsafe {
642 descriptor.get(|| {
643 let mut fields = ::std::vec::Vec::new();
644 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<ModelVersionStatus>>(
645 "model_version_status",
646 |m: &GetModelStatusResponse| { &m.model_version_status },
647 |m: &mut GetModelStatusResponse| { &mut m.model_version_status },
648 ));
649 ::protobuf::reflect::MessageDescriptor::new_pb_name::<GetModelStatusResponse>(
650 "GetModelStatusResponse",
651 fields,
652 file_descriptor_proto()
653 )
654 })
655 }
656 }
657
658 fn default_instance() -> &'static GetModelStatusResponse {
659 static mut instance: ::protobuf::lazy::Lazy<GetModelStatusResponse> = ::protobuf::lazy::Lazy::INIT;
660 unsafe {
661 instance.get(GetModelStatusResponse::new)
662 }
663 }
664}
665
666impl ::protobuf::Clear for GetModelStatusResponse {
667 fn clear(&mut self) {
668 self.model_version_status.clear();
669 self.unknown_fields.clear();
670 }
671}
672
673impl ::std::fmt::Debug for GetModelStatusResponse {
674 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
675 ::protobuf::text_format::fmt(self, f)
676 }
677}
678
679impl ::protobuf::reflect::ProtobufValue for GetModelStatusResponse {
680 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
681 ::protobuf::reflect::ReflectValueRef::Message(self)
682 }
683}
684
685static file_descriptor_proto_data: &'static [u8] = b"\
686 \n.tensorflow_serving/apis/get_model_status.proto\x12\x12tensorflow.serv\
687 ing\x1a#tensorflow_serving/apis/model.proto\x1a$tensorflow_serving/util/\
688 status.proto\"U\n\x15GetModelStatusRequest\x12<\n\nmodel_spec\x18\x01\
689 \x20\x01(\x0b2\x1d.tensorflow.serving.ModelSpecR\tmodelSpec\"\x80\x02\n\
690 \x12ModelVersionStatus\x12\x18\n\x07version\x18\x01\x20\x01(\x03R\x07ver\
691 sion\x12B\n\x05state\x18\x02\x20\x01(\x0e2,.tensorflow.serving.ModelVers\
692 ionStatus.StateR\x05state\x127\n\x06status\x18\x03\x20\x01(\x0b2\x1f.ten\
693 sorflow.serving.StatusProtoR\x06status\"S\n\x05State\x12\x0b\n\x07UNKNOW\
694 N\x10\0\x12\t\n\x05START\x10\n\x12\x0b\n\x07LOADING\x10\x14\x12\r\n\tAVA\
695 ILABLE\x10\x1e\x12\r\n\tUNLOADING\x10(\x12\x07\n\x03END\x102\"t\n\x16Get\
696 ModelStatusResponse\x12Z\n\x14model_version_status\x18\x01\x20\x03(\x0b2\
697 &.tensorflow.serving.ModelVersionStatusR\x14model_version_statusB\x03\
698 \xf8\x01\x01J\xec\x11\n\x06\x12\x04\0\0C\x01\n\x08\n\x01\x0c\x12\x03\0\0\
699 \x12\n\x08\n\x01\x08\x12\x03\x02\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x02\0\
700 \x1f\n\t\n\x02\x03\0\x12\x03\x04\0-\n\t\n\x02\x03\x01\x12\x03\x05\0.\n\
701 \x08\n\x01\x02\x12\x03\x07\0\x1b\ng\n\x02\x04\0\x12\x04\x0b\0\x10\x01\
702 \x1a[\x20GetModelStatusRequest\x20contains\x20a\x20ModelSpec\x20indicati\
703 ng\x20the\x20model\x20for\x20which\n\x20to\x20get\x20status.\n\n\n\n\x03\
704 \x04\0\x01\x12\x03\x0b\x08\x1d\n\xce\x01\n\x04\x04\0\x02\0\x12\x03\x0f\
705 \x02\x1b\x1a\xc0\x01\x20Model\x20Specification.\x20If\x20version\x20is\
706 \x20not\x20specified,\x20information\x20about\x20all\n\x20versions\x20of\
707 \x20the\x20model\x20will\x20be\x20returned.\x20If\x20a\x20version\x20is\
708 \x20specified,\x20the\n\x20status\x20of\x20only\x20that\x20version\x20wi\
709 ll\x20be\x20returned.\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03\x0f\x02\x0b\
710 \n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x0f\x0c\x16\n\x0c\n\x05\x04\0\x02\0\
711 \x03\x12\x03\x0f\x19\x1a\nP\n\x02\x04\x01\x12\x04\x13\0<\x01\x1aD\x20Ver\
712 sion\x20number,\x20state,\x20and\x20status\x20for\x20a\x20single\x20vers\
713 ion\x20of\x20a\x20model.\n\n\n\n\x03\x04\x01\x01\x12\x03\x13\x08\x1a\n\
714 \x1d\n\x04\x04\x01\x02\0\x12\x03\x15\x02\x14\x1a\x10\x20Model\x20version\
715 .\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03\x15\x02\x07\n\x0c\n\x05\x04\
716 \x01\x02\0\x01\x12\x03\x15\x08\x0f\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03\
717 \x15\x12\x13\na\n\x04\x04\x01\x04\0\x12\x04\x19\x025\x03\x1aS\x20States\
718 \x20that\x20map\x20to\x20ManagerState\x20enum\x20in\n\x20tensorflow_serv\
719 ing/core/servable_state.h\n\n\x0c\n\x05\x04\x01\x04\0\x01\x12\x03\x19\
720 \x07\x0c\n\x1f\n\x06\x04\x01\x04\0\x02\0\x12\x03\x1b\x04\x10\x1a\x10\x20\
721 Default\x20value.\n\n\x0e\n\x07\x04\x01\x04\0\x02\0\x01\x12\x03\x1b\x04\
722 \x0b\n\x0e\n\x07\x04\x01\x04\0\x02\0\x02\x12\x03\x1b\x0e\x0f\nk\n\x06\
723 \x04\x01\x04\0\x02\x01\x12\x03\x1f\x04\x0f\x1a\\\x20The\x20manager\x20is\
724 \x20tracking\x20this\x20servable,\x20but\x20has\x20not\x20initiated\x20a\
725 ny\x20action\n\x20pertaining\x20to\x20it.\n\n\x0e\n\x07\x04\x01\x04\0\
726 \x02\x01\x01\x12\x03\x1f\x04\t\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x02\x12\
727 \x03\x1f\x0c\x0e\n\xd3\x01\n\x06\x04\x01\x04\0\x02\x02\x12\x03$\x04\x11\
728 \x1a\xc3\x01\x20The\x20manager\x20has\x20decided\x20to\x20load\x20this\
729 \x20servable.\x20In\x20particular,\x20checks\n\x20around\x20resource\x20\
730 availability\x20and\x20other\x20aspects\x20have\x20passed,\x20and\x20the\
731 \n\x20manager\x20is\x20about\x20to\x20invoke\x20the\x20loader's\x20Load(\
732 )\x20method.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x01\x12\x03$\x04\x0b\n\
733 \x0e\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x03$\x0e\x10\n\xec\x01\n\x06\
734 \x04\x01\x04\0\x02\x03\x12\x03*\x04\x13\x1a\xdc\x01\x20The\x20manager\
735 \x20has\x20successfully\x20loaded\x20this\x20servable\x20and\x20made\x20\
736 it\x20available\n\x20for\x20serving\x20(i.e.\x20GetServableHandle(id)\
737 \x20will\x20succeed).\x20To\x20avoid\x20races,\n\x20this\x20state\x20is\
738 \x20not\x20reported\x20until\x20*after*\x20the\x20servable\x20is\x20made\
739 \n\x20available.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x03\x01\x12\x03*\x04\r\
740 \n\x0e\n\x07\x04\x01\x04\0\x02\x03\x02\x12\x03*\x10\x12\n\xaf\x01\n\x06\
741 \x04\x01\x04\0\x02\x04\x12\x03/\x04\x13\x1a\x9f\x01\x20The\x20manager\
742 \x20has\x20decided\x20to\x20make\x20this\x20servable\x20unavailable,\x20\
743 and\x20unload\n\x20it.\x20To\x20avoid\x20races,\x20this\x20state\x20is\
744 \x20reported\x20*before*\x20the\x20servable\x20is\n\x20made\x20unavailab\
745 le.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x04\x01\x12\x03/\x04\r\n\x0e\n\x07\
746 \x04\x01\x04\0\x02\x04\x02\x12\x03/\x10\x12\n\xbe\x01\n\x06\x04\x01\x04\
747 \0\x02\x05\x12\x034\x04\r\x1a\xae\x01\x20This\x20servable\x20has\x20reac\
748 hed\x20the\x20end\x20of\x20its\x20journey\x20in\x20the\x20manager.\x20Ei\
749 ther\n\x20it\x20loaded\x20and\x20ultimately\x20unloaded\x20successfully,\
750 \x20or\x20it\x20hit\x20an\x20error\x20at\n\x20some\x20point\x20in\x20its\
751 \x20lifecycle.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x05\x01\x12\x034\x04\x07\
752 \n\x0e\n\x07\x04\x01\x04\0\x02\x05\x02\x12\x034\n\x0c\n\x1b\n\x04\x04\
753 \x01\x02\x01\x12\x038\x02\x12\x1a\x0e\x20Model\x20state.\n\n\x0c\n\x05\
754 \x04\x01\x02\x01\x06\x12\x038\x02\x07\n\x0c\n\x05\x04\x01\x02\x01\x01\
755 \x12\x038\x08\r\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x038\x10\x11\n\x1c\n\
756 \x04\x04\x01\x02\x02\x12\x03;\x02\x19\x1a\x0f\x20Model\x20status.\n\n\
757 \x0c\n\x05\x04\x01\x02\x02\x06\x12\x03;\x02\r\n\x0c\n\x05\x04\x01\x02\
758 \x02\x01\x12\x03;\x0e\x14\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03;\x17\
759 \x18\n@\n\x02\x04\x02\x12\x04?\0C\x01\x1a4\x20Response\x20for\x20ModelSt\
760 atusRequest\x20on\x20successful\x20run.\n\n\n\n\x03\x04\x02\x01\x12\x03?\
761 \x08\x1e\nV\n\x04\x04\x02\x02\0\x12\x04A\x02B+\x1aH\x20Version\x20number\
762 \x20and\x20status\x20information\x20for\x20applicable\x20model\x20versio\
763 n(s).\n\n\x0c\n\x05\x04\x02\x02\0\x04\x12\x03A\x02\n\n\x0c\n\x05\x04\x02\
764 \x02\0\x06\x12\x03A\x0b\x1d\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03A\x1e2\
765 \n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03A56\n\x0c\n\x05\x04\x02\x02\0\x08\
766 \x12\x03B\x06*\n\x0c\n\x05\x04\x02\x02\0\n\x12\x03B\x07)\n\x0c\n\x05\x04\
767 \x02\x02\0\n\x12\x03B\x13)b\x06proto3\
768";
769
770static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT;
771
772fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
773 ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
774}
775
776pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
777 unsafe {
778 file_descriptor_proto_lazy.get(|| {
779 parse_descriptor_proto()
780 })
781 }
782}