1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/protobuf/remote_tensor_handle.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fremote_5ftensor_5fhandle_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fremote_5ftensor_5fhandle_2eproto
6
7#include <limits>
8#include <string>
9
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3009000
12#error This file was generated by a newer version of protoc which is
13#error incompatible with your Protocol Buffer headers. Please update
14#error your headers.
15#endif
16#if 3009002 < PROTOBUF_MIN_PROTOC_VERSION
17#error This file was generated by an older version of protoc which is
18#error incompatible with your Protocol Buffer headers. Please
19#error regenerate this file with a newer version of protoc.
20#endif
21
22#include <google/protobuf/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
24#include <google/protobuf/arena.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_table_driven.h>
27#include <google/protobuf/generated_message_util.h>
28#include <google/protobuf/inlined_string_field.h>
29#include <google/protobuf/metadata.h>
30#include <google/protobuf/generated_message_reflection.h>
31#include <google/protobuf/message.h>
32#include <google/protobuf/repeated_field.h> // IWYU pragma: export
33#include <google/protobuf/extension_set.h> // IWYU pragma: export
34#include <google/protobuf/unknown_field_set.h>
35#include "tensorflow/core/framework/tensor_shape.pb.h"
36#include "tensorflow/core/framework/types.pb.h"
37// @@protoc_insertion_point(includes)
38#include <google/protobuf/port_def.inc>
39#define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fremote_5ftensor_5fhandle_2eproto
40PROTOBUF_NAMESPACE_OPEN
41namespace internal {
42class AnyMetadata;
43} // namespace internal
44PROTOBUF_NAMESPACE_CLOSE
45
46// Internal implementation detail -- do not use these members.
47struct TableStruct_tensorflow_2fcore_2fprotobuf_2fremote_5ftensor_5fhandle_2eproto {
48 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
49 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
50 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
51 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
52 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
53 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
54 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
55 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
56 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
57};
58extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fremote_5ftensor_5fhandle_2eproto;
59namespace tensorflow {
60namespace eager {
61class RemoteTensorHandle;
62class RemoteTensorHandleDefaultTypeInternal;
63extern RemoteTensorHandleDefaultTypeInternal _RemoteTensorHandle_default_instance_;
64class ResourceDtypeAndShape;
65class ResourceDtypeAndShapeDefaultTypeInternal;
66extern ResourceDtypeAndShapeDefaultTypeInternal _ResourceDtypeAndShape_default_instance_;
67} // namespace eager
68} // namespace tensorflow
69PROTOBUF_NAMESPACE_OPEN
70template<> ::tensorflow::eager::RemoteTensorHandle* Arena::CreateMaybeMessage<::tensorflow::eager::RemoteTensorHandle>(Arena*);
71template<> ::tensorflow::eager::ResourceDtypeAndShape* Arena::CreateMaybeMessage<::tensorflow::eager::ResourceDtypeAndShape>(Arena*);
72PROTOBUF_NAMESPACE_CLOSE
73namespace tensorflow {
74namespace eager {
75
76// ===================================================================
77
78class ResourceDtypeAndShape :
79 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.eager.ResourceDtypeAndShape) */ {
80 public:
81 ResourceDtypeAndShape();
82 virtual ~ResourceDtypeAndShape();
83
84 ResourceDtypeAndShape(const ResourceDtypeAndShape& from);
85 ResourceDtypeAndShape(ResourceDtypeAndShape&& from) noexcept
86 : ResourceDtypeAndShape() {
87 *this = ::std::move(from);
88 }
89
90 inline ResourceDtypeAndShape& operator=(const ResourceDtypeAndShape& from) {
91 CopyFrom(from);
92 return *this;
93 }
94 inline ResourceDtypeAndShape& operator=(ResourceDtypeAndShape&& from) noexcept {
95 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
96 if (this != &from) InternalSwap(&from);
97 } else {
98 CopyFrom(from);
99 }
100 return *this;
101 }
102
103 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
104 return GetArenaNoVirtual();
105 }
106 inline void* GetMaybeArenaPointer() const final {
107 return MaybeArenaPtr();
108 }
109 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
110 return GetDescriptor();
111 }
112 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
113 return GetMetadataStatic().descriptor;
114 }
115 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
116 return GetMetadataStatic().reflection;
117 }
118 static const ResourceDtypeAndShape& default_instance();
119
120 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
121 static inline const ResourceDtypeAndShape* internal_default_instance() {
122 return reinterpret_cast<const ResourceDtypeAndShape*>(
123 &_ResourceDtypeAndShape_default_instance_);
124 }
125 static constexpr int kIndexInFileMessages =
126 0;
127
128 friend void swap(ResourceDtypeAndShape& a, ResourceDtypeAndShape& b) {
129 a.Swap(&b);
130 }
131 inline void Swap(ResourceDtypeAndShape* other) {
132 if (other == this) return;
133 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
134 InternalSwap(other);
135 } else {
136 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
137 }
138 }
139 void UnsafeArenaSwap(ResourceDtypeAndShape* other) {
140 if (other == this) return;
141 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
142 InternalSwap(other);
143 }
144
145 // implements Message ----------------------------------------------
146
147 inline ResourceDtypeAndShape* New() const final {
148 return CreateMaybeMessage<ResourceDtypeAndShape>(nullptr);
149 }
150
151 ResourceDtypeAndShape* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
152 return CreateMaybeMessage<ResourceDtypeAndShape>(arena);
153 }
154 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
155 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
156 void CopyFrom(const ResourceDtypeAndShape& from);
157 void MergeFrom(const ResourceDtypeAndShape& from);
158 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
159 bool IsInitialized() const final;
160
161 size_t ByteSizeLong() const final;
162 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
163 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
164 #else
165 bool MergePartialFromCodedStream(
166 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
167 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
168 void SerializeWithCachedSizes(
169 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
170 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
171 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
172 int GetCachedSize() const final { return _cached_size_.Get(); }
173
174 private:
175 inline void SharedCtor();
176 inline void SharedDtor();
177 void SetCachedSize(int size) const final;
178 void InternalSwap(ResourceDtypeAndShape* other);
179 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
180 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
181 return "tensorflow.eager.ResourceDtypeAndShape";
182 }
183 protected:
184 explicit ResourceDtypeAndShape(::PROTOBUF_NAMESPACE_ID::Arena* arena);
185 private:
186 static void ArenaDtor(void* object);
187 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
188 private:
189 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
190 return _internal_metadata_.arena();
191 }
192 inline void* MaybeArenaPtr() const {
193 return _internal_metadata_.raw_arena_ptr();
194 }
195 public:
196
197 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
198 private:
199 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
200 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fremote_5ftensor_5fhandle_2eproto);
201 return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fremote_5ftensor_5fhandle_2eproto.file_level_metadata[kIndexInFileMessages];
202 }
203
204 public:
205
206 // nested types ----------------------------------------------------
207
208 // accessors -------------------------------------------------------
209
210 enum : int {
211 kShapeFieldNumber = 2,
212 kDtypeFieldNumber = 1,
213 };
214 // .tensorflow.TensorShapeProto shape = 2;
215 bool has_shape() const;
216 void clear_shape();
217 const ::tensorflow::TensorShapeProto& shape() const;
218 ::tensorflow::TensorShapeProto* release_shape();
219 ::tensorflow::TensorShapeProto* mutable_shape();
220 void set_allocated_shape(::tensorflow::TensorShapeProto* shape);
221 void unsafe_arena_set_allocated_shape(
222 ::tensorflow::TensorShapeProto* shape);
223 ::tensorflow::TensorShapeProto* unsafe_arena_release_shape();
224
225 // .tensorflow.DataType dtype = 1;
226 void clear_dtype();
227 ::tensorflow::DataType dtype() const;
228 void set_dtype(::tensorflow::DataType value);
229
230 // @@protoc_insertion_point(class_scope:tensorflow.eager.ResourceDtypeAndShape)
231 private:
232 class _Internal;
233
234 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
235 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
236 typedef void InternalArenaConstructable_;
237 typedef void DestructorSkippable_;
238 ::tensorflow::TensorShapeProto* shape_;
239 int dtype_;
240 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
241 friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fremote_5ftensor_5fhandle_2eproto;
242};
243// -------------------------------------------------------------------
244
245class RemoteTensorHandle :
246 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.eager.RemoteTensorHandle) */ {
247 public:
248 RemoteTensorHandle();
249 virtual ~RemoteTensorHandle();
250
251 RemoteTensorHandle(const RemoteTensorHandle& from);
252 RemoteTensorHandle(RemoteTensorHandle&& from) noexcept
253 : RemoteTensorHandle() {
254 *this = ::std::move(from);
255 }
256
257 inline RemoteTensorHandle& operator=(const RemoteTensorHandle& from) {
258 CopyFrom(from);
259 return *this;
260 }
261 inline RemoteTensorHandle& operator=(RemoteTensorHandle&& from) noexcept {
262 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
263 if (this != &from) InternalSwap(&from);
264 } else {
265 CopyFrom(from);
266 }
267 return *this;
268 }
269
270 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
271 return GetArenaNoVirtual();
272 }
273 inline void* GetMaybeArenaPointer() const final {
274 return MaybeArenaPtr();
275 }
276 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
277 return GetDescriptor();
278 }
279 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
280 return GetMetadataStatic().descriptor;
281 }
282 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
283 return GetMetadataStatic().reflection;
284 }
285 static const RemoteTensorHandle& default_instance();
286
287 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
288 static inline const RemoteTensorHandle* internal_default_instance() {
289 return reinterpret_cast<const RemoteTensorHandle*>(
290 &_RemoteTensorHandle_default_instance_);
291 }
292 static constexpr int kIndexInFileMessages =
293 1;
294
295 friend void swap(RemoteTensorHandle& a, RemoteTensorHandle& b) {
296 a.Swap(&b);
297 }
298 inline void Swap(RemoteTensorHandle* other) {
299 if (other == this) return;
300 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
301 InternalSwap(other);
302 } else {
303 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
304 }
305 }
306 void UnsafeArenaSwap(RemoteTensorHandle* other) {
307 if (other == this) return;
308 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
309 InternalSwap(other);
310 }
311
312 // implements Message ----------------------------------------------
313
314 inline RemoteTensorHandle* New() const final {
315 return CreateMaybeMessage<RemoteTensorHandle>(nullptr);
316 }
317
318 RemoteTensorHandle* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
319 return CreateMaybeMessage<RemoteTensorHandle>(arena);
320 }
321 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
322 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
323 void CopyFrom(const RemoteTensorHandle& from);
324 void MergeFrom(const RemoteTensorHandle& from);
325 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
326 bool IsInitialized() const final;
327
328 size_t ByteSizeLong() const final;
329 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
330 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
331 #else
332 bool MergePartialFromCodedStream(
333 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
334 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
335 void SerializeWithCachedSizes(
336 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
337 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
338 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
339 int GetCachedSize() const final { return _cached_size_.Get(); }
340
341 private:
342 inline void SharedCtor();
343 inline void SharedDtor();
344 void SetCachedSize(int size) const final;
345 void InternalSwap(RemoteTensorHandle* other);
346 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
347 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
348 return "tensorflow.eager.RemoteTensorHandle";
349 }
350 protected:
351 explicit RemoteTensorHandle(::PROTOBUF_NAMESPACE_ID::Arena* arena);
352 private:
353 static void ArenaDtor(void* object);
354 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
355 private:
356 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
357 return _internal_metadata_.arena();
358 }
359 inline void* MaybeArenaPtr() const {
360 return _internal_metadata_.raw_arena_ptr();
361 }
362 public:
363
364 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
365 private:
366 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
367 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fremote_5ftensor_5fhandle_2eproto);
368 return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fremote_5ftensor_5fhandle_2eproto.file_level_metadata[kIndexInFileMessages];
369 }
370
371 public:
372
373 // nested types ----------------------------------------------------
374
375 // accessors -------------------------------------------------------
376
377 enum : int {
378 kResourceDtypesAndShapesFieldNumber = 6,
379 kDeviceFieldNumber = 3,
380 kOpDeviceFieldNumber = 4,
381 kOpIdFieldNumber = 1,
382 kOutputNumFieldNumber = 2,
383 kDtypeFieldNumber = 5,
384 };
385 // repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
386 int resource_dtypes_and_shapes_size() const;
387 void clear_resource_dtypes_and_shapes();
388 ::tensorflow::eager::ResourceDtypeAndShape* mutable_resource_dtypes_and_shapes(int index);
389 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::eager::ResourceDtypeAndShape >*
390 mutable_resource_dtypes_and_shapes();
391 const ::tensorflow::eager::ResourceDtypeAndShape& resource_dtypes_and_shapes(int index) const;
392 ::tensorflow::eager::ResourceDtypeAndShape* add_resource_dtypes_and_shapes();
393 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::eager::ResourceDtypeAndShape >&
394 resource_dtypes_and_shapes() const;
395
396 // string device = 3;
397 void clear_device();
398 const std::string& device() const;
399 void set_device(const std::string& value);
400 void set_device(std::string&& value);
401 void set_device(const char* value);
402 void set_device(const char* value, size_t size);
403 std::string* mutable_device();
404 std::string* release_device();
405 void set_allocated_device(std::string* device);
406 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
407 " string fields are deprecated and will be removed in a"
408 " future release.")
409 std::string* unsafe_arena_release_device();
410 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
411 " string fields are deprecated and will be removed in a"
412 " future release.")
413 void unsafe_arena_set_allocated_device(
414 std::string* device);
415
416 // string op_device = 4;
417 void clear_op_device();
418 const std::string& op_device() const;
419 void set_op_device(const std::string& value);
420 void set_op_device(std::string&& value);
421 void set_op_device(const char* value);
422 void set_op_device(const char* value, size_t size);
423 std::string* mutable_op_device();
424 std::string* release_op_device();
425 void set_allocated_op_device(std::string* op_device);
426 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
427 " string fields are deprecated and will be removed in a"
428 " future release.")
429 std::string* unsafe_arena_release_op_device();
430 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
431 " string fields are deprecated and will be removed in a"
432 " future release.")
433 void unsafe_arena_set_allocated_op_device(
434 std::string* op_device);
435
436 // int64 op_id = 1;
437 void clear_op_id();
438 ::PROTOBUF_NAMESPACE_ID::int64 op_id() const;
439 void set_op_id(::PROTOBUF_NAMESPACE_ID::int64 value);
440
441 // int32 output_num = 2;
442 void clear_output_num();
443 ::PROTOBUF_NAMESPACE_ID::int32 output_num() const;
444 void set_output_num(::PROTOBUF_NAMESPACE_ID::int32 value);
445
446 // .tensorflow.DataType dtype = 5;
447 void clear_dtype();
448 ::tensorflow::DataType dtype() const;
449 void set_dtype(::tensorflow::DataType value);
450
451 // @@protoc_insertion_point(class_scope:tensorflow.eager.RemoteTensorHandle)
452 private:
453 class _Internal;
454
455 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
456 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
457 typedef void InternalArenaConstructable_;
458 typedef void DestructorSkippable_;
459 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::eager::ResourceDtypeAndShape > resource_dtypes_and_shapes_;
460 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_;
461 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr op_device_;
462 ::PROTOBUF_NAMESPACE_ID::int64 op_id_;
463 ::PROTOBUF_NAMESPACE_ID::int32 output_num_;
464 int dtype_;
465 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
466 friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fremote_5ftensor_5fhandle_2eproto;
467};
468// ===================================================================
469
470
471// ===================================================================
472
473#ifdef __GNUC__
474 #pragma GCC diagnostic push
475 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
476#endif // __GNUC__
477// ResourceDtypeAndShape
478
479// .tensorflow.DataType dtype = 1;
480inline void ResourceDtypeAndShape::clear_dtype() {
481 dtype_ = 0;
482}
483inline ::tensorflow::DataType ResourceDtypeAndShape::dtype() const {
484 // @@protoc_insertion_point(field_get:tensorflow.eager.ResourceDtypeAndShape.dtype)
485 return static_cast< ::tensorflow::DataType >(dtype_);
486}
487inline void ResourceDtypeAndShape::set_dtype(::tensorflow::DataType value) {
488
489 dtype_ = value;
490 // @@protoc_insertion_point(field_set:tensorflow.eager.ResourceDtypeAndShape.dtype)
491}
492
493// .tensorflow.TensorShapeProto shape = 2;
494inline bool ResourceDtypeAndShape::has_shape() const {
495 return this != internal_default_instance() && shape_ != nullptr;
496}
497inline const ::tensorflow::TensorShapeProto& ResourceDtypeAndShape::shape() const {
498 const ::tensorflow::TensorShapeProto* p = shape_;
499 // @@protoc_insertion_point(field_get:tensorflow.eager.ResourceDtypeAndShape.shape)
500 return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::TensorShapeProto*>(
501 &::tensorflow::_TensorShapeProto_default_instance_);
502}
503inline ::tensorflow::TensorShapeProto* ResourceDtypeAndShape::release_shape() {
504 // @@protoc_insertion_point(field_release:tensorflow.eager.ResourceDtypeAndShape.shape)
505
506 ::tensorflow::TensorShapeProto* temp = shape_;
507 if (GetArenaNoVirtual() != nullptr) {
508 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
509 }
510 shape_ = nullptr;
511 return temp;
512}
513inline ::tensorflow::TensorShapeProto* ResourceDtypeAndShape::unsafe_arena_release_shape() {
514 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.eager.ResourceDtypeAndShape.shape)
515
516 ::tensorflow::TensorShapeProto* temp = shape_;
517 shape_ = nullptr;
518 return temp;
519}
520inline ::tensorflow::TensorShapeProto* ResourceDtypeAndShape::mutable_shape() {
521
522 if (shape_ == nullptr) {
523 auto* p = CreateMaybeMessage<::tensorflow::TensorShapeProto>(GetArenaNoVirtual());
524 shape_ = p;
525 }
526 // @@protoc_insertion_point(field_mutable:tensorflow.eager.ResourceDtypeAndShape.shape)
527 return shape_;
528}
529inline void ResourceDtypeAndShape::set_allocated_shape(::tensorflow::TensorShapeProto* shape) {
530 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
531 if (message_arena == nullptr) {
532 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(shape_);
533 }
534 if (shape) {
535 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
536 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(shape)->GetArena();
537 if (message_arena != submessage_arena) {
538 shape = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
539 message_arena, shape, submessage_arena);
540 }
541
542 } else {
543
544 }
545 shape_ = shape;
546 // @@protoc_insertion_point(field_set_allocated:tensorflow.eager.ResourceDtypeAndShape.shape)
547}
548
549// -------------------------------------------------------------------
550
551// RemoteTensorHandle
552
553// int64 op_id = 1;
554inline void RemoteTensorHandle::clear_op_id() {
555 op_id_ = PROTOBUF_LONGLONG(0);
556}
557inline ::PROTOBUF_NAMESPACE_ID::int64 RemoteTensorHandle::op_id() const {
558 // @@protoc_insertion_point(field_get:tensorflow.eager.RemoteTensorHandle.op_id)
559 return op_id_;
560}
561inline void RemoteTensorHandle::set_op_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
562
563 op_id_ = value;
564 // @@protoc_insertion_point(field_set:tensorflow.eager.RemoteTensorHandle.op_id)
565}
566
567// int32 output_num = 2;
568inline void RemoteTensorHandle::clear_output_num() {
569 output_num_ = 0;
570}
571inline ::PROTOBUF_NAMESPACE_ID::int32 RemoteTensorHandle::output_num() const {
572 // @@protoc_insertion_point(field_get:tensorflow.eager.RemoteTensorHandle.output_num)
573 return output_num_;
574}
575inline void RemoteTensorHandle::set_output_num(::PROTOBUF_NAMESPACE_ID::int32 value) {
576
577 output_num_ = value;
578 // @@protoc_insertion_point(field_set:tensorflow.eager.RemoteTensorHandle.output_num)
579}
580
581// string device = 3;
582inline void RemoteTensorHandle::clear_device() {
583 device_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
584}
585inline const std::string& RemoteTensorHandle::device() const {
586 // @@protoc_insertion_point(field_get:tensorflow.eager.RemoteTensorHandle.device)
587 return device_.Get();
588}
589inline void RemoteTensorHandle::set_device(const std::string& value) {
590
591 device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
592 // @@protoc_insertion_point(field_set:tensorflow.eager.RemoteTensorHandle.device)
593}
594inline void RemoteTensorHandle::set_device(std::string&& value) {
595
596 device_.Set(
597 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
598 // @@protoc_insertion_point(field_set_rvalue:tensorflow.eager.RemoteTensorHandle.device)
599}
600inline void RemoteTensorHandle::set_device(const char* value) {
601 GOOGLE_DCHECK(value != nullptr);
602
603 device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
604 GetArenaNoVirtual());
605 // @@protoc_insertion_point(field_set_char:tensorflow.eager.RemoteTensorHandle.device)
606}
607inline void RemoteTensorHandle::set_device(const char* value,
608 size_t size) {
609
610 device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
611 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
612 // @@protoc_insertion_point(field_set_pointer:tensorflow.eager.RemoteTensorHandle.device)
613}
614inline std::string* RemoteTensorHandle::mutable_device() {
615
616 // @@protoc_insertion_point(field_mutable:tensorflow.eager.RemoteTensorHandle.device)
617 return device_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
618}
619inline std::string* RemoteTensorHandle::release_device() {
620 // @@protoc_insertion_point(field_release:tensorflow.eager.RemoteTensorHandle.device)
621
622 return device_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
623}
624inline void RemoteTensorHandle::set_allocated_device(std::string* device) {
625 if (device != nullptr) {
626
627 } else {
628
629 }
630 device_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device,
631 GetArenaNoVirtual());
632 // @@protoc_insertion_point(field_set_allocated:tensorflow.eager.RemoteTensorHandle.device)
633}
634inline std::string* RemoteTensorHandle::unsafe_arena_release_device() {
635 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.eager.RemoteTensorHandle.device)
636 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
637
638 return device_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
639 GetArenaNoVirtual());
640}
641inline void RemoteTensorHandle::unsafe_arena_set_allocated_device(
642 std::string* device) {
643 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
644 if (device != nullptr) {
645
646 } else {
647
648 }
649 device_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
650 device, GetArenaNoVirtual());
651 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.eager.RemoteTensorHandle.device)
652}
653
654// string op_device = 4;
655inline void RemoteTensorHandle::clear_op_device() {
656 op_device_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
657}
658inline const std::string& RemoteTensorHandle::op_device() const {
659 // @@protoc_insertion_point(field_get:tensorflow.eager.RemoteTensorHandle.op_device)
660 return op_device_.Get();
661}
662inline void RemoteTensorHandle::set_op_device(const std::string& value) {
663
664 op_device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
665 // @@protoc_insertion_point(field_set:tensorflow.eager.RemoteTensorHandle.op_device)
666}
667inline void RemoteTensorHandle::set_op_device(std::string&& value) {
668
669 op_device_.Set(
670 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
671 // @@protoc_insertion_point(field_set_rvalue:tensorflow.eager.RemoteTensorHandle.op_device)
672}
673inline void RemoteTensorHandle::set_op_device(const char* value) {
674 GOOGLE_DCHECK(value != nullptr);
675
676 op_device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
677 GetArenaNoVirtual());
678 // @@protoc_insertion_point(field_set_char:tensorflow.eager.RemoteTensorHandle.op_device)
679}
680inline void RemoteTensorHandle::set_op_device(const char* value,
681 size_t size) {
682
683 op_device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
684 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
685 // @@protoc_insertion_point(field_set_pointer:tensorflow.eager.RemoteTensorHandle.op_device)
686}
687inline std::string* RemoteTensorHandle::mutable_op_device() {
688
689 // @@protoc_insertion_point(field_mutable:tensorflow.eager.RemoteTensorHandle.op_device)
690 return op_device_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
691}
692inline std::string* RemoteTensorHandle::release_op_device() {
693 // @@protoc_insertion_point(field_release:tensorflow.eager.RemoteTensorHandle.op_device)
694
695 return op_device_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
696}
697inline void RemoteTensorHandle::set_allocated_op_device(std::string* op_device) {
698 if (op_device != nullptr) {
699
700 } else {
701
702 }
703 op_device_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), op_device,
704 GetArenaNoVirtual());
705 // @@protoc_insertion_point(field_set_allocated:tensorflow.eager.RemoteTensorHandle.op_device)
706}
707inline std::string* RemoteTensorHandle::unsafe_arena_release_op_device() {
708 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.eager.RemoteTensorHandle.op_device)
709 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
710
711 return op_device_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
712 GetArenaNoVirtual());
713}
714inline void RemoteTensorHandle::unsafe_arena_set_allocated_op_device(
715 std::string* op_device) {
716 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
717 if (op_device != nullptr) {
718
719 } else {
720
721 }
722 op_device_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
723 op_device, GetArenaNoVirtual());
724 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.eager.RemoteTensorHandle.op_device)
725}
726
727// .tensorflow.DataType dtype = 5;
728inline void RemoteTensorHandle::clear_dtype() {
729 dtype_ = 0;
730}
731inline ::tensorflow::DataType RemoteTensorHandle::dtype() const {
732 // @@protoc_insertion_point(field_get:tensorflow.eager.RemoteTensorHandle.dtype)
733 return static_cast< ::tensorflow::DataType >(dtype_);
734}
735inline void RemoteTensorHandle::set_dtype(::tensorflow::DataType value) {
736
737 dtype_ = value;
738 // @@protoc_insertion_point(field_set:tensorflow.eager.RemoteTensorHandle.dtype)
739}
740
741// repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
742inline int RemoteTensorHandle::resource_dtypes_and_shapes_size() const {
743 return resource_dtypes_and_shapes_.size();
744}
745inline void RemoteTensorHandle::clear_resource_dtypes_and_shapes() {
746 resource_dtypes_and_shapes_.Clear();
747}
748inline ::tensorflow::eager::ResourceDtypeAndShape* RemoteTensorHandle::mutable_resource_dtypes_and_shapes(int index) {
749 // @@protoc_insertion_point(field_mutable:tensorflow.eager.RemoteTensorHandle.resource_dtypes_and_shapes)
750 return resource_dtypes_and_shapes_.Mutable(index);
751}
752inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::eager::ResourceDtypeAndShape >*
753RemoteTensorHandle::mutable_resource_dtypes_and_shapes() {
754 // @@protoc_insertion_point(field_mutable_list:tensorflow.eager.RemoteTensorHandle.resource_dtypes_and_shapes)
755 return &resource_dtypes_and_shapes_;
756}
757inline const ::tensorflow::eager::ResourceDtypeAndShape& RemoteTensorHandle::resource_dtypes_and_shapes(int index) const {
758 // @@protoc_insertion_point(field_get:tensorflow.eager.RemoteTensorHandle.resource_dtypes_and_shapes)
759 return resource_dtypes_and_shapes_.Get(index);
760}
761inline ::tensorflow::eager::ResourceDtypeAndShape* RemoteTensorHandle::add_resource_dtypes_and_shapes() {
762 // @@protoc_insertion_point(field_add:tensorflow.eager.RemoteTensorHandle.resource_dtypes_and_shapes)
763 return resource_dtypes_and_shapes_.Add();
764}
765inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::eager::ResourceDtypeAndShape >&
766RemoteTensorHandle::resource_dtypes_and_shapes() const {
767 // @@protoc_insertion_point(field_list:tensorflow.eager.RemoteTensorHandle.resource_dtypes_and_shapes)
768 return resource_dtypes_and_shapes_;
769}
770
771#ifdef __GNUC__
772 #pragma GCC diagnostic pop
773#endif // __GNUC__
774// -------------------------------------------------------------------
775
776
777// @@protoc_insertion_point(namespace_scope)
778
779} // namespace eager
780} // namespace tensorflow
781
782// @@protoc_insertion_point(global_scope)
783
784#include <google/protobuf/port_undef.inc>
785#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fremote_5ftensor_5fhandle_2eproto
786