837 lines
26 KiB
C++
837 lines
26 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: hello.proto
|
|
|
|
#ifndef GOOGLE_PROTOBUF_INCLUDED_hello_2eproto
|
|
#define GOOGLE_PROTOBUF_INCLUDED_hello_2eproto
|
|
|
|
#include <limits>
|
|
#include <string>
|
|
|
|
#include <google/protobuf/port_def.inc>
|
|
#if PROTOBUF_VERSION < 3021000
|
|
#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 3021012 < 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/message_lite.h>
|
|
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
|
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
|
// @@protoc_insertion_point(includes)
|
|
#include <google/protobuf/port_def.inc>
|
|
#define PROTOBUF_INTERNAL_EXPORT_hello_2eproto
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
namespace internal {
|
|
class AnyMetadata;
|
|
} // namespace internal
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// Internal implementation detail -- do not use these members.
|
|
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:
|
|
inline Hello() : Hello(nullptr) {}
|
|
~Hello() override;
|
|
explicit PROTOBUF_CONSTEXPR Hello(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
|
|
|
Hello(const Hello& from);
|
|
Hello(Hello&& from) noexcept
|
|
: Hello() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline Hello& operator=(const Hello& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline Hello& operator=(Hello&& 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 Hello& default_instance() {
|
|
return *internal_default_instance();
|
|
}
|
|
static inline const Hello* internal_default_instance() {
|
|
return reinterpret_cast<const Hello*>(
|
|
&_Hello_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
2;
|
|
|
|
friend void swap(Hello& a, Hello& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(Hello* 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(Hello* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
Hello* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
|
return CreateMaybeMessage<Hello>(arena);
|
|
}
|
|
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
|
|
void CopyFrom(const Hello& from);
|
|
void MergeFrom(const Hello& 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(Hello* other);
|
|
|
|
private:
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "control.Hello";
|
|
}
|
|
protected:
|
|
explicit Hello(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
bool is_message_owned = false);
|
|
public:
|
|
|
|
std::string GetTypeName() const final;
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kNameFieldNumber = 3,
|
|
kMetaFieldNumber = 1,
|
|
kIdFieldNumber = 2,
|
|
};
|
|
// string name = 3;
|
|
void clear_name();
|
|
const std::string& name() const;
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
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:
|
|
|
|
// .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);
|
|
private:
|
|
int32_t _internal_id() const;
|
|
void _internal_set_id(int32_t value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:control.Hello)
|
|
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 name_;
|
|
::control::Meta* meta_;
|
|
int32_t id_;
|
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
|
};
|
|
union { Impl_ _impl_; };
|
|
friend struct ::TableStruct_hello_2eproto;
|
|
};
|
|
// ===================================================================
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifdef __GNUC__
|
|
#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
|
|
|
|
// .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;
|
|
}
|
|
inline int32_t Hello::_internal_id() const {
|
|
return _impl_.id_;
|
|
}
|
|
inline int32_t Hello::id() const {
|
|
// @@protoc_insertion_point(field_get:control.Hello.id)
|
|
return _internal_id();
|
|
}
|
|
inline void Hello::_internal_set_id(int32_t value) {
|
|
|
|
_impl_.id_ = value;
|
|
}
|
|
inline void Hello::set_id(int32_t value) {
|
|
_internal_set_id(value);
|
|
// @@protoc_insertion_point(field_set:control.Hello.id)
|
|
}
|
|
|
|
// string name = 3;
|
|
inline void Hello::clear_name() {
|
|
_impl_.name_.ClearToEmpty();
|
|
}
|
|
inline const std::string& Hello::name() const {
|
|
// @@protoc_insertion_point(field_get:control.Hello.name)
|
|
return _internal_name();
|
|
}
|
|
template <typename ArgT0, typename... ArgT>
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
void Hello::set_name(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set:control.Hello.name)
|
|
}
|
|
inline std::string* Hello::mutable_name() {
|
|
std::string* _s = _internal_mutable_name();
|
|
// @@protoc_insertion_point(field_mutable:control.Hello.name)
|
|
return _s;
|
|
}
|
|
inline const std::string& Hello::_internal_name() const {
|
|
return _impl_.name_.Get();
|
|
}
|
|
inline void Hello::_internal_set_name(const std::string& value) {
|
|
|
|
_impl_.name_.Set(value, GetArenaForAllocation());
|
|
}
|
|
inline std::string* Hello::_internal_mutable_name() {
|
|
|
|
return _impl_.name_.Mutable(GetArenaForAllocation());
|
|
}
|
|
inline std::string* Hello::release_name() {
|
|
// @@protoc_insertion_point(field_release:control.Hello.name)
|
|
return _impl_.name_.Release();
|
|
}
|
|
inline void Hello::set_allocated_name(std::string* name) {
|
|
if (name != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
_impl_.name_.SetAllocated(name, GetArenaForAllocation());
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (_impl_.name_.IsDefault()) {
|
|
_impl_.name_.Set("", GetArenaForAllocation());
|
|
}
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
// @@protoc_insertion_point(field_set_allocated:control.Hello.name)
|
|
}
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic pop
|
|
#endif // __GNUC__
|
|
// -------------------------------------------------------------------
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
|
} // namespace control
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
#include <google/protobuf/port_undef.inc>
|
|
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_hello_2eproto
|