protobuf_option_test/protobuf/bin/ProtoOption.pb.h

1603 lines
54 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ProtoOption.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_ProtoOption_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_ProtoOption_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3020000
#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 3020000 < 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_util.h>
#include <google/protobuf/metadata_lite.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 <google/protobuf/wrappers.pb.h>
#include <google/protobuf/descriptor.pb.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_ProtoOption_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_ProtoOption_2eproto {
static const uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ProtoOption_2eproto;
namespace OPTIONTEST {
class AdditionOption;
struct AdditionOptionDefaultTypeInternal;
extern AdditionOptionDefaultTypeInternal _AdditionOption_default_instance_;
class Full_Option_Message;
struct Full_Option_MessageDefaultTypeInternal;
extern Full_Option_MessageDefaultTypeInternal _Full_Option_Message_default_instance_;
class Non_Option_Message;
struct Non_Option_MessageDefaultTypeInternal;
extern Non_Option_MessageDefaultTypeInternal _Non_Option_Message_default_instance_;
class Single_Option_Message;
struct Single_Option_MessageDefaultTypeInternal;
extern Single_Option_MessageDefaultTypeInternal _Single_Option_Message_default_instance_;
} // namespace OPTIONTEST
PROTOBUF_NAMESPACE_OPEN
template<> ::OPTIONTEST::AdditionOption* Arena::CreateMaybeMessage<::OPTIONTEST::AdditionOption>(Arena*);
template<> ::OPTIONTEST::Full_Option_Message* Arena::CreateMaybeMessage<::OPTIONTEST::Full_Option_Message>(Arena*);
template<> ::OPTIONTEST::Non_Option_Message* Arena::CreateMaybeMessage<::OPTIONTEST::Non_Option_Message>(Arena*);
template<> ::OPTIONTEST::Single_Option_Message* Arena::CreateMaybeMessage<::OPTIONTEST::Single_Option_Message>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace OPTIONTEST {
// ===================================================================
class AdditionOption final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:OPTIONTEST.AdditionOption) */ {
public:
inline AdditionOption() : AdditionOption(nullptr) {}
~AdditionOption() override;
explicit PROTOBUF_CONSTEXPR AdditionOption(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
AdditionOption(const AdditionOption& from);
AdditionOption(AdditionOption&& from) noexcept
: AdditionOption() {
*this = ::std::move(from);
}
inline AdditionOption& operator=(const AdditionOption& from) {
CopyFrom(from);
return *this;
}
inline AdditionOption& operator=(AdditionOption&& 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 AdditionOption& default_instance() {
return *internal_default_instance();
}
static inline const AdditionOption* internal_default_instance() {
return reinterpret_cast<const AdditionOption*>(
&_AdditionOption_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(AdditionOption& a, AdditionOption& b) {
a.Swap(&b);
}
inline void Swap(AdditionOption* 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(AdditionOption* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
AdditionOption* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<AdditionOption>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const AdditionOption& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const AdditionOption& 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(AdditionOption* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "OPTIONTEST.AdditionOption";
}
protected:
explicit AdditionOption(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
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 {
kSFieldNumber = 1,
kDFieldNumber = 3,
kNFieldNumber = 2,
kBFieldNumber = 4,
};
// string s = 1;
void clear_s();
const std::string& s() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_s(ArgT0&& arg0, ArgT... args);
std::string* mutable_s();
PROTOBUF_NODISCARD std::string* release_s();
void set_allocated_s(std::string* s);
private:
const std::string& _internal_s() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_s(const std::string& value);
std::string* _internal_mutable_s();
public:
// double d = 3;
void clear_d();
double d() const;
void set_d(double value);
private:
double _internal_d() const;
void _internal_set_d(double value);
public:
// int32 n = 2;
void clear_n();
int32_t n() const;
void set_n(int32_t value);
private:
int32_t _internal_n() const;
void _internal_set_n(int32_t value);
public:
// bool b = 4;
void clear_b();
bool b() const;
void set_b(bool value);
private:
bool _internal_b() const;
void _internal_set_b(bool value);
public:
// @@protoc_insertion_point(class_scope:OPTIONTEST.AdditionOption)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr s_;
double d_;
int32_t n_;
bool b_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_ProtoOption_2eproto;
};
// -------------------------------------------------------------------
class Non_Option_Message final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:OPTIONTEST.Non_Option_Message) */ {
public:
inline Non_Option_Message() : Non_Option_Message(nullptr) {}
~Non_Option_Message() override;
explicit PROTOBUF_CONSTEXPR Non_Option_Message(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
Non_Option_Message(const Non_Option_Message& from);
Non_Option_Message(Non_Option_Message&& from) noexcept
: Non_Option_Message() {
*this = ::std::move(from);
}
inline Non_Option_Message& operator=(const Non_Option_Message& from) {
CopyFrom(from);
return *this;
}
inline Non_Option_Message& operator=(Non_Option_Message&& 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 Non_Option_Message& default_instance() {
return *internal_default_instance();
}
static inline const Non_Option_Message* internal_default_instance() {
return reinterpret_cast<const Non_Option_Message*>(
&_Non_Option_Message_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(Non_Option_Message& a, Non_Option_Message& b) {
a.Swap(&b);
}
inline void Swap(Non_Option_Message* 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(Non_Option_Message* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Non_Option_Message* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Non_Option_Message>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const Non_Option_Message& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const Non_Option_Message& 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(Non_Option_Message* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "OPTIONTEST.Non_Option_Message";
}
protected:
explicit Non_Option_Message(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
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 {
kSourceidFieldNumber = 2,
kFCFFFieldNumber = 5,
kIdFieldNumber = 1,
kBFieldNumber = 4,
kDFieldNumber = 3,
};
// string sourceid = 2;
void clear_sourceid();
const std::string& sourceid() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_sourceid(ArgT0&& arg0, ArgT... args);
std::string* mutable_sourceid();
PROTOBUF_NODISCARD std::string* release_sourceid();
void set_allocated_sourceid(std::string* sourceid);
private:
const std::string& _internal_sourceid() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_sourceid(const std::string& value);
std::string* _internal_mutable_sourceid();
public:
// .google.protobuf.DoubleValue FCFF = 5;
bool has_fcff() const;
private:
bool _internal_has_fcff() const;
public:
void clear_fcff();
const ::PROTOBUF_NAMESPACE_ID::DoubleValue& fcff() const;
PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::DoubleValue* release_fcff();
::PROTOBUF_NAMESPACE_ID::DoubleValue* mutable_fcff();
void set_allocated_fcff(::PROTOBUF_NAMESPACE_ID::DoubleValue* fcff);
private:
const ::PROTOBUF_NAMESPACE_ID::DoubleValue& _internal_fcff() const;
::PROTOBUF_NAMESPACE_ID::DoubleValue* _internal_mutable_fcff();
public:
void unsafe_arena_set_allocated_fcff(
::PROTOBUF_NAMESPACE_ID::DoubleValue* fcff);
::PROTOBUF_NAMESPACE_ID::DoubleValue* unsafe_arena_release_fcff();
// int32 id = 1;
void clear_id();
int32_t id() const;
void set_id(int32_t value);
private:
int32_t _internal_id() const;
void _internal_set_id(int32_t value);
public:
// bool b = 4;
void clear_b();
bool b() const;
void set_b(bool value);
private:
bool _internal_b() const;
void _internal_set_b(bool value);
public:
// double d = 3;
void clear_d();
double d() const;
void set_d(double value);
private:
double _internal_d() const;
void _internal_set_d(double value);
public:
// @@protoc_insertion_point(class_scope:OPTIONTEST.Non_Option_Message)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sourceid_;
::PROTOBUF_NAMESPACE_ID::DoubleValue* fcff_;
int32_t id_;
bool b_;
double d_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_ProtoOption_2eproto;
};
// -------------------------------------------------------------------
class Single_Option_Message final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:OPTIONTEST.Single_Option_Message) */ {
public:
inline Single_Option_Message() : Single_Option_Message(nullptr) {}
~Single_Option_Message() override;
explicit PROTOBUF_CONSTEXPR Single_Option_Message(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
Single_Option_Message(const Single_Option_Message& from);
Single_Option_Message(Single_Option_Message&& from) noexcept
: Single_Option_Message() {
*this = ::std::move(from);
}
inline Single_Option_Message& operator=(const Single_Option_Message& from) {
CopyFrom(from);
return *this;
}
inline Single_Option_Message& operator=(Single_Option_Message&& 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 Single_Option_Message& default_instance() {
return *internal_default_instance();
}
static inline const Single_Option_Message* internal_default_instance() {
return reinterpret_cast<const Single_Option_Message*>(
&_Single_Option_Message_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
friend void swap(Single_Option_Message& a, Single_Option_Message& b) {
a.Swap(&b);
}
inline void Swap(Single_Option_Message* 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(Single_Option_Message* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Single_Option_Message* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Single_Option_Message>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const Single_Option_Message& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const Single_Option_Message& 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(Single_Option_Message* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "OPTIONTEST.Single_Option_Message";
}
protected:
explicit Single_Option_Message(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
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 {
kSourceidFieldNumber = 2,
kFCFFFieldNumber = 5,
kIdFieldNumber = 1,
kBFieldNumber = 4,
kDFieldNumber = 3,
};
// string sourceid = 2;
void clear_sourceid();
const std::string& sourceid() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_sourceid(ArgT0&& arg0, ArgT... args);
std::string* mutable_sourceid();
PROTOBUF_NODISCARD std::string* release_sourceid();
void set_allocated_sourceid(std::string* sourceid);
private:
const std::string& _internal_sourceid() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_sourceid(const std::string& value);
std::string* _internal_mutable_sourceid();
public:
// .google.protobuf.DoubleValue FCFF = 5;
bool has_fcff() const;
private:
bool _internal_has_fcff() const;
public:
void clear_fcff();
const ::PROTOBUF_NAMESPACE_ID::DoubleValue& fcff() const;
PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::DoubleValue* release_fcff();
::PROTOBUF_NAMESPACE_ID::DoubleValue* mutable_fcff();
void set_allocated_fcff(::PROTOBUF_NAMESPACE_ID::DoubleValue* fcff);
private:
const ::PROTOBUF_NAMESPACE_ID::DoubleValue& _internal_fcff() const;
::PROTOBUF_NAMESPACE_ID::DoubleValue* _internal_mutable_fcff();
public:
void unsafe_arena_set_allocated_fcff(
::PROTOBUF_NAMESPACE_ID::DoubleValue* fcff);
::PROTOBUF_NAMESPACE_ID::DoubleValue* unsafe_arena_release_fcff();
// int32 id = 1 [(.OPTIONTEST.filedOptipn) = {
void clear_id();
int32_t id() const;
void set_id(int32_t value);
private:
int32_t _internal_id() const;
void _internal_set_id(int32_t value);
public:
// bool b = 4;
void clear_b();
bool b() const;
void set_b(bool value);
private:
bool _internal_b() const;
void _internal_set_b(bool value);
public:
// double d = 3;
void clear_d();
double d() const;
void set_d(double value);
private:
double _internal_d() const;
void _internal_set_d(double value);
public:
// @@protoc_insertion_point(class_scope:OPTIONTEST.Single_Option_Message)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sourceid_;
::PROTOBUF_NAMESPACE_ID::DoubleValue* fcff_;
int32_t id_;
bool b_;
double d_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_ProtoOption_2eproto;
};
// -------------------------------------------------------------------
class Full_Option_Message final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:OPTIONTEST.Full_Option_Message) */ {
public:
inline Full_Option_Message() : Full_Option_Message(nullptr) {}
~Full_Option_Message() override;
explicit PROTOBUF_CONSTEXPR Full_Option_Message(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
Full_Option_Message(const Full_Option_Message& from);
Full_Option_Message(Full_Option_Message&& from) noexcept
: Full_Option_Message() {
*this = ::std::move(from);
}
inline Full_Option_Message& operator=(const Full_Option_Message& from) {
CopyFrom(from);
return *this;
}
inline Full_Option_Message& operator=(Full_Option_Message&& 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 Full_Option_Message& default_instance() {
return *internal_default_instance();
}
static inline const Full_Option_Message* internal_default_instance() {
return reinterpret_cast<const Full_Option_Message*>(
&_Full_Option_Message_default_instance_);
}
static constexpr int kIndexInFileMessages =
3;
friend void swap(Full_Option_Message& a, Full_Option_Message& b) {
a.Swap(&b);
}
inline void Swap(Full_Option_Message* 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(Full_Option_Message* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Full_Option_Message* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Full_Option_Message>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const Full_Option_Message& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const Full_Option_Message& 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(Full_Option_Message* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "OPTIONTEST.Full_Option_Message";
}
protected:
explicit Full_Option_Message(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
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 {
kSourceidFieldNumber = 2,
kFCFFFieldNumber = 5,
kIdFieldNumber = 1,
kBFieldNumber = 4,
kDFieldNumber = 3,
};
// string sourceid = 2 [(.OPTIONTEST.filedOptipn) = {
void clear_sourceid();
const std::string& sourceid() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_sourceid(ArgT0&& arg0, ArgT... args);
std::string* mutable_sourceid();
PROTOBUF_NODISCARD std::string* release_sourceid();
void set_allocated_sourceid(std::string* sourceid);
private:
const std::string& _internal_sourceid() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_sourceid(const std::string& value);
std::string* _internal_mutable_sourceid();
public:
// .google.protobuf.DoubleValue FCFF = 5 [(.OPTIONTEST.filedOptipn) = {
bool has_fcff() const;
private:
bool _internal_has_fcff() const;
public:
void clear_fcff();
const ::PROTOBUF_NAMESPACE_ID::DoubleValue& fcff() const;
PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::DoubleValue* release_fcff();
::PROTOBUF_NAMESPACE_ID::DoubleValue* mutable_fcff();
void set_allocated_fcff(::PROTOBUF_NAMESPACE_ID::DoubleValue* fcff);
private:
const ::PROTOBUF_NAMESPACE_ID::DoubleValue& _internal_fcff() const;
::PROTOBUF_NAMESPACE_ID::DoubleValue* _internal_mutable_fcff();
public:
void unsafe_arena_set_allocated_fcff(
::PROTOBUF_NAMESPACE_ID::DoubleValue* fcff);
::PROTOBUF_NAMESPACE_ID::DoubleValue* unsafe_arena_release_fcff();
// int32 id = 1 [(.OPTIONTEST.filedOptipn) = {
void clear_id();
int32_t id() const;
void set_id(int32_t value);
private:
int32_t _internal_id() const;
void _internal_set_id(int32_t value);
public:
// bool b = 4 [(.OPTIONTEST.filedOptipn) = {
void clear_b();
bool b() const;
void set_b(bool value);
private:
bool _internal_b() const;
void _internal_set_b(bool value);
public:
// double d = 3 [(.OPTIONTEST.filedOptipn) = {
void clear_d();
double d() const;
void set_d(double value);
private:
double _internal_d() const;
void _internal_set_d(double value);
public:
// @@protoc_insertion_point(class_scope:OPTIONTEST.Full_Option_Message)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sourceid_;
::PROTOBUF_NAMESPACE_ID::DoubleValue* fcff_;
int32_t id_;
bool b_;
double d_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_ProtoOption_2eproto;
};
// ===================================================================
static const int kFileOptionFieldNumber = 10000;
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FileOptions,
::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false >
File_Option;
static const int kMessageOptionFieldNumber = 10001;
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MessageOptions,
::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::OPTIONTEST::AdditionOption >, 11, false >
messageOption;
static const int kFiledOptipnFieldNumber = 10002;
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions,
::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::OPTIONTEST::AdditionOption >, 11, false >
filedOptipn;
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// AdditionOption
// string s = 1;
inline void AdditionOption::clear_s() {
s_.ClearToEmpty();
}
inline const std::string& AdditionOption::s() const {
// @@protoc_insertion_point(field_get:OPTIONTEST.AdditionOption.s)
return _internal_s();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void AdditionOption::set_s(ArgT0&& arg0, ArgT... args) {
s_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:OPTIONTEST.AdditionOption.s)
}
inline std::string* AdditionOption::mutable_s() {
std::string* _s = _internal_mutable_s();
// @@protoc_insertion_point(field_mutable:OPTIONTEST.AdditionOption.s)
return _s;
}
inline const std::string& AdditionOption::_internal_s() const {
return s_.Get();
}
inline void AdditionOption::_internal_set_s(const std::string& value) {
s_.Set(value, GetArenaForAllocation());
}
inline std::string* AdditionOption::_internal_mutable_s() {
return s_.Mutable(GetArenaForAllocation());
}
inline std::string* AdditionOption::release_s() {
// @@protoc_insertion_point(field_release:OPTIONTEST.AdditionOption.s)
return s_.Release();
}
inline void AdditionOption::set_allocated_s(std::string* s) {
if (s != nullptr) {
} else {
}
s_.SetAllocated(s, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (s_.IsDefault()) {
s_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:OPTIONTEST.AdditionOption.s)
}
// int32 n = 2;
inline void AdditionOption::clear_n() {
n_ = 0;
}
inline int32_t AdditionOption::_internal_n() const {
return n_;
}
inline int32_t AdditionOption::n() const {
// @@protoc_insertion_point(field_get:OPTIONTEST.AdditionOption.n)
return _internal_n();
}
inline void AdditionOption::_internal_set_n(int32_t value) {
n_ = value;
}
inline void AdditionOption::set_n(int32_t value) {
_internal_set_n(value);
// @@protoc_insertion_point(field_set:OPTIONTEST.AdditionOption.n)
}
// double d = 3;
inline void AdditionOption::clear_d() {
d_ = 0;
}
inline double AdditionOption::_internal_d() const {
return d_;
}
inline double AdditionOption::d() const {
// @@protoc_insertion_point(field_get:OPTIONTEST.AdditionOption.d)
return _internal_d();
}
inline void AdditionOption::_internal_set_d(double value) {
d_ = value;
}
inline void AdditionOption::set_d(double value) {
_internal_set_d(value);
// @@protoc_insertion_point(field_set:OPTIONTEST.AdditionOption.d)
}
// bool b = 4;
inline void AdditionOption::clear_b() {
b_ = false;
}
inline bool AdditionOption::_internal_b() const {
return b_;
}
inline bool AdditionOption::b() const {
// @@protoc_insertion_point(field_get:OPTIONTEST.AdditionOption.b)
return _internal_b();
}
inline void AdditionOption::_internal_set_b(bool value) {
b_ = value;
}
inline void AdditionOption::set_b(bool value) {
_internal_set_b(value);
// @@protoc_insertion_point(field_set:OPTIONTEST.AdditionOption.b)
}
// -------------------------------------------------------------------
// Non_Option_Message
// int32 id = 1;
inline void Non_Option_Message::clear_id() {
id_ = 0;
}
inline int32_t Non_Option_Message::_internal_id() const {
return id_;
}
inline int32_t Non_Option_Message::id() const {
// @@protoc_insertion_point(field_get:OPTIONTEST.Non_Option_Message.id)
return _internal_id();
}
inline void Non_Option_Message::_internal_set_id(int32_t value) {
id_ = value;
}
inline void Non_Option_Message::set_id(int32_t value) {
_internal_set_id(value);
// @@protoc_insertion_point(field_set:OPTIONTEST.Non_Option_Message.id)
}
// string sourceid = 2;
inline void Non_Option_Message::clear_sourceid() {
sourceid_.ClearToEmpty();
}
inline const std::string& Non_Option_Message::sourceid() const {
// @@protoc_insertion_point(field_get:OPTIONTEST.Non_Option_Message.sourceid)
return _internal_sourceid();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void Non_Option_Message::set_sourceid(ArgT0&& arg0, ArgT... args) {
sourceid_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:OPTIONTEST.Non_Option_Message.sourceid)
}
inline std::string* Non_Option_Message::mutable_sourceid() {
std::string* _s = _internal_mutable_sourceid();
// @@protoc_insertion_point(field_mutable:OPTIONTEST.Non_Option_Message.sourceid)
return _s;
}
inline const std::string& Non_Option_Message::_internal_sourceid() const {
return sourceid_.Get();
}
inline void Non_Option_Message::_internal_set_sourceid(const std::string& value) {
sourceid_.Set(value, GetArenaForAllocation());
}
inline std::string* Non_Option_Message::_internal_mutable_sourceid() {
return sourceid_.Mutable(GetArenaForAllocation());
}
inline std::string* Non_Option_Message::release_sourceid() {
// @@protoc_insertion_point(field_release:OPTIONTEST.Non_Option_Message.sourceid)
return sourceid_.Release();
}
inline void Non_Option_Message::set_allocated_sourceid(std::string* sourceid) {
if (sourceid != nullptr) {
} else {
}
sourceid_.SetAllocated(sourceid, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (sourceid_.IsDefault()) {
sourceid_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:OPTIONTEST.Non_Option_Message.sourceid)
}
// double d = 3;
inline void Non_Option_Message::clear_d() {
d_ = 0;
}
inline double Non_Option_Message::_internal_d() const {
return d_;
}
inline double Non_Option_Message::d() const {
// @@protoc_insertion_point(field_get:OPTIONTEST.Non_Option_Message.d)
return _internal_d();
}
inline void Non_Option_Message::_internal_set_d(double value) {
d_ = value;
}
inline void Non_Option_Message::set_d(double value) {
_internal_set_d(value);
// @@protoc_insertion_point(field_set:OPTIONTEST.Non_Option_Message.d)
}
// bool b = 4;
inline void Non_Option_Message::clear_b() {
b_ = false;
}
inline bool Non_Option_Message::_internal_b() const {
return b_;
}
inline bool Non_Option_Message::b() const {
// @@protoc_insertion_point(field_get:OPTIONTEST.Non_Option_Message.b)
return _internal_b();
}
inline void Non_Option_Message::_internal_set_b(bool value) {
b_ = value;
}
inline void Non_Option_Message::set_b(bool value) {
_internal_set_b(value);
// @@protoc_insertion_point(field_set:OPTIONTEST.Non_Option_Message.b)
}
// .google.protobuf.DoubleValue FCFF = 5;
inline bool Non_Option_Message::_internal_has_fcff() const {
return this != internal_default_instance() && fcff_ != nullptr;
}
inline bool Non_Option_Message::has_fcff() const {
return _internal_has_fcff();
}
inline const ::PROTOBUF_NAMESPACE_ID::DoubleValue& Non_Option_Message::_internal_fcff() const {
const ::PROTOBUF_NAMESPACE_ID::DoubleValue* p = fcff_;
return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::DoubleValue&>(
::PROTOBUF_NAMESPACE_ID::_DoubleValue_default_instance_);
}
inline const ::PROTOBUF_NAMESPACE_ID::DoubleValue& Non_Option_Message::fcff() const {
// @@protoc_insertion_point(field_get:OPTIONTEST.Non_Option_Message.FCFF)
return _internal_fcff();
}
inline void Non_Option_Message::unsafe_arena_set_allocated_fcff(
::PROTOBUF_NAMESPACE_ID::DoubleValue* fcff) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fcff_);
}
fcff_ = fcff;
if (fcff) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:OPTIONTEST.Non_Option_Message.FCFF)
}
inline ::PROTOBUF_NAMESPACE_ID::DoubleValue* Non_Option_Message::release_fcff() {
::PROTOBUF_NAMESPACE_ID::DoubleValue* temp = fcff_;
fcff_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::PROTOBUF_NAMESPACE_ID::DoubleValue* Non_Option_Message::unsafe_arena_release_fcff() {
// @@protoc_insertion_point(field_release:OPTIONTEST.Non_Option_Message.FCFF)
::PROTOBUF_NAMESPACE_ID::DoubleValue* temp = fcff_;
fcff_ = nullptr;
return temp;
}
inline ::PROTOBUF_NAMESPACE_ID::DoubleValue* Non_Option_Message::_internal_mutable_fcff() {
if (fcff_ == nullptr) {
auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::DoubleValue>(GetArenaForAllocation());
fcff_ = p;
}
return fcff_;
}
inline ::PROTOBUF_NAMESPACE_ID::DoubleValue* Non_Option_Message::mutable_fcff() {
::PROTOBUF_NAMESPACE_ID::DoubleValue* _msg = _internal_mutable_fcff();
// @@protoc_insertion_point(field_mutable:OPTIONTEST.Non_Option_Message.FCFF)
return _msg;
}
inline void Non_Option_Message::set_allocated_fcff(::PROTOBUF_NAMESPACE_ID::DoubleValue* fcff) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(fcff_);
}
if (fcff) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fcff));
if (message_arena != submessage_arena) {
fcff = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, fcff, submessage_arena);
}
} else {
}
fcff_ = fcff;
// @@protoc_insertion_point(field_set_allocated:OPTIONTEST.Non_Option_Message.FCFF)
}
// -------------------------------------------------------------------
// Single_Option_Message
// int32 id = 1 [(.OPTIONTEST.filedOptipn) = {
inline void Single_Option_Message::clear_id() {
id_ = 0;
}
inline int32_t Single_Option_Message::_internal_id() const {
return id_;
}
inline int32_t Single_Option_Message::id() const {
// @@protoc_insertion_point(field_get:OPTIONTEST.Single_Option_Message.id)
return _internal_id();
}
inline void Single_Option_Message::_internal_set_id(int32_t value) {
id_ = value;
}
inline void Single_Option_Message::set_id(int32_t value) {
_internal_set_id(value);
// @@protoc_insertion_point(field_set:OPTIONTEST.Single_Option_Message.id)
}
// string sourceid = 2;
inline void Single_Option_Message::clear_sourceid() {
sourceid_.ClearToEmpty();
}
inline const std::string& Single_Option_Message::sourceid() const {
// @@protoc_insertion_point(field_get:OPTIONTEST.Single_Option_Message.sourceid)
return _internal_sourceid();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void Single_Option_Message::set_sourceid(ArgT0&& arg0, ArgT... args) {
sourceid_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:OPTIONTEST.Single_Option_Message.sourceid)
}
inline std::string* Single_Option_Message::mutable_sourceid() {
std::string* _s = _internal_mutable_sourceid();
// @@protoc_insertion_point(field_mutable:OPTIONTEST.Single_Option_Message.sourceid)
return _s;
}
inline const std::string& Single_Option_Message::_internal_sourceid() const {
return sourceid_.Get();
}
inline void Single_Option_Message::_internal_set_sourceid(const std::string& value) {
sourceid_.Set(value, GetArenaForAllocation());
}
inline std::string* Single_Option_Message::_internal_mutable_sourceid() {
return sourceid_.Mutable(GetArenaForAllocation());
}
inline std::string* Single_Option_Message::release_sourceid() {
// @@protoc_insertion_point(field_release:OPTIONTEST.Single_Option_Message.sourceid)
return sourceid_.Release();
}
inline void Single_Option_Message::set_allocated_sourceid(std::string* sourceid) {
if (sourceid != nullptr) {
} else {
}
sourceid_.SetAllocated(sourceid, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (sourceid_.IsDefault()) {
sourceid_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:OPTIONTEST.Single_Option_Message.sourceid)
}
// double d = 3;
inline void Single_Option_Message::clear_d() {
d_ = 0;
}
inline double Single_Option_Message::_internal_d() const {
return d_;
}
inline double Single_Option_Message::d() const {
// @@protoc_insertion_point(field_get:OPTIONTEST.Single_Option_Message.d)
return _internal_d();
}
inline void Single_Option_Message::_internal_set_d(double value) {
d_ = value;
}
inline void Single_Option_Message::set_d(double value) {
_internal_set_d(value);
// @@protoc_insertion_point(field_set:OPTIONTEST.Single_Option_Message.d)
}
// bool b = 4;
inline void Single_Option_Message::clear_b() {
b_ = false;
}
inline bool Single_Option_Message::_internal_b() const {
return b_;
}
inline bool Single_Option_Message::b() const {
// @@protoc_insertion_point(field_get:OPTIONTEST.Single_Option_Message.b)
return _internal_b();
}
inline void Single_Option_Message::_internal_set_b(bool value) {
b_ = value;
}
inline void Single_Option_Message::set_b(bool value) {
_internal_set_b(value);
// @@protoc_insertion_point(field_set:OPTIONTEST.Single_Option_Message.b)
}
// .google.protobuf.DoubleValue FCFF = 5;
inline bool Single_Option_Message::_internal_has_fcff() const {
return this != internal_default_instance() && fcff_ != nullptr;
}
inline bool Single_Option_Message::has_fcff() const {
return _internal_has_fcff();
}
inline const ::PROTOBUF_NAMESPACE_ID::DoubleValue& Single_Option_Message::_internal_fcff() const {
const ::PROTOBUF_NAMESPACE_ID::DoubleValue* p = fcff_;
return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::DoubleValue&>(
::PROTOBUF_NAMESPACE_ID::_DoubleValue_default_instance_);
}
inline const ::PROTOBUF_NAMESPACE_ID::DoubleValue& Single_Option_Message::fcff() const {
// @@protoc_insertion_point(field_get:OPTIONTEST.Single_Option_Message.FCFF)
return _internal_fcff();
}
inline void Single_Option_Message::unsafe_arena_set_allocated_fcff(
::PROTOBUF_NAMESPACE_ID::DoubleValue* fcff) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fcff_);
}
fcff_ = fcff;
if (fcff) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:OPTIONTEST.Single_Option_Message.FCFF)
}
inline ::PROTOBUF_NAMESPACE_ID::DoubleValue* Single_Option_Message::release_fcff() {
::PROTOBUF_NAMESPACE_ID::DoubleValue* temp = fcff_;
fcff_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::PROTOBUF_NAMESPACE_ID::DoubleValue* Single_Option_Message::unsafe_arena_release_fcff() {
// @@protoc_insertion_point(field_release:OPTIONTEST.Single_Option_Message.FCFF)
::PROTOBUF_NAMESPACE_ID::DoubleValue* temp = fcff_;
fcff_ = nullptr;
return temp;
}
inline ::PROTOBUF_NAMESPACE_ID::DoubleValue* Single_Option_Message::_internal_mutable_fcff() {
if (fcff_ == nullptr) {
auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::DoubleValue>(GetArenaForAllocation());
fcff_ = p;
}
return fcff_;
}
inline ::PROTOBUF_NAMESPACE_ID::DoubleValue* Single_Option_Message::mutable_fcff() {
::PROTOBUF_NAMESPACE_ID::DoubleValue* _msg = _internal_mutable_fcff();
// @@protoc_insertion_point(field_mutable:OPTIONTEST.Single_Option_Message.FCFF)
return _msg;
}
inline void Single_Option_Message::set_allocated_fcff(::PROTOBUF_NAMESPACE_ID::DoubleValue* fcff) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(fcff_);
}
if (fcff) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fcff));
if (message_arena != submessage_arena) {
fcff = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, fcff, submessage_arena);
}
} else {
}
fcff_ = fcff;
// @@protoc_insertion_point(field_set_allocated:OPTIONTEST.Single_Option_Message.FCFF)
}
// -------------------------------------------------------------------
// Full_Option_Message
// int32 id = 1 [(.OPTIONTEST.filedOptipn) = {
inline void Full_Option_Message::clear_id() {
id_ = 0;
}
inline int32_t Full_Option_Message::_internal_id() const {
return id_;
}
inline int32_t Full_Option_Message::id() const {
// @@protoc_insertion_point(field_get:OPTIONTEST.Full_Option_Message.id)
return _internal_id();
}
inline void Full_Option_Message::_internal_set_id(int32_t value) {
id_ = value;
}
inline void Full_Option_Message::set_id(int32_t value) {
_internal_set_id(value);
// @@protoc_insertion_point(field_set:OPTIONTEST.Full_Option_Message.id)
}
// string sourceid = 2 [(.OPTIONTEST.filedOptipn) = {
inline void Full_Option_Message::clear_sourceid() {
sourceid_.ClearToEmpty();
}
inline const std::string& Full_Option_Message::sourceid() const {
// @@protoc_insertion_point(field_get:OPTIONTEST.Full_Option_Message.sourceid)
return _internal_sourceid();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void Full_Option_Message::set_sourceid(ArgT0&& arg0, ArgT... args) {
sourceid_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:OPTIONTEST.Full_Option_Message.sourceid)
}
inline std::string* Full_Option_Message::mutable_sourceid() {
std::string* _s = _internal_mutable_sourceid();
// @@protoc_insertion_point(field_mutable:OPTIONTEST.Full_Option_Message.sourceid)
return _s;
}
inline const std::string& Full_Option_Message::_internal_sourceid() const {
return sourceid_.Get();
}
inline void Full_Option_Message::_internal_set_sourceid(const std::string& value) {
sourceid_.Set(value, GetArenaForAllocation());
}
inline std::string* Full_Option_Message::_internal_mutable_sourceid() {
return sourceid_.Mutable(GetArenaForAllocation());
}
inline std::string* Full_Option_Message::release_sourceid() {
// @@protoc_insertion_point(field_release:OPTIONTEST.Full_Option_Message.sourceid)
return sourceid_.Release();
}
inline void Full_Option_Message::set_allocated_sourceid(std::string* sourceid) {
if (sourceid != nullptr) {
} else {
}
sourceid_.SetAllocated(sourceid, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (sourceid_.IsDefault()) {
sourceid_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:OPTIONTEST.Full_Option_Message.sourceid)
}
// double d = 3 [(.OPTIONTEST.filedOptipn) = {
inline void Full_Option_Message::clear_d() {
d_ = 0;
}
inline double Full_Option_Message::_internal_d() const {
return d_;
}
inline double Full_Option_Message::d() const {
// @@protoc_insertion_point(field_get:OPTIONTEST.Full_Option_Message.d)
return _internal_d();
}
inline void Full_Option_Message::_internal_set_d(double value) {
d_ = value;
}
inline void Full_Option_Message::set_d(double value) {
_internal_set_d(value);
// @@protoc_insertion_point(field_set:OPTIONTEST.Full_Option_Message.d)
}
// bool b = 4 [(.OPTIONTEST.filedOptipn) = {
inline void Full_Option_Message::clear_b() {
b_ = false;
}
inline bool Full_Option_Message::_internal_b() const {
return b_;
}
inline bool Full_Option_Message::b() const {
// @@protoc_insertion_point(field_get:OPTIONTEST.Full_Option_Message.b)
return _internal_b();
}
inline void Full_Option_Message::_internal_set_b(bool value) {
b_ = value;
}
inline void Full_Option_Message::set_b(bool value) {
_internal_set_b(value);
// @@protoc_insertion_point(field_set:OPTIONTEST.Full_Option_Message.b)
}
// .google.protobuf.DoubleValue FCFF = 5 [(.OPTIONTEST.filedOptipn) = {
inline bool Full_Option_Message::_internal_has_fcff() const {
return this != internal_default_instance() && fcff_ != nullptr;
}
inline bool Full_Option_Message::has_fcff() const {
return _internal_has_fcff();
}
inline const ::PROTOBUF_NAMESPACE_ID::DoubleValue& Full_Option_Message::_internal_fcff() const {
const ::PROTOBUF_NAMESPACE_ID::DoubleValue* p = fcff_;
return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::DoubleValue&>(
::PROTOBUF_NAMESPACE_ID::_DoubleValue_default_instance_);
}
inline const ::PROTOBUF_NAMESPACE_ID::DoubleValue& Full_Option_Message::fcff() const {
// @@protoc_insertion_point(field_get:OPTIONTEST.Full_Option_Message.FCFF)
return _internal_fcff();
}
inline void Full_Option_Message::unsafe_arena_set_allocated_fcff(
::PROTOBUF_NAMESPACE_ID::DoubleValue* fcff) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fcff_);
}
fcff_ = fcff;
if (fcff) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:OPTIONTEST.Full_Option_Message.FCFF)
}
inline ::PROTOBUF_NAMESPACE_ID::DoubleValue* Full_Option_Message::release_fcff() {
::PROTOBUF_NAMESPACE_ID::DoubleValue* temp = fcff_;
fcff_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::PROTOBUF_NAMESPACE_ID::DoubleValue* Full_Option_Message::unsafe_arena_release_fcff() {
// @@protoc_insertion_point(field_release:OPTIONTEST.Full_Option_Message.FCFF)
::PROTOBUF_NAMESPACE_ID::DoubleValue* temp = fcff_;
fcff_ = nullptr;
return temp;
}
inline ::PROTOBUF_NAMESPACE_ID::DoubleValue* Full_Option_Message::_internal_mutable_fcff() {
if (fcff_ == nullptr) {
auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::DoubleValue>(GetArenaForAllocation());
fcff_ = p;
}
return fcff_;
}
inline ::PROTOBUF_NAMESPACE_ID::DoubleValue* Full_Option_Message::mutable_fcff() {
::PROTOBUF_NAMESPACE_ID::DoubleValue* _msg = _internal_mutable_fcff();
// @@protoc_insertion_point(field_mutable:OPTIONTEST.Full_Option_Message.FCFF)
return _msg;
}
inline void Full_Option_Message::set_allocated_fcff(::PROTOBUF_NAMESPACE_ID::DoubleValue* fcff) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(fcff_);
}
if (fcff) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fcff));
if (message_arena != submessage_arena) {
fcff = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, fcff, submessage_arena);
}
} else {
}
fcff_ = fcff;
// @@protoc_insertion_point(field_set_allocated:OPTIONTEST.Full_Option_Message.FCFF)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
} // namespace OPTIONTEST
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ProtoOption_2eproto