1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: tensorflow/core/framework/full_type.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ffull_5ftype_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ffull_5ftype_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 <google/protobuf/generated_enum_util.h>
33 // @@protoc_insertion_point(includes)
34 #include <google/protobuf/port_def.inc>
35 #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ffull_5ftype_2eproto
36 PROTOBUF_NAMESPACE_OPEN
37 namespace internal {
38 class AnyMetadata;
39 } // namespace internal
40 PROTOBUF_NAMESPACE_CLOSE
41
42 // Internal implementation detail -- do not use these members.
43 struct TableStruct_tensorflow_2fcore_2fframework_2ffull_5ftype_2eproto {
44 static const ::uint32_t offsets[];
45 };
46 namespace tensorflow {
47 class FullTypeDef;
48 struct FullTypeDefDefaultTypeInternal;
49 extern FullTypeDefDefaultTypeInternal _FullTypeDef_default_instance_;
50 } // namespace tensorflow
51 PROTOBUF_NAMESPACE_OPEN
52 template<> ::tensorflow::FullTypeDef* Arena::CreateMaybeMessage<::tensorflow::FullTypeDef>(Arena*);
53 PROTOBUF_NAMESPACE_CLOSE
54 namespace tensorflow {
55
56 enum FullTypeId : int {
57 TFT_UNSET = 0,
58 TFT_VAR = 1,
59 TFT_ANY = 2,
60 TFT_PRODUCT = 3,
61 TFT_NAMED = 4,
62 TFT_FOR_EACH = 20,
63 TFT_CALLABLE = 100,
64 TFT_TENSOR = 1000,
65 TFT_ARRAY = 1001,
66 TFT_OPTIONAL = 1002,
67 TFT_LITERAL = 1003,
68 TFT_ENCODED = 1004,
69 TFT_BOOL = 200,
70 TFT_UINT8 = 201,
71 TFT_UINT16 = 202,
72 TFT_UINT32 = 203,
73 TFT_UINT64 = 204,
74 TFT_INT8 = 205,
75 TFT_INT16 = 206,
76 TFT_INT32 = 207,
77 TFT_INT64 = 208,
78 TFT_HALF = 209,
79 TFT_FLOAT = 210,
80 TFT_DOUBLE = 211,
81 TFT_BFLOAT16 = 215,
82 TFT_COMPLEX64 = 212,
83 TFT_COMPLEX128 = 213,
84 TFT_STRING = 214,
85 TFT_DATASET = 10102,
86 TFT_RAGGED = 10103,
87 TFT_ITERATOR = 10104,
88 TFT_MUTEX_LOCK = 10202,
89 TFT_LEGACY_VARIANT = 10203,
90 FullTypeId_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
91 FullTypeId_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
92 };
93 bool FullTypeId_IsValid(int value);
94 constexpr FullTypeId FullTypeId_MIN = TFT_UNSET;
95 constexpr FullTypeId FullTypeId_MAX = TFT_LEGACY_VARIANT;
96 constexpr int FullTypeId_ARRAYSIZE = FullTypeId_MAX + 1;
97
98 const std::string& FullTypeId_Name(FullTypeId value);
99 template<typename T>
FullTypeId_Name(T enum_t_value)100 inline const std::string& FullTypeId_Name(T enum_t_value) {
101 static_assert(::std::is_same<T, FullTypeId>::value ||
102 ::std::is_integral<T>::value,
103 "Incorrect type passed to function FullTypeId_Name.");
104 return FullTypeId_Name(static_cast<FullTypeId>(enum_t_value));
105 }
106 bool FullTypeId_Parse(
107 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FullTypeId* value);
108 // ===================================================================
109
110 class FullTypeDef final :
111 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.FullTypeDef) */ {
112 public:
FullTypeDef()113 inline FullTypeDef() : FullTypeDef(nullptr) {}
114 ~FullTypeDef() override;
115 explicit PROTOBUF_CONSTEXPR FullTypeDef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
116
117 FullTypeDef(const FullTypeDef& from);
FullTypeDef(FullTypeDef && from)118 FullTypeDef(FullTypeDef&& from) noexcept
119 : FullTypeDef() {
120 *this = ::std::move(from);
121 }
122
123 inline FullTypeDef& operator=(const FullTypeDef& from) {
124 if (this == &from) return *this;
125 CopyFrom(from);
126 return *this;
127 }
128 inline FullTypeDef& operator=(FullTypeDef&& from) noexcept {
129 if (this == &from) return *this;
130 if (GetOwningArena() == from.GetOwningArena()
131 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
132 && GetOwningArena() != nullptr
133 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
134 ) {
135 InternalSwap(&from);
136 } else {
137 CopyFrom(from);
138 }
139 return *this;
140 }
141
default_instance()142 static const FullTypeDef& default_instance() {
143 return *internal_default_instance();
144 }
145 enum AttrCase {
146 kS = 3,
147 kI = 4,
148 ATTR_NOT_SET = 0,
149 };
150
internal_default_instance()151 static inline const FullTypeDef* internal_default_instance() {
152 return reinterpret_cast<const FullTypeDef*>(
153 &_FullTypeDef_default_instance_);
154 }
155 static constexpr int kIndexInFileMessages =
156 0;
157
swap(FullTypeDef & a,FullTypeDef & b)158 friend void swap(FullTypeDef& a, FullTypeDef& b) {
159 a.Swap(&b);
160 }
Swap(FullTypeDef * other)161 inline void Swap(FullTypeDef* other) {
162 if (other == this) return;
163 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
164 if (GetOwningArena() != nullptr &&
165 GetOwningArena() == other->GetOwningArena()) {
166 #else // PROTOBUF_FORCE_COPY_IN_SWAP
167 if (GetOwningArena() == other->GetOwningArena()) {
168 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
169 InternalSwap(other);
170 } else {
171 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
172 }
173 }
174 void UnsafeArenaSwap(FullTypeDef* other) {
175 if (other == this) return;
176 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
177 InternalSwap(other);
178 }
179
180 // implements Message ----------------------------------------------
181
182 FullTypeDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
183 return CreateMaybeMessage<FullTypeDef>(arena);
184 }
185 FullTypeDef* New() const {
186 return New(nullptr);
187 }
188 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
189 void CopyFrom(const FullTypeDef& from);
190 void MergeFrom(const FullTypeDef& from);
191 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
192 bool IsInitialized() const final;
193
194 size_t ByteSizeLong() const final;
195 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
196 ::uint8_t* _InternalSerialize(
197 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
198 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
199
200 private:
201 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
202 void SharedDtor();
203 void SetCachedSize(int size) const;
204 void InternalSwap(FullTypeDef* other);
205
206 private:
207 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
208 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
209 return "tensorflow.FullTypeDef";
210 }
211 protected:
212 explicit FullTypeDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
213 bool is_message_owned = false);
214 public:
215
216 std::string GetTypeName() const final;
217
218 // nested types ----------------------------------------------------
219
220 // accessors -------------------------------------------------------
221
222 enum : int {
223 kArgsFieldNumber = 2,
224 kTypeIdFieldNumber = 1,
225 kSFieldNumber = 3,
226 kIFieldNumber = 4,
227 };
228 // repeated .tensorflow.FullTypeDef args = 2;
229 int args_size() const;
230 private:
231 int _internal_args_size() const;
232 public:
233 void clear_args();
234 ::tensorflow::FullTypeDef* mutable_args(int index);
235 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::FullTypeDef >*
236 mutable_args();
237 private:
238 const ::tensorflow::FullTypeDef& _internal_args(int index) const;
239 ::tensorflow::FullTypeDef* _internal_add_args();
240 public:
241 const ::tensorflow::FullTypeDef& args(int index) const;
242 ::tensorflow::FullTypeDef* add_args();
243 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::FullTypeDef >&
244 args() const;
245
246 // .tensorflow.FullTypeId type_id = 1;
247 void clear_type_id();
248 ::tensorflow::FullTypeId type_id() const;
249 void set_type_id(::tensorflow::FullTypeId value);
250 private:
251 ::tensorflow::FullTypeId _internal_type_id() const;
252 void _internal_set_type_id(::tensorflow::FullTypeId value);
253 public:
254
255 // string s = 3;
256 bool has_s() const;
257 private:
258 bool _internal_has_s() const;
259 public:
260 void clear_s();
261 const std::string& s() const;
262 template <typename ArgT0 = const std::string&, typename... ArgT>
263 void set_s(ArgT0&& arg0, ArgT... args);
264 std::string* mutable_s();
265 PROTOBUF_NODISCARD std::string* release_s();
266 void set_allocated_s(std::string* s);
267 private:
268 const std::string& _internal_s() const;
269 inline PROTOBUF_ALWAYS_INLINE void _internal_set_s(const std::string& value);
270 std::string* _internal_mutable_s();
271 public:
272
273 // int64 i = 4;
274 bool has_i() const;
275 private:
276 bool _internal_has_i() const;
277 public:
278 void clear_i();
279 ::int64_t i() const;
280 void set_i(::int64_t value);
281 private:
282 ::int64_t _internal_i() const;
283 void _internal_set_i(::int64_t value);
284 public:
285
286 void clear_attr();
287 AttrCase attr_case() const;
288 // @@protoc_insertion_point(class_scope:tensorflow.FullTypeDef)
289 private:
290 class _Internal;
291 void set_has_s();
292 void set_has_i();
293
294 inline bool has_attr() const;
295 inline void clear_has_attr();
296
297 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
298 typedef void InternalArenaConstructable_;
299 typedef void DestructorSkippable_;
300 struct Impl_ {
301 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::FullTypeDef > args_;
302 int type_id_;
303 union AttrUnion {
304 constexpr AttrUnion() : _constinit_{} {}
305 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
306 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr s_;
307 ::int64_t i_;
308 } attr_;
309 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
310 ::uint32_t _oneof_case_[1];
311
312 };
313 union { Impl_ _impl_; };
314 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2ffull_5ftype_2eproto;
315 };
316 // ===================================================================
317
318
319 // ===================================================================
320
321 #ifdef __GNUC__
322 #pragma GCC diagnostic push
323 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
324 #endif // __GNUC__
325 // FullTypeDef
326
327 // .tensorflow.FullTypeId type_id = 1;
clear_type_id()328 inline void FullTypeDef::clear_type_id() {
329 _impl_.type_id_ = 0;
330 }
_internal_type_id()331 inline ::tensorflow::FullTypeId FullTypeDef::_internal_type_id() const {
332 return static_cast< ::tensorflow::FullTypeId >(_impl_.type_id_);
333 }
type_id()334 inline ::tensorflow::FullTypeId FullTypeDef::type_id() const {
335 // @@protoc_insertion_point(field_get:tensorflow.FullTypeDef.type_id)
336 return _internal_type_id();
337 }
_internal_set_type_id(::tensorflow::FullTypeId value)338 inline void FullTypeDef::_internal_set_type_id(::tensorflow::FullTypeId value) {
339
340 _impl_.type_id_ = value;
341 }
set_type_id(::tensorflow::FullTypeId value)342 inline void FullTypeDef::set_type_id(::tensorflow::FullTypeId value) {
343 _internal_set_type_id(value);
344 // @@protoc_insertion_point(field_set:tensorflow.FullTypeDef.type_id)
345 }
346
347 // repeated .tensorflow.FullTypeDef args = 2;
_internal_args_size()348 inline int FullTypeDef::_internal_args_size() const {
349 return _impl_.args_.size();
350 }
args_size()351 inline int FullTypeDef::args_size() const {
352 return _internal_args_size();
353 }
clear_args()354 inline void FullTypeDef::clear_args() {
355 _impl_.args_.Clear();
356 }
mutable_args(int index)357 inline ::tensorflow::FullTypeDef* FullTypeDef::mutable_args(int index) {
358 // @@protoc_insertion_point(field_mutable:tensorflow.FullTypeDef.args)
359 return _impl_.args_.Mutable(index);
360 }
361 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::FullTypeDef >*
mutable_args()362 FullTypeDef::mutable_args() {
363 // @@protoc_insertion_point(field_mutable_list:tensorflow.FullTypeDef.args)
364 return &_impl_.args_;
365 }
_internal_args(int index)366 inline const ::tensorflow::FullTypeDef& FullTypeDef::_internal_args(int index) const {
367 return _impl_.args_.Get(index);
368 }
args(int index)369 inline const ::tensorflow::FullTypeDef& FullTypeDef::args(int index) const {
370 // @@protoc_insertion_point(field_get:tensorflow.FullTypeDef.args)
371 return _internal_args(index);
372 }
_internal_add_args()373 inline ::tensorflow::FullTypeDef* FullTypeDef::_internal_add_args() {
374 return _impl_.args_.Add();
375 }
add_args()376 inline ::tensorflow::FullTypeDef* FullTypeDef::add_args() {
377 ::tensorflow::FullTypeDef* _add = _internal_add_args();
378 // @@protoc_insertion_point(field_add:tensorflow.FullTypeDef.args)
379 return _add;
380 }
381 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::FullTypeDef >&
args()382 FullTypeDef::args() const {
383 // @@protoc_insertion_point(field_list:tensorflow.FullTypeDef.args)
384 return _impl_.args_;
385 }
386
387 // string s = 3;
_internal_has_s()388 inline bool FullTypeDef::_internal_has_s() const {
389 return attr_case() == kS;
390 }
has_s()391 inline bool FullTypeDef::has_s() const {
392 return _internal_has_s();
393 }
set_has_s()394 inline void FullTypeDef::set_has_s() {
395 _impl_._oneof_case_[0] = kS;
396 }
clear_s()397 inline void FullTypeDef::clear_s() {
398 if (_internal_has_s()) {
399 _impl_.attr_.s_.Destroy();
400 clear_has_attr();
401 }
402 }
s()403 inline const std::string& FullTypeDef::s() const {
404 // @@protoc_insertion_point(field_get:tensorflow.FullTypeDef.s)
405 return _internal_s();
406 }
407 template <typename ArgT0, typename... ArgT>
set_s(ArgT0 && arg0,ArgT...args)408 inline void FullTypeDef::set_s(ArgT0&& arg0, ArgT... args) {
409 if (!_internal_has_s()) {
410 clear_attr();
411 set_has_s();
412 _impl_.attr_.s_.InitDefault();
413 }
414 _impl_.attr_.s_.Set( static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
415 // @@protoc_insertion_point(field_set:tensorflow.FullTypeDef.s)
416 }
mutable_s()417 inline std::string* FullTypeDef::mutable_s() {
418 std::string* _s = _internal_mutable_s();
419 // @@protoc_insertion_point(field_mutable:tensorflow.FullTypeDef.s)
420 return _s;
421 }
_internal_s()422 inline const std::string& FullTypeDef::_internal_s() const {
423 if (_internal_has_s()) {
424 return _impl_.attr_.s_.Get();
425 }
426 return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
427 }
_internal_set_s(const std::string & value)428 inline void FullTypeDef::_internal_set_s(const std::string& value) {
429 if (!_internal_has_s()) {
430 clear_attr();
431 set_has_s();
432 _impl_.attr_.s_.InitDefault();
433 }
434 _impl_.attr_.s_.Set(value, GetArenaForAllocation());
435 }
_internal_mutable_s()436 inline std::string* FullTypeDef::_internal_mutable_s() {
437 if (!_internal_has_s()) {
438 clear_attr();
439 set_has_s();
440 _impl_.attr_.s_.InitDefault();
441 }
442 return _impl_.attr_.s_.Mutable( GetArenaForAllocation());
443 }
release_s()444 inline std::string* FullTypeDef::release_s() {
445 // @@protoc_insertion_point(field_release:tensorflow.FullTypeDef.s)
446 if (_internal_has_s()) {
447 clear_has_attr();
448 return _impl_.attr_.s_.Release();
449 } else {
450 return nullptr;
451 }
452 }
set_allocated_s(std::string * s)453 inline void FullTypeDef::set_allocated_s(std::string* s) {
454 if (has_attr()) {
455 clear_attr();
456 }
457 if (s != nullptr) {
458 set_has_s();
459 _impl_.attr_.s_.InitAllocated(s, GetArenaForAllocation());
460 }
461 // @@protoc_insertion_point(field_set_allocated:tensorflow.FullTypeDef.s)
462 }
463
464 // int64 i = 4;
_internal_has_i()465 inline bool FullTypeDef::_internal_has_i() const {
466 return attr_case() == kI;
467 }
has_i()468 inline bool FullTypeDef::has_i() const {
469 return _internal_has_i();
470 }
set_has_i()471 inline void FullTypeDef::set_has_i() {
472 _impl_._oneof_case_[0] = kI;
473 }
clear_i()474 inline void FullTypeDef::clear_i() {
475 if (_internal_has_i()) {
476 _impl_.attr_.i_ = ::int64_t{0};
477 clear_has_attr();
478 }
479 }
_internal_i()480 inline ::int64_t FullTypeDef::_internal_i() const {
481 if (_internal_has_i()) {
482 return _impl_.attr_.i_;
483 }
484 return ::int64_t{0};
485 }
_internal_set_i(::int64_t value)486 inline void FullTypeDef::_internal_set_i(::int64_t value) {
487 if (!_internal_has_i()) {
488 clear_attr();
489 set_has_i();
490 }
491 _impl_.attr_.i_ = value;
492 }
i()493 inline ::int64_t FullTypeDef::i() const {
494 // @@protoc_insertion_point(field_get:tensorflow.FullTypeDef.i)
495 return _internal_i();
496 }
set_i(::int64_t value)497 inline void FullTypeDef::set_i(::int64_t value) {
498 _internal_set_i(value);
499 // @@protoc_insertion_point(field_set:tensorflow.FullTypeDef.i)
500 }
501
has_attr()502 inline bool FullTypeDef::has_attr() const {
503 return attr_case() != ATTR_NOT_SET;
504 }
clear_has_attr()505 inline void FullTypeDef::clear_has_attr() {
506 _impl_._oneof_case_[0] = ATTR_NOT_SET;
507 }
attr_case()508 inline FullTypeDef::AttrCase FullTypeDef::attr_case() const {
509 return FullTypeDef::AttrCase(_impl_._oneof_case_[0]);
510 }
511 #ifdef __GNUC__
512 #pragma GCC diagnostic pop
513 #endif // __GNUC__
514
515 // @@protoc_insertion_point(namespace_scope)
516
517 } // namespace tensorflow
518
519 PROTOBUF_NAMESPACE_OPEN
520
521 template <> struct is_proto_enum< ::tensorflow::FullTypeId> : ::std::true_type {};
522
523 PROTOBUF_NAMESPACE_CLOSE
524
525 // @@protoc_insertion_point(global_scope)
526
527 #include <google/protobuf/port_undef.inc>
528 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ffull_5ftype_2eproto
529