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 <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_2fframework_2fresource_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_2fframework_2fresource_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_2fframework_2fresource_5fhandle_2eproto;
59namespace tensorflow {
60class ResourceHandleProto;
61class ResourceHandleProtoDefaultTypeInternal;
62extern ResourceHandleProtoDefaultTypeInternal _ResourceHandleProto_default_instance_;
63class ResourceHandleProto_DtypeAndShape;
64class ResourceHandleProto_DtypeAndShapeDefaultTypeInternal;
65extern ResourceHandleProto_DtypeAndShapeDefaultTypeInternal _ResourceHandleProto_DtypeAndShape_default_instance_;
66} // namespace tensorflow
67PROTOBUF_NAMESPACE_OPEN
68template<> ::tensorflow::ResourceHandleProto* Arena::CreateMaybeMessage<::tensorflow::ResourceHandleProto>(Arena*);
69template<> ::tensorflow::ResourceHandleProto_DtypeAndShape* Arena::CreateMaybeMessage<::tensorflow::ResourceHandleProto_DtypeAndShape>(Arena*);
70PROTOBUF_NAMESPACE_CLOSE
71namespace tensorflow {
72
73// ===================================================================
74
75class ResourceHandleProto_DtypeAndShape :
76 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.ResourceHandleProto.DtypeAndShape) */ {
77 public:
78 ResourceHandleProto_DtypeAndShape();
79 virtual ~ResourceHandleProto_DtypeAndShape();
80
81 ResourceHandleProto_DtypeAndShape(const ResourceHandleProto_DtypeAndShape& from);
82 ResourceHandleProto_DtypeAndShape(ResourceHandleProto_DtypeAndShape&& from) noexcept
83 : ResourceHandleProto_DtypeAndShape() {
84 *this = ::std::move(from);
85 }
86
87 inline ResourceHandleProto_DtypeAndShape& operator=(const ResourceHandleProto_DtypeAndShape& from) {
88 CopyFrom(from);
89 return *this;
90 }
91 inline ResourceHandleProto_DtypeAndShape& operator=(ResourceHandleProto_DtypeAndShape&& from) noexcept {
92 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
93 if (this != &from) InternalSwap(&from);
94 } else {
95 CopyFrom(from);
96 }
97 return *this;
98 }
99
100 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
101 return GetArenaNoVirtual();
102 }
103 inline void* GetMaybeArenaPointer() const final {
104 return MaybeArenaPtr();
105 }
106 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
107 return GetDescriptor();
108 }
109 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
110 return GetMetadataStatic().descriptor;
111 }
112 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
113 return GetMetadataStatic().reflection;
114 }
115 static const ResourceHandleProto_DtypeAndShape& default_instance();
116
117 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
118 static inline const ResourceHandleProto_DtypeAndShape* internal_default_instance() {
119 return reinterpret_cast<const ResourceHandleProto_DtypeAndShape*>(
120 &_ResourceHandleProto_DtypeAndShape_default_instance_);
121 }
122 static constexpr int kIndexInFileMessages =
123 0;
124
125 friend void swap(ResourceHandleProto_DtypeAndShape& a, ResourceHandleProto_DtypeAndShape& b) {
126 a.Swap(&b);
127 }
128 inline void Swap(ResourceHandleProto_DtypeAndShape* other) {
129 if (other == this) return;
130 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
131 InternalSwap(other);
132 } else {
133 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
134 }
135 }
136 void UnsafeArenaSwap(ResourceHandleProto_DtypeAndShape* other) {
137 if (other == this) return;
138 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
139 InternalSwap(other);
140 }
141
142 // implements Message ----------------------------------------------
143
144 inline ResourceHandleProto_DtypeAndShape* New() const final {
145 return CreateMaybeMessage<ResourceHandleProto_DtypeAndShape>(nullptr);
146 }
147
148 ResourceHandleProto_DtypeAndShape* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
149 return CreateMaybeMessage<ResourceHandleProto_DtypeAndShape>(arena);
150 }
151 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
152 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
153 void CopyFrom(const ResourceHandleProto_DtypeAndShape& from);
154 void MergeFrom(const ResourceHandleProto_DtypeAndShape& from);
155 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
156 bool IsInitialized() const final;
157
158 size_t ByteSizeLong() const final;
159 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
160 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
161 #else
162 bool MergePartialFromCodedStream(
163 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
164 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
165 void SerializeWithCachedSizes(
166 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
167 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
168 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
169 int GetCachedSize() const final { return _cached_size_.Get(); }
170
171 private:
172 inline void SharedCtor();
173 inline void SharedDtor();
174 void SetCachedSize(int size) const final;
175 void InternalSwap(ResourceHandleProto_DtypeAndShape* other);
176 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
177 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
178 return "tensorflow.ResourceHandleProto.DtypeAndShape";
179 }
180 protected:
181 explicit ResourceHandleProto_DtypeAndShape(::PROTOBUF_NAMESPACE_ID::Arena* arena);
182 private:
183 static void ArenaDtor(void* object);
184 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
185 private:
186 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
187 return _internal_metadata_.arena();
188 }
189 inline void* MaybeArenaPtr() const {
190 return _internal_metadata_.raw_arena_ptr();
191 }
192 public:
193
194 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
195 private:
196 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
197 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto);
198 return ::descriptor_table_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto.file_level_metadata[kIndexInFileMessages];
199 }
200
201 public:
202
203 // nested types ----------------------------------------------------
204
205 // accessors -------------------------------------------------------
206
207 enum : int {
208 kShapeFieldNumber = 2,
209 kDtypeFieldNumber = 1,
210 };
211 // .tensorflow.TensorShapeProto shape = 2;
212 bool has_shape() const;
213 void clear_shape();
214 const ::tensorflow::TensorShapeProto& shape() const;
215 ::tensorflow::TensorShapeProto* release_shape();
216 ::tensorflow::TensorShapeProto* mutable_shape();
217 void set_allocated_shape(::tensorflow::TensorShapeProto* shape);
218 void unsafe_arena_set_allocated_shape(
219 ::tensorflow::TensorShapeProto* shape);
220 ::tensorflow::TensorShapeProto* unsafe_arena_release_shape();
221
222 // .tensorflow.DataType dtype = 1;
223 void clear_dtype();
224 ::tensorflow::DataType dtype() const;
225 void set_dtype(::tensorflow::DataType value);
226
227 // @@protoc_insertion_point(class_scope:tensorflow.ResourceHandleProto.DtypeAndShape)
228 private:
229 class _Internal;
230
231 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
232 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
233 typedef void InternalArenaConstructable_;
234 typedef void DestructorSkippable_;
235 ::tensorflow::TensorShapeProto* shape_;
236 int dtype_;
237 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
238 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto;
239};
240// -------------------------------------------------------------------
241
242class ResourceHandleProto :
243 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.ResourceHandleProto) */ {
244 public:
245 ResourceHandleProto();
246 virtual ~ResourceHandleProto();
247
248 ResourceHandleProto(const ResourceHandleProto& from);
249 ResourceHandleProto(ResourceHandleProto&& from) noexcept
250 : ResourceHandleProto() {
251 *this = ::std::move(from);
252 }
253
254 inline ResourceHandleProto& operator=(const ResourceHandleProto& from) {
255 CopyFrom(from);
256 return *this;
257 }
258 inline ResourceHandleProto& operator=(ResourceHandleProto&& from) noexcept {
259 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
260 if (this != &from) InternalSwap(&from);
261 } else {
262 CopyFrom(from);
263 }
264 return *this;
265 }
266
267 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
268 return GetArenaNoVirtual();
269 }
270 inline void* GetMaybeArenaPointer() const final {
271 return MaybeArenaPtr();
272 }
273 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
274 return GetDescriptor();
275 }
276 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
277 return GetMetadataStatic().descriptor;
278 }
279 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
280 return GetMetadataStatic().reflection;
281 }
282 static const ResourceHandleProto& default_instance();
283
284 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
285 static inline const ResourceHandleProto* internal_default_instance() {
286 return reinterpret_cast<const ResourceHandleProto*>(
287 &_ResourceHandleProto_default_instance_);
288 }
289 static constexpr int kIndexInFileMessages =
290 1;
291
292 friend void swap(ResourceHandleProto& a, ResourceHandleProto& b) {
293 a.Swap(&b);
294 }
295 inline void Swap(ResourceHandleProto* other) {
296 if (other == this) return;
297 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
298 InternalSwap(other);
299 } else {
300 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
301 }
302 }
303 void UnsafeArenaSwap(ResourceHandleProto* other) {
304 if (other == this) return;
305 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
306 InternalSwap(other);
307 }
308
309 // implements Message ----------------------------------------------
310
311 inline ResourceHandleProto* New() const final {
312 return CreateMaybeMessage<ResourceHandleProto>(nullptr);
313 }
314
315 ResourceHandleProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
316 return CreateMaybeMessage<ResourceHandleProto>(arena);
317 }
318 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
319 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
320 void CopyFrom(const ResourceHandleProto& from);
321 void MergeFrom(const ResourceHandleProto& from);
322 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
323 bool IsInitialized() const final;
324
325 size_t ByteSizeLong() const final;
326 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
327 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
328 #else
329 bool MergePartialFromCodedStream(
330 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
331 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
332 void SerializeWithCachedSizes(
333 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
334 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
335 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
336 int GetCachedSize() const final { return _cached_size_.Get(); }
337
338 private:
339 inline void SharedCtor();
340 inline void SharedDtor();
341 void SetCachedSize(int size) const final;
342 void InternalSwap(ResourceHandleProto* other);
343 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
344 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
345 return "tensorflow.ResourceHandleProto";
346 }
347 protected:
348 explicit ResourceHandleProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
349 private:
350 static void ArenaDtor(void* object);
351 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
352 private:
353 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
354 return _internal_metadata_.arena();
355 }
356 inline void* MaybeArenaPtr() const {
357 return _internal_metadata_.raw_arena_ptr();
358 }
359 public:
360
361 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
362 private:
363 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
364 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto);
365 return ::descriptor_table_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto.file_level_metadata[kIndexInFileMessages];
366 }
367
368 public:
369
370 // nested types ----------------------------------------------------
371
372 typedef ResourceHandleProto_DtypeAndShape DtypeAndShape;
373
374 // accessors -------------------------------------------------------
375
376 enum : int {
377 kDtypesAndShapesFieldNumber = 6,
378 kDeviceFieldNumber = 1,
379 kContainerFieldNumber = 2,
380 kNameFieldNumber = 3,
381 kMaybeTypeNameFieldNumber = 5,
382 kHashCodeFieldNumber = 4,
383 };
384 // repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
385 int dtypes_and_shapes_size() const;
386 void clear_dtypes_and_shapes();
387 ::tensorflow::ResourceHandleProto_DtypeAndShape* mutable_dtypes_and_shapes(int index);
388 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::ResourceHandleProto_DtypeAndShape >*
389 mutable_dtypes_and_shapes();
390 const ::tensorflow::ResourceHandleProto_DtypeAndShape& dtypes_and_shapes(int index) const;
391 ::tensorflow::ResourceHandleProto_DtypeAndShape* add_dtypes_and_shapes();
392 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::ResourceHandleProto_DtypeAndShape >&
393 dtypes_and_shapes() const;
394
395 // string device = 1;
396 void clear_device();
397 const std::string& device() const;
398 void set_device(const std::string& value);
399 void set_device(std::string&& value);
400 void set_device(const char* value);
401 void set_device(const char* value, size_t size);
402 std::string* mutable_device();
403 std::string* release_device();
404 void set_allocated_device(std::string* device);
405 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
406 " string fields are deprecated and will be removed in a"
407 " future release.")
408 std::string* unsafe_arena_release_device();
409 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
410 " string fields are deprecated and will be removed in a"
411 " future release.")
412 void unsafe_arena_set_allocated_device(
413 std::string* device);
414
415 // string container = 2;
416 void clear_container();
417 const std::string& container() const;
418 void set_container(const std::string& value);
419 void set_container(std::string&& value);
420 void set_container(const char* value);
421 void set_container(const char* value, size_t size);
422 std::string* mutable_container();
423 std::string* release_container();
424 void set_allocated_container(std::string* container);
425 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
426 " string fields are deprecated and will be removed in a"
427 " future release.")
428 std::string* unsafe_arena_release_container();
429 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
430 " string fields are deprecated and will be removed in a"
431 " future release.")
432 void unsafe_arena_set_allocated_container(
433 std::string* container);
434
435 // string name = 3;
436 void clear_name();
437 const std::string& name() const;
438 void set_name(const std::string& value);
439 void set_name(std::string&& value);
440 void set_name(const char* value);
441 void set_name(const char* value, size_t size);
442 std::string* mutable_name();
443 std::string* release_name();
444 void set_allocated_name(std::string* name);
445 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
446 " string fields are deprecated and will be removed in a"
447 " future release.")
448 std::string* unsafe_arena_release_name();
449 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
450 " string fields are deprecated and will be removed in a"
451 " future release.")
452 void unsafe_arena_set_allocated_name(
453 std::string* name);
454
455 // string maybe_type_name = 5;
456 void clear_maybe_type_name();
457 const std::string& maybe_type_name() const;
458 void set_maybe_type_name(const std::string& value);
459 void set_maybe_type_name(std::string&& value);
460 void set_maybe_type_name(const char* value);
461 void set_maybe_type_name(const char* value, size_t size);
462 std::string* mutable_maybe_type_name();
463 std::string* release_maybe_type_name();
464 void set_allocated_maybe_type_name(std::string* maybe_type_name);
465 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
466 " string fields are deprecated and will be removed in a"
467 " future release.")
468 std::string* unsafe_arena_release_maybe_type_name();
469 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
470 " string fields are deprecated and will be removed in a"
471 " future release.")
472 void unsafe_arena_set_allocated_maybe_type_name(
473 std::string* maybe_type_name);
474
475 // uint64 hash_code = 4;
476 void clear_hash_code();
477 ::PROTOBUF_NAMESPACE_ID::uint64 hash_code() const;
478 void set_hash_code(::PROTOBUF_NAMESPACE_ID::uint64 value);
479
480 // @@protoc_insertion_point(class_scope:tensorflow.ResourceHandleProto)
481 private:
482 class _Internal;
483
484 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
485 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
486 typedef void InternalArenaConstructable_;
487 typedef void DestructorSkippable_;
488 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::ResourceHandleProto_DtypeAndShape > dtypes_and_shapes_;
489 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_;
490 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr container_;
491 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
492 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr maybe_type_name_;
493 ::PROTOBUF_NAMESPACE_ID::uint64 hash_code_;
494 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
495 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto;
496};
497// ===================================================================
498
499
500// ===================================================================
501
502#ifdef __GNUC__
503 #pragma GCC diagnostic push
504 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
505#endif // __GNUC__
506// ResourceHandleProto_DtypeAndShape
507
508// .tensorflow.DataType dtype = 1;
509inline void ResourceHandleProto_DtypeAndShape::clear_dtype() {
510 dtype_ = 0;
511}
512inline ::tensorflow::DataType ResourceHandleProto_DtypeAndShape::dtype() const {
513 // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.DtypeAndShape.dtype)
514 return static_cast< ::tensorflow::DataType >(dtype_);
515}
516inline void ResourceHandleProto_DtypeAndShape::set_dtype(::tensorflow::DataType value) {
517
518 dtype_ = value;
519 // @@protoc_insertion_point(field_set:tensorflow.ResourceHandleProto.DtypeAndShape.dtype)
520}
521
522// .tensorflow.TensorShapeProto shape = 2;
523inline bool ResourceHandleProto_DtypeAndShape::has_shape() const {
524 return this != internal_default_instance() && shape_ != nullptr;
525}
526inline const ::tensorflow::TensorShapeProto& ResourceHandleProto_DtypeAndShape::shape() const {
527 const ::tensorflow::TensorShapeProto* p = shape_;
528 // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.DtypeAndShape.shape)
529 return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::TensorShapeProto*>(
530 &::tensorflow::_TensorShapeProto_default_instance_);
531}
532inline ::tensorflow::TensorShapeProto* ResourceHandleProto_DtypeAndShape::release_shape() {
533 // @@protoc_insertion_point(field_release:tensorflow.ResourceHandleProto.DtypeAndShape.shape)
534
535 ::tensorflow::TensorShapeProto* temp = shape_;
536 if (GetArenaNoVirtual() != nullptr) {
537 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
538 }
539 shape_ = nullptr;
540 return temp;
541}
542inline ::tensorflow::TensorShapeProto* ResourceHandleProto_DtypeAndShape::unsafe_arena_release_shape() {
543 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ResourceHandleProto.DtypeAndShape.shape)
544
545 ::tensorflow::TensorShapeProto* temp = shape_;
546 shape_ = nullptr;
547 return temp;
548}
549inline ::tensorflow::TensorShapeProto* ResourceHandleProto_DtypeAndShape::mutable_shape() {
550
551 if (shape_ == nullptr) {
552 auto* p = CreateMaybeMessage<::tensorflow::TensorShapeProto>(GetArenaNoVirtual());
553 shape_ = p;
554 }
555 // @@protoc_insertion_point(field_mutable:tensorflow.ResourceHandleProto.DtypeAndShape.shape)
556 return shape_;
557}
558inline void ResourceHandleProto_DtypeAndShape::set_allocated_shape(::tensorflow::TensorShapeProto* shape) {
559 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
560 if (message_arena == nullptr) {
561 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(shape_);
562 }
563 if (shape) {
564 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
565 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(shape)->GetArena();
566 if (message_arena != submessage_arena) {
567 shape = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
568 message_arena, shape, submessage_arena);
569 }
570
571 } else {
572
573 }
574 shape_ = shape;
575 // @@protoc_insertion_point(field_set_allocated:tensorflow.ResourceHandleProto.DtypeAndShape.shape)
576}
577
578// -------------------------------------------------------------------
579
580// ResourceHandleProto
581
582// string device = 1;
583inline void ResourceHandleProto::clear_device() {
584 device_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
585}
586inline const std::string& ResourceHandleProto::device() const {
587 // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.device)
588 return device_.Get();
589}
590inline void ResourceHandleProto::set_device(const std::string& value) {
591
592 device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
593 // @@protoc_insertion_point(field_set:tensorflow.ResourceHandleProto.device)
594}
595inline void ResourceHandleProto::set_device(std::string&& value) {
596
597 device_.Set(
598 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
599 // @@protoc_insertion_point(field_set_rvalue:tensorflow.ResourceHandleProto.device)
600}
601inline void ResourceHandleProto::set_device(const char* value) {
602 GOOGLE_DCHECK(value != nullptr);
603
604 device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
605 GetArenaNoVirtual());
606 // @@protoc_insertion_point(field_set_char:tensorflow.ResourceHandleProto.device)
607}
608inline void ResourceHandleProto::set_device(const char* value,
609 size_t size) {
610
611 device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
612 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
613 // @@protoc_insertion_point(field_set_pointer:tensorflow.ResourceHandleProto.device)
614}
615inline std::string* ResourceHandleProto::mutable_device() {
616
617 // @@protoc_insertion_point(field_mutable:tensorflow.ResourceHandleProto.device)
618 return device_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
619}
620inline std::string* ResourceHandleProto::release_device() {
621 // @@protoc_insertion_point(field_release:tensorflow.ResourceHandleProto.device)
622
623 return device_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
624}
625inline void ResourceHandleProto::set_allocated_device(std::string* device) {
626 if (device != nullptr) {
627
628 } else {
629
630 }
631 device_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device,
632 GetArenaNoVirtual());
633 // @@protoc_insertion_point(field_set_allocated:tensorflow.ResourceHandleProto.device)
634}
635inline std::string* ResourceHandleProto::unsafe_arena_release_device() {
636 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ResourceHandleProto.device)
637 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
638
639 return device_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
640 GetArenaNoVirtual());
641}
642inline void ResourceHandleProto::unsafe_arena_set_allocated_device(
643 std::string* device) {
644 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
645 if (device != nullptr) {
646
647 } else {
648
649 }
650 device_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
651 device, GetArenaNoVirtual());
652 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ResourceHandleProto.device)
653}
654
655// string container = 2;
656inline void ResourceHandleProto::clear_container() {
657 container_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
658}
659inline const std::string& ResourceHandleProto::container() const {
660 // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.container)
661 return container_.Get();
662}
663inline void ResourceHandleProto::set_container(const std::string& value) {
664
665 container_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
666 // @@protoc_insertion_point(field_set:tensorflow.ResourceHandleProto.container)
667}
668inline void ResourceHandleProto::set_container(std::string&& value) {
669
670 container_.Set(
671 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
672 // @@protoc_insertion_point(field_set_rvalue:tensorflow.ResourceHandleProto.container)
673}
674inline void ResourceHandleProto::set_container(const char* value) {
675 GOOGLE_DCHECK(value != nullptr);
676
677 container_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
678 GetArenaNoVirtual());
679 // @@protoc_insertion_point(field_set_char:tensorflow.ResourceHandleProto.container)
680}
681inline void ResourceHandleProto::set_container(const char* value,
682 size_t size) {
683
684 container_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
685 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
686 // @@protoc_insertion_point(field_set_pointer:tensorflow.ResourceHandleProto.container)
687}
688inline std::string* ResourceHandleProto::mutable_container() {
689
690 // @@protoc_insertion_point(field_mutable:tensorflow.ResourceHandleProto.container)
691 return container_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
692}
693inline std::string* ResourceHandleProto::release_container() {
694 // @@protoc_insertion_point(field_release:tensorflow.ResourceHandleProto.container)
695
696 return container_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
697}
698inline void ResourceHandleProto::set_allocated_container(std::string* container) {
699 if (container != nullptr) {
700
701 } else {
702
703 }
704 container_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), container,
705 GetArenaNoVirtual());
706 // @@protoc_insertion_point(field_set_allocated:tensorflow.ResourceHandleProto.container)
707}
708inline std::string* ResourceHandleProto::unsafe_arena_release_container() {
709 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ResourceHandleProto.container)
710 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
711
712 return container_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
713 GetArenaNoVirtual());
714}
715inline void ResourceHandleProto::unsafe_arena_set_allocated_container(
716 std::string* container) {
717 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
718 if (container != nullptr) {
719
720 } else {
721
722 }
723 container_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
724 container, GetArenaNoVirtual());
725 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ResourceHandleProto.container)
726}
727
728// string name = 3;
729inline void ResourceHandleProto::clear_name() {
730 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
731}
732inline const std::string& ResourceHandleProto::name() const {
733 // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.name)
734 return name_.Get();
735}
736inline void ResourceHandleProto::set_name(const std::string& value) {
737
738 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
739 // @@protoc_insertion_point(field_set:tensorflow.ResourceHandleProto.name)
740}
741inline void ResourceHandleProto::set_name(std::string&& value) {
742
743 name_.Set(
744 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
745 // @@protoc_insertion_point(field_set_rvalue:tensorflow.ResourceHandleProto.name)
746}
747inline void ResourceHandleProto::set_name(const char* value) {
748 GOOGLE_DCHECK(value != nullptr);
749
750 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
751 GetArenaNoVirtual());
752 // @@protoc_insertion_point(field_set_char:tensorflow.ResourceHandleProto.name)
753}
754inline void ResourceHandleProto::set_name(const char* value,
755 size_t size) {
756
757 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
758 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
759 // @@protoc_insertion_point(field_set_pointer:tensorflow.ResourceHandleProto.name)
760}
761inline std::string* ResourceHandleProto::mutable_name() {
762
763 // @@protoc_insertion_point(field_mutable:tensorflow.ResourceHandleProto.name)
764 return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
765}
766inline std::string* ResourceHandleProto::release_name() {
767 // @@protoc_insertion_point(field_release:tensorflow.ResourceHandleProto.name)
768
769 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
770}
771inline void ResourceHandleProto::set_allocated_name(std::string* name) {
772 if (name != nullptr) {
773
774 } else {
775
776 }
777 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
778 GetArenaNoVirtual());
779 // @@protoc_insertion_point(field_set_allocated:tensorflow.ResourceHandleProto.name)
780}
781inline std::string* ResourceHandleProto::unsafe_arena_release_name() {
782 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ResourceHandleProto.name)
783 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
784
785 return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
786 GetArenaNoVirtual());
787}
788inline void ResourceHandleProto::unsafe_arena_set_allocated_name(
789 std::string* name) {
790 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
791 if (name != nullptr) {
792
793 } else {
794
795 }
796 name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
797 name, GetArenaNoVirtual());
798 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ResourceHandleProto.name)
799}
800
801// uint64 hash_code = 4;
802inline void ResourceHandleProto::clear_hash_code() {
803 hash_code_ = PROTOBUF_ULONGLONG(0);
804}
805inline ::PROTOBUF_NAMESPACE_ID::uint64 ResourceHandleProto::hash_code() const {
806 // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.hash_code)
807 return hash_code_;
808}
809inline void ResourceHandleProto::set_hash_code(::PROTOBUF_NAMESPACE_ID::uint64 value) {
810
811 hash_code_ = value;
812 // @@protoc_insertion_point(field_set:tensorflow.ResourceHandleProto.hash_code)
813}
814
815// string maybe_type_name = 5;
816inline void ResourceHandleProto::clear_maybe_type_name() {
817 maybe_type_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
818}
819inline const std::string& ResourceHandleProto::maybe_type_name() const {
820 // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.maybe_type_name)
821 return maybe_type_name_.Get();
822}
823inline void ResourceHandleProto::set_maybe_type_name(const std::string& value) {
824
825 maybe_type_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
826 // @@protoc_insertion_point(field_set:tensorflow.ResourceHandleProto.maybe_type_name)
827}
828inline void ResourceHandleProto::set_maybe_type_name(std::string&& value) {
829
830 maybe_type_name_.Set(
831 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
832 // @@protoc_insertion_point(field_set_rvalue:tensorflow.ResourceHandleProto.maybe_type_name)
833}
834inline void ResourceHandleProto::set_maybe_type_name(const char* value) {
835 GOOGLE_DCHECK(value != nullptr);
836
837 maybe_type_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
838 GetArenaNoVirtual());
839 // @@protoc_insertion_point(field_set_char:tensorflow.ResourceHandleProto.maybe_type_name)
840}
841inline void ResourceHandleProto::set_maybe_type_name(const char* value,
842 size_t size) {
843
844 maybe_type_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
845 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
846 // @@protoc_insertion_point(field_set_pointer:tensorflow.ResourceHandleProto.maybe_type_name)
847}
848inline std::string* ResourceHandleProto::mutable_maybe_type_name() {
849
850 // @@protoc_insertion_point(field_mutable:tensorflow.ResourceHandleProto.maybe_type_name)
851 return maybe_type_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
852}
853inline std::string* ResourceHandleProto::release_maybe_type_name() {
854 // @@protoc_insertion_point(field_release:tensorflow.ResourceHandleProto.maybe_type_name)
855
856 return maybe_type_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
857}
858inline void ResourceHandleProto::set_allocated_maybe_type_name(std::string* maybe_type_name) {
859 if (maybe_type_name != nullptr) {
860
861 } else {
862
863 }
864 maybe_type_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), maybe_type_name,
865 GetArenaNoVirtual());
866 // @@protoc_insertion_point(field_set_allocated:tensorflow.ResourceHandleProto.maybe_type_name)
867}
868inline std::string* ResourceHandleProto::unsafe_arena_release_maybe_type_name() {
869 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ResourceHandleProto.maybe_type_name)
870 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
871
872 return maybe_type_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
873 GetArenaNoVirtual());
874}
875inline void ResourceHandleProto::unsafe_arena_set_allocated_maybe_type_name(
876 std::string* maybe_type_name) {
877 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
878 if (maybe_type_name != nullptr) {
879
880 } else {
881
882 }
883 maybe_type_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
884 maybe_type_name, GetArenaNoVirtual());
885 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ResourceHandleProto.maybe_type_name)
886}
887
888// repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
889inline int ResourceHandleProto::dtypes_and_shapes_size() const {
890 return dtypes_and_shapes_.size();
891}
892inline void ResourceHandleProto::clear_dtypes_and_shapes() {
893 dtypes_and_shapes_.Clear();
894}
895inline ::tensorflow::ResourceHandleProto_DtypeAndShape* ResourceHandleProto::mutable_dtypes_and_shapes(int index) {
896 // @@protoc_insertion_point(field_mutable:tensorflow.ResourceHandleProto.dtypes_and_shapes)
897 return dtypes_and_shapes_.Mutable(index);
898}
899inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::ResourceHandleProto_DtypeAndShape >*
900ResourceHandleProto::mutable_dtypes_and_shapes() {
901 // @@protoc_insertion_point(field_mutable_list:tensorflow.ResourceHandleProto.dtypes_and_shapes)
902 return &dtypes_and_shapes_;
903}
904inline const ::tensorflow::ResourceHandleProto_DtypeAndShape& ResourceHandleProto::dtypes_and_shapes(int index) const {
905 // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.dtypes_and_shapes)
906 return dtypes_and_shapes_.Get(index);
907}
908inline ::tensorflow::ResourceHandleProto_DtypeAndShape* ResourceHandleProto::add_dtypes_and_shapes() {
909 // @@protoc_insertion_point(field_add:tensorflow.ResourceHandleProto.dtypes_and_shapes)
910 return dtypes_and_shapes_.Add();
911}
912inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::ResourceHandleProto_DtypeAndShape >&
913ResourceHandleProto::dtypes_and_shapes() const {
914 // @@protoc_insertion_point(field_list:tensorflow.ResourceHandleProto.dtypes_and_shapes)
915 return dtypes_and_shapes_;
916}
917
918#ifdef __GNUC__
919 #pragma GCC diagnostic pop
920#endif // __GNUC__
921// -------------------------------------------------------------------
922
923
924// @@protoc_insertion_point(namespace_scope)
925
926} // namespace tensorflow
927
928// @@protoc_insertion_point(global_scope)
929
930#include <google/protobuf/port_undef.inc>
931#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto
932