// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/protobuf/type.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftype_2eproto #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftype_2eproto #include #include #include #if PROTOBUF_VERSION < 3019000 #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 3019001 < 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 #include #include #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include #include #include #include // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftype_2eproto PROTOBUF_EXPORT PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2ftype_2eproto { static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[5] 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 uint32_t offsets[]; }; PROTOBUF_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2ftype_2eproto; PROTOBUF_NAMESPACE_OPEN class Enum; struct EnumDefaultTypeInternal; PROTOBUF_EXPORT extern EnumDefaultTypeInternal _Enum_default_instance_; class EnumValue; struct EnumValueDefaultTypeInternal; PROTOBUF_EXPORT extern EnumValueDefaultTypeInternal _EnumValue_default_instance_; class Field; struct FieldDefaultTypeInternal; PROTOBUF_EXPORT extern FieldDefaultTypeInternal _Field_default_instance_; class Option; struct OptionDefaultTypeInternal; PROTOBUF_EXPORT extern OptionDefaultTypeInternal _Option_default_instance_; class Type; struct TypeDefaultTypeInternal; PROTOBUF_EXPORT extern TypeDefaultTypeInternal _Type_default_instance_; PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::Enum* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Enum>(Arena*); template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumValue* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumValue>(Arena*); template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::Field* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Field>(Arena*); template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::Option* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Option>(Arena*); template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::Type* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Type>(Arena*); PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_OPEN enum Field_Kind : int { Field_Kind_TYPE_UNKNOWN = 0, Field_Kind_TYPE_DOUBLE = 1, Field_Kind_TYPE_FLOAT = 2, Field_Kind_TYPE_INT64 = 3, Field_Kind_TYPE_UINT64 = 4, Field_Kind_TYPE_INT32 = 5, Field_Kind_TYPE_FIXED64 = 6, Field_Kind_TYPE_FIXED32 = 7, Field_Kind_TYPE_BOOL = 8, Field_Kind_TYPE_STRING = 9, Field_Kind_TYPE_GROUP = 10, Field_Kind_TYPE_MESSAGE = 11, Field_Kind_TYPE_BYTES = 12, Field_Kind_TYPE_UINT32 = 13, Field_Kind_TYPE_ENUM = 14, Field_Kind_TYPE_SFIXED32 = 15, Field_Kind_TYPE_SFIXED64 = 16, Field_Kind_TYPE_SINT32 = 17, Field_Kind_TYPE_SINT64 = 18, Field_Kind_Field_Kind_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), Field_Kind_Field_Kind_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; PROTOBUF_EXPORT bool Field_Kind_IsValid(int value); constexpr Field_Kind Field_Kind_Kind_MIN = Field_Kind_TYPE_UNKNOWN; constexpr Field_Kind Field_Kind_Kind_MAX = Field_Kind_TYPE_SINT64; constexpr int Field_Kind_Kind_ARRAYSIZE = Field_Kind_Kind_MAX + 1; PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Field_Kind_descriptor(); template inline const std::string& Field_Kind_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function Field_Kind_Name."); return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( Field_Kind_descriptor(), enum_t_value); } inline bool Field_Kind_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Field_Kind* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( Field_Kind_descriptor(), name, value); } enum Field_Cardinality : int { Field_Cardinality_CARDINALITY_UNKNOWN = 0, Field_Cardinality_CARDINALITY_OPTIONAL = 1, Field_Cardinality_CARDINALITY_REQUIRED = 2, Field_Cardinality_CARDINALITY_REPEATED = 3, Field_Cardinality_Field_Cardinality_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), Field_Cardinality_Field_Cardinality_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; PROTOBUF_EXPORT bool Field_Cardinality_IsValid(int value); constexpr Field_Cardinality Field_Cardinality_Cardinality_MIN = Field_Cardinality_CARDINALITY_UNKNOWN; constexpr Field_Cardinality Field_Cardinality_Cardinality_MAX = Field_Cardinality_CARDINALITY_REPEATED; constexpr int Field_Cardinality_Cardinality_ARRAYSIZE = Field_Cardinality_Cardinality_MAX + 1; PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Field_Cardinality_descriptor(); template inline const std::string& Field_Cardinality_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function Field_Cardinality_Name."); return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( Field_Cardinality_descriptor(), enum_t_value); } inline bool Field_Cardinality_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Field_Cardinality* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( Field_Cardinality_descriptor(), name, value); } enum Syntax : int { SYNTAX_PROTO2 = 0, SYNTAX_PROTO3 = 1, Syntax_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), Syntax_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; PROTOBUF_EXPORT bool Syntax_IsValid(int value); constexpr Syntax Syntax_MIN = SYNTAX_PROTO2; constexpr Syntax Syntax_MAX = SYNTAX_PROTO3; constexpr int Syntax_ARRAYSIZE = Syntax_MAX + 1; PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Syntax_descriptor(); template inline const std::string& Syntax_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function Syntax_Name."); return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( Syntax_descriptor(), enum_t_value); } inline bool Syntax_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Syntax* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( Syntax_descriptor(), name, value); } // =================================================================== class PROTOBUF_EXPORT Type final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Type) */ { public: inline Type() : Type(nullptr) {} ~Type() override; explicit constexpr Type(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Type(const Type& from); Type(Type&& from) noexcept : Type() { *this = ::std::move(from); } inline Type& operator=(const Type& from) { CopyFrom(from); return *this; } inline Type& operator=(Type&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Type& default_instance() { return *internal_default_instance(); } static inline const Type* internal_default_instance() { return reinterpret_cast( &_Type_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(Type& a, Type& b) { a.Swap(&b); } inline void Swap(Type* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Type* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- Type* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Type& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const Type& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; uint8_t* _InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Type* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.protobuf.Type"; } protected: explicit Type(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kFieldsFieldNumber = 2, kOneofsFieldNumber = 3, kOptionsFieldNumber = 4, kNameFieldNumber = 1, kSourceContextFieldNumber = 5, kSyntaxFieldNumber = 6, }; // repeated .google.protobuf.Field fields = 2; int fields_size() const; private: int _internal_fields_size() const; public: void clear_fields(); ::PROTOBUF_NAMESPACE_ID::Field* mutable_fields(int index); ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Field >* mutable_fields(); private: const ::PROTOBUF_NAMESPACE_ID::Field& _internal_fields(int index) const; ::PROTOBUF_NAMESPACE_ID::Field* _internal_add_fields(); public: const ::PROTOBUF_NAMESPACE_ID::Field& fields(int index) const; ::PROTOBUF_NAMESPACE_ID::Field* add_fields(); const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Field >& fields() const; // repeated string oneofs = 3; int oneofs_size() const; private: int _internal_oneofs_size() const; public: void clear_oneofs(); const std::string& oneofs(int index) const; std::string* mutable_oneofs(int index); void set_oneofs(int index, const std::string& value); void set_oneofs(int index, std::string&& value); void set_oneofs(int index, const char* value); void set_oneofs(int index, const char* value, size_t size); std::string* add_oneofs(); void add_oneofs(const std::string& value); void add_oneofs(std::string&& value); void add_oneofs(const char* value); void add_oneofs(const char* value, size_t size); const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& oneofs() const; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_oneofs(); private: const std::string& _internal_oneofs(int index) const; std::string* _internal_add_oneofs(); public: // repeated .google.protobuf.Option options = 4; int options_size() const; private: int _internal_options_size() const; public: void clear_options(); ::PROTOBUF_NAMESPACE_ID::Option* mutable_options(int index); ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Option >* mutable_options(); private: const ::PROTOBUF_NAMESPACE_ID::Option& _internal_options(int index) const; ::PROTOBUF_NAMESPACE_ID::Option* _internal_add_options(); public: const ::PROTOBUF_NAMESPACE_ID::Option& options(int index) const; ::PROTOBUF_NAMESPACE_ID::Option* add_options(); const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Option >& options() const; // string name = 1; void clear_name(); const std::string& name() const; template void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); void set_allocated_name(std::string* name); private: const std::string& _internal_name() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); public: // .google.protobuf.SourceContext source_context = 5; bool has_source_context() const; private: bool _internal_has_source_context() const; public: void clear_source_context(); const ::PROTOBUF_NAMESPACE_ID::SourceContext& source_context() const; PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::SourceContext* release_source_context(); ::PROTOBUF_NAMESPACE_ID::SourceContext* mutable_source_context(); void set_allocated_source_context(::PROTOBUF_NAMESPACE_ID::SourceContext* source_context); private: const ::PROTOBUF_NAMESPACE_ID::SourceContext& _internal_source_context() const; ::PROTOBUF_NAMESPACE_ID::SourceContext* _internal_mutable_source_context(); public: void unsafe_arena_set_allocated_source_context( ::PROTOBUF_NAMESPACE_ID::SourceContext* source_context); ::PROTOBUF_NAMESPACE_ID::SourceContext* unsafe_arena_release_source_context(); // .google.protobuf.Syntax syntax = 6; void clear_syntax(); ::PROTOBUF_NAMESPACE_ID::Syntax syntax() const; void set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value); private: ::PROTOBUF_NAMESPACE_ID::Syntax _internal_syntax() const; void _internal_set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value); public: // @@protoc_insertion_point(class_scope:google.protobuf.Type) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Field > fields_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField oneofs_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Option > options_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; ::PROTOBUF_NAMESPACE_ID::SourceContext* source_context_; int syntax_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fprotobuf_2ftype_2eproto; }; // ------------------------------------------------------------------- class PROTOBUF_EXPORT Field final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Field) */ { public: inline Field() : Field(nullptr) {} ~Field() override; explicit constexpr Field(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Field(const Field& from); Field(Field&& from) noexcept : Field() { *this = ::std::move(from); } inline Field& operator=(const Field& from) { CopyFrom(from); return *this; } inline Field& operator=(Field&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Field& default_instance() { return *internal_default_instance(); } static inline const Field* internal_default_instance() { return reinterpret_cast( &_Field_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(Field& a, Field& b) { a.Swap(&b); } inline void Swap(Field* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Field* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- Field* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Field& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const Field& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; uint8_t* _InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Field* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.protobuf.Field"; } protected: explicit Field(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- typedef Field_Kind Kind; static constexpr Kind TYPE_UNKNOWN = Field_Kind_TYPE_UNKNOWN; static constexpr Kind TYPE_DOUBLE = Field_Kind_TYPE_DOUBLE; static constexpr Kind TYPE_FLOAT = Field_Kind_TYPE_FLOAT; static constexpr Kind TYPE_INT64 = Field_Kind_TYPE_INT64; static constexpr Kind TYPE_UINT64 = Field_Kind_TYPE_UINT64; static constexpr Kind TYPE_INT32 = Field_Kind_TYPE_INT32; static constexpr Kind TYPE_FIXED64 = Field_Kind_TYPE_FIXED64; static constexpr Kind TYPE_FIXED32 = Field_Kind_TYPE_FIXED32; static constexpr Kind TYPE_BOOL = Field_Kind_TYPE_BOOL; static constexpr Kind TYPE_STRING = Field_Kind_TYPE_STRING; static constexpr Kind TYPE_GROUP = Field_Kind_TYPE_GROUP; static constexpr Kind TYPE_MESSAGE = Field_Kind_TYPE_MESSAGE; static constexpr Kind TYPE_BYTES = Field_Kind_TYPE_BYTES; static constexpr Kind TYPE_UINT32 = Field_Kind_TYPE_UINT32; static constexpr Kind TYPE_ENUM = Field_Kind_TYPE_ENUM; static constexpr Kind TYPE_SFIXED32 = Field_Kind_TYPE_SFIXED32; static constexpr Kind TYPE_SFIXED64 = Field_Kind_TYPE_SFIXED64; static constexpr Kind TYPE_SINT32 = Field_Kind_TYPE_SINT32; static constexpr Kind TYPE_SINT64 = Field_Kind_TYPE_SINT64; static inline bool Kind_IsValid(int value) { return Field_Kind_IsValid(value); } static constexpr Kind Kind_MIN = Field_Kind_Kind_MIN; static constexpr Kind Kind_MAX = Field_Kind_Kind_MAX; static constexpr int Kind_ARRAYSIZE = Field_Kind_Kind_ARRAYSIZE; static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Kind_descriptor() { return Field_Kind_descriptor(); } template static inline const std::string& Kind_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function Kind_Name."); return Field_Kind_Name(enum_t_value); } static inline bool Kind_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Kind* value) { return Field_Kind_Parse(name, value); } typedef Field_Cardinality Cardinality; static constexpr Cardinality CARDINALITY_UNKNOWN = Field_Cardinality_CARDINALITY_UNKNOWN; static constexpr Cardinality CARDINALITY_OPTIONAL = Field_Cardinality_CARDINALITY_OPTIONAL; static constexpr Cardinality CARDINALITY_REQUIRED = Field_Cardinality_CARDINALITY_REQUIRED; static constexpr Cardinality CARDINALITY_REPEATED = Field_Cardinality_CARDINALITY_REPEATED; static inline bool Cardinality_IsValid(int value) { return Field_Cardinality_IsValid(value); } static constexpr Cardinality Cardinality_MIN = Field_Cardinality_Cardinality_MIN; static constexpr Cardinality Cardinality_MAX = Field_Cardinality_Cardinality_MAX; static constexpr int Cardinality_ARRAYSIZE = Field_Cardinality_Cardinality_ARRAYSIZE; static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Cardinality_descriptor() { return Field_Cardinality_descriptor(); } template static inline const std::string& Cardinality_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function Cardinality_Name."); return Field_Cardinality_Name(enum_t_value); } static inline bool Cardinality_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Cardinality* value) { return Field_Cardinality_Parse(name, value); } // accessors ------------------------------------------------------- enum : int { kOptionsFieldNumber = 9, kNameFieldNumber = 4, kTypeUrlFieldNumber = 6, kJsonNameFieldNumber = 10, kDefaultValueFieldNumber = 11, kKindFieldNumber = 1, kCardinalityFieldNumber = 2, kNumberFieldNumber = 3, kOneofIndexFieldNumber = 7, kPackedFieldNumber = 8, }; // repeated .google.protobuf.Option options = 9; int options_size() const; private: int _internal_options_size() const; public: void clear_options(); ::PROTOBUF_NAMESPACE_ID::Option* mutable_options(int index); ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Option >* mutable_options(); private: const ::PROTOBUF_NAMESPACE_ID::Option& _internal_options(int index) const; ::PROTOBUF_NAMESPACE_ID::Option* _internal_add_options(); public: const ::PROTOBUF_NAMESPACE_ID::Option& options(int index) const; ::PROTOBUF_NAMESPACE_ID::Option* add_options(); const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Option >& options() const; // string name = 4; void clear_name(); const std::string& name() const; template void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); void set_allocated_name(std::string* name); private: const std::string& _internal_name() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); public: // string type_url = 6; void clear_type_url(); const std::string& type_url() const; template void set_type_url(ArgT0&& arg0, ArgT... args); std::string* mutable_type_url(); PROTOBUF_NODISCARD std::string* release_type_url(); void set_allocated_type_url(std::string* type_url); private: const std::string& _internal_type_url() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_url(const std::string& value); std::string* _internal_mutable_type_url(); public: // string json_name = 10; void clear_json_name(); const std::string& json_name() const; template void set_json_name(ArgT0&& arg0, ArgT... args); std::string* mutable_json_name(); PROTOBUF_NODISCARD std::string* release_json_name(); void set_allocated_json_name(std::string* json_name); private: const std::string& _internal_json_name() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_json_name(const std::string& value); std::string* _internal_mutable_json_name(); public: // string default_value = 11; void clear_default_value(); const std::string& default_value() const; template void set_default_value(ArgT0&& arg0, ArgT... args); std::string* mutable_default_value(); PROTOBUF_NODISCARD std::string* release_default_value(); void set_allocated_default_value(std::string* default_value); private: const std::string& _internal_default_value() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_default_value(const std::string& value); std::string* _internal_mutable_default_value(); public: // .google.protobuf.Field.Kind kind = 1; void clear_kind(); ::PROTOBUF_NAMESPACE_ID::Field_Kind kind() const; void set_kind(::PROTOBUF_NAMESPACE_ID::Field_Kind value); private: ::PROTOBUF_NAMESPACE_ID::Field_Kind _internal_kind() const; void _internal_set_kind(::PROTOBUF_NAMESPACE_ID::Field_Kind value); public: // .google.protobuf.Field.Cardinality cardinality = 2; void clear_cardinality(); ::PROTOBUF_NAMESPACE_ID::Field_Cardinality cardinality() const; void set_cardinality(::PROTOBUF_NAMESPACE_ID::Field_Cardinality value); private: ::PROTOBUF_NAMESPACE_ID::Field_Cardinality _internal_cardinality() const; void _internal_set_cardinality(::PROTOBUF_NAMESPACE_ID::Field_Cardinality value); public: // int32 number = 3; void clear_number(); int32_t number() const; void set_number(int32_t value); private: int32_t _internal_number() const; void _internal_set_number(int32_t value); public: // int32 oneof_index = 7; void clear_oneof_index(); int32_t oneof_index() const; void set_oneof_index(int32_t value); private: int32_t _internal_oneof_index() const; void _internal_set_oneof_index(int32_t value); public: // bool packed = 8; void clear_packed(); bool packed() const; void set_packed(bool value); private: bool _internal_packed() const; void _internal_set_packed(bool value); public: // @@protoc_insertion_point(class_scope:google.protobuf.Field) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Option > options_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_url_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr default_value_; int kind_; int cardinality_; int32_t number_; int32_t oneof_index_; bool packed_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fprotobuf_2ftype_2eproto; }; // ------------------------------------------------------------------- class PROTOBUF_EXPORT Enum final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Enum) */ { public: inline Enum() : Enum(nullptr) {} ~Enum() override; explicit constexpr Enum(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Enum(const Enum& from); Enum(Enum&& from) noexcept : Enum() { *this = ::std::move(from); } inline Enum& operator=(const Enum& from) { CopyFrom(from); return *this; } inline Enum& operator=(Enum&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Enum& default_instance() { return *internal_default_instance(); } static inline const Enum* internal_default_instance() { return reinterpret_cast( &_Enum_default_instance_); } static constexpr int kIndexInFileMessages = 2; friend void swap(Enum& a, Enum& b) { a.Swap(&b); } inline void Swap(Enum* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Enum* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- Enum* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Enum& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const Enum& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; uint8_t* _InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Enum* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.protobuf.Enum"; } protected: explicit Enum(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kEnumvalueFieldNumber = 2, kOptionsFieldNumber = 3, kNameFieldNumber = 1, kSourceContextFieldNumber = 4, kSyntaxFieldNumber = 5, }; // repeated .google.protobuf.EnumValue enumvalue = 2; int enumvalue_size() const; private: int _internal_enumvalue_size() const; public: void clear_enumvalue(); ::PROTOBUF_NAMESPACE_ID::EnumValue* mutable_enumvalue(int index); ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumValue >* mutable_enumvalue(); private: const ::PROTOBUF_NAMESPACE_ID::EnumValue& _internal_enumvalue(int index) const; ::PROTOBUF_NAMESPACE_ID::EnumValue* _internal_add_enumvalue(); public: const ::PROTOBUF_NAMESPACE_ID::EnumValue& enumvalue(int index) const; ::PROTOBUF_NAMESPACE_ID::EnumValue* add_enumvalue(); const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumValue >& enumvalue() const; // repeated .google.protobuf.Option options = 3; int options_size() const; private: int _internal_options_size() const; public: void clear_options(); ::PROTOBUF_NAMESPACE_ID::Option* mutable_options(int index); ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Option >* mutable_options(); private: const ::PROTOBUF_NAMESPACE_ID::Option& _internal_options(int index) const; ::PROTOBUF_NAMESPACE_ID::Option* _internal_add_options(); public: const ::PROTOBUF_NAMESPACE_ID::Option& options(int index) const; ::PROTOBUF_NAMESPACE_ID::Option* add_options(); const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Option >& options() const; // string name = 1; void clear_name(); const std::string& name() const; template void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); void set_allocated_name(std::string* name); private: const std::string& _internal_name() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); public: // .google.protobuf.SourceContext source_context = 4; bool has_source_context() const; private: bool _internal_has_source_context() const; public: void clear_source_context(); const ::PROTOBUF_NAMESPACE_ID::SourceContext& source_context() const; PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::SourceContext* release_source_context(); ::PROTOBUF_NAMESPACE_ID::SourceContext* mutable_source_context(); void set_allocated_source_context(::PROTOBUF_NAMESPACE_ID::SourceContext* source_context); private: const ::PROTOBUF_NAMESPACE_ID::SourceContext& _internal_source_context() const; ::PROTOBUF_NAMESPACE_ID::SourceContext* _internal_mutable_source_context(); public: void unsafe_arena_set_allocated_source_context( ::PROTOBUF_NAMESPACE_ID::SourceContext* source_context); ::PROTOBUF_NAMESPACE_ID::SourceContext* unsafe_arena_release_source_context(); // .google.protobuf.Syntax syntax = 5; void clear_syntax(); ::PROTOBUF_NAMESPACE_ID::Syntax syntax() const; void set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value); private: ::PROTOBUF_NAMESPACE_ID::Syntax _internal_syntax() const; void _internal_set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value); public: // @@protoc_insertion_point(class_scope:google.protobuf.Enum) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumValue > enumvalue_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Option > options_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; ::PROTOBUF_NAMESPACE_ID::SourceContext* source_context_; int syntax_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fprotobuf_2ftype_2eproto; }; // ------------------------------------------------------------------- class PROTOBUF_EXPORT EnumValue final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumValue) */ { public: inline EnumValue() : EnumValue(nullptr) {} ~EnumValue() override; explicit constexpr EnumValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); EnumValue(const EnumValue& from); EnumValue(EnumValue&& from) noexcept : EnumValue() { *this = ::std::move(from); } inline EnumValue& operator=(const EnumValue& from) { CopyFrom(from); return *this; } inline EnumValue& operator=(EnumValue&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const EnumValue& default_instance() { return *internal_default_instance(); } static inline const EnumValue* internal_default_instance() { return reinterpret_cast( &_EnumValue_default_instance_); } static constexpr int kIndexInFileMessages = 3; friend void swap(EnumValue& a, EnumValue& b) { a.Swap(&b); } inline void Swap(EnumValue* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(EnumValue* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- EnumValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const EnumValue& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const EnumValue& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; uint8_t* _InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(EnumValue* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.protobuf.EnumValue"; } protected: explicit EnumValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kOptionsFieldNumber = 3, kNameFieldNumber = 1, kNumberFieldNumber = 2, }; // repeated .google.protobuf.Option options = 3; int options_size() const; private: int _internal_options_size() const; public: void clear_options(); ::PROTOBUF_NAMESPACE_ID::Option* mutable_options(int index); ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Option >* mutable_options(); private: const ::PROTOBUF_NAMESPACE_ID::Option& _internal_options(int index) const; ::PROTOBUF_NAMESPACE_ID::Option* _internal_add_options(); public: const ::PROTOBUF_NAMESPACE_ID::Option& options(int index) const; ::PROTOBUF_NAMESPACE_ID::Option* add_options(); const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Option >& options() const; // string name = 1; void clear_name(); const std::string& name() const; template void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); void set_allocated_name(std::string* name); private: const std::string& _internal_name() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); public: // int32 number = 2; void clear_number(); int32_t number() const; void set_number(int32_t value); private: int32_t _internal_number() const; void _internal_set_number(int32_t value); public: // @@protoc_insertion_point(class_scope:google.protobuf.EnumValue) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Option > options_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; int32_t number_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fprotobuf_2ftype_2eproto; }; // ------------------------------------------------------------------- class PROTOBUF_EXPORT Option final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Option) */ { public: inline Option() : Option(nullptr) {} ~Option() override; explicit constexpr Option(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Option(const Option& from); Option(Option&& from) noexcept : Option() { *this = ::std::move(from); } inline Option& operator=(const Option& from) { CopyFrom(from); return *this; } inline Option& operator=(Option&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Option& default_instance() { return *internal_default_instance(); } static inline const Option* internal_default_instance() { return reinterpret_cast( &_Option_default_instance_); } static constexpr int kIndexInFileMessages = 4; friend void swap(Option& a, Option& b) { a.Swap(&b); } inline void Swap(Option* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Option* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- Option* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage