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 <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/generated_enum_reflection.h> |
35 | #include <google/protobuf/unknown_field_set.h> |
36 | // @@protoc_insertion_point(includes) |
37 | #include <google/protobuf/port_def.inc> |
38 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ffull_5ftype_2eproto |
39 | PROTOBUF_NAMESPACE_OPEN |
40 | namespace internal { |
41 | class AnyMetadata; |
42 | } // namespace internal |
43 | PROTOBUF_NAMESPACE_CLOSE |
44 | |
45 | // Internal implementation detail -- do not use these members. |
46 | struct TableStruct_tensorflow_2fcore_2fframework_2ffull_5ftype_2eproto { |
47 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
48 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
49 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
50 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
51 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] |
52 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
53 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
54 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
55 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
56 | }; |
57 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fframework_2ffull_5ftype_2eproto; |
58 | namespace tensorflow { |
59 | class FullTypeDef; |
60 | class FullTypeDefDefaultTypeInternal; |
61 | extern FullTypeDefDefaultTypeInternal _FullTypeDef_default_instance_; |
62 | } // namespace tensorflow |
63 | PROTOBUF_NAMESPACE_OPEN |
64 | template<> ::tensorflow::FullTypeDef* Arena::CreateMaybeMessage<::tensorflow::FullTypeDef>(Arena*); |
65 | PROTOBUF_NAMESPACE_CLOSE |
66 | namespace tensorflow { |
67 | |
68 | enum FullTypeId : int { |
69 | TFT_UNSET = 0, |
70 | TFT_VAR = 1, |
71 | TFT_ANY = 2, |
72 | TFT_PRODUCT = 3, |
73 | TFT_NAMED = 4, |
74 | TFT_FOR_EACH = 20, |
75 | TFT_CALLABLE = 100, |
76 | TFT_TENSOR = 1000, |
77 | TFT_ARRAY = 1001, |
78 | TFT_OPTIONAL = 1002, |
79 | TFT_LITERAL = 1003, |
80 | TFT_ENCODED = 1004, |
81 | TFT_BOOL = 200, |
82 | TFT_UINT8 = 201, |
83 | TFT_UINT16 = 202, |
84 | TFT_UINT32 = 203, |
85 | TFT_UINT64 = 204, |
86 | TFT_INT8 = 205, |
87 | TFT_INT16 = 206, |
88 | TFT_INT32 = 207, |
89 | TFT_INT64 = 208, |
90 | TFT_HALF = 209, |
91 | TFT_FLOAT = 210, |
92 | TFT_DOUBLE = 211, |
93 | TFT_BFLOAT16 = 215, |
94 | TFT_COMPLEX64 = 212, |
95 | TFT_COMPLEX128 = 213, |
96 | TFT_STRING = 214, |
97 | TFT_DATASET = 10102, |
98 | TFT_RAGGED = 10103, |
99 | TFT_ITERATOR = 10104, |
100 | TFT_MUTEX_LOCK = 10202, |
101 | TFT_LEGACY_VARIANT = 10203, |
102 | FullTypeId_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), |
103 | FullTypeId_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() |
104 | }; |
105 | bool FullTypeId_IsValid(int value); |
106 | constexpr FullTypeId FullTypeId_MIN = TFT_UNSET; |
107 | constexpr FullTypeId FullTypeId_MAX = TFT_LEGACY_VARIANT; |
108 | constexpr int FullTypeId_ARRAYSIZE = FullTypeId_MAX + 1; |
109 | |
110 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FullTypeId_descriptor(); |
111 | template<typename T> |
112 | inline const std::string& FullTypeId_Name(T enum_t_value) { |
113 | static_assert(::std::is_same<T, FullTypeId>::value || |
114 | ::std::is_integral<T>::value, |
115 | "Incorrect type passed to function FullTypeId_Name." ); |
116 | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
117 | FullTypeId_descriptor(), enum_t_value); |
118 | } |
119 | inline bool FullTypeId_Parse( |
120 | const std::string& name, FullTypeId* value) { |
121 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FullTypeId>( |
122 | FullTypeId_descriptor(), name, value); |
123 | } |
124 | // =================================================================== |
125 | |
126 | class FullTypeDef : |
127 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.FullTypeDef) */ { |
128 | public: |
129 | FullTypeDef(); |
130 | virtual ~FullTypeDef(); |
131 | |
132 | FullTypeDef(const FullTypeDef& from); |
133 | FullTypeDef(FullTypeDef&& from) noexcept |
134 | : FullTypeDef() { |
135 | *this = ::std::move(from); |
136 | } |
137 | |
138 | inline FullTypeDef& operator=(const FullTypeDef& from) { |
139 | CopyFrom(from); |
140 | return *this; |
141 | } |
142 | inline FullTypeDef& operator=(FullTypeDef&& from) noexcept { |
143 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
144 | if (this != &from) InternalSwap(&from); |
145 | } else { |
146 | CopyFrom(from); |
147 | } |
148 | return *this; |
149 | } |
150 | |
151 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
152 | return GetArenaNoVirtual(); |
153 | } |
154 | inline void* GetMaybeArenaPointer() const final { |
155 | return MaybeArenaPtr(); |
156 | } |
157 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
158 | return GetDescriptor(); |
159 | } |
160 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
161 | return GetMetadataStatic().descriptor; |
162 | } |
163 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
164 | return GetMetadataStatic().reflection; |
165 | } |
166 | static const FullTypeDef& default_instance(); |
167 | |
168 | enum AttrCase { |
169 | kS = 3, |
170 | kI = 4, |
171 | ATTR_NOT_SET = 0, |
172 | }; |
173 | |
174 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
175 | static inline const FullTypeDef* internal_default_instance() { |
176 | return reinterpret_cast<const FullTypeDef*>( |
177 | &_FullTypeDef_default_instance_); |
178 | } |
179 | static constexpr int kIndexInFileMessages = |
180 | 0; |
181 | |
182 | friend void swap(FullTypeDef& a, FullTypeDef& b) { |
183 | a.Swap(&b); |
184 | } |
185 | inline void Swap(FullTypeDef* other) { |
186 | if (other == this) return; |
187 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
188 | InternalSwap(other); |
189 | } else { |
190 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
191 | } |
192 | } |
193 | void UnsafeArenaSwap(FullTypeDef* other) { |
194 | if (other == this) return; |
195 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
196 | InternalSwap(other); |
197 | } |
198 | |
199 | // implements Message ---------------------------------------------- |
200 | |
201 | inline FullTypeDef* New() const final { |
202 | return CreateMaybeMessage<FullTypeDef>(nullptr); |
203 | } |
204 | |
205 | FullTypeDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
206 | return CreateMaybeMessage<FullTypeDef>(arena); |
207 | } |
208 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
209 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
210 | void CopyFrom(const FullTypeDef& from); |
211 | void MergeFrom(const FullTypeDef& from); |
212 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
213 | bool IsInitialized() const final; |
214 | |
215 | size_t ByteSizeLong() const final; |
216 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
217 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
218 | #else |
219 | bool MergePartialFromCodedStream( |
220 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
221 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
222 | void SerializeWithCachedSizes( |
223 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
224 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
225 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
226 | int GetCachedSize() const final { return _cached_size_.Get(); } |
227 | |
228 | private: |
229 | inline void SharedCtor(); |
230 | inline void SharedDtor(); |
231 | void SetCachedSize(int size) const final; |
232 | void InternalSwap(FullTypeDef* other); |
233 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
234 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
235 | return "tensorflow.FullTypeDef" ; |
236 | } |
237 | protected: |
238 | explicit FullTypeDef(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
239 | private: |
240 | static void ArenaDtor(void* object); |
241 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
242 | private: |
243 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
244 | return _internal_metadata_.arena(); |
245 | } |
246 | inline void* MaybeArenaPtr() const { |
247 | return _internal_metadata_.raw_arena_ptr(); |
248 | } |
249 | public: |
250 | |
251 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
252 | private: |
253 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
254 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2ffull_5ftype_2eproto); |
255 | return ::descriptor_table_tensorflow_2fcore_2fframework_2ffull_5ftype_2eproto.file_level_metadata[kIndexInFileMessages]; |
256 | } |
257 | |
258 | public: |
259 | |
260 | // nested types ---------------------------------------------------- |
261 | |
262 | // accessors ------------------------------------------------------- |
263 | |
264 | enum : int { |
265 | kArgsFieldNumber = 2, |
266 | kTypeIdFieldNumber = 1, |
267 | kSFieldNumber = 3, |
268 | kIFieldNumber = 4, |
269 | }; |
270 | // repeated .tensorflow.FullTypeDef args = 2; |
271 | int args_size() const; |
272 | void clear_args(); |
273 | ::tensorflow::FullTypeDef* mutable_args(int index); |
274 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::FullTypeDef >* |
275 | mutable_args(); |
276 | const ::tensorflow::FullTypeDef& args(int index) const; |
277 | ::tensorflow::FullTypeDef* add_args(); |
278 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::FullTypeDef >& |
279 | args() const; |
280 | |
281 | // .tensorflow.FullTypeId type_id = 1; |
282 | void clear_type_id(); |
283 | ::tensorflow::FullTypeId type_id() const; |
284 | void set_type_id(::tensorflow::FullTypeId value); |
285 | |
286 | // string s = 3; |
287 | private: |
288 | bool has_s() const; |
289 | public: |
290 | void clear_s(); |
291 | const std::string& s() const; |
292 | void set_s(const std::string& value); |
293 | void set_s(std::string&& value); |
294 | void set_s(const char* value); |
295 | void set_s(const char* value, size_t size); |
296 | std::string* mutable_s(); |
297 | std::string* release_s(); |
298 | void set_allocated_s(std::string* s); |
299 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
300 | " string fields are deprecated and will be removed in a" |
301 | " future release." ) |
302 | std::string* unsafe_arena_release_s(); |
303 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
304 | " string fields are deprecated and will be removed in a" |
305 | " future release." ) |
306 | void unsafe_arena_set_allocated_s( |
307 | std::string* s); |
308 | |
309 | // int64 i = 4; |
310 | private: |
311 | bool has_i() const; |
312 | public: |
313 | void clear_i(); |
314 | ::PROTOBUF_NAMESPACE_ID::int64 i() const; |
315 | void set_i(::PROTOBUF_NAMESPACE_ID::int64 value); |
316 | |
317 | void clear_attr(); |
318 | AttrCase attr_case() const; |
319 | // @@protoc_insertion_point(class_scope:tensorflow.FullTypeDef) |
320 | private: |
321 | class _Internal; |
322 | void set_has_s(); |
323 | void set_has_i(); |
324 | |
325 | inline bool has_attr() const; |
326 | inline void clear_has_attr(); |
327 | |
328 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
329 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
330 | typedef void InternalArenaConstructable_; |
331 | typedef void DestructorSkippable_; |
332 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::FullTypeDef > args_; |
333 | int type_id_; |
334 | union AttrUnion { |
335 | AttrUnion() {} |
336 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr s_; |
337 | ::PROTOBUF_NAMESPACE_ID::int64 i_; |
338 | } attr_; |
339 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
340 | ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; |
341 | |
342 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2ffull_5ftype_2eproto; |
343 | }; |
344 | // =================================================================== |
345 | |
346 | |
347 | // =================================================================== |
348 | |
349 | #ifdef __GNUC__ |
350 | #pragma GCC diagnostic push |
351 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
352 | #endif // __GNUC__ |
353 | // FullTypeDef |
354 | |
355 | // .tensorflow.FullTypeId type_id = 1; |
356 | inline void FullTypeDef::clear_type_id() { |
357 | type_id_ = 0; |
358 | } |
359 | inline ::tensorflow::FullTypeId FullTypeDef::type_id() const { |
360 | // @@protoc_insertion_point(field_get:tensorflow.FullTypeDef.type_id) |
361 | return static_cast< ::tensorflow::FullTypeId >(type_id_); |
362 | } |
363 | inline void FullTypeDef::set_type_id(::tensorflow::FullTypeId value) { |
364 | |
365 | type_id_ = value; |
366 | // @@protoc_insertion_point(field_set:tensorflow.FullTypeDef.type_id) |
367 | } |
368 | |
369 | // repeated .tensorflow.FullTypeDef args = 2; |
370 | inline int FullTypeDef::args_size() const { |
371 | return args_.size(); |
372 | } |
373 | inline void FullTypeDef::clear_args() { |
374 | args_.Clear(); |
375 | } |
376 | inline ::tensorflow::FullTypeDef* FullTypeDef::mutable_args(int index) { |
377 | // @@protoc_insertion_point(field_mutable:tensorflow.FullTypeDef.args) |
378 | return args_.Mutable(index); |
379 | } |
380 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::FullTypeDef >* |
381 | FullTypeDef::mutable_args() { |
382 | // @@protoc_insertion_point(field_mutable_list:tensorflow.FullTypeDef.args) |
383 | return &args_; |
384 | } |
385 | inline const ::tensorflow::FullTypeDef& FullTypeDef::args(int index) const { |
386 | // @@protoc_insertion_point(field_get:tensorflow.FullTypeDef.args) |
387 | return args_.Get(index); |
388 | } |
389 | inline ::tensorflow::FullTypeDef* FullTypeDef::add_args() { |
390 | // @@protoc_insertion_point(field_add:tensorflow.FullTypeDef.args) |
391 | return args_.Add(); |
392 | } |
393 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::FullTypeDef >& |
394 | FullTypeDef::args() const { |
395 | // @@protoc_insertion_point(field_list:tensorflow.FullTypeDef.args) |
396 | return args_; |
397 | } |
398 | |
399 | // string s = 3; |
400 | inline bool FullTypeDef::has_s() const { |
401 | return attr_case() == kS; |
402 | } |
403 | inline void FullTypeDef::set_has_s() { |
404 | _oneof_case_[0] = kS; |
405 | } |
406 | inline void FullTypeDef::clear_s() { |
407 | if (has_s()) { |
408 | attr_.s_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
409 | GetArenaNoVirtual()); |
410 | clear_has_attr(); |
411 | } |
412 | } |
413 | inline const std::string& FullTypeDef::s() const { |
414 | // @@protoc_insertion_point(field_get:tensorflow.FullTypeDef.s) |
415 | if (has_s()) { |
416 | return attr_.s_.Get(); |
417 | } |
418 | return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); |
419 | } |
420 | inline void FullTypeDef::set_s(const std::string& value) { |
421 | if (!has_s()) { |
422 | clear_attr(); |
423 | set_has_s(); |
424 | attr_.s_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
425 | } |
426 | attr_.s_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, |
427 | GetArenaNoVirtual()); |
428 | // @@protoc_insertion_point(field_set:tensorflow.FullTypeDef.s) |
429 | } |
430 | inline void FullTypeDef::set_s(std::string&& value) { |
431 | // @@protoc_insertion_point(field_set:tensorflow.FullTypeDef.s) |
432 | if (!has_s()) { |
433 | clear_attr(); |
434 | set_has_s(); |
435 | attr_.s_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
436 | } |
437 | attr_.s_.Set( |
438 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
439 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.FullTypeDef.s) |
440 | } |
441 | inline void FullTypeDef::set_s(const char* value) { |
442 | GOOGLE_DCHECK(value != nullptr); |
443 | if (!has_s()) { |
444 | clear_attr(); |
445 | set_has_s(); |
446 | attr_.s_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
447 | } |
448 | attr_.s_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
449 | ::std::string(value), GetArenaNoVirtual()); |
450 | // @@protoc_insertion_point(field_set_char:tensorflow.FullTypeDef.s) |
451 | } |
452 | inline void FullTypeDef::set_s(const char* value, |
453 | size_t size) { |
454 | if (!has_s()) { |
455 | clear_attr(); |
456 | set_has_s(); |
457 | attr_.s_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
458 | } |
459 | attr_.s_.Set( |
460 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
461 | reinterpret_cast<const char*>(value), size), |
462 | GetArenaNoVirtual()); |
463 | // @@protoc_insertion_point(field_set_pointer:tensorflow.FullTypeDef.s) |
464 | } |
465 | inline std::string* FullTypeDef::mutable_s() { |
466 | if (!has_s()) { |
467 | clear_attr(); |
468 | set_has_s(); |
469 | attr_.s_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
470 | } |
471 | return attr_.s_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
472 | GetArenaNoVirtual()); |
473 | // @@protoc_insertion_point(field_mutable:tensorflow.FullTypeDef.s) |
474 | } |
475 | inline std::string* FullTypeDef::release_s() { |
476 | // @@protoc_insertion_point(field_release:tensorflow.FullTypeDef.s) |
477 | if (has_s()) { |
478 | clear_has_attr(); |
479 | return attr_.s_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
480 | GetArenaNoVirtual()); |
481 | } else { |
482 | return nullptr; |
483 | } |
484 | } |
485 | inline void FullTypeDef::set_allocated_s(std::string* s) { |
486 | if (has_attr()) { |
487 | clear_attr(); |
488 | } |
489 | if (s != nullptr) { |
490 | set_has_s(); |
491 | attr_.s_.UnsafeSetDefault(s); |
492 | } |
493 | // @@protoc_insertion_point(field_set_allocated:tensorflow.FullTypeDef.s) |
494 | } |
495 | inline std::string* FullTypeDef::unsafe_arena_release_s() { |
496 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.FullTypeDef.s) |
497 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
498 | if (has_s()) { |
499 | clear_has_attr(); |
500 | return attr_.s_.UnsafeArenaRelease( |
501 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
502 | } else { |
503 | return nullptr; |
504 | } |
505 | } |
506 | inline void FullTypeDef::unsafe_arena_set_allocated_s(std::string* s) { |
507 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
508 | if (!has_s()) { |
509 | attr_.s_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
510 | } |
511 | clear_attr(); |
512 | if (s) { |
513 | set_has_s(); |
514 | attr_.s_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), s, GetArenaNoVirtual()); |
515 | } |
516 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.FullTypeDef.s) |
517 | } |
518 | |
519 | // int64 i = 4; |
520 | inline bool FullTypeDef::has_i() const { |
521 | return attr_case() == kI; |
522 | } |
523 | inline void FullTypeDef::set_has_i() { |
524 | _oneof_case_[0] = kI; |
525 | } |
526 | inline void FullTypeDef::clear_i() { |
527 | if (has_i()) { |
528 | attr_.i_ = PROTOBUF_LONGLONG(0); |
529 | clear_has_attr(); |
530 | } |
531 | } |
532 | inline ::PROTOBUF_NAMESPACE_ID::int64 FullTypeDef::i() const { |
533 | // @@protoc_insertion_point(field_get:tensorflow.FullTypeDef.i) |
534 | if (has_i()) { |
535 | return attr_.i_; |
536 | } |
537 | return PROTOBUF_LONGLONG(0); |
538 | } |
539 | inline void FullTypeDef::set_i(::PROTOBUF_NAMESPACE_ID::int64 value) { |
540 | if (!has_i()) { |
541 | clear_attr(); |
542 | set_has_i(); |
543 | } |
544 | attr_.i_ = value; |
545 | // @@protoc_insertion_point(field_set:tensorflow.FullTypeDef.i) |
546 | } |
547 | |
548 | inline bool FullTypeDef::has_attr() const { |
549 | return attr_case() != ATTR_NOT_SET; |
550 | } |
551 | inline void FullTypeDef::clear_has_attr() { |
552 | _oneof_case_[0] = ATTR_NOT_SET; |
553 | } |
554 | inline FullTypeDef::AttrCase FullTypeDef::attr_case() const { |
555 | return FullTypeDef::AttrCase(_oneof_case_[0]); |
556 | } |
557 | #ifdef __GNUC__ |
558 | #pragma GCC diagnostic pop |
559 | #endif // __GNUC__ |
560 | |
561 | // @@protoc_insertion_point(namespace_scope) |
562 | |
563 | } // namespace tensorflow |
564 | |
565 | PROTOBUF_NAMESPACE_OPEN |
566 | |
567 | template <> struct is_proto_enum< ::tensorflow::FullTypeId> : ::std::true_type {}; |
568 | template <> |
569 | inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::FullTypeId>() { |
570 | return ::tensorflow::FullTypeId_descriptor(); |
571 | } |
572 | |
573 | PROTOBUF_NAMESPACE_CLOSE |
574 | |
575 | // @@protoc_insertion_point(global_scope) |
576 | |
577 | #include <google/protobuf/port_undef.inc> |
578 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ffull_5ftype_2eproto |
579 | |