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