tensorflow_serving_client/
resource_handle.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 ResourceHandleProto {
31 pub device: ::std::string::String,
33 pub container: ::std::string::String,
34 pub name: ::std::string::String,
35 pub hash_code: u64,
36 pub maybe_type_name: ::std::string::String,
37 pub dtypes_and_shapes: ::protobuf::RepeatedField<ResourceHandleProto_DtypeAndShape>,
38 pub unknown_fields: ::protobuf::UnknownFields,
40 pub cached_size: ::protobuf::CachedSize,
41}
42
43impl<'a> ::std::default::Default for &'a ResourceHandleProto {
44 fn default() -> &'a ResourceHandleProto {
45 <ResourceHandleProto as ::protobuf::Message>::default_instance()
46 }
47}
48
49impl ResourceHandleProto {
50 pub fn new() -> ResourceHandleProto {
51 ::std::default::Default::default()
52 }
53
54 pub fn get_device(&self) -> &str {
58 &self.device
59 }
60 pub fn clear_device(&mut self) {
61 self.device.clear();
62 }
63
64 pub fn set_device(&mut self, v: ::std::string::String) {
66 self.device = v;
67 }
68
69 pub fn mut_device(&mut self) -> &mut ::std::string::String {
72 &mut self.device
73 }
74
75 pub fn take_device(&mut self) -> ::std::string::String {
77 ::std::mem::replace(&mut self.device, ::std::string::String::new())
78 }
79
80 pub fn get_container(&self) -> &str {
84 &self.container
85 }
86 pub fn clear_container(&mut self) {
87 self.container.clear();
88 }
89
90 pub fn set_container(&mut self, v: ::std::string::String) {
92 self.container = v;
93 }
94
95 pub fn mut_container(&mut self) -> &mut ::std::string::String {
98 &mut self.container
99 }
100
101 pub fn take_container(&mut self) -> ::std::string::String {
103 ::std::mem::replace(&mut self.container, ::std::string::String::new())
104 }
105
106 pub fn get_name(&self) -> &str {
110 &self.name
111 }
112 pub fn clear_name(&mut self) {
113 self.name.clear();
114 }
115
116 pub fn set_name(&mut self, v: ::std::string::String) {
118 self.name = v;
119 }
120
121 pub fn mut_name(&mut self) -> &mut ::std::string::String {
124 &mut self.name
125 }
126
127 pub fn take_name(&mut self) -> ::std::string::String {
129 ::std::mem::replace(&mut self.name, ::std::string::String::new())
130 }
131
132 pub fn get_hash_code(&self) -> u64 {
136 self.hash_code
137 }
138 pub fn clear_hash_code(&mut self) {
139 self.hash_code = 0;
140 }
141
142 pub fn set_hash_code(&mut self, v: u64) {
144 self.hash_code = v;
145 }
146
147 pub fn get_maybe_type_name(&self) -> &str {
151 &self.maybe_type_name
152 }
153 pub fn clear_maybe_type_name(&mut self) {
154 self.maybe_type_name.clear();
155 }
156
157 pub fn set_maybe_type_name(&mut self, v: ::std::string::String) {
159 self.maybe_type_name = v;
160 }
161
162 pub fn mut_maybe_type_name(&mut self) -> &mut ::std::string::String {
165 &mut self.maybe_type_name
166 }
167
168 pub fn take_maybe_type_name(&mut self) -> ::std::string::String {
170 ::std::mem::replace(&mut self.maybe_type_name, ::std::string::String::new())
171 }
172
173 pub fn get_dtypes_and_shapes(&self) -> &[ResourceHandleProto_DtypeAndShape] {
177 &self.dtypes_and_shapes
178 }
179 pub fn clear_dtypes_and_shapes(&mut self) {
180 self.dtypes_and_shapes.clear();
181 }
182
183 pub fn set_dtypes_and_shapes(&mut self, v: ::protobuf::RepeatedField<ResourceHandleProto_DtypeAndShape>) {
185 self.dtypes_and_shapes = v;
186 }
187
188 pub fn mut_dtypes_and_shapes(&mut self) -> &mut ::protobuf::RepeatedField<ResourceHandleProto_DtypeAndShape> {
190 &mut self.dtypes_and_shapes
191 }
192
193 pub fn take_dtypes_and_shapes(&mut self) -> ::protobuf::RepeatedField<ResourceHandleProto_DtypeAndShape> {
195 ::std::mem::replace(&mut self.dtypes_and_shapes, ::protobuf::RepeatedField::new())
196 }
197}
198
199impl ::protobuf::Message for ResourceHandleProto {
200 fn is_initialized(&self) -> bool {
201 for v in &self.dtypes_and_shapes {
202 if !v.is_initialized() {
203 return false;
204 }
205 };
206 true
207 }
208
209 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
210 while !is.eof()? {
211 let (field_number, wire_type) = is.read_tag_unpack()?;
212 match field_number {
213 1 => {
214 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.device)?;
215 },
216 2 => {
217 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.container)?;
218 },
219 3 => {
220 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
221 },
222 4 => {
223 if wire_type != ::protobuf::wire_format::WireTypeVarint {
224 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
225 }
226 let tmp = is.read_uint64()?;
227 self.hash_code = tmp;
228 },
229 5 => {
230 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.maybe_type_name)?;
231 },
232 6 => {
233 ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.dtypes_and_shapes)?;
234 },
235 _ => {
236 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
237 },
238 };
239 }
240 ::std::result::Result::Ok(())
241 }
242
243 #[allow(unused_variables)]
245 fn compute_size(&self) -> u32 {
246 let mut my_size = 0;
247 if !self.device.is_empty() {
248 my_size += ::protobuf::rt::string_size(1, &self.device);
249 }
250 if !self.container.is_empty() {
251 my_size += ::protobuf::rt::string_size(2, &self.container);
252 }
253 if !self.name.is_empty() {
254 my_size += ::protobuf::rt::string_size(3, &self.name);
255 }
256 if self.hash_code != 0 {
257 my_size += ::protobuf::rt::value_size(4, self.hash_code, ::protobuf::wire_format::WireTypeVarint);
258 }
259 if !self.maybe_type_name.is_empty() {
260 my_size += ::protobuf::rt::string_size(5, &self.maybe_type_name);
261 }
262 for value in &self.dtypes_and_shapes {
263 let len = value.compute_size();
264 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
265 };
266 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
267 self.cached_size.set(my_size);
268 my_size
269 }
270
271 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
272 if !self.device.is_empty() {
273 os.write_string(1, &self.device)?;
274 }
275 if !self.container.is_empty() {
276 os.write_string(2, &self.container)?;
277 }
278 if !self.name.is_empty() {
279 os.write_string(3, &self.name)?;
280 }
281 if self.hash_code != 0 {
282 os.write_uint64(4, self.hash_code)?;
283 }
284 if !self.maybe_type_name.is_empty() {
285 os.write_string(5, &self.maybe_type_name)?;
286 }
287 for v in &self.dtypes_and_shapes {
288 os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?;
289 os.write_raw_varint32(v.get_cached_size())?;
290 v.write_to_with_cached_sizes(os)?;
291 };
292 os.write_unknown_fields(self.get_unknown_fields())?;
293 ::std::result::Result::Ok(())
294 }
295
296 fn get_cached_size(&self) -> u32 {
297 self.cached_size.get()
298 }
299
300 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
301 &self.unknown_fields
302 }
303
304 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
305 &mut self.unknown_fields
306 }
307
308 fn as_any(&self) -> &dyn (::std::any::Any) {
309 self as &dyn (::std::any::Any)
310 }
311 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
312 self as &mut dyn (::std::any::Any)
313 }
314 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
315 self
316 }
317
318 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
319 Self::descriptor_static()
320 }
321
322 fn new() -> ResourceHandleProto {
323 ResourceHandleProto::new()
324 }
325
326 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
327 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
328 unsafe {
329 descriptor.get(|| {
330 let mut fields = ::std::vec::Vec::new();
331 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
332 "device",
333 |m: &ResourceHandleProto| { &m.device },
334 |m: &mut ResourceHandleProto| { &mut m.device },
335 ));
336 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
337 "container",
338 |m: &ResourceHandleProto| { &m.container },
339 |m: &mut ResourceHandleProto| { &mut m.container },
340 ));
341 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
342 "name",
343 |m: &ResourceHandleProto| { &m.name },
344 |m: &mut ResourceHandleProto| { &mut m.name },
345 ));
346 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
347 "hash_code",
348 |m: &ResourceHandleProto| { &m.hash_code },
349 |m: &mut ResourceHandleProto| { &mut m.hash_code },
350 ));
351 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
352 "maybe_type_name",
353 |m: &ResourceHandleProto| { &m.maybe_type_name },
354 |m: &mut ResourceHandleProto| { &mut m.maybe_type_name },
355 ));
356 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<ResourceHandleProto_DtypeAndShape>>(
357 "dtypes_and_shapes",
358 |m: &ResourceHandleProto| { &m.dtypes_and_shapes },
359 |m: &mut ResourceHandleProto| { &mut m.dtypes_and_shapes },
360 ));
361 ::protobuf::reflect::MessageDescriptor::new_pb_name::<ResourceHandleProto>(
362 "ResourceHandleProto",
363 fields,
364 file_descriptor_proto()
365 )
366 })
367 }
368 }
369
370 fn default_instance() -> &'static ResourceHandleProto {
371 static mut instance: ::protobuf::lazy::Lazy<ResourceHandleProto> = ::protobuf::lazy::Lazy::INIT;
372 unsafe {
373 instance.get(ResourceHandleProto::new)
374 }
375 }
376}
377
378impl ::protobuf::Clear for ResourceHandleProto {
379 fn clear(&mut self) {
380 self.device.clear();
381 self.container.clear();
382 self.name.clear();
383 self.hash_code = 0;
384 self.maybe_type_name.clear();
385 self.dtypes_and_shapes.clear();
386 self.unknown_fields.clear();
387 }
388}
389
390impl ::std::fmt::Debug for ResourceHandleProto {
391 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
392 ::protobuf::text_format::fmt(self, f)
393 }
394}
395
396impl ::protobuf::reflect::ProtobufValue for ResourceHandleProto {
397 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
398 ::protobuf::reflect::ReflectValueRef::Message(self)
399 }
400}
401
402#[derive(PartialEq,Clone,Default)]
403pub struct ResourceHandleProto_DtypeAndShape {
404 pub dtype: super::types::DataType,
406 pub shape: ::protobuf::SingularPtrField<super::tensor_shape::TensorShapeProto>,
407 pub unknown_fields: ::protobuf::UnknownFields,
409 pub cached_size: ::protobuf::CachedSize,
410}
411
412impl<'a> ::std::default::Default for &'a ResourceHandleProto_DtypeAndShape {
413 fn default() -> &'a ResourceHandleProto_DtypeAndShape {
414 <ResourceHandleProto_DtypeAndShape as ::protobuf::Message>::default_instance()
415 }
416}
417
418impl ResourceHandleProto_DtypeAndShape {
419 pub fn new() -> ResourceHandleProto_DtypeAndShape {
420 ::std::default::Default::default()
421 }
422
423 pub fn get_dtype(&self) -> super::types::DataType {
427 self.dtype
428 }
429 pub fn clear_dtype(&mut self) {
430 self.dtype = super::types::DataType::DT_INVALID;
431 }
432
433 pub fn set_dtype(&mut self, v: super::types::DataType) {
435 self.dtype = v;
436 }
437
438 pub fn get_shape(&self) -> &super::tensor_shape::TensorShapeProto {
442 self.shape.as_ref().unwrap_or_else(|| super::tensor_shape::TensorShapeProto::default_instance())
443 }
444 pub fn clear_shape(&mut self) {
445 self.shape.clear();
446 }
447
448 pub fn has_shape(&self) -> bool {
449 self.shape.is_some()
450 }
451
452 pub fn set_shape(&mut self, v: super::tensor_shape::TensorShapeProto) {
454 self.shape = ::protobuf::SingularPtrField::some(v);
455 }
456
457 pub fn mut_shape(&mut self) -> &mut super::tensor_shape::TensorShapeProto {
460 if self.shape.is_none() {
461 self.shape.set_default();
462 }
463 self.shape.as_mut().unwrap()
464 }
465
466 pub fn take_shape(&mut self) -> super::tensor_shape::TensorShapeProto {
468 self.shape.take().unwrap_or_else(|| super::tensor_shape::TensorShapeProto::new())
469 }
470}
471
472impl ::protobuf::Message for ResourceHandleProto_DtypeAndShape {
473 fn is_initialized(&self) -> bool {
474 for v in &self.shape {
475 if !v.is_initialized() {
476 return false;
477 }
478 };
479 true
480 }
481
482 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
483 while !is.eof()? {
484 let (field_number, wire_type) = is.read_tag_unpack()?;
485 match field_number {
486 1 => {
487 ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.dtype, 1, &mut self.unknown_fields)?
488 },
489 2 => {
490 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.shape)?;
491 },
492 _ => {
493 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
494 },
495 };
496 }
497 ::std::result::Result::Ok(())
498 }
499
500 #[allow(unused_variables)]
502 fn compute_size(&self) -> u32 {
503 let mut my_size = 0;
504 if self.dtype != super::types::DataType::DT_INVALID {
505 my_size += ::protobuf::rt::enum_size(1, self.dtype);
506 }
507 if let Some(ref v) = self.shape.as_ref() {
508 let len = v.compute_size();
509 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
510 }
511 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
512 self.cached_size.set(my_size);
513 my_size
514 }
515
516 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
517 if self.dtype != super::types::DataType::DT_INVALID {
518 os.write_enum(1, self.dtype.value())?;
519 }
520 if let Some(ref v) = self.shape.as_ref() {
521 os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
522 os.write_raw_varint32(v.get_cached_size())?;
523 v.write_to_with_cached_sizes(os)?;
524 }
525 os.write_unknown_fields(self.get_unknown_fields())?;
526 ::std::result::Result::Ok(())
527 }
528
529 fn get_cached_size(&self) -> u32 {
530 self.cached_size.get()
531 }
532
533 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
534 &self.unknown_fields
535 }
536
537 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
538 &mut self.unknown_fields
539 }
540
541 fn as_any(&self) -> &dyn (::std::any::Any) {
542 self as &dyn (::std::any::Any)
543 }
544 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
545 self as &mut dyn (::std::any::Any)
546 }
547 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
548 self
549 }
550
551 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
552 Self::descriptor_static()
553 }
554
555 fn new() -> ResourceHandleProto_DtypeAndShape {
556 ResourceHandleProto_DtypeAndShape::new()
557 }
558
559 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
560 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
561 unsafe {
562 descriptor.get(|| {
563 let mut fields = ::std::vec::Vec::new();
564 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<super::types::DataType>>(
565 "dtype",
566 |m: &ResourceHandleProto_DtypeAndShape| { &m.dtype },
567 |m: &mut ResourceHandleProto_DtypeAndShape| { &mut m.dtype },
568 ));
569 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::tensor_shape::TensorShapeProto>>(
570 "shape",
571 |m: &ResourceHandleProto_DtypeAndShape| { &m.shape },
572 |m: &mut ResourceHandleProto_DtypeAndShape| { &mut m.shape },
573 ));
574 ::protobuf::reflect::MessageDescriptor::new_pb_name::<ResourceHandleProto_DtypeAndShape>(
575 "ResourceHandleProto.DtypeAndShape",
576 fields,
577 file_descriptor_proto()
578 )
579 })
580 }
581 }
582
583 fn default_instance() -> &'static ResourceHandleProto_DtypeAndShape {
584 static mut instance: ::protobuf::lazy::Lazy<ResourceHandleProto_DtypeAndShape> = ::protobuf::lazy::Lazy::INIT;
585 unsafe {
586 instance.get(ResourceHandleProto_DtypeAndShape::new)
587 }
588 }
589}
590
591impl ::protobuf::Clear for ResourceHandleProto_DtypeAndShape {
592 fn clear(&mut self) {
593 self.dtype = super::types::DataType::DT_INVALID;
594 self.shape.clear();
595 self.unknown_fields.clear();
596 }
597}
598
599impl ::std::fmt::Debug for ResourceHandleProto_DtypeAndShape {
600 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
601 ::protobuf::text_format::fmt(self, f)
602 }
603}
604
605impl ::protobuf::reflect::ProtobufValue for ResourceHandleProto_DtypeAndShape {
606 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
607 ::protobuf::reflect::ReflectValueRef::Message(self)
608 }
609}
610
611static file_descriptor_proto_data: &'static [u8] = b"\
612 \n/tensorflow/core/framework/resource_handle.proto\x12\ntensorflow\x1a,t\
613 ensorflow/core/framework/tensor_shape.proto\x1a%tensorflow/core/framewor\
614 k/types.proto\"\xf6\x02\n\x13ResourceHandleProto\x12\x16\n\x06device\x18\
615 \x01\x20\x01(\tR\x06device\x12\x1c\n\tcontainer\x18\x02\x20\x01(\tR\tcon\
616 tainer\x12\x12\n\x04name\x18\x03\x20\x01(\tR\x04name\x12\x1b\n\thash_cod\
617 e\x18\x04\x20\x01(\x04R\x08hashCode\x12&\n\x0fmaybe_type_name\x18\x05\
618 \x20\x01(\tR\rmaybeTypeName\x12Y\n\x11dtypes_and_shapes\x18\x06\x20\x03(\
619 \x0b2-.tensorflow.ResourceHandleProto.DtypeAndShapeR\x0fdtypesAndShapes\
620 \x1ao\n\rDtypeAndShape\x12*\n\x05dtype\x18\x01\x20\x01(\x0e2\x14.tensorf\
621 low.DataTypeR\x05dtype\x122\n\x05shape\x18\x02\x20\x01(\x0b2\x1c.tensorf\
622 low.TensorShapeProtoR\x05shapeJ\x04\x08\x07\x10\x08B\x87\x01\n\x18org.te\
623 nsorflow.frameworkB\x0eResourceHandleP\x01ZVgithub.com/tensorflow/tensor\
624 flow/tensorflow/go/core/framework/resource_handle_go_proto\xf8\x01\x01J\
625 \xc5\n\n\x06\x12\x04\0\0,\x01\n\x08\n\x01\x0c\x12\x03\0\0\x12\n\x08\n\
626 \x01\x02\x12\x03\x02\0\x13\n\t\n\x02\x03\0\x12\x03\x04\06\n\t\n\x02\x03\
627 \x01\x12\x03\x05\0/\n\x08\n\x01\x08\x12\x03\x07\0\x1f\n\t\n\x02\x08\x1f\
628 \x12\x03\x07\0\x1f\n\x08\n\x01\x08\x12\x03\x08\0/\n\t\n\x02\x08\x08\x12\
629 \x03\x08\0/\n\x08\n\x01\x08\x12\x03\t\0\"\n\t\n\x02\x08\n\x12\x03\t\0\"\
630 \n\x08\n\x01\x08\x12\x03\n\01\n\t\n\x02\x08\x01\x12\x03\n\01\n\x08\n\x01\
631 \x08\x12\x03\x0b\0m\n\t\n\x02\x08\x0b\x12\x03\x0b\0m\n\xb8\x01\n\x02\x04\
632 \0\x12\x04\x10\0,\x01\x1a\xab\x01\x20Protocol\x20buffer\x20representing\
633 \x20a\x20handle\x20to\x20a\x20tensorflow\x20resource.\x20Handles\x20are\
634 \n\x20not\x20valid\x20across\x20executions,\x20but\x20can\x20be\x20seria\
635 lized\x20back\x20and\x20forth\x20from\x20within\n\x20a\x20single\x20run.\
636 \n\n\n\n\x03\x04\0\x01\x12\x03\x10\x08\x1b\nB\n\x04\x04\0\x02\0\x12\x03\
637 \x12\x02\x14\x1a5\x20Unique\x20name\x20for\x20the\x20device\x20containin\
638 g\x20the\x20resource.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\x12\x02\x08\
639 \n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x12\t\x0f\n\x0c\n\x05\x04\0\x02\0\
640 \x03\x12\x03\x12\x12\x13\n:\n\x04\x04\0\x02\x01\x12\x03\x15\x02\x17\x1a-\
641 \x20Container\x20in\x20which\x20this\x20resource\x20is\x20placed.\n\n\
642 \x0c\n\x05\x04\0\x02\x01\x05\x12\x03\x15\x02\x08\n\x0c\n\x05\x04\0\x02\
643 \x01\x01\x12\x03\x15\t\x12\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x15\x15\
644 \x16\n,\n\x04\x04\0\x02\x02\x12\x03\x18\x02\x12\x1a\x1f\x20Unique\x20nam\
645 e\x20of\x20this\x20resource.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03\x18\
646 \x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\x18\t\r\n\x0c\n\x05\x04\0\
647 \x02\x02\x03\x12\x03\x18\x10\x11\ns\n\x04\x04\0\x02\x03\x12\x03\x1c\x02\
648 \x17\x1af\x20Hash\x20code\x20for\x20the\x20type\x20of\x20the\x20resource\
649 .\x20Is\x20only\x20valid\x20in\x20the\x20same\x20device\n\x20and\x20in\
650 \x20the\x20same\x20execution.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03\
651 \x1c\x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03\x1c\t\x12\n\x0c\n\x05\
652 \x04\0\x02\x03\x03\x12\x03\x1c\x15\x16\n]\n\x04\x04\0\x02\x04\x12\x03\
653 \x20\x02\x1d\x1aP\x20For\x20debug-only,\x20the\x20name\x20of\x20the\x20t\
654 ype\x20pointed\x20to\x20by\x20this\x20handle,\x20if\n\x20available.\n\n\
655 \x0c\n\x05\x04\0\x02\x04\x05\x12\x03\x20\x02\x08\n\x0c\n\x05\x04\0\x02\
656 \x04\x01\x12\x03\x20\t\x18\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03\x20\x1b\
657 \x1c\nQ\n\x04\x04\0\x03\0\x12\x04#\x02&\x03\x1aC\x20Protocol\x20buffer\
658 \x20representing\x20a\x20pair\x20of\x20(data\x20type,\x20tensor\x20shape\
659 ).\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03#\n\x17\n\r\n\x06\x04\0\x03\0\
660 \x02\0\x12\x03$\x04\x17\n\x0e\n\x07\x04\0\x03\0\x02\0\x06\x12\x03$\x04\
661 \x0c\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03$\r\x12\n\x0e\n\x07\x04\0\
662 \x03\0\x02\0\x03\x12\x03$\x15\x16\n\r\n\x06\x04\0\x03\0\x02\x01\x12\x03%\
663 \x04\x1f\n\x0e\n\x07\x04\0\x03\0\x02\x01\x06\x12\x03%\x04\x14\n\x0e\n\
664 \x07\x04\0\x03\0\x02\x01\x01\x12\x03%\x15\x1a\n\x0e\n\x07\x04\0\x03\0\
665 \x02\x01\x03\x12\x03%\x1d\x1e\nA\n\x04\x04\0\x02\x05\x12\x03)\x02/\x1a4\
666 \x20Data\x20types\x20and\x20shapes\x20for\x20the\x20underlying\x20resour\
667 ce.\n\n\x0c\n\x05\x04\0\x02\x05\x04\x12\x03)\x02\n\n\x0c\n\x05\x04\0\x02\
668 \x05\x06\x12\x03)\x0b\x18\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03)\x19*\n\
669 \x0c\n\x05\x04\0\x02\x05\x03\x12\x03)-.\n\n\n\x03\x04\0\t\x12\x03+\x02\r\
670 \n\x0b\n\x04\x04\0\t\0\x12\x03+\x0b\x0c\n\x0c\n\x05\x04\0\t\0\x01\x12\
671 \x03+\x0b\x0c\n\x0c\n\x05\x04\0\t\0\x02\x12\x03+\x0b\x0cb\x06proto3\
672";
673
674static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT;
675
676fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
677 ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
678}
679
680pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
681 unsafe {
682 file_descriptor_proto_lazy.get(|| {
683 parse_descriptor_proto()
684 })
685 }
686}