working commit
This commit is contained in:
+78
-140
@@ -828,22 +828,21 @@ class HelloRequest final :
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kNameFieldNumber = 3,
|
||||
kMessageFieldNumber = 2,
|
||||
kMetaFieldNumber = 1,
|
||||
kIdFieldNumber = 2,
|
||||
};
|
||||
// string name = 3;
|
||||
void clear_name();
|
||||
const std::string& name() const;
|
||||
// string message = 2;
|
||||
void clear_message();
|
||||
const std::string& message() 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);
|
||||
void set_message(ArgT0&& arg0, ArgT... args);
|
||||
std::string* mutable_message();
|
||||
PROTOBUF_NODISCARD std::string* release_message();
|
||||
void set_allocated_message(std::string* message);
|
||||
private:
|
||||
const std::string& _internal_name() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
|
||||
std::string* _internal_mutable_name();
|
||||
const std::string& _internal_message() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value);
|
||||
std::string* _internal_mutable_message();
|
||||
public:
|
||||
|
||||
// .control.ReqMeta meta = 1;
|
||||
@@ -864,15 +863,6 @@ class HelloRequest final :
|
||||
::control::ReqMeta* meta);
|
||||
::control::ReqMeta* 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.HelloRequest)
|
||||
private:
|
||||
class _Internal;
|
||||
@@ -881,9 +871,8 @@ class HelloRequest final :
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_;
|
||||
::control::ReqMeta* meta_;
|
||||
int32_t id_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
@@ -1012,22 +1001,21 @@ class HelloResult final :
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kNameFieldNumber = 3,
|
||||
kMessageFieldNumber = 2,
|
||||
kMetaFieldNumber = 1,
|
||||
kIdFieldNumber = 2,
|
||||
};
|
||||
// string name = 3;
|
||||
void clear_name();
|
||||
const std::string& name() const;
|
||||
// string message = 2;
|
||||
void clear_message();
|
||||
const std::string& message() 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);
|
||||
void set_message(ArgT0&& arg0, ArgT... args);
|
||||
std::string* mutable_message();
|
||||
PROTOBUF_NODISCARD std::string* release_message();
|
||||
void set_allocated_message(std::string* message);
|
||||
private:
|
||||
const std::string& _internal_name() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
|
||||
std::string* _internal_mutable_name();
|
||||
const std::string& _internal_message() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value);
|
||||
std::string* _internal_mutable_message();
|
||||
public:
|
||||
|
||||
// .control.ResMeta meta = 1;
|
||||
@@ -1048,15 +1036,6 @@ class HelloResult final :
|
||||
::control::ResMeta* meta);
|
||||
::control::ResMeta* 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.HelloResult)
|
||||
private:
|
||||
class _Internal;
|
||||
@@ -1065,9 +1044,8 @@ class HelloResult final :
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_;
|
||||
::control::ResMeta* meta_;
|
||||
int32_t id_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
@@ -1490,74 +1468,54 @@ inline void HelloRequest::set_allocated_meta(::control::ReqMeta* meta) {
|
||||
// @@protoc_insertion_point(field_set_allocated:control.HelloRequest.meta)
|
||||
}
|
||||
|
||||
// int32 id = 2;
|
||||
inline void HelloRequest::clear_id() {
|
||||
_impl_.id_ = 0;
|
||||
// string message = 2;
|
||||
inline void HelloRequest::clear_message() {
|
||||
_impl_.message_.ClearToEmpty();
|
||||
}
|
||||
inline int32_t HelloRequest::_internal_id() const {
|
||||
return _impl_.id_;
|
||||
}
|
||||
inline int32_t HelloRequest::id() const {
|
||||
// @@protoc_insertion_point(field_get:control.HelloRequest.id)
|
||||
return _internal_id();
|
||||
}
|
||||
inline void HelloRequest::_internal_set_id(int32_t value) {
|
||||
|
||||
_impl_.id_ = value;
|
||||
}
|
||||
inline void HelloRequest::set_id(int32_t value) {
|
||||
_internal_set_id(value);
|
||||
// @@protoc_insertion_point(field_set:control.HelloRequest.id)
|
||||
}
|
||||
|
||||
// string name = 3;
|
||||
inline void HelloRequest::clear_name() {
|
||||
_impl_.name_.ClearToEmpty();
|
||||
}
|
||||
inline const std::string& HelloRequest::name() const {
|
||||
// @@protoc_insertion_point(field_get:control.HelloRequest.name)
|
||||
return _internal_name();
|
||||
inline const std::string& HelloRequest::message() const {
|
||||
// @@protoc_insertion_point(field_get:control.HelloRequest.message)
|
||||
return _internal_message();
|
||||
}
|
||||
template <typename ArgT0, typename... ArgT>
|
||||
inline PROTOBUF_ALWAYS_INLINE
|
||||
void HelloRequest::set_name(ArgT0&& arg0, ArgT... args) {
|
||||
void HelloRequest::set_message(ArgT0&& arg0, ArgT... args) {
|
||||
|
||||
_impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:control.HelloRequest.name)
|
||||
_impl_.message_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:control.HelloRequest.message)
|
||||
}
|
||||
inline std::string* HelloRequest::mutable_name() {
|
||||
std::string* _s = _internal_mutable_name();
|
||||
// @@protoc_insertion_point(field_mutable:control.HelloRequest.name)
|
||||
inline std::string* HelloRequest::mutable_message() {
|
||||
std::string* _s = _internal_mutable_message();
|
||||
// @@protoc_insertion_point(field_mutable:control.HelloRequest.message)
|
||||
return _s;
|
||||
}
|
||||
inline const std::string& HelloRequest::_internal_name() const {
|
||||
return _impl_.name_.Get();
|
||||
inline const std::string& HelloRequest::_internal_message() const {
|
||||
return _impl_.message_.Get();
|
||||
}
|
||||
inline void HelloRequest::_internal_set_name(const std::string& value) {
|
||||
inline void HelloRequest::_internal_set_message(const std::string& value) {
|
||||
|
||||
_impl_.name_.Set(value, GetArenaForAllocation());
|
||||
_impl_.message_.Set(value, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* HelloRequest::_internal_mutable_name() {
|
||||
inline std::string* HelloRequest::_internal_mutable_message() {
|
||||
|
||||
return _impl_.name_.Mutable(GetArenaForAllocation());
|
||||
return _impl_.message_.Mutable(GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* HelloRequest::release_name() {
|
||||
// @@protoc_insertion_point(field_release:control.HelloRequest.name)
|
||||
return _impl_.name_.Release();
|
||||
inline std::string* HelloRequest::release_message() {
|
||||
// @@protoc_insertion_point(field_release:control.HelloRequest.message)
|
||||
return _impl_.message_.Release();
|
||||
}
|
||||
inline void HelloRequest::set_allocated_name(std::string* name) {
|
||||
if (name != nullptr) {
|
||||
inline void HelloRequest::set_allocated_message(std::string* message) {
|
||||
if (message != nullptr) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.name_.SetAllocated(name, GetArenaForAllocation());
|
||||
_impl_.message_.SetAllocated(message, GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (_impl_.name_.IsDefault()) {
|
||||
_impl_.name_.Set("", GetArenaForAllocation());
|
||||
if (_impl_.message_.IsDefault()) {
|
||||
_impl_.message_.Set("", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
// @@protoc_insertion_point(field_set_allocated:control.HelloRequest.name)
|
||||
// @@protoc_insertion_point(field_set_allocated:control.HelloRequest.message)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
@@ -1654,74 +1612,54 @@ inline void HelloResult::set_allocated_meta(::control::ResMeta* meta) {
|
||||
// @@protoc_insertion_point(field_set_allocated:control.HelloResult.meta)
|
||||
}
|
||||
|
||||
// int32 id = 2;
|
||||
inline void HelloResult::clear_id() {
|
||||
_impl_.id_ = 0;
|
||||
// string message = 2;
|
||||
inline void HelloResult::clear_message() {
|
||||
_impl_.message_.ClearToEmpty();
|
||||
}
|
||||
inline int32_t HelloResult::_internal_id() const {
|
||||
return _impl_.id_;
|
||||
}
|
||||
inline int32_t HelloResult::id() const {
|
||||
// @@protoc_insertion_point(field_get:control.HelloResult.id)
|
||||
return _internal_id();
|
||||
}
|
||||
inline void HelloResult::_internal_set_id(int32_t value) {
|
||||
|
||||
_impl_.id_ = value;
|
||||
}
|
||||
inline void HelloResult::set_id(int32_t value) {
|
||||
_internal_set_id(value);
|
||||
// @@protoc_insertion_point(field_set:control.HelloResult.id)
|
||||
}
|
||||
|
||||
// string name = 3;
|
||||
inline void HelloResult::clear_name() {
|
||||
_impl_.name_.ClearToEmpty();
|
||||
}
|
||||
inline const std::string& HelloResult::name() const {
|
||||
// @@protoc_insertion_point(field_get:control.HelloResult.name)
|
||||
return _internal_name();
|
||||
inline const std::string& HelloResult::message() const {
|
||||
// @@protoc_insertion_point(field_get:control.HelloResult.message)
|
||||
return _internal_message();
|
||||
}
|
||||
template <typename ArgT0, typename... ArgT>
|
||||
inline PROTOBUF_ALWAYS_INLINE
|
||||
void HelloResult::set_name(ArgT0&& arg0, ArgT... args) {
|
||||
void HelloResult::set_message(ArgT0&& arg0, ArgT... args) {
|
||||
|
||||
_impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:control.HelloResult.name)
|
||||
_impl_.message_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:control.HelloResult.message)
|
||||
}
|
||||
inline std::string* HelloResult::mutable_name() {
|
||||
std::string* _s = _internal_mutable_name();
|
||||
// @@protoc_insertion_point(field_mutable:control.HelloResult.name)
|
||||
inline std::string* HelloResult::mutable_message() {
|
||||
std::string* _s = _internal_mutable_message();
|
||||
// @@protoc_insertion_point(field_mutable:control.HelloResult.message)
|
||||
return _s;
|
||||
}
|
||||
inline const std::string& HelloResult::_internal_name() const {
|
||||
return _impl_.name_.Get();
|
||||
inline const std::string& HelloResult::_internal_message() const {
|
||||
return _impl_.message_.Get();
|
||||
}
|
||||
inline void HelloResult::_internal_set_name(const std::string& value) {
|
||||
inline void HelloResult::_internal_set_message(const std::string& value) {
|
||||
|
||||
_impl_.name_.Set(value, GetArenaForAllocation());
|
||||
_impl_.message_.Set(value, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* HelloResult::_internal_mutable_name() {
|
||||
inline std::string* HelloResult::_internal_mutable_message() {
|
||||
|
||||
return _impl_.name_.Mutable(GetArenaForAllocation());
|
||||
return _impl_.message_.Mutable(GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* HelloResult::release_name() {
|
||||
// @@protoc_insertion_point(field_release:control.HelloResult.name)
|
||||
return _impl_.name_.Release();
|
||||
inline std::string* HelloResult::release_message() {
|
||||
// @@protoc_insertion_point(field_release:control.HelloResult.message)
|
||||
return _impl_.message_.Release();
|
||||
}
|
||||
inline void HelloResult::set_allocated_name(std::string* name) {
|
||||
if (name != nullptr) {
|
||||
inline void HelloResult::set_allocated_message(std::string* message) {
|
||||
if (message != nullptr) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.name_.SetAllocated(name, GetArenaForAllocation());
|
||||
_impl_.message_.SetAllocated(message, GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (_impl_.name_.IsDefault()) {
|
||||
_impl_.name_.Set("", GetArenaForAllocation());
|
||||
if (_impl_.message_.IsDefault()) {
|
||||
_impl_.message_.Set("", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
// @@protoc_insertion_point(field_set_allocated:control.HelloResult.name)
|
||||
// @@protoc_insertion_point(field_set_allocated:control.HelloResult.message)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
||||
Reference in New Issue
Block a user