EVOLUTION-MANAGER
Edit File: example.pb.h
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/example/example.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2fexample_2eproto #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2fexample_2eproto #include <limits> #include <string> #include <google/protobuf/port_def.inc> #if PROTOBUF_VERSION < 3009000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif #if 3009002 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif #include <google/protobuf/port_undef.inc> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/arena.h> #include <google/protobuf/arenastring.h> #include <google/protobuf/generated_message_table_driven.h> #include <google/protobuf/generated_message_util.h> #include <google/protobuf/inlined_string_field.h> #include <google/protobuf/metadata.h> #include <google/protobuf/generated_message_reflection.h> #include <google/protobuf/message.h> #include <google/protobuf/repeated_field.h> // IWYU pragma: export #include <google/protobuf/extension_set.h> // IWYU pragma: export #include <google/protobuf/unknown_field_set.h> #include "tensorflow/core/example/feature.pb.h" // @@protoc_insertion_point(includes) #include <google/protobuf/port_def.inc> #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fexample_2fexample_2eproto PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_tensorflow_2fcore_2fexample_2fexample_2eproto { static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fexample_2fexample_2eproto; namespace tensorflow { class Example; class ExampleDefaultTypeInternal; extern ExampleDefaultTypeInternal _Example_default_instance_; class SequenceExample; class SequenceExampleDefaultTypeInternal; extern SequenceExampleDefaultTypeInternal _SequenceExample_default_instance_; } // namespace tensorflow PROTOBUF_NAMESPACE_OPEN template<> ::tensorflow::Example* Arena::CreateMaybeMessage<::tensorflow::Example>(Arena*); template<> ::tensorflow::SequenceExample* Arena::CreateMaybeMessage<::tensorflow::SequenceExample>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace tensorflow { // =================================================================== class Example : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.Example) */ { public: Example(); virtual ~Example(); Example(const Example& from); Example(Example&& from) noexcept : Example() { *this = ::std::move(from); } inline Example& operator=(const Example& from) { CopyFrom(from); return *this; } inline Example& operator=(Example&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { return GetArenaNoVirtual(); } inline void* GetMaybeArenaPointer() const final { return MaybeArenaPtr(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const Example& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Example* internal_default_instance() { return reinterpret_cast<const Example*>( &_Example_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(Example& a, Example& b) { a.Swap(&b); } inline void Swap(Example* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Example* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } // implements Message ---------------------------------------------- inline Example* New() const final { return CreateMaybeMessage<Example>(nullptr); } Example* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<Example>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Example& from); void MergeFrom(const Example& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Example* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tensorflow.Example"; } protected: explicit Example(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return _internal_metadata_.arena(); } inline void* MaybeArenaPtr() const { return _internal_metadata_.raw_arena_ptr(); } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fexample_2fexample_2eproto); return ::descriptor_table_tensorflow_2fcore_2fexample_2fexample_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kFeaturesFieldNumber = 1, }; // .tensorflow.Features features = 1; bool has_features() const; void clear_features(); const ::tensorflow::Features& features() const; ::tensorflow::Features* release_features(); ::tensorflow::Features* mutable_features(); void set_allocated_features(::tensorflow::Features* features); void unsafe_arena_set_allocated_features( ::tensorflow::Features* features); ::tensorflow::Features* unsafe_arena_release_features(); // @@protoc_insertion_point(class_scope:tensorflow.Example) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::tensorflow::Features* features_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_tensorflow_2fcore_2fexample_2fexample_2eproto; }; // ------------------------------------------------------------------- class SequenceExample : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SequenceExample) */ { public: SequenceExample(); virtual ~SequenceExample(); SequenceExample(const SequenceExample& from); SequenceExample(SequenceExample&& from) noexcept : SequenceExample() { *this = ::std::move(from); } inline SequenceExample& operator=(const SequenceExample& from) { CopyFrom(from); return *this; } inline SequenceExample& operator=(SequenceExample&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { return GetArenaNoVirtual(); } inline void* GetMaybeArenaPointer() const final { return MaybeArenaPtr(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const SequenceExample& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SequenceExample* internal_default_instance() { return reinterpret_cast<const SequenceExample*>( &_SequenceExample_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(SequenceExample& a, SequenceExample& b) { a.Swap(&b); } inline void Swap(SequenceExample* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(SequenceExample* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } // implements Message ---------------------------------------------- inline SequenceExample* New() const final { return CreateMaybeMessage<SequenceExample>(nullptr); } SequenceExample* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<SequenceExample>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const SequenceExample& from); void MergeFrom(const SequenceExample& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SequenceExample* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tensorflow.SequenceExample"; } protected: explicit SequenceExample(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return _internal_metadata_.arena(); } inline void* MaybeArenaPtr() const { return _internal_metadata_.raw_arena_ptr(); } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fexample_2fexample_2eproto); return ::descriptor_table_tensorflow_2fcore_2fexample_2fexample_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kContextFieldNumber = 1, kFeatureListsFieldNumber = 2, }; // .tensorflow.Features context = 1; bool has_context() const; void clear_context(); const ::tensorflow::Features& context() const; ::tensorflow::Features* release_context(); ::tensorflow::Features* mutable_context(); void set_allocated_context(::tensorflow::Features* context); void unsafe_arena_set_allocated_context( ::tensorflow::Features* context); ::tensorflow::Features* unsafe_arena_release_context(); // .tensorflow.FeatureLists feature_lists = 2; bool has_feature_lists() const; void clear_feature_lists(); const ::tensorflow::FeatureLists& feature_lists() const; ::tensorflow::FeatureLists* release_feature_lists(); ::tensorflow::FeatureLists* mutable_feature_lists(); void set_allocated_feature_lists(::tensorflow::FeatureLists* feature_lists); void unsafe_arena_set_allocated_feature_lists( ::tensorflow::FeatureLists* feature_lists); ::tensorflow::FeatureLists* unsafe_arena_release_feature_lists(); // @@protoc_insertion_point(class_scope:tensorflow.SequenceExample) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::tensorflow::Features* context_; ::tensorflow::FeatureLists* feature_lists_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_tensorflow_2fcore_2fexample_2fexample_2eproto; }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // Example // .tensorflow.Features features = 1; inline bool Example::has_features() const { return this != internal_default_instance() && features_ != nullptr; } inline const ::tensorflow::Features& Example::features() const { const ::tensorflow::Features* p = features_; // @@protoc_insertion_point(field_get:tensorflow.Example.features) return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::Features*>( &::tensorflow::_Features_default_instance_); } inline ::tensorflow::Features* Example::release_features() { // @@protoc_insertion_point(field_release:tensorflow.Example.features) ::tensorflow::Features* temp = features_; if (GetArenaNoVirtual() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } features_ = nullptr; return temp; } inline ::tensorflow::Features* Example::unsafe_arena_release_features() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Example.features) ::tensorflow::Features* temp = features_; features_ = nullptr; return temp; } inline ::tensorflow::Features* Example::mutable_features() { if (features_ == nullptr) { auto* p = CreateMaybeMessage<::tensorflow::Features>(GetArenaNoVirtual()); features_ = p; } // @@protoc_insertion_point(field_mutable:tensorflow.Example.features) return features_; } inline void Example::set_allocated_features(::tensorflow::Features* features) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(features_); } if (features) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(features)->GetArena(); if (message_arena != submessage_arena) { features = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, features, submessage_arena); } } else { } features_ = features; // @@protoc_insertion_point(field_set_allocated:tensorflow.Example.features) } // ------------------------------------------------------------------- // SequenceExample // .tensorflow.Features context = 1; inline bool SequenceExample::has_context() const { return this != internal_default_instance() && context_ != nullptr; } inline const ::tensorflow::Features& SequenceExample::context() const { const ::tensorflow::Features* p = context_; // @@protoc_insertion_point(field_get:tensorflow.SequenceExample.context) return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::Features*>( &::tensorflow::_Features_default_instance_); } inline ::tensorflow::Features* SequenceExample::release_context() { // @@protoc_insertion_point(field_release:tensorflow.SequenceExample.context) ::tensorflow::Features* temp = context_; if (GetArenaNoVirtual() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } context_ = nullptr; return temp; } inline ::tensorflow::Features* SequenceExample::unsafe_arena_release_context() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SequenceExample.context) ::tensorflow::Features* temp = context_; context_ = nullptr; return temp; } inline ::tensorflow::Features* SequenceExample::mutable_context() { if (context_ == nullptr) { auto* p = CreateMaybeMessage<::tensorflow::Features>(GetArenaNoVirtual()); context_ = p; } // @@protoc_insertion_point(field_mutable:tensorflow.SequenceExample.context) return context_; } inline void SequenceExample::set_allocated_context(::tensorflow::Features* context) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(context_); } if (context) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(context)->GetArena(); if (message_arena != submessage_arena) { context = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, context, submessage_arena); } } else { } context_ = context; // @@protoc_insertion_point(field_set_allocated:tensorflow.SequenceExample.context) } // .tensorflow.FeatureLists feature_lists = 2; inline bool SequenceExample::has_feature_lists() const { return this != internal_default_instance() && feature_lists_ != nullptr; } inline const ::tensorflow::FeatureLists& SequenceExample::feature_lists() const { const ::tensorflow::FeatureLists* p = feature_lists_; // @@protoc_insertion_point(field_get:tensorflow.SequenceExample.feature_lists) return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::FeatureLists*>( &::tensorflow::_FeatureLists_default_instance_); } inline ::tensorflow::FeatureLists* SequenceExample::release_feature_lists() { // @@protoc_insertion_point(field_release:tensorflow.SequenceExample.feature_lists) ::tensorflow::FeatureLists* temp = feature_lists_; if (GetArenaNoVirtual() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } feature_lists_ = nullptr; return temp; } inline ::tensorflow::FeatureLists* SequenceExample::unsafe_arena_release_feature_lists() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SequenceExample.feature_lists) ::tensorflow::FeatureLists* temp = feature_lists_; feature_lists_ = nullptr; return temp; } inline ::tensorflow::FeatureLists* SequenceExample::mutable_feature_lists() { if (feature_lists_ == nullptr) { auto* p = CreateMaybeMessage<::tensorflow::FeatureLists>(GetArenaNoVirtual()); feature_lists_ = p; } // @@protoc_insertion_point(field_mutable:tensorflow.SequenceExample.feature_lists) return feature_lists_; } inline void SequenceExample::set_allocated_feature_lists(::tensorflow::FeatureLists* feature_lists) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(feature_lists_); } if (feature_lists) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(feature_lists)->GetArena(); if (message_arena != submessage_arena) { feature_lists = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, feature_lists, submessage_arena); } } else { } feature_lists_ = feature_lists; // @@protoc_insertion_point(field_set_allocated:tensorflow.SequenceExample.feature_lists) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // ------------------------------------------------------------------- // @@protoc_insertion_point(namespace_scope) } // namespace tensorflow // @@protoc_insertion_point(global_scope) #include <google/protobuf/port_undef.inc> #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2fexample_2eproto