working commit
This commit is contained in:
+551
-7
@@ -42,17 +42,299 @@ struct TableStruct_hello_2eproto {
|
||||
static const uint32_t offsets[];
|
||||
};
|
||||
namespace control {
|
||||
class Header;
|
||||
struct HeaderDefaultTypeInternal;
|
||||
extern HeaderDefaultTypeInternal _Header_default_instance_;
|
||||
class Hello;
|
||||
struct HelloDefaultTypeInternal;
|
||||
extern HelloDefaultTypeInternal _Hello_default_instance_;
|
||||
class Meta;
|
||||
struct MetaDefaultTypeInternal;
|
||||
extern MetaDefaultTypeInternal _Meta_default_instance_;
|
||||
} // namespace control
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> ::control::Header* Arena::CreateMaybeMessage<::control::Header>(Arena*);
|
||||
template<> ::control::Hello* Arena::CreateMaybeMessage<::control::Hello>(Arena*);
|
||||
template<> ::control::Meta* Arena::CreateMaybeMessage<::control::Meta>(Arena*);
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
namespace control {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class Header final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:control.Header) */ {
|
||||
public:
|
||||
inline Header() : Header(nullptr) {}
|
||||
~Header() override;
|
||||
explicit PROTOBUF_CONSTEXPR Header(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
Header(const Header& from);
|
||||
Header(Header&& from) noexcept
|
||||
: Header() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline Header& operator=(const Header& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline Header& operator=(Header&& 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 Header& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const Header* internal_default_instance() {
|
||||
return reinterpret_cast<const Header*>(
|
||||
&_Header_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
0;
|
||||
|
||||
friend void swap(Header& a, Header& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(Header* 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(Header* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
Header* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<Header>(arena);
|
||||
}
|
||||
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
|
||||
void CopyFrom(const Header& from);
|
||||
void MergeFrom(const Header& from);
|
||||
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 _impl_._cached_size_.Get(); }
|
||||
|
||||
private:
|
||||
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
|
||||
void SharedDtor();
|
||||
void SetCachedSize(int size) const;
|
||||
void InternalSwap(Header* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "control.Header";
|
||||
}
|
||||
protected:
|
||||
explicit Header(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned = false);
|
||||
public:
|
||||
|
||||
std::string GetTypeName() const final;
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kMetaFieldNumber = 1,
|
||||
};
|
||||
// .control.Meta meta = 1;
|
||||
bool has_meta() const;
|
||||
private:
|
||||
bool _internal_has_meta() const;
|
||||
public:
|
||||
void clear_meta();
|
||||
const ::control::Meta& meta() const;
|
||||
PROTOBUF_NODISCARD ::control::Meta* release_meta();
|
||||
::control::Meta* mutable_meta();
|
||||
void set_allocated_meta(::control::Meta* meta);
|
||||
private:
|
||||
const ::control::Meta& _internal_meta() const;
|
||||
::control::Meta* _internal_mutable_meta();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_meta(
|
||||
::control::Meta* meta);
|
||||
::control::Meta* unsafe_arena_release_meta();
|
||||
|
||||
// @@protoc_insertion_point(class_scope:control.Header)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::control::Meta* meta_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_hello_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class Meta final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:control.Meta) */ {
|
||||
public:
|
||||
inline Meta() : Meta(nullptr) {}
|
||||
~Meta() override;
|
||||
explicit PROTOBUF_CONSTEXPR Meta(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
Meta(const Meta& from);
|
||||
Meta(Meta&& from) noexcept
|
||||
: Meta() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline Meta& operator=(const Meta& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline Meta& operator=(Meta&& 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 Meta& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const Meta* internal_default_instance() {
|
||||
return reinterpret_cast<const Meta*>(
|
||||
&_Meta_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
1;
|
||||
|
||||
friend void swap(Meta& a, Meta& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(Meta* 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(Meta* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
Meta* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<Meta>(arena);
|
||||
}
|
||||
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
|
||||
void CopyFrom(const Meta& from);
|
||||
void MergeFrom(const Meta& from);
|
||||
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 _impl_._cached_size_.Get(); }
|
||||
|
||||
private:
|
||||
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
|
||||
void SharedDtor();
|
||||
void SetCachedSize(int size) const;
|
||||
void InternalSwap(Meta* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "control.Meta";
|
||||
}
|
||||
protected:
|
||||
explicit Meta(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned = false);
|
||||
public:
|
||||
|
||||
std::string GetTypeName() const final;
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kRpcnameFieldNumber = 1,
|
||||
};
|
||||
// string rpcname = 1;
|
||||
void clear_rpcname();
|
||||
const std::string& rpcname() const;
|
||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||
void set_rpcname(ArgT0&& arg0, ArgT... args);
|
||||
std::string* mutable_rpcname();
|
||||
PROTOBUF_NODISCARD std::string* release_rpcname();
|
||||
void set_allocated_rpcname(std::string* rpcname);
|
||||
private:
|
||||
const std::string& _internal_rpcname() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_rpcname(const std::string& value);
|
||||
std::string* _internal_mutable_rpcname();
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:control.Meta)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr rpcname_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_hello_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class Hello final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:control.Hello) */ {
|
||||
public:
|
||||
@@ -92,7 +374,7 @@ class Hello final :
|
||||
&_Hello_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
0;
|
||||
2;
|
||||
|
||||
friend void swap(Hello& a, Hello& b) {
|
||||
a.Swap(&b);
|
||||
@@ -156,10 +438,11 @@ class Hello final :
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kNameFieldNumber = 2,
|
||||
kIdFieldNumber = 1,
|
||||
kNameFieldNumber = 3,
|
||||
kMetaFieldNumber = 1,
|
||||
kIdFieldNumber = 2,
|
||||
};
|
||||
// string name = 2;
|
||||
// string name = 3;
|
||||
void clear_name();
|
||||
const std::string& name() const;
|
||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||
@@ -173,7 +456,25 @@ class Hello final :
|
||||
std::string* _internal_mutable_name();
|
||||
public:
|
||||
|
||||
// int32 id = 1;
|
||||
// .control.Meta meta = 1;
|
||||
bool has_meta() const;
|
||||
private:
|
||||
bool _internal_has_meta() const;
|
||||
public:
|
||||
void clear_meta();
|
||||
const ::control::Meta& meta() const;
|
||||
PROTOBUF_NODISCARD ::control::Meta* release_meta();
|
||||
::control::Meta* mutable_meta();
|
||||
void set_allocated_meta(::control::Meta* meta);
|
||||
private:
|
||||
const ::control::Meta& _internal_meta() const;
|
||||
::control::Meta* _internal_mutable_meta();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_meta(
|
||||
::control::Meta* meta);
|
||||
::control::Meta* unsafe_arena_release_meta();
|
||||
|
||||
// int32 id = 2;
|
||||
void clear_id();
|
||||
int32_t id() const;
|
||||
void set_id(int32_t value);
|
||||
@@ -191,6 +492,7 @@ class Hello final :
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
|
||||
::control::Meta* meta_;
|
||||
int32_t id_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
@@ -206,9 +508,247 @@ class Hello final :
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#endif // __GNUC__
|
||||
// Header
|
||||
|
||||
// .control.Meta meta = 1;
|
||||
inline bool Header::_internal_has_meta() const {
|
||||
return this != internal_default_instance() && _impl_.meta_ != nullptr;
|
||||
}
|
||||
inline bool Header::has_meta() const {
|
||||
return _internal_has_meta();
|
||||
}
|
||||
inline void Header::clear_meta() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.meta_ != nullptr) {
|
||||
delete _impl_.meta_;
|
||||
}
|
||||
_impl_.meta_ = nullptr;
|
||||
}
|
||||
inline const ::control::Meta& Header::_internal_meta() const {
|
||||
const ::control::Meta* p = _impl_.meta_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::control::Meta&>(
|
||||
::control::_Meta_default_instance_);
|
||||
}
|
||||
inline const ::control::Meta& Header::meta() const {
|
||||
// @@protoc_insertion_point(field_get:control.Header.meta)
|
||||
return _internal_meta();
|
||||
}
|
||||
inline void Header::unsafe_arena_set_allocated_meta(
|
||||
::control::Meta* meta) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.meta_);
|
||||
}
|
||||
_impl_.meta_ = meta;
|
||||
if (meta) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:control.Header.meta)
|
||||
}
|
||||
inline ::control::Meta* Header::release_meta() {
|
||||
|
||||
::control::Meta* temp = _impl_.meta_;
|
||||
_impl_.meta_ = 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 ::control::Meta* Header::unsafe_arena_release_meta() {
|
||||
// @@protoc_insertion_point(field_release:control.Header.meta)
|
||||
|
||||
::control::Meta* temp = _impl_.meta_;
|
||||
_impl_.meta_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::control::Meta* Header::_internal_mutable_meta() {
|
||||
|
||||
if (_impl_.meta_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::control::Meta>(GetArenaForAllocation());
|
||||
_impl_.meta_ = p;
|
||||
}
|
||||
return _impl_.meta_;
|
||||
}
|
||||
inline ::control::Meta* Header::mutable_meta() {
|
||||
::control::Meta* _msg = _internal_mutable_meta();
|
||||
// @@protoc_insertion_point(field_mutable:control.Header.meta)
|
||||
return _msg;
|
||||
}
|
||||
inline void Header::set_allocated_meta(::control::Meta* meta) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete _impl_.meta_;
|
||||
}
|
||||
if (meta) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(meta);
|
||||
if (message_arena != submessage_arena) {
|
||||
meta = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, meta, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.meta_ = meta;
|
||||
// @@protoc_insertion_point(field_set_allocated:control.Header.meta)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// Meta
|
||||
|
||||
// string rpcname = 1;
|
||||
inline void Meta::clear_rpcname() {
|
||||
_impl_.rpcname_.ClearToEmpty();
|
||||
}
|
||||
inline const std::string& Meta::rpcname() const {
|
||||
// @@protoc_insertion_point(field_get:control.Meta.rpcname)
|
||||
return _internal_rpcname();
|
||||
}
|
||||
template <typename ArgT0, typename... ArgT>
|
||||
inline PROTOBUF_ALWAYS_INLINE
|
||||
void Meta::set_rpcname(ArgT0&& arg0, ArgT... args) {
|
||||
|
||||
_impl_.rpcname_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:control.Meta.rpcname)
|
||||
}
|
||||
inline std::string* Meta::mutable_rpcname() {
|
||||
std::string* _s = _internal_mutable_rpcname();
|
||||
// @@protoc_insertion_point(field_mutable:control.Meta.rpcname)
|
||||
return _s;
|
||||
}
|
||||
inline const std::string& Meta::_internal_rpcname() const {
|
||||
return _impl_.rpcname_.Get();
|
||||
}
|
||||
inline void Meta::_internal_set_rpcname(const std::string& value) {
|
||||
|
||||
_impl_.rpcname_.Set(value, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* Meta::_internal_mutable_rpcname() {
|
||||
|
||||
return _impl_.rpcname_.Mutable(GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* Meta::release_rpcname() {
|
||||
// @@protoc_insertion_point(field_release:control.Meta.rpcname)
|
||||
return _impl_.rpcname_.Release();
|
||||
}
|
||||
inline void Meta::set_allocated_rpcname(std::string* rpcname) {
|
||||
if (rpcname != nullptr) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.rpcname_.SetAllocated(rpcname, GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (_impl_.rpcname_.IsDefault()) {
|
||||
_impl_.rpcname_.Set("", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
// @@protoc_insertion_point(field_set_allocated:control.Meta.rpcname)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// Hello
|
||||
|
||||
// int32 id = 1;
|
||||
// .control.Meta meta = 1;
|
||||
inline bool Hello::_internal_has_meta() const {
|
||||
return this != internal_default_instance() && _impl_.meta_ != nullptr;
|
||||
}
|
||||
inline bool Hello::has_meta() const {
|
||||
return _internal_has_meta();
|
||||
}
|
||||
inline void Hello::clear_meta() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.meta_ != nullptr) {
|
||||
delete _impl_.meta_;
|
||||
}
|
||||
_impl_.meta_ = nullptr;
|
||||
}
|
||||
inline const ::control::Meta& Hello::_internal_meta() const {
|
||||
const ::control::Meta* p = _impl_.meta_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::control::Meta&>(
|
||||
::control::_Meta_default_instance_);
|
||||
}
|
||||
inline const ::control::Meta& Hello::meta() const {
|
||||
// @@protoc_insertion_point(field_get:control.Hello.meta)
|
||||
return _internal_meta();
|
||||
}
|
||||
inline void Hello::unsafe_arena_set_allocated_meta(
|
||||
::control::Meta* meta) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.meta_);
|
||||
}
|
||||
_impl_.meta_ = meta;
|
||||
if (meta) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:control.Hello.meta)
|
||||
}
|
||||
inline ::control::Meta* Hello::release_meta() {
|
||||
|
||||
::control::Meta* temp = _impl_.meta_;
|
||||
_impl_.meta_ = 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 ::control::Meta* Hello::unsafe_arena_release_meta() {
|
||||
// @@protoc_insertion_point(field_release:control.Hello.meta)
|
||||
|
||||
::control::Meta* temp = _impl_.meta_;
|
||||
_impl_.meta_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::control::Meta* Hello::_internal_mutable_meta() {
|
||||
|
||||
if (_impl_.meta_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::control::Meta>(GetArenaForAllocation());
|
||||
_impl_.meta_ = p;
|
||||
}
|
||||
return _impl_.meta_;
|
||||
}
|
||||
inline ::control::Meta* Hello::mutable_meta() {
|
||||
::control::Meta* _msg = _internal_mutable_meta();
|
||||
// @@protoc_insertion_point(field_mutable:control.Hello.meta)
|
||||
return _msg;
|
||||
}
|
||||
inline void Hello::set_allocated_meta(::control::Meta* meta) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete _impl_.meta_;
|
||||
}
|
||||
if (meta) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(meta);
|
||||
if (message_arena != submessage_arena) {
|
||||
meta = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, meta, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.meta_ = meta;
|
||||
// @@protoc_insertion_point(field_set_allocated:control.Hello.meta)
|
||||
}
|
||||
|
||||
// int32 id = 2;
|
||||
inline void Hello::clear_id() {
|
||||
_impl_.id_ = 0;
|
||||
}
|
||||
@@ -228,7 +768,7 @@ inline void Hello::set_id(int32_t value) {
|
||||
// @@protoc_insertion_point(field_set:control.Hello.id)
|
||||
}
|
||||
|
||||
// string name = 2;
|
||||
// string name = 3;
|
||||
inline void Hello::clear_name() {
|
||||
_impl_.name_.ClearToEmpty();
|
||||
}
|
||||
@@ -281,6 +821,10 @@ inline void Hello::set_allocated_name(std::string* name) {
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // __GNUC__
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user