1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: tensorflow/core/example/example.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2fexample_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2fexample_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/example/feature.pb.h"
33 // @@protoc_insertion_point(includes)
34 #include <google/protobuf/port_def.inc>
35 #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fexample_2fexample_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_2fexample_2fexample_2eproto {
44 static const ::uint32_t offsets[];
45 };
46 namespace tensorflow {
47 class Example;
48 struct ExampleDefaultTypeInternal;
49 extern ExampleDefaultTypeInternal _Example_default_instance_;
50 class SequenceExample;
51 struct SequenceExampleDefaultTypeInternal;
52 extern SequenceExampleDefaultTypeInternal _SequenceExample_default_instance_;
53 } // namespace tensorflow
54 PROTOBUF_NAMESPACE_OPEN
55 template<> ::tensorflow::Example* Arena::CreateMaybeMessage<::tensorflow::Example>(Arena*);
56 template<> ::tensorflow::SequenceExample* Arena::CreateMaybeMessage<::tensorflow::SequenceExample>(Arena*);
57 PROTOBUF_NAMESPACE_CLOSE
58 namespace tensorflow {
59
60 // ===================================================================
61
62 class Example final :
63 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.Example) */ {
64 public:
Example()65 inline Example() : Example(nullptr) {}
66 ~Example() override;
67 explicit PROTOBUF_CONSTEXPR Example(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
68
69 Example(const Example& from);
Example(Example && from)70 Example(Example&& from) noexcept
71 : Example() {
72 *this = ::std::move(from);
73 }
74
75 inline Example& operator=(const Example& from) {
76 if (this == &from) return *this;
77 CopyFrom(from);
78 return *this;
79 }
80 inline Example& operator=(Example&& from) noexcept {
81 if (this == &from) return *this;
82 if (GetOwningArena() == from.GetOwningArena()
83 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
84 && GetOwningArena() != nullptr
85 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
86 ) {
87 InternalSwap(&from);
88 } else {
89 CopyFrom(from);
90 }
91 return *this;
92 }
93
default_instance()94 static const Example& default_instance() {
95 return *internal_default_instance();
96 }
internal_default_instance()97 static inline const Example* internal_default_instance() {
98 return reinterpret_cast<const Example*>(
99 &_Example_default_instance_);
100 }
101 static constexpr int kIndexInFileMessages =
102 0;
103
swap(Example & a,Example & b)104 friend void swap(Example& a, Example& b) {
105 a.Swap(&b);
106 }
Swap(Example * other)107 inline void Swap(Example* other) {
108 if (other == this) return;
109 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
110 if (GetOwningArena() != nullptr &&
111 GetOwningArena() == other->GetOwningArena()) {
112 #else // PROTOBUF_FORCE_COPY_IN_SWAP
113 if (GetOwningArena() == other->GetOwningArena()) {
114 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
115 InternalSwap(other);
116 } else {
117 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
118 }
119 }
120 void UnsafeArenaSwap(Example* other) {
121 if (other == this) return;
122 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
123 InternalSwap(other);
124 }
125
126 // implements Message ----------------------------------------------
127
128 Example* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
129 return CreateMaybeMessage<Example>(arena);
130 }
131 Example* New() const {
132 return New(nullptr);
133 }
134 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
135 void CopyFrom(const Example& from);
136 void MergeFrom(const Example& from);
137 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
138 bool IsInitialized() const final;
139
140 size_t ByteSizeLong() const final;
141 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
142 ::uint8_t* _InternalSerialize(
143 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
144 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
145
146 private:
147 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
148 void SharedDtor();
149 void SetCachedSize(int size) const;
150 void InternalSwap(Example* other);
151
152 private:
153 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
154 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
155 return "tensorflow.Example";
156 }
157 protected:
158 explicit Example(::PROTOBUF_NAMESPACE_ID::Arena* arena,
159 bool is_message_owned = false);
160 public:
161
162 std::string GetTypeName() const final;
163
164 // nested types ----------------------------------------------------
165
166 // accessors -------------------------------------------------------
167
168 enum : int {
169 kFeaturesFieldNumber = 1,
170 };
171 // .tensorflow.Features features = 1;
172 bool has_features() const;
173 private:
174 bool _internal_has_features() const;
175 public:
176 void clear_features();
177 const ::tensorflow::Features& features() const;
178 PROTOBUF_NODISCARD ::tensorflow::Features* release_features();
179 ::tensorflow::Features* mutable_features();
180 void set_allocated_features(::tensorflow::Features* features);
181 private:
182 const ::tensorflow::Features& _internal_features() const;
183 ::tensorflow::Features* _internal_mutable_features();
184 public:
185 void unsafe_arena_set_allocated_features(
186 ::tensorflow::Features* features);
187 ::tensorflow::Features* unsafe_arena_release_features();
188
189 // @@protoc_insertion_point(class_scope:tensorflow.Example)
190 private:
191 class _Internal;
192
193 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
194 typedef void InternalArenaConstructable_;
195 typedef void DestructorSkippable_;
196 struct Impl_ {
197 ::tensorflow::Features* features_;
198 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
199 };
200 union { Impl_ _impl_; };
201 friend struct ::TableStruct_tensorflow_2fcore_2fexample_2fexample_2eproto;
202 };
203 // -------------------------------------------------------------------
204
205 class SequenceExample final :
206 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.SequenceExample) */ {
207 public:
SequenceExample()208 inline SequenceExample() : SequenceExample(nullptr) {}
209 ~SequenceExample() override;
210 explicit PROTOBUF_CONSTEXPR SequenceExample(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
211
212 SequenceExample(const SequenceExample& from);
SequenceExample(SequenceExample && from)213 SequenceExample(SequenceExample&& from) noexcept
214 : SequenceExample() {
215 *this = ::std::move(from);
216 }
217
218 inline SequenceExample& operator=(const SequenceExample& from) {
219 if (this == &from) return *this;
220 CopyFrom(from);
221 return *this;
222 }
223 inline SequenceExample& operator=(SequenceExample&& from) noexcept {
224 if (this == &from) return *this;
225 if (GetOwningArena() == from.GetOwningArena()
226 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
227 && GetOwningArena() != nullptr
228 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
229 ) {
230 InternalSwap(&from);
231 } else {
232 CopyFrom(from);
233 }
234 return *this;
235 }
236
default_instance()237 static const SequenceExample& default_instance() {
238 return *internal_default_instance();
239 }
internal_default_instance()240 static inline const SequenceExample* internal_default_instance() {
241 return reinterpret_cast<const SequenceExample*>(
242 &_SequenceExample_default_instance_);
243 }
244 static constexpr int kIndexInFileMessages =
245 1;
246
swap(SequenceExample & a,SequenceExample & b)247 friend void swap(SequenceExample& a, SequenceExample& b) {
248 a.Swap(&b);
249 }
Swap(SequenceExample * other)250 inline void Swap(SequenceExample* other) {
251 if (other == this) return;
252 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
253 if (GetOwningArena() != nullptr &&
254 GetOwningArena() == other->GetOwningArena()) {
255 #else // PROTOBUF_FORCE_COPY_IN_SWAP
256 if (GetOwningArena() == other->GetOwningArena()) {
257 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
258 InternalSwap(other);
259 } else {
260 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
261 }
262 }
263 void UnsafeArenaSwap(SequenceExample* other) {
264 if (other == this) return;
265 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
266 InternalSwap(other);
267 }
268
269 // implements Message ----------------------------------------------
270
271 SequenceExample* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
272 return CreateMaybeMessage<SequenceExample>(arena);
273 }
274 SequenceExample* New() const {
275 return New(nullptr);
276 }
277 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
278 void CopyFrom(const SequenceExample& from);
279 void MergeFrom(const SequenceExample& from);
280 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
281 bool IsInitialized() const final;
282
283 size_t ByteSizeLong() const final;
284 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
285 ::uint8_t* _InternalSerialize(
286 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
287 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
288
289 private:
290 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
291 void SharedDtor();
292 void SetCachedSize(int size) const;
293 void InternalSwap(SequenceExample* other);
294
295 private:
296 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
297 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
298 return "tensorflow.SequenceExample";
299 }
300 protected:
301 explicit SequenceExample(::PROTOBUF_NAMESPACE_ID::Arena* arena,
302 bool is_message_owned = false);
303 public:
304
305 std::string GetTypeName() const final;
306
307 // nested types ----------------------------------------------------
308
309 // accessors -------------------------------------------------------
310
311 enum : int {
312 kContextFieldNumber = 1,
313 kFeatureListsFieldNumber = 2,
314 };
315 // .tensorflow.Features context = 1;
316 bool has_context() const;
317 private:
318 bool _internal_has_context() const;
319 public:
320 void clear_context();
321 const ::tensorflow::Features& context() const;
322 PROTOBUF_NODISCARD ::tensorflow::Features* release_context();
323 ::tensorflow::Features* mutable_context();
324 void set_allocated_context(::tensorflow::Features* context);
325 private:
326 const ::tensorflow::Features& _internal_context() const;
327 ::tensorflow::Features* _internal_mutable_context();
328 public:
329 void unsafe_arena_set_allocated_context(
330 ::tensorflow::Features* context);
331 ::tensorflow::Features* unsafe_arena_release_context();
332
333 // .tensorflow.FeatureLists feature_lists = 2;
334 bool has_feature_lists() const;
335 private:
336 bool _internal_has_feature_lists() const;
337 public:
338 void clear_feature_lists();
339 const ::tensorflow::FeatureLists& feature_lists() const;
340 PROTOBUF_NODISCARD ::tensorflow::FeatureLists* release_feature_lists();
341 ::tensorflow::FeatureLists* mutable_feature_lists();
342 void set_allocated_feature_lists(::tensorflow::FeatureLists* feature_lists);
343 private:
344 const ::tensorflow::FeatureLists& _internal_feature_lists() const;
345 ::tensorflow::FeatureLists* _internal_mutable_feature_lists();
346 public:
347 void unsafe_arena_set_allocated_feature_lists(
348 ::tensorflow::FeatureLists* feature_lists);
349 ::tensorflow::FeatureLists* unsafe_arena_release_feature_lists();
350
351 // @@protoc_insertion_point(class_scope:tensorflow.SequenceExample)
352 private:
353 class _Internal;
354
355 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
356 typedef void InternalArenaConstructable_;
357 typedef void DestructorSkippable_;
358 struct Impl_ {
359 ::tensorflow::Features* context_;
360 ::tensorflow::FeatureLists* feature_lists_;
361 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
362 };
363 union { Impl_ _impl_; };
364 friend struct ::TableStruct_tensorflow_2fcore_2fexample_2fexample_2eproto;
365 };
366 // ===================================================================
367
368
369 // ===================================================================
370
371 #ifdef __GNUC__
372 #pragma GCC diagnostic push
373 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
374 #endif // __GNUC__
375 // Example
376
377 // .tensorflow.Features features = 1;
_internal_has_features()378 inline bool Example::_internal_has_features() const {
379 return this != internal_default_instance() && _impl_.features_ != nullptr;
380 }
has_features()381 inline bool Example::has_features() const {
382 return _internal_has_features();
383 }
_internal_features()384 inline const ::tensorflow::Features& Example::_internal_features() const {
385 const ::tensorflow::Features* p = _impl_.features_;
386 return p != nullptr ? *p : reinterpret_cast<const ::tensorflow::Features&>(
387 ::tensorflow::_Features_default_instance_);
388 }
features()389 inline const ::tensorflow::Features& Example::features() const {
390 // @@protoc_insertion_point(field_get:tensorflow.Example.features)
391 return _internal_features();
392 }
unsafe_arena_set_allocated_features(::tensorflow::Features * features)393 inline void Example::unsafe_arena_set_allocated_features(
394 ::tensorflow::Features* features) {
395 if (GetArenaForAllocation() == nullptr) {
396 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.features_);
397 }
398 _impl_.features_ = features;
399 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Example.features)
400 }
release_features()401 inline ::tensorflow::Features* Example::release_features() {
402
403 ::tensorflow::Features* temp = _impl_.features_;
404 _impl_.features_ = nullptr;
405 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
406 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
407 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
408 if (GetArenaForAllocation() == nullptr) { delete old; }
409 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
410 if (GetArenaForAllocation() != nullptr) {
411 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
412 }
413 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
414 return temp;
415 }
unsafe_arena_release_features()416 inline ::tensorflow::Features* Example::unsafe_arena_release_features() {
417 // @@protoc_insertion_point(field_release:tensorflow.Example.features)
418
419 ::tensorflow::Features* temp = _impl_.features_;
420 _impl_.features_ = nullptr;
421 return temp;
422 }
_internal_mutable_features()423 inline ::tensorflow::Features* Example::_internal_mutable_features() {
424
425 if (_impl_.features_ == nullptr) {
426 auto* p = CreateMaybeMessage<::tensorflow::Features>(GetArenaForAllocation());
427 _impl_.features_ = p;
428 }
429 return _impl_.features_;
430 }
mutable_features()431 inline ::tensorflow::Features* Example::mutable_features() {
432 ::tensorflow::Features* _msg = _internal_mutable_features();
433 // @@protoc_insertion_point(field_mutable:tensorflow.Example.features)
434 return _msg;
435 }
set_allocated_features(::tensorflow::Features * features)436 inline void Example::set_allocated_features(::tensorflow::Features* features) {
437 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
438 if (message_arena == nullptr) {
439 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.features_);
440 }
441 if (features) {
442 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
443 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
444 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(features));
445 if (message_arena != submessage_arena) {
446 features = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
447 message_arena, features, submessage_arena);
448 }
449
450 } else {
451
452 }
453 _impl_.features_ = features;
454 // @@protoc_insertion_point(field_set_allocated:tensorflow.Example.features)
455 }
456
457 // -------------------------------------------------------------------
458
459 // SequenceExample
460
461 // .tensorflow.Features context = 1;
_internal_has_context()462 inline bool SequenceExample::_internal_has_context() const {
463 return this != internal_default_instance() && _impl_.context_ != nullptr;
464 }
has_context()465 inline bool SequenceExample::has_context() const {
466 return _internal_has_context();
467 }
_internal_context()468 inline const ::tensorflow::Features& SequenceExample::_internal_context() const {
469 const ::tensorflow::Features* p = _impl_.context_;
470 return p != nullptr ? *p : reinterpret_cast<const ::tensorflow::Features&>(
471 ::tensorflow::_Features_default_instance_);
472 }
context()473 inline const ::tensorflow::Features& SequenceExample::context() const {
474 // @@protoc_insertion_point(field_get:tensorflow.SequenceExample.context)
475 return _internal_context();
476 }
unsafe_arena_set_allocated_context(::tensorflow::Features * context)477 inline void SequenceExample::unsafe_arena_set_allocated_context(
478 ::tensorflow::Features* context) {
479 if (GetArenaForAllocation() == nullptr) {
480 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.context_);
481 }
482 _impl_.context_ = context;
483 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SequenceExample.context)
484 }
release_context()485 inline ::tensorflow::Features* SequenceExample::release_context() {
486
487 ::tensorflow::Features* temp = _impl_.context_;
488 _impl_.context_ = nullptr;
489 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
490 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
491 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
492 if (GetArenaForAllocation() == nullptr) { delete old; }
493 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
494 if (GetArenaForAllocation() != nullptr) {
495 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
496 }
497 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
498 return temp;
499 }
unsafe_arena_release_context()500 inline ::tensorflow::Features* SequenceExample::unsafe_arena_release_context() {
501 // @@protoc_insertion_point(field_release:tensorflow.SequenceExample.context)
502
503 ::tensorflow::Features* temp = _impl_.context_;
504 _impl_.context_ = nullptr;
505 return temp;
506 }
_internal_mutable_context()507 inline ::tensorflow::Features* SequenceExample::_internal_mutable_context() {
508
509 if (_impl_.context_ == nullptr) {
510 auto* p = CreateMaybeMessage<::tensorflow::Features>(GetArenaForAllocation());
511 _impl_.context_ = p;
512 }
513 return _impl_.context_;
514 }
mutable_context()515 inline ::tensorflow::Features* SequenceExample::mutable_context() {
516 ::tensorflow::Features* _msg = _internal_mutable_context();
517 // @@protoc_insertion_point(field_mutable:tensorflow.SequenceExample.context)
518 return _msg;
519 }
set_allocated_context(::tensorflow::Features * context)520 inline void SequenceExample::set_allocated_context(::tensorflow::Features* context) {
521 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
522 if (message_arena == nullptr) {
523 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.context_);
524 }
525 if (context) {
526 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
527 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
528 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(context));
529 if (message_arena != submessage_arena) {
530 context = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
531 message_arena, context, submessage_arena);
532 }
533
534 } else {
535
536 }
537 _impl_.context_ = context;
538 // @@protoc_insertion_point(field_set_allocated:tensorflow.SequenceExample.context)
539 }
540
541 // .tensorflow.FeatureLists feature_lists = 2;
_internal_has_feature_lists()542 inline bool SequenceExample::_internal_has_feature_lists() const {
543 return this != internal_default_instance() && _impl_.feature_lists_ != nullptr;
544 }
has_feature_lists()545 inline bool SequenceExample::has_feature_lists() const {
546 return _internal_has_feature_lists();
547 }
_internal_feature_lists()548 inline const ::tensorflow::FeatureLists& SequenceExample::_internal_feature_lists() const {
549 const ::tensorflow::FeatureLists* p = _impl_.feature_lists_;
550 return p != nullptr ? *p : reinterpret_cast<const ::tensorflow::FeatureLists&>(
551 ::tensorflow::_FeatureLists_default_instance_);
552 }
feature_lists()553 inline const ::tensorflow::FeatureLists& SequenceExample::feature_lists() const {
554 // @@protoc_insertion_point(field_get:tensorflow.SequenceExample.feature_lists)
555 return _internal_feature_lists();
556 }
unsafe_arena_set_allocated_feature_lists(::tensorflow::FeatureLists * feature_lists)557 inline void SequenceExample::unsafe_arena_set_allocated_feature_lists(
558 ::tensorflow::FeatureLists* feature_lists) {
559 if (GetArenaForAllocation() == nullptr) {
560 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.feature_lists_);
561 }
562 _impl_.feature_lists_ = feature_lists;
563 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SequenceExample.feature_lists)
564 }
release_feature_lists()565 inline ::tensorflow::FeatureLists* SequenceExample::release_feature_lists() {
566
567 ::tensorflow::FeatureLists* temp = _impl_.feature_lists_;
568 _impl_.feature_lists_ = nullptr;
569 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
570 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
571 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
572 if (GetArenaForAllocation() == nullptr) { delete old; }
573 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
574 if (GetArenaForAllocation() != nullptr) {
575 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
576 }
577 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
578 return temp;
579 }
unsafe_arena_release_feature_lists()580 inline ::tensorflow::FeatureLists* SequenceExample::unsafe_arena_release_feature_lists() {
581 // @@protoc_insertion_point(field_release:tensorflow.SequenceExample.feature_lists)
582
583 ::tensorflow::FeatureLists* temp = _impl_.feature_lists_;
584 _impl_.feature_lists_ = nullptr;
585 return temp;
586 }
_internal_mutable_feature_lists()587 inline ::tensorflow::FeatureLists* SequenceExample::_internal_mutable_feature_lists() {
588
589 if (_impl_.feature_lists_ == nullptr) {
590 auto* p = CreateMaybeMessage<::tensorflow::FeatureLists>(GetArenaForAllocation());
591 _impl_.feature_lists_ = p;
592 }
593 return _impl_.feature_lists_;
594 }
mutable_feature_lists()595 inline ::tensorflow::FeatureLists* SequenceExample::mutable_feature_lists() {
596 ::tensorflow::FeatureLists* _msg = _internal_mutable_feature_lists();
597 // @@protoc_insertion_point(field_mutable:tensorflow.SequenceExample.feature_lists)
598 return _msg;
599 }
set_allocated_feature_lists(::tensorflow::FeatureLists * feature_lists)600 inline void SequenceExample::set_allocated_feature_lists(::tensorflow::FeatureLists* feature_lists) {
601 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
602 if (message_arena == nullptr) {
603 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.feature_lists_);
604 }
605 if (feature_lists) {
606 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
607 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
608 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(feature_lists));
609 if (message_arena != submessage_arena) {
610 feature_lists = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
611 message_arena, feature_lists, submessage_arena);
612 }
613
614 } else {
615
616 }
617 _impl_.feature_lists_ = feature_lists;
618 // @@protoc_insertion_point(field_set_allocated:tensorflow.SequenceExample.feature_lists)
619 }
620
621 #ifdef __GNUC__
622 #pragma GCC diagnostic pop
623 #endif // __GNUC__
624 // -------------------------------------------------------------------
625
626
627 // @@protoc_insertion_point(namespace_scope)
628
629 } // namespace tensorflow
630
631 // @@protoc_insertion_point(global_scope)
632
633 #include <google/protobuf/port_undef.inc>
634 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2fexample_2eproto
635