1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: tensorflow/core/framework/resource_handle.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fresource_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_2fframework_2fresource_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_2fframework_2fresource_5fhandle_2eproto {
45 static const ::uint32_t offsets[];
46 };
47 namespace tensorflow {
48 class ResourceHandleProto;
49 struct ResourceHandleProtoDefaultTypeInternal;
50 extern ResourceHandleProtoDefaultTypeInternal _ResourceHandleProto_default_instance_;
51 class ResourceHandleProto_DtypeAndShape;
52 struct ResourceHandleProto_DtypeAndShapeDefaultTypeInternal;
53 extern ResourceHandleProto_DtypeAndShapeDefaultTypeInternal _ResourceHandleProto_DtypeAndShape_default_instance_;
54 } // namespace tensorflow
55 PROTOBUF_NAMESPACE_OPEN
56 template<> ::tensorflow::ResourceHandleProto* Arena::CreateMaybeMessage<::tensorflow::ResourceHandleProto>(Arena*);
57 template<> ::tensorflow::ResourceHandleProto_DtypeAndShape* Arena::CreateMaybeMessage<::tensorflow::ResourceHandleProto_DtypeAndShape>(Arena*);
58 PROTOBUF_NAMESPACE_CLOSE
59 namespace tensorflow {
60
61 // ===================================================================
62
63 class ResourceHandleProto_DtypeAndShape final :
64 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.ResourceHandleProto.DtypeAndShape) */ {
65 public:
ResourceHandleProto_DtypeAndShape()66 inline ResourceHandleProto_DtypeAndShape() : ResourceHandleProto_DtypeAndShape(nullptr) {}
67 ~ResourceHandleProto_DtypeAndShape() override;
68 explicit PROTOBUF_CONSTEXPR ResourceHandleProto_DtypeAndShape(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
69
70 ResourceHandleProto_DtypeAndShape(const ResourceHandleProto_DtypeAndShape& from);
ResourceHandleProto_DtypeAndShape(ResourceHandleProto_DtypeAndShape && from)71 ResourceHandleProto_DtypeAndShape(ResourceHandleProto_DtypeAndShape&& from) noexcept
72 : ResourceHandleProto_DtypeAndShape() {
73 *this = ::std::move(from);
74 }
75
76 inline ResourceHandleProto_DtypeAndShape& operator=(const ResourceHandleProto_DtypeAndShape& from) {
77 if (this == &from) return *this;
78 CopyFrom(from);
79 return *this;
80 }
81 inline ResourceHandleProto_DtypeAndShape& operator=(ResourceHandleProto_DtypeAndShape&& from) noexcept {
82 if (this == &from) return *this;
83 if (GetOwningArena() == from.GetOwningArena()
84 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
85 && GetOwningArena() != nullptr
86 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
87 ) {
88 InternalSwap(&from);
89 } else {
90 CopyFrom(from);
91 }
92 return *this;
93 }
94
default_instance()95 static const ResourceHandleProto_DtypeAndShape& default_instance() {
96 return *internal_default_instance();
97 }
internal_default_instance()98 static inline const ResourceHandleProto_DtypeAndShape* internal_default_instance() {
99 return reinterpret_cast<const ResourceHandleProto_DtypeAndShape*>(
100 &_ResourceHandleProto_DtypeAndShape_default_instance_);
101 }
102 static constexpr int kIndexInFileMessages =
103 0;
104
swap(ResourceHandleProto_DtypeAndShape & a,ResourceHandleProto_DtypeAndShape & b)105 friend void swap(ResourceHandleProto_DtypeAndShape& a, ResourceHandleProto_DtypeAndShape& b) {
106 a.Swap(&b);
107 }
Swap(ResourceHandleProto_DtypeAndShape * other)108 inline void Swap(ResourceHandleProto_DtypeAndShape* other) {
109 if (other == this) return;
110 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
111 if (GetOwningArena() != nullptr &&
112 GetOwningArena() == other->GetOwningArena()) {
113 #else // PROTOBUF_FORCE_COPY_IN_SWAP
114 if (GetOwningArena() == other->GetOwningArena()) {
115 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
116 InternalSwap(other);
117 } else {
118 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
119 }
120 }
121 void UnsafeArenaSwap(ResourceHandleProto_DtypeAndShape* other) {
122 if (other == this) return;
123 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
124 InternalSwap(other);
125 }
126
127 // implements Message ----------------------------------------------
128
129 ResourceHandleProto_DtypeAndShape* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
130 return CreateMaybeMessage<ResourceHandleProto_DtypeAndShape>(arena);
131 }
132 ResourceHandleProto_DtypeAndShape* New() const {
133 return New(nullptr);
134 }
135 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
136 void CopyFrom(const ResourceHandleProto_DtypeAndShape& from);
137 void MergeFrom(const ResourceHandleProto_DtypeAndShape& from);
138 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
139 bool IsInitialized() const final;
140
141 size_t ByteSizeLong() const final;
142 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
143 ::uint8_t* _InternalSerialize(
144 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
145 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
146
147 private:
148 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
149 void SharedDtor();
150 void SetCachedSize(int size) const;
151 void InternalSwap(ResourceHandleProto_DtypeAndShape* other);
152
153 private:
154 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
155 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
156 return "tensorflow.ResourceHandleProto.DtypeAndShape";
157 }
158 protected:
159 explicit ResourceHandleProto_DtypeAndShape(::PROTOBUF_NAMESPACE_ID::Arena* arena,
160 bool is_message_owned = false);
161 public:
162
163 std::string GetTypeName() const final;
164
165 // nested types ----------------------------------------------------
166
167 // accessors -------------------------------------------------------
168
169 enum : int {
170 kShapeFieldNumber = 2,
171 kDtypeFieldNumber = 1,
172 };
173 // .tensorflow.TensorShapeProto shape = 2;
174 bool has_shape() const;
175 private:
176 bool _internal_has_shape() const;
177 public:
178 void clear_shape();
179 const ::tensorflow::TensorShapeProto& shape() const;
180 PROTOBUF_NODISCARD ::tensorflow::TensorShapeProto* release_shape();
181 ::tensorflow::TensorShapeProto* mutable_shape();
182 void set_allocated_shape(::tensorflow::TensorShapeProto* shape);
183 private:
184 const ::tensorflow::TensorShapeProto& _internal_shape() const;
185 ::tensorflow::TensorShapeProto* _internal_mutable_shape();
186 public:
187 void unsafe_arena_set_allocated_shape(
188 ::tensorflow::TensorShapeProto* shape);
189 ::tensorflow::TensorShapeProto* unsafe_arena_release_shape();
190
191 // .tensorflow.DataType dtype = 1;
192 void clear_dtype();
193 ::tensorflow::DataType dtype() const;
194 void set_dtype(::tensorflow::DataType value);
195 private:
196 ::tensorflow::DataType _internal_dtype() const;
197 void _internal_set_dtype(::tensorflow::DataType value);
198 public:
199
200 // @@protoc_insertion_point(class_scope:tensorflow.ResourceHandleProto.DtypeAndShape)
201 private:
202 class _Internal;
203
204 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
205 typedef void InternalArenaConstructable_;
206 typedef void DestructorSkippable_;
207 struct Impl_ {
208 ::tensorflow::TensorShapeProto* shape_;
209 int dtype_;
210 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
211 };
212 union { Impl_ _impl_; };
213 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto;
214 };
215 // -------------------------------------------------------------------
216
217 class ResourceHandleProto final :
218 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.ResourceHandleProto) */ {
219 public:
ResourceHandleProto()220 inline ResourceHandleProto() : ResourceHandleProto(nullptr) {}
221 ~ResourceHandleProto() override;
222 explicit PROTOBUF_CONSTEXPR ResourceHandleProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
223
224 ResourceHandleProto(const ResourceHandleProto& from);
ResourceHandleProto(ResourceHandleProto && from)225 ResourceHandleProto(ResourceHandleProto&& from) noexcept
226 : ResourceHandleProto() {
227 *this = ::std::move(from);
228 }
229
230 inline ResourceHandleProto& operator=(const ResourceHandleProto& from) {
231 if (this == &from) return *this;
232 CopyFrom(from);
233 return *this;
234 }
235 inline ResourceHandleProto& operator=(ResourceHandleProto&& from) noexcept {
236 if (this == &from) return *this;
237 if (GetOwningArena() == from.GetOwningArena()
238 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
239 && GetOwningArena() != nullptr
240 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
241 ) {
242 InternalSwap(&from);
243 } else {
244 CopyFrom(from);
245 }
246 return *this;
247 }
248
default_instance()249 static const ResourceHandleProto& default_instance() {
250 return *internal_default_instance();
251 }
internal_default_instance()252 static inline const ResourceHandleProto* internal_default_instance() {
253 return reinterpret_cast<const ResourceHandleProto*>(
254 &_ResourceHandleProto_default_instance_);
255 }
256 static constexpr int kIndexInFileMessages =
257 1;
258
swap(ResourceHandleProto & a,ResourceHandleProto & b)259 friend void swap(ResourceHandleProto& a, ResourceHandleProto& b) {
260 a.Swap(&b);
261 }
Swap(ResourceHandleProto * other)262 inline void Swap(ResourceHandleProto* other) {
263 if (other == this) return;
264 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
265 if (GetOwningArena() != nullptr &&
266 GetOwningArena() == other->GetOwningArena()) {
267 #else // PROTOBUF_FORCE_COPY_IN_SWAP
268 if (GetOwningArena() == other->GetOwningArena()) {
269 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
270 InternalSwap(other);
271 } else {
272 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
273 }
274 }
275 void UnsafeArenaSwap(ResourceHandleProto* other) {
276 if (other == this) return;
277 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
278 InternalSwap(other);
279 }
280
281 // implements Message ----------------------------------------------
282
283 ResourceHandleProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
284 return CreateMaybeMessage<ResourceHandleProto>(arena);
285 }
286 ResourceHandleProto* New() const {
287 return New(nullptr);
288 }
289 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
290 void CopyFrom(const ResourceHandleProto& from);
291 void MergeFrom(const ResourceHandleProto& from);
292 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
293 bool IsInitialized() const final;
294
295 size_t ByteSizeLong() const final;
296 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
297 ::uint8_t* _InternalSerialize(
298 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
299 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
300
301 private:
302 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
303 void SharedDtor();
304 void SetCachedSize(int size) const;
305 void InternalSwap(ResourceHandleProto* other);
306
307 private:
308 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
309 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
310 return "tensorflow.ResourceHandleProto";
311 }
312 protected:
313 explicit ResourceHandleProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
314 bool is_message_owned = false);
315 public:
316
317 std::string GetTypeName() const final;
318
319 // nested types ----------------------------------------------------
320
321 typedef ResourceHandleProto_DtypeAndShape DtypeAndShape;
322
323 // accessors -------------------------------------------------------
324
325 enum : int {
326 kDtypesAndShapesFieldNumber = 6,
327 kDeviceFieldNumber = 1,
328 kContainerFieldNumber = 2,
329 kNameFieldNumber = 3,
330 kMaybeTypeNameFieldNumber = 5,
331 kHashCodeFieldNumber = 4,
332 };
333 // repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
334 int dtypes_and_shapes_size() const;
335 private:
336 int _internal_dtypes_and_shapes_size() const;
337 public:
338 void clear_dtypes_and_shapes();
339 ::tensorflow::ResourceHandleProto_DtypeAndShape* mutable_dtypes_and_shapes(int index);
340 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::ResourceHandleProto_DtypeAndShape >*
341 mutable_dtypes_and_shapes();
342 private:
343 const ::tensorflow::ResourceHandleProto_DtypeAndShape& _internal_dtypes_and_shapes(int index) const;
344 ::tensorflow::ResourceHandleProto_DtypeAndShape* _internal_add_dtypes_and_shapes();
345 public:
346 const ::tensorflow::ResourceHandleProto_DtypeAndShape& dtypes_and_shapes(int index) const;
347 ::tensorflow::ResourceHandleProto_DtypeAndShape* add_dtypes_and_shapes();
348 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::ResourceHandleProto_DtypeAndShape >&
349 dtypes_and_shapes() const;
350
351 // string device = 1;
352 void clear_device();
353 const std::string& device() const;
354 template <typename ArgT0 = const std::string&, typename... ArgT>
355 void set_device(ArgT0&& arg0, ArgT... args);
356 std::string* mutable_device();
357 PROTOBUF_NODISCARD std::string* release_device();
358 void set_allocated_device(std::string* device);
359 private:
360 const std::string& _internal_device() const;
361 inline PROTOBUF_ALWAYS_INLINE void _internal_set_device(const std::string& value);
362 std::string* _internal_mutable_device();
363 public:
364
365 // string container = 2;
366 void clear_container();
367 const std::string& container() const;
368 template <typename ArgT0 = const std::string&, typename... ArgT>
369 void set_container(ArgT0&& arg0, ArgT... args);
370 std::string* mutable_container();
371 PROTOBUF_NODISCARD std::string* release_container();
372 void set_allocated_container(std::string* container);
373 private:
374 const std::string& _internal_container() const;
375 inline PROTOBUF_ALWAYS_INLINE void _internal_set_container(const std::string& value);
376 std::string* _internal_mutable_container();
377 public:
378
379 // string name = 3;
380 void clear_name();
381 const std::string& name() const;
382 template <typename ArgT0 = const std::string&, typename... ArgT>
383 void set_name(ArgT0&& arg0, ArgT... args);
384 std::string* mutable_name();
385 PROTOBUF_NODISCARD std::string* release_name();
386 void set_allocated_name(std::string* name);
387 private:
388 const std::string& _internal_name() const;
389 inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
390 std::string* _internal_mutable_name();
391 public:
392
393 // string maybe_type_name = 5;
394 void clear_maybe_type_name();
395 const std::string& maybe_type_name() const;
396 template <typename ArgT0 = const std::string&, typename... ArgT>
397 void set_maybe_type_name(ArgT0&& arg0, ArgT... args);
398 std::string* mutable_maybe_type_name();
399 PROTOBUF_NODISCARD std::string* release_maybe_type_name();
400 void set_allocated_maybe_type_name(std::string* maybe_type_name);
401 private:
402 const std::string& _internal_maybe_type_name() const;
403 inline PROTOBUF_ALWAYS_INLINE void _internal_set_maybe_type_name(const std::string& value);
404 std::string* _internal_mutable_maybe_type_name();
405 public:
406
407 // uint64 hash_code = 4;
408 void clear_hash_code();
409 ::uint64_t hash_code() const;
410 void set_hash_code(::uint64_t value);
411 private:
412 ::uint64_t _internal_hash_code() const;
413 void _internal_set_hash_code(::uint64_t value);
414 public:
415
416 // @@protoc_insertion_point(class_scope:tensorflow.ResourceHandleProto)
417 private:
418 class _Internal;
419
420 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
421 typedef void InternalArenaConstructable_;
422 typedef void DestructorSkippable_;
423 struct Impl_ {
424 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::ResourceHandleProto_DtypeAndShape > dtypes_and_shapes_;
425 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_;
426 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr container_;
427 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
428 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr maybe_type_name_;
429 ::uint64_t hash_code_;
430 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
431 };
432 union { Impl_ _impl_; };
433 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto;
434 };
435 // ===================================================================
436
437
438 // ===================================================================
439
440 #ifdef __GNUC__
441 #pragma GCC diagnostic push
442 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
443 #endif // __GNUC__
444 // ResourceHandleProto_DtypeAndShape
445
446 // .tensorflow.DataType dtype = 1;
clear_dtype()447 inline void ResourceHandleProto_DtypeAndShape::clear_dtype() {
448 _impl_.dtype_ = 0;
449 }
_internal_dtype()450 inline ::tensorflow::DataType ResourceHandleProto_DtypeAndShape::_internal_dtype() const {
451 return static_cast< ::tensorflow::DataType >(_impl_.dtype_);
452 }
dtype()453 inline ::tensorflow::DataType ResourceHandleProto_DtypeAndShape::dtype() const {
454 // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.DtypeAndShape.dtype)
455 return _internal_dtype();
456 }
_internal_set_dtype(::tensorflow::DataType value)457 inline void ResourceHandleProto_DtypeAndShape::_internal_set_dtype(::tensorflow::DataType value) {
458
459 _impl_.dtype_ = value;
460 }
set_dtype(::tensorflow::DataType value)461 inline void ResourceHandleProto_DtypeAndShape::set_dtype(::tensorflow::DataType value) {
462 _internal_set_dtype(value);
463 // @@protoc_insertion_point(field_set:tensorflow.ResourceHandleProto.DtypeAndShape.dtype)
464 }
465
466 // .tensorflow.TensorShapeProto shape = 2;
_internal_has_shape()467 inline bool ResourceHandleProto_DtypeAndShape::_internal_has_shape() const {
468 return this != internal_default_instance() && _impl_.shape_ != nullptr;
469 }
has_shape()470 inline bool ResourceHandleProto_DtypeAndShape::has_shape() const {
471 return _internal_has_shape();
472 }
_internal_shape()473 inline const ::tensorflow::TensorShapeProto& ResourceHandleProto_DtypeAndShape::_internal_shape() const {
474 const ::tensorflow::TensorShapeProto* p = _impl_.shape_;
475 return p != nullptr ? *p : reinterpret_cast<const ::tensorflow::TensorShapeProto&>(
476 ::tensorflow::_TensorShapeProto_default_instance_);
477 }
shape()478 inline const ::tensorflow::TensorShapeProto& ResourceHandleProto_DtypeAndShape::shape() const {
479 // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.DtypeAndShape.shape)
480 return _internal_shape();
481 }
unsafe_arena_set_allocated_shape(::tensorflow::TensorShapeProto * shape)482 inline void ResourceHandleProto_DtypeAndShape::unsafe_arena_set_allocated_shape(
483 ::tensorflow::TensorShapeProto* shape) {
484 if (GetArenaForAllocation() == nullptr) {
485 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.shape_);
486 }
487 _impl_.shape_ = shape;
488 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ResourceHandleProto.DtypeAndShape.shape)
489 }
release_shape()490 inline ::tensorflow::TensorShapeProto* ResourceHandleProto_DtypeAndShape::release_shape() {
491
492 ::tensorflow::TensorShapeProto* temp = _impl_.shape_;
493 _impl_.shape_ = nullptr;
494 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
495 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
496 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
497 if (GetArenaForAllocation() == nullptr) { delete old; }
498 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
499 if (GetArenaForAllocation() != nullptr) {
500 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
501 }
502 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
503 return temp;
504 }
unsafe_arena_release_shape()505 inline ::tensorflow::TensorShapeProto* ResourceHandleProto_DtypeAndShape::unsafe_arena_release_shape() {
506 // @@protoc_insertion_point(field_release:tensorflow.ResourceHandleProto.DtypeAndShape.shape)
507
508 ::tensorflow::TensorShapeProto* temp = _impl_.shape_;
509 _impl_.shape_ = nullptr;
510 return temp;
511 }
_internal_mutable_shape()512 inline ::tensorflow::TensorShapeProto* ResourceHandleProto_DtypeAndShape::_internal_mutable_shape() {
513
514 if (_impl_.shape_ == nullptr) {
515 auto* p = CreateMaybeMessage<::tensorflow::TensorShapeProto>(GetArenaForAllocation());
516 _impl_.shape_ = p;
517 }
518 return _impl_.shape_;
519 }
mutable_shape()520 inline ::tensorflow::TensorShapeProto* ResourceHandleProto_DtypeAndShape::mutable_shape() {
521 ::tensorflow::TensorShapeProto* _msg = _internal_mutable_shape();
522 // @@protoc_insertion_point(field_mutable:tensorflow.ResourceHandleProto.DtypeAndShape.shape)
523 return _msg;
524 }
set_allocated_shape(::tensorflow::TensorShapeProto * shape)525 inline void ResourceHandleProto_DtypeAndShape::set_allocated_shape(::tensorflow::TensorShapeProto* shape) {
526 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
527 if (message_arena == nullptr) {
528 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.shape_);
529 }
530 if (shape) {
531 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
532 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
533 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(shape));
534 if (message_arena != submessage_arena) {
535 shape = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
536 message_arena, shape, submessage_arena);
537 }
538
539 } else {
540
541 }
542 _impl_.shape_ = shape;
543 // @@protoc_insertion_point(field_set_allocated:tensorflow.ResourceHandleProto.DtypeAndShape.shape)
544 }
545
546 // -------------------------------------------------------------------
547
548 // ResourceHandleProto
549
550 // string device = 1;
clear_device()551 inline void ResourceHandleProto::clear_device() {
552 _impl_.device_.ClearToEmpty();
553 }
device()554 inline const std::string& ResourceHandleProto::device() const {
555 // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.device)
556 return _internal_device();
557 }
558 template <typename ArgT0, typename... ArgT>
559 inline PROTOBUF_ALWAYS_INLINE
set_device(ArgT0 && arg0,ArgT...args)560 void ResourceHandleProto::set_device(ArgT0&& arg0, ArgT... args) {
561
562 _impl_.device_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
563 // @@protoc_insertion_point(field_set:tensorflow.ResourceHandleProto.device)
564 }
mutable_device()565 inline std::string* ResourceHandleProto::mutable_device() {
566 std::string* _s = _internal_mutable_device();
567 // @@protoc_insertion_point(field_mutable:tensorflow.ResourceHandleProto.device)
568 return _s;
569 }
_internal_device()570 inline const std::string& ResourceHandleProto::_internal_device() const {
571 return _impl_.device_.Get();
572 }
_internal_set_device(const std::string & value)573 inline void ResourceHandleProto::_internal_set_device(const std::string& value) {
574
575 _impl_.device_.Set(value, GetArenaForAllocation());
576 }
_internal_mutable_device()577 inline std::string* ResourceHandleProto::_internal_mutable_device() {
578
579 return _impl_.device_.Mutable(GetArenaForAllocation());
580 }
release_device()581 inline std::string* ResourceHandleProto::release_device() {
582 // @@protoc_insertion_point(field_release:tensorflow.ResourceHandleProto.device)
583 return _impl_.device_.Release();
584 }
set_allocated_device(std::string * device)585 inline void ResourceHandleProto::set_allocated_device(std::string* device) {
586 _impl_.device_.SetAllocated(device, GetArenaForAllocation());
587 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
588 if (_impl_.device_.IsDefault()) {
589 _impl_.device_.Set("", GetArenaForAllocation());
590 }
591 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
592 // @@protoc_insertion_point(field_set_allocated:tensorflow.ResourceHandleProto.device)
593 }
594
595 // string container = 2;
clear_container()596 inline void ResourceHandleProto::clear_container() {
597 _impl_.container_.ClearToEmpty();
598 }
container()599 inline const std::string& ResourceHandleProto::container() const {
600 // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.container)
601 return _internal_container();
602 }
603 template <typename ArgT0, typename... ArgT>
604 inline PROTOBUF_ALWAYS_INLINE
set_container(ArgT0 && arg0,ArgT...args)605 void ResourceHandleProto::set_container(ArgT0&& arg0, ArgT... args) {
606
607 _impl_.container_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
608 // @@protoc_insertion_point(field_set:tensorflow.ResourceHandleProto.container)
609 }
mutable_container()610 inline std::string* ResourceHandleProto::mutable_container() {
611 std::string* _s = _internal_mutable_container();
612 // @@protoc_insertion_point(field_mutable:tensorflow.ResourceHandleProto.container)
613 return _s;
614 }
_internal_container()615 inline const std::string& ResourceHandleProto::_internal_container() const {
616 return _impl_.container_.Get();
617 }
_internal_set_container(const std::string & value)618 inline void ResourceHandleProto::_internal_set_container(const std::string& value) {
619
620 _impl_.container_.Set(value, GetArenaForAllocation());
621 }
_internal_mutable_container()622 inline std::string* ResourceHandleProto::_internal_mutable_container() {
623
624 return _impl_.container_.Mutable(GetArenaForAllocation());
625 }
release_container()626 inline std::string* ResourceHandleProto::release_container() {
627 // @@protoc_insertion_point(field_release:tensorflow.ResourceHandleProto.container)
628 return _impl_.container_.Release();
629 }
set_allocated_container(std::string * container)630 inline void ResourceHandleProto::set_allocated_container(std::string* container) {
631 _impl_.container_.SetAllocated(container, GetArenaForAllocation());
632 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
633 if (_impl_.container_.IsDefault()) {
634 _impl_.container_.Set("", GetArenaForAllocation());
635 }
636 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
637 // @@protoc_insertion_point(field_set_allocated:tensorflow.ResourceHandleProto.container)
638 }
639
640 // string name = 3;
clear_name()641 inline void ResourceHandleProto::clear_name() {
642 _impl_.name_.ClearToEmpty();
643 }
name()644 inline const std::string& ResourceHandleProto::name() const {
645 // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.name)
646 return _internal_name();
647 }
648 template <typename ArgT0, typename... ArgT>
649 inline PROTOBUF_ALWAYS_INLINE
set_name(ArgT0 && arg0,ArgT...args)650 void ResourceHandleProto::set_name(ArgT0&& arg0, ArgT... args) {
651
652 _impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
653 // @@protoc_insertion_point(field_set:tensorflow.ResourceHandleProto.name)
654 }
mutable_name()655 inline std::string* ResourceHandleProto::mutable_name() {
656 std::string* _s = _internal_mutable_name();
657 // @@protoc_insertion_point(field_mutable:tensorflow.ResourceHandleProto.name)
658 return _s;
659 }
_internal_name()660 inline const std::string& ResourceHandleProto::_internal_name() const {
661 return _impl_.name_.Get();
662 }
_internal_set_name(const std::string & value)663 inline void ResourceHandleProto::_internal_set_name(const std::string& value) {
664
665 _impl_.name_.Set(value, GetArenaForAllocation());
666 }
_internal_mutable_name()667 inline std::string* ResourceHandleProto::_internal_mutable_name() {
668
669 return _impl_.name_.Mutable(GetArenaForAllocation());
670 }
release_name()671 inline std::string* ResourceHandleProto::release_name() {
672 // @@protoc_insertion_point(field_release:tensorflow.ResourceHandleProto.name)
673 return _impl_.name_.Release();
674 }
set_allocated_name(std::string * name)675 inline void ResourceHandleProto::set_allocated_name(std::string* name) {
676 _impl_.name_.SetAllocated(name, GetArenaForAllocation());
677 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
678 if (_impl_.name_.IsDefault()) {
679 _impl_.name_.Set("", GetArenaForAllocation());
680 }
681 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
682 // @@protoc_insertion_point(field_set_allocated:tensorflow.ResourceHandleProto.name)
683 }
684
685 // uint64 hash_code = 4;
clear_hash_code()686 inline void ResourceHandleProto::clear_hash_code() {
687 _impl_.hash_code_ = ::uint64_t{0u};
688 }
_internal_hash_code()689 inline ::uint64_t ResourceHandleProto::_internal_hash_code() const {
690 return _impl_.hash_code_;
691 }
hash_code()692 inline ::uint64_t ResourceHandleProto::hash_code() const {
693 // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.hash_code)
694 return _internal_hash_code();
695 }
_internal_set_hash_code(::uint64_t value)696 inline void ResourceHandleProto::_internal_set_hash_code(::uint64_t value) {
697
698 _impl_.hash_code_ = value;
699 }
set_hash_code(::uint64_t value)700 inline void ResourceHandleProto::set_hash_code(::uint64_t value) {
701 _internal_set_hash_code(value);
702 // @@protoc_insertion_point(field_set:tensorflow.ResourceHandleProto.hash_code)
703 }
704
705 // string maybe_type_name = 5;
clear_maybe_type_name()706 inline void ResourceHandleProto::clear_maybe_type_name() {
707 _impl_.maybe_type_name_.ClearToEmpty();
708 }
maybe_type_name()709 inline const std::string& ResourceHandleProto::maybe_type_name() const {
710 // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.maybe_type_name)
711 return _internal_maybe_type_name();
712 }
713 template <typename ArgT0, typename... ArgT>
714 inline PROTOBUF_ALWAYS_INLINE
set_maybe_type_name(ArgT0 && arg0,ArgT...args)715 void ResourceHandleProto::set_maybe_type_name(ArgT0&& arg0, ArgT... args) {
716
717 _impl_.maybe_type_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
718 // @@protoc_insertion_point(field_set:tensorflow.ResourceHandleProto.maybe_type_name)
719 }
mutable_maybe_type_name()720 inline std::string* ResourceHandleProto::mutable_maybe_type_name() {
721 std::string* _s = _internal_mutable_maybe_type_name();
722 // @@protoc_insertion_point(field_mutable:tensorflow.ResourceHandleProto.maybe_type_name)
723 return _s;
724 }
_internal_maybe_type_name()725 inline const std::string& ResourceHandleProto::_internal_maybe_type_name() const {
726 return _impl_.maybe_type_name_.Get();
727 }
_internal_set_maybe_type_name(const std::string & value)728 inline void ResourceHandleProto::_internal_set_maybe_type_name(const std::string& value) {
729
730 _impl_.maybe_type_name_.Set(value, GetArenaForAllocation());
731 }
_internal_mutable_maybe_type_name()732 inline std::string* ResourceHandleProto::_internal_mutable_maybe_type_name() {
733
734 return _impl_.maybe_type_name_.Mutable(GetArenaForAllocation());
735 }
release_maybe_type_name()736 inline std::string* ResourceHandleProto::release_maybe_type_name() {
737 // @@protoc_insertion_point(field_release:tensorflow.ResourceHandleProto.maybe_type_name)
738 return _impl_.maybe_type_name_.Release();
739 }
set_allocated_maybe_type_name(std::string * maybe_type_name)740 inline void ResourceHandleProto::set_allocated_maybe_type_name(std::string* maybe_type_name) {
741 _impl_.maybe_type_name_.SetAllocated(maybe_type_name, GetArenaForAllocation());
742 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
743 if (_impl_.maybe_type_name_.IsDefault()) {
744 _impl_.maybe_type_name_.Set("", GetArenaForAllocation());
745 }
746 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
747 // @@protoc_insertion_point(field_set_allocated:tensorflow.ResourceHandleProto.maybe_type_name)
748 }
749
750 // repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
_internal_dtypes_and_shapes_size()751 inline int ResourceHandleProto::_internal_dtypes_and_shapes_size() const {
752 return _impl_.dtypes_and_shapes_.size();
753 }
dtypes_and_shapes_size()754 inline int ResourceHandleProto::dtypes_and_shapes_size() const {
755 return _internal_dtypes_and_shapes_size();
756 }
clear_dtypes_and_shapes()757 inline void ResourceHandleProto::clear_dtypes_and_shapes() {
758 _impl_.dtypes_and_shapes_.Clear();
759 }
mutable_dtypes_and_shapes(int index)760 inline ::tensorflow::ResourceHandleProto_DtypeAndShape* ResourceHandleProto::mutable_dtypes_and_shapes(int index) {
761 // @@protoc_insertion_point(field_mutable:tensorflow.ResourceHandleProto.dtypes_and_shapes)
762 return _impl_.dtypes_and_shapes_.Mutable(index);
763 }
764 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::ResourceHandleProto_DtypeAndShape >*
mutable_dtypes_and_shapes()765 ResourceHandleProto::mutable_dtypes_and_shapes() {
766 // @@protoc_insertion_point(field_mutable_list:tensorflow.ResourceHandleProto.dtypes_and_shapes)
767 return &_impl_.dtypes_and_shapes_;
768 }
_internal_dtypes_and_shapes(int index)769 inline const ::tensorflow::ResourceHandleProto_DtypeAndShape& ResourceHandleProto::_internal_dtypes_and_shapes(int index) const {
770 return _impl_.dtypes_and_shapes_.Get(index);
771 }
dtypes_and_shapes(int index)772 inline const ::tensorflow::ResourceHandleProto_DtypeAndShape& ResourceHandleProto::dtypes_and_shapes(int index) const {
773 // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.dtypes_and_shapes)
774 return _internal_dtypes_and_shapes(index);
775 }
_internal_add_dtypes_and_shapes()776 inline ::tensorflow::ResourceHandleProto_DtypeAndShape* ResourceHandleProto::_internal_add_dtypes_and_shapes() {
777 return _impl_.dtypes_and_shapes_.Add();
778 }
add_dtypes_and_shapes()779 inline ::tensorflow::ResourceHandleProto_DtypeAndShape* ResourceHandleProto::add_dtypes_and_shapes() {
780 ::tensorflow::ResourceHandleProto_DtypeAndShape* _add = _internal_add_dtypes_and_shapes();
781 // @@protoc_insertion_point(field_add:tensorflow.ResourceHandleProto.dtypes_and_shapes)
782 return _add;
783 }
784 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::ResourceHandleProto_DtypeAndShape >&
dtypes_and_shapes()785 ResourceHandleProto::dtypes_and_shapes() const {
786 // @@protoc_insertion_point(field_list:tensorflow.ResourceHandleProto.dtypes_and_shapes)
787 return _impl_.dtypes_and_shapes_;
788 }
789
790 #ifdef __GNUC__
791 #pragma GCC diagnostic pop
792 #endif // __GNUC__
793 // -------------------------------------------------------------------
794
795
796 // @@protoc_insertion_point(namespace_scope)
797
798 } // namespace tensorflow
799
800 // @@protoc_insertion_point(global_scope)
801
802 #include <google/protobuf/port_undef.inc>
803 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto
804