aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKawe Mazidjatari <48657826+Mauler125@users.noreply.github.com>2022-05-05 20:22:28 +0200
committerKawe Mazidjatari <48657826+Mauler125@users.noreply.github.com>2022-05-05 20:22:28 +0200
commit958c08c005e33ea83b90358f74cf13ab5fa6c279 (patch)
treea5a4da58ce28b70e39e32cd4eba8ac223f38ef4c
parent680a9e36b640f5cd6722ec3e8376628623ac3933 (diff)
downloadNorthstarLauncher-958c08c005e33ea83b90358f74cf13ab5fa6c279.tar.gz
NorthstarLauncher-958c08c005e33ea83b90358f74cf13ab5fa6c279.zip
Fix clang format
-rw-r--r--NorthstarDedicatedTest/NetAdr2.h8
-rw-r--r--NorthstarDedicatedTest/cl_rcon.h4
-rw-r--r--NorthstarDedicatedTest/cl_rcon.pb.h824
-rw-r--r--NorthstarDedicatedTest/sv_rcon.pb.h827
4 files changed, 884 insertions, 779 deletions
diff --git a/NorthstarDedicatedTest/NetAdr2.h b/NorthstarDedicatedTest/NetAdr2.h
index 09e3c9af..a574a836 100644
--- a/NorthstarDedicatedTest/NetAdr2.h
+++ b/NorthstarDedicatedTest/NetAdr2.h
@@ -44,7 +44,7 @@ enum class netadrversion_t
class CNetAdr2
{
public:
- CNetAdr2(void){};
+ CNetAdr2(void) {};
CNetAdr2(std::string svInAdr);
CNetAdr2(std::string svInAdr, std::string svInPort);
~CNetAdr2(void);
@@ -88,7 +88,7 @@ class CNetAdr2
private:
std::string m_svip;
- netadrtype_t m_type{};
- netadrversion_t m_version{};
- sockaddr_storage* m_sadr{};
+ netadrtype_t m_type {};
+ netadrversion_t m_version {};
+ sockaddr_storage* m_sadr {};
};
diff --git a/NorthstarDedicatedTest/cl_rcon.h b/NorthstarDedicatedTest/cl_rcon.h
index e2b616b8..ddfd0ed5 100644
--- a/NorthstarDedicatedTest/cl_rcon.h
+++ b/NorthstarDedicatedTest/cl_rcon.h
@@ -7,8 +7,8 @@
class CRConClient
{
public:
- CRConClient(void){};
- ~CRConClient(void){};
+ CRConClient(void) {};
+ ~CRConClient(void) {};
void Init(void);
void Shutdown(void);
diff --git a/NorthstarDedicatedTest/cl_rcon.pb.h b/NorthstarDedicatedTest/cl_rcon.pb.h
index cc9a2481..082520a1 100644
--- a/NorthstarDedicatedTest/cl_rcon.pb.h
+++ b/NorthstarDedicatedTest/cl_rcon.pb.h
@@ -28,7 +28,7 @@
#include <protobuf/metadata_lite.h>
#include <protobuf/message_lite.h>
#include <protobuf/repeated_field.h> // IWYU pragma: export
-#include <protobuf/extension_set.h> // IWYU pragma: export
+#include <protobuf/extension_set.h> // IWYU pragma: export
#include <protobuf/generated_enum_util.h>
// @@protoc_insertion_point(includes)
#include <protobuf/port_def.inc>
@@ -36,7 +36,7 @@
PROTOBUF_NAMESPACE_OPEN
namespace internal
{
-class AnyMetadata;
+ class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
@@ -52,9 +52,9 @@ struct TableStruct_cl_5frcon_2eproto
};
namespace cl_rcon
{
-class request;
-struct requestDefaultTypeInternal;
-extern requestDefaultTypeInternal _request_default_instance_;
+ class request;
+ struct requestDefaultTypeInternal;
+ extern requestDefaultTypeInternal _request_default_instance_;
} // namespace cl_rcon
PROTOBUF_NAMESPACE_OPEN
template <>::cl_rcon::request* Arena::CreateMaybeMessage<::cl_rcon::request>(Arena*);
@@ -62,457 +62,509 @@ PROTOBUF_NAMESPACE_CLOSE
namespace cl_rcon
{
-enum request_t : int
-{
- SERVERDATA_REQUEST_VALUE = 0,
- SERVERDATA_REQUEST_SETVALUE = 1,
- SERVERDATA_REQUEST_EXECCOMMAND = 2,
- SERVERDATA_REQUEST_AUTH = 3,
- SERVERDATA_REQUEST_SEND_CONSOLE_LOG = 4,
- SERVERDATA_REQUEST_SEND_REMOTEBUG = 5,
- request_t_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
- request_t_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
-};
-bool request_t_IsValid(int value);
-constexpr request_t request_t_MIN = SERVERDATA_REQUEST_VALUE;
-constexpr request_t request_t_MAX = SERVERDATA_REQUEST_SEND_REMOTEBUG;
-constexpr int request_t_ARRAYSIZE = request_t_MAX + 1;
-
-const std::string& request_t_Name(request_t value);
-template <typename T> inline const std::string& request_t_Name(T enum_t_value)
-{
- static_assert(::std::is_same<T, request_t>::value || ::std::is_integral<T>::value, "Incorrect type passed to function request_t_Name.");
- return request_t_Name(static_cast<request_t>(enum_t_value));
-}
-bool request_t_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, request_t* value);
-// ===================================================================
-
-class request final : public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:cl_rcon.request) */
-{
- public:
- inline request() : request(nullptr) {}
- ~request() override;
- explicit constexpr request(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
-
- request(const request& from);
- request(request&& from) noexcept : request() { *this = ::std::move(from); }
+ enum request_t : int
+ {
+ SERVERDATA_REQUEST_VALUE = 0,
+ SERVERDATA_REQUEST_SETVALUE = 1,
+ SERVERDATA_REQUEST_EXECCOMMAND = 2,
+ SERVERDATA_REQUEST_AUTH = 3,
+ SERVERDATA_REQUEST_SEND_CONSOLE_LOG = 4,
+ SERVERDATA_REQUEST_SEND_REMOTEBUG = 5,
+ request_t_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
+ request_t_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
+ };
+ bool request_t_IsValid(int value);
+ constexpr request_t request_t_MIN = SERVERDATA_REQUEST_VALUE;
+ constexpr request_t request_t_MAX = SERVERDATA_REQUEST_SEND_REMOTEBUG;
+ constexpr int request_t_ARRAYSIZE = request_t_MAX + 1;
- inline request& operator=(const request& from)
+ const std::string& request_t_Name(request_t value);
+ template <typename T> inline const std::string& request_t_Name(T enum_t_value)
{
- CopyFrom(from);
- return *this;
+ static_assert(
+ ::std::is_same<T, request_t>::value || ::std::is_integral<T>::value, "Incorrect type passed to function request_t_Name.");
+ return request_t_Name(static_cast<request_t>(enum_t_value));
}
- inline request& operator=(request&& from) noexcept
+ bool request_t_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, request_t* value);
+ // ===================================================================
+
+ class request final : public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:cl_rcon.request) */
{
- if (this == &from)
+ public:
+ inline request() : request(nullptr) {}
+ ~request() override;
+ explicit constexpr request(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+
+ request(const request& from);
+ request(request&& from) noexcept : request()
+ {
+ *this = ::std::move(from);
+ }
+
+ inline request& operator=(const request& from)
+ {
+ CopyFrom(from);
return *this;
- if (GetOwningArena() == from.GetOwningArena()
+ }
+ inline request& operator=(request&& from) noexcept
+ {
+ if (this == &from)
+ return *this;
+ if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
- && GetOwningArena() != nullptr
+ && GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
- )
+ )
+ {
+ InternalSwap(&from);
+ }
+ else
+ {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ static const request& default_instance()
{
- InternalSwap(&from);
+ return *internal_default_instance();
}
- else
+ static inline const request* internal_default_instance()
{
- CopyFrom(from);
+ return reinterpret_cast<const request*>(&_request_default_instance_);
}
- return *this;
- }
+ static constexpr int kIndexInFileMessages = 0;
- static const request& default_instance() { return *internal_default_instance(); }
- static inline const request* internal_default_instance() { return reinterpret_cast<const request*>(&_request_default_instance_); }
- static constexpr int kIndexInFileMessages = 0;
-
- friend void swap(request& a, request& b) { a.Swap(&b); }
- inline void Swap(request* other)
- {
- if (other == this)
- return;
-#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() != nullptr && GetOwningArena() == other->GetOwningArena())
+ friend void swap(request& a, request& b)
{
-#else // PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() == other->GetOwningArena())
+ a.Swap(&b);
+ }
+ inline void Swap(request* 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);
+ InternalSwap(other);
+ }
+ else
+ {
+ ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
+ }
}
- else
+ void UnsafeArenaSwap(request* other)
{
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
+ if (other == this)
+ return;
+ GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
+ InternalSwap(other);
}
- }
- void UnsafeArenaSwap(request* other)
- {
- if (other == this)
- return;
- GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
- InternalSwap(other);
- }
-
- // implements Message ----------------------------------------------
- request* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage<request>(arena); }
- void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
- void CopyFrom(const request& from);
- void MergeFrom(const request& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
+ // implements Message ----------------------------------------------
- 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(); }
+ request* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
+ {
+ return CreateMaybeMessage<request>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
+ void CopyFrom(const request& from);
+ void MergeFrom(const request& 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 _cached_size_.Get();
+ }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const;
- void InternalSwap(request* other);
+ private:
+ void SharedCtor();
+ void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(request* other);
- private:
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "cl_rcon.request"; }
+ private:
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
+ {
+ return "cl_rcon.request";
+ }
- protected:
- explicit request(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
+ protected:
+ explicit request(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
- std::string GetTypeName() const final;
+ public:
+ std::string GetTypeName() const final;
- // nested types ----------------------------------------------------
+ // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
+ // accessors -------------------------------------------------------
- enum : int
- {
- kRequestBufFieldNumber = 3,
- kRequestValFieldNumber = 4,
- kRequestIDFieldNumber = 1,
- kRequestTypeFieldNumber = 2,
+ enum : int
+ {
+ kRequestBufFieldNumber = 3,
+ kRequestValFieldNumber = 4,
+ kRequestIDFieldNumber = 1,
+ kRequestTypeFieldNumber = 2,
+ };
+ // optional string requestBuf = 3;
+ bool has_requestbuf() const;
+
+ private:
+ bool _internal_has_requestbuf() const;
+
+ public:
+ void clear_requestbuf();
+ const std::string& requestbuf() const;
+ template <typename ArgT0 = const std::string&, typename... ArgT> void set_requestbuf(ArgT0&& arg0, ArgT... args);
+ std::string* mutable_requestbuf();
+ PROTOBUF_NODISCARD std::string* release_requestbuf();
+ void set_allocated_requestbuf(std::string* requestbuf);
+
+ private:
+ const std::string& _internal_requestbuf() const;
+ inline PROTOBUF_ALWAYS_INLINE void _internal_set_requestbuf(const std::string& value);
+ std::string* _internal_mutable_requestbuf();
+
+ public:
+ // optional string requestVal = 4;
+ bool has_requestval() const;
+
+ private:
+ bool _internal_has_requestval() const;
+
+ public:
+ void clear_requestval();
+ const std::string& requestval() const;
+ template <typename ArgT0 = const std::string&, typename... ArgT> void set_requestval(ArgT0&& arg0, ArgT... args);
+ std::string* mutable_requestval();
+ PROTOBUF_NODISCARD std::string* release_requestval();
+ void set_allocated_requestval(std::string* requestval);
+
+ private:
+ const std::string& _internal_requestval() const;
+ inline PROTOBUF_ALWAYS_INLINE void _internal_set_requestval(const std::string& value);
+ std::string* _internal_mutable_requestval();
+
+ public:
+ // optional int32 requestID = 1;
+ bool has_requestid() const;
+
+ private:
+ bool _internal_has_requestid() const;
+
+ public:
+ void clear_requestid();
+ int32_t requestid() const;
+ void set_requestid(int32_t value);
+
+ private:
+ int32_t _internal_requestid() const;
+ void _internal_set_requestid(int32_t value);
+
+ public:
+ // optional .cl_rcon.request_t requestType = 2;
+ bool has_requesttype() const;
+
+ private:
+ bool _internal_has_requesttype() const;
+
+ public:
+ void clear_requesttype();
+ ::cl_rcon::request_t requesttype() const;
+ void set_requesttype(::cl_rcon::request_t value);
+
+ private:
+ ::cl_rcon::request_t _internal_requesttype() const;
+ void _internal_set_requesttype(::cl_rcon::request_t value);
+
+ public:
+ // @@protoc_insertion_point(class_scope:cl_rcon.request)
+ private:
+ class _Internal;
+
+ template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr requestbuf_;
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr requestval_;
+ int32_t requestid_;
+ int requesttype_;
+ friend struct ::TableStruct_cl_5frcon_2eproto;
};
- // optional string requestBuf = 3;
- bool has_requestbuf() const;
+ // ===================================================================
- private:
- bool _internal_has_requestbuf() const;
-
- public:
- void clear_requestbuf();
- const std::string& requestbuf() const;
- template <typename ArgT0 = const std::string&, typename... ArgT> void set_requestbuf(ArgT0&& arg0, ArgT... args);
- std::string* mutable_requestbuf();
- PROTOBUF_NODISCARD std::string* release_requestbuf();
- void set_allocated_requestbuf(std::string* requestbuf);
-
- private:
- const std::string& _internal_requestbuf() const;
- inline PROTOBUF_ALWAYS_INLINE void _internal_set_requestbuf(const std::string& value);
- std::string* _internal_mutable_requestbuf();
-
- public:
- // optional string requestVal = 4;
- bool has_requestval() const;
-
- private:
- bool _internal_has_requestval() const;
-
- public:
- void clear_requestval();
- const std::string& requestval() const;
- template <typename ArgT0 = const std::string&, typename... ArgT> void set_requestval(ArgT0&& arg0, ArgT... args);
- std::string* mutable_requestval();
- PROTOBUF_NODISCARD std::string* release_requestval();
- void set_allocated_requestval(std::string* requestval);
-
- private:
- const std::string& _internal_requestval() const;
- inline PROTOBUF_ALWAYS_INLINE void _internal_set_requestval(const std::string& value);
- std::string* _internal_mutable_requestval();
-
- public:
- // optional int32 requestID = 1;
- bool has_requestid() const;
-
- private:
- bool _internal_has_requestid() const;
-
- public:
- void clear_requestid();
- int32_t requestid() const;
- void set_requestid(int32_t value);
-
- private:
- int32_t _internal_requestid() const;
- void _internal_set_requestid(int32_t value);
-
- public:
- // optional .cl_rcon.request_t requestType = 2;
- bool has_requesttype() const;
-
- private:
- bool _internal_has_requesttype() const;
-
- public:
- void clear_requesttype();
- ::cl_rcon::request_t requesttype() const;
- void set_requesttype(::cl_rcon::request_t value);
-
- private:
- ::cl_rcon::request_t _internal_requesttype() const;
- void _internal_set_requesttype(::cl_rcon::request_t value);
-
- public:
- // @@protoc_insertion_point(class_scope:cl_rcon.request)
- private:
- class _Internal;
-
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr requestbuf_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr requestval_;
- int32_t requestid_;
- int requesttype_;
- friend struct ::TableStruct_cl_5frcon_2eproto;
-};
-// ===================================================================
-
-// ===================================================================
+ // ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
-// request
+ // request
-// optional int32 requestID = 1;
-inline bool request::_internal_has_requestid() const
-{
- bool value = (_has_bits_[0] & 0x00000004u) != 0;
- return value;
-}
-inline bool request::has_requestid() const { return _internal_has_requestid(); }
-inline void request::clear_requestid()
-{
- requestid_ = 0;
- _has_bits_[0] &= ~0x00000004u;
-}
-inline int32_t request::_internal_requestid() const { return requestid_; }
-inline int32_t request::requestid() const
-{
- // @@protoc_insertion_point(field_get:cl_rcon.request.requestID)
- return _internal_requestid();
-}
-inline void request::_internal_set_requestid(int32_t value)
-{
- _has_bits_[0] |= 0x00000004u;
- requestid_ = value;
-}
-inline void request::set_requestid(int32_t value)
-{
- _internal_set_requestid(value);
- // @@protoc_insertion_point(field_set:cl_rcon.request.requestID)
-}
+ // optional int32 requestID = 1;
+ inline bool request::_internal_has_requestid() const
+ {
+ bool value = (_has_bits_[0] & 0x00000004u) != 0;
+ return value;
+ }
+ inline bool request::has_requestid() const
+ {
+ return _internal_has_requestid();
+ }
+ inline void request::clear_requestid()
+ {
+ requestid_ = 0;
+ _has_bits_[0] &= ~0x00000004u;
+ }
+ inline int32_t request::_internal_requestid() const
+ {
+ return requestid_;
+ }
+ inline int32_t request::requestid() const
+ {
+ // @@protoc_insertion_point(field_get:cl_rcon.request.requestID)
+ return _internal_requestid();
+ }
+ inline void request::_internal_set_requestid(int32_t value)
+ {
+ _has_bits_[0] |= 0x00000004u;
+ requestid_ = value;
+ }
+ inline void request::set_requestid(int32_t value)
+ {
+ _internal_set_requestid(value);
+ // @@protoc_insertion_point(field_set:cl_rcon.request.requestID)
+ }
-// optional .cl_rcon.request_t requestType = 2;
-inline bool request::_internal_has_requesttype() const
-{
- bool value = (_has_bits_[0] & 0x00000008u) != 0;
- return value;
-}
-inline bool request::has_requesttype() const { return _internal_has_requesttype(); }
-inline void request::clear_requesttype()
-{
- requesttype_ = 0;
- _has_bits_[0] &= ~0x00000008u;
-}
-inline ::cl_rcon::request_t request::_internal_requesttype() const { return static_cast<::cl_rcon::request_t>(requesttype_); }
-inline ::cl_rcon::request_t request::requesttype() const
-{
- // @@protoc_insertion_point(field_get:cl_rcon.request.requestType)
- return _internal_requesttype();
-}
-inline void request::_internal_set_requesttype(::cl_rcon::request_t value)
-{
- _has_bits_[0] |= 0x00000008u;
- requesttype_ = value;
-}
-inline void request::set_requesttype(::cl_rcon::request_t value)
-{
- _internal_set_requesttype(value);
- // @@protoc_insertion_point(field_set:cl_rcon.request.requestType)
-}
+ // optional .cl_rcon.request_t requestType = 2;
+ inline bool request::_internal_has_requesttype() const
+ {
+ bool value = (_has_bits_[0] & 0x00000008u) != 0;
+ return value;
+ }
+ inline bool request::has_requesttype() const
+ {
+ return _internal_has_requesttype();
+ }
+ inline void request::clear_requesttype()
+ {
+ requesttype_ = 0;
+ _has_bits_[0] &= ~0x00000008u;
+ }
+ inline ::cl_rcon::request_t request::_internal_requesttype() const
+ {
+ return static_cast<::cl_rcon::request_t>(requesttype_);
+ }
+ inline ::cl_rcon::request_t request::requesttype() const
+ {
+ // @@protoc_insertion_point(field_get:cl_rcon.request.requestType)
+ return _internal_requesttype();
+ }
+ inline void request::_internal_set_requesttype(::cl_rcon::request_t value)
+ {
+ _has_bits_[0] |= 0x00000008u;
+ requesttype_ = value;
+ }
+ inline void request::set_requesttype(::cl_rcon::request_t value)
+ {
+ _internal_set_requesttype(value);
+ // @@protoc_insertion_point(field_set:cl_rcon.request.requestType)
+ }
-// optional string requestBuf = 3;
-inline bool request::_internal_has_requestbuf() const
-{
- bool value = (_has_bits_[0] & 0x00000001u) != 0;
- return value;
-}
-inline bool request::has_requestbuf() const { return _internal_has_requestbuf(); }
-inline void request::clear_requestbuf()
-{
- requestbuf_.ClearToEmpty();
- _has_bits_[0] &= ~0x00000001u;
-}
-inline const std::string& request::requestbuf() const
-{
- // @@protoc_insertion_point(field_get:cl_rcon.request.requestBuf)
- return _internal_requestbuf();
-}
-template <typename ArgT0, typename... ArgT> inline PROTOBUF_ALWAYS_INLINE void request::set_requestbuf(ArgT0&& arg0, ArgT... args)
-{
- _has_bits_[0] |= 0x00000001u;
- requestbuf_.Set(
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
- // @@protoc_insertion_point(field_set:cl_rcon.request.requestBuf)
-}
-inline std::string* request::mutable_requestbuf()
-{
- std::string* _s = _internal_mutable_requestbuf();
- // @@protoc_insertion_point(field_mutable:cl_rcon.request.requestBuf)
- return _s;
-}
-inline const std::string& request::_internal_requestbuf() const { return requestbuf_.Get(); }
-inline void request::_internal_set_requestbuf(const std::string& value)
-{
- _has_bits_[0] |= 0x00000001u;
- requestbuf_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
-}
-inline std::string* request::_internal_mutable_requestbuf()
-{
- _has_bits_[0] |= 0x00000001u;
- return requestbuf_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
-}
-inline std::string* request::release_requestbuf()
-{
- // @@protoc_insertion_point(field_release:cl_rcon.request.requestBuf)
- if (!_internal_has_requestbuf())
+ // optional string requestBuf = 3;
+ inline bool request::_internal_has_requestbuf() const
{
- return nullptr;
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ return value;
}
- _has_bits_[0] &= ~0x00000001u;
- auto* p = requestbuf_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
-#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (requestbuf_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()))
+ inline bool request::has_requestbuf() const
{
- requestbuf_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ return _internal_has_requestbuf();
}
-#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- return p;
-}
-inline void request::set_allocated_requestbuf(std::string* requestbuf)
-{
- if (requestbuf != nullptr)
+ inline void request::clear_requestbuf()
+ {
+ requestbuf_.ClearToEmpty();
+ _has_bits_[0] &= ~0x00000001u;
+ }
+ inline const std::string& request::requestbuf() const
+ {
+ // @@protoc_insertion_point(field_get:cl_rcon.request.requestBuf)
+ return _internal_requestbuf();
+ }
+ template <typename ArgT0, typename... ArgT> inline PROTOBUF_ALWAYS_INLINE void request::set_requestbuf(ArgT0&& arg0, ArgT... args)
{
_has_bits_[0] |= 0x00000001u;
+ requestbuf_.Set(
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault {},
+ static_cast<ArgT0&&>(arg0),
+ args...,
+ GetArenaForAllocation());
+ // @@protoc_insertion_point(field_set:cl_rcon.request.requestBuf)
}
- else
+ inline std::string* request::mutable_requestbuf()
{
- _has_bits_[0] &= ~0x00000001u;
+ std::string* _s = _internal_mutable_requestbuf();
+ // @@protoc_insertion_point(field_mutable:cl_rcon.request.requestBuf)
+ return _s;
}
- requestbuf_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), requestbuf, GetArenaForAllocation());
-#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (requestbuf_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()))
+ inline const std::string& request::_internal_requestbuf() const
+ {
+ return requestbuf_.Get();
+ }
+ inline void request::_internal_set_requestbuf(const std::string& value)
+ {
+ _has_bits_[0] |= 0x00000001u;
+ requestbuf_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault {}, value, GetArenaForAllocation());
+ }
+ inline std::string* request::_internal_mutable_requestbuf()
{
- requestbuf_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ _has_bits_[0] |= 0x00000001u;
+ return requestbuf_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault {}, GetArenaForAllocation());
}
+ inline std::string* request::release_requestbuf()
+ {
+ // @@protoc_insertion_point(field_release:cl_rcon.request.requestBuf)
+ if (!_internal_has_requestbuf())
+ {
+ return nullptr;
+ }
+ _has_bits_[0] &= ~0x00000001u;
+ auto* p = requestbuf_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (requestbuf_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()))
+ {
+ requestbuf_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ }
+#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ return p;
+ }
+ inline void request::set_allocated_requestbuf(std::string* requestbuf)
+ {
+ if (requestbuf != nullptr)
+ {
+ _has_bits_[0] |= 0x00000001u;
+ }
+ else
+ {
+ _has_bits_[0] &= ~0x00000001u;
+ }
+ requestbuf_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), requestbuf, GetArenaForAllocation());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (requestbuf_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()))
+ {
+ requestbuf_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ }
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:cl_rcon.request.requestBuf)
-}
+ }
-// optional string requestVal = 4;
-inline bool request::_internal_has_requestval() const
-{
- bool value = (_has_bits_[0] & 0x00000002u) != 0;
- return value;
-}
-inline bool request::has_requestval() const { return _internal_has_requestval(); }
-inline void request::clear_requestval()
-{
- requestval_.ClearToEmpty();
- _has_bits_[0] &= ~0x00000002u;
-}
-inline const std::string& request::requestval() const
-{
- // @@protoc_insertion_point(field_get:cl_rcon.request.requestVal)
- return _internal_requestval();
-}
-template <typename ArgT0, typename... ArgT> inline PROTOBUF_ALWAYS_INLINE void request::set_requestval(ArgT0&& arg0, ArgT... args)
-{
- _has_bits_[0] |= 0x00000002u;
- requestval_.Set(
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
- // @@protoc_insertion_point(field_set:cl_rcon.request.requestVal)
-}
-inline std::string* request::mutable_requestval()
-{
- std::string* _s = _internal_mutable_requestval();
- // @@protoc_insertion_point(field_mutable:cl_rcon.request.requestVal)
- return _s;
-}
-inline const std::string& request::_internal_requestval() const { return requestval_.Get(); }
-inline void request::_internal_set_requestval(const std::string& value)
-{
- _has_bits_[0] |= 0x00000002u;
- requestval_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
-}
-inline std::string* request::_internal_mutable_requestval()
-{
- _has_bits_[0] |= 0x00000002u;
- return requestval_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
-}
-inline std::string* request::release_requestval()
-{
- // @@protoc_insertion_point(field_release:cl_rcon.request.requestVal)
- if (!_internal_has_requestval())
+ // optional string requestVal = 4;
+ inline bool request::_internal_has_requestval() const
{
- return nullptr;
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ return value;
}
- _has_bits_[0] &= ~0x00000002u;
- auto* p = requestval_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
-#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (requestval_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()))
+ inline bool request::has_requestval() const
{
- requestval_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ return _internal_has_requestval();
}
-#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- return p;
-}
-inline void request::set_allocated_requestval(std::string* requestval)
-{
- if (requestval != nullptr)
+ inline void request::clear_requestval()
+ {
+ requestval_.ClearToEmpty();
+ _has_bits_[0] &= ~0x00000002u;
+ }
+ inline const std::string& request::requestval() const
+ {
+ // @@protoc_insertion_point(field_get:cl_rcon.request.requestVal)
+ return _internal_requestval();
+ }
+ template <typename ArgT0, typename... ArgT> inline PROTOBUF_ALWAYS_INLINE void request::set_requestval(ArgT0&& arg0, ArgT... args)
{
_has_bits_[0] |= 0x00000002u;
+ requestval_.Set(
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault {},
+ static_cast<ArgT0&&>(arg0),
+ args...,
+ GetArenaForAllocation());
+ // @@protoc_insertion_point(field_set:cl_rcon.request.requestVal)
}
- else
+ inline std::string* request::mutable_requestval()
{
- _has_bits_[0] &= ~0x00000002u;
+ std::string* _s = _internal_mutable_requestval();
+ // @@protoc_insertion_point(field_mutable:cl_rcon.request.requestVal)
+ return _s;
}
- requestval_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), requestval, GetArenaForAllocation());
-#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (requestval_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()))
+ inline const std::string& request::_internal_requestval() const
{
- requestval_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ return requestval_.Get();
}
+ inline void request::_internal_set_requestval(const std::string& value)
+ {
+ _has_bits_[0] |= 0x00000002u;
+ requestval_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault {}, value, GetArenaForAllocation());
+ }
+ inline std::string* request::_internal_mutable_requestval()
+ {
+ _has_bits_[0] |= 0x00000002u;
+ return requestval_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault {}, GetArenaForAllocation());
+ }
+ inline std::string* request::release_requestval()
+ {
+ // @@protoc_insertion_point(field_release:cl_rcon.request.requestVal)
+ if (!_internal_has_requestval())
+ {
+ return nullptr;
+ }
+ _has_bits_[0] &= ~0x00000002u;
+ auto* p = requestval_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (requestval_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()))
+ {
+ requestval_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ }
+#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ return p;
+ }
+ inline void request::set_allocated_requestval(std::string* requestval)
+ {
+ if (requestval != nullptr)
+ {
+ _has_bits_[0] |= 0x00000002u;
+ }
+ else
+ {
+ _has_bits_[0] &= ~0x00000002u;
+ }
+ requestval_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), requestval, GetArenaForAllocation());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (requestval_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()))
+ {
+ requestval_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ }
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:cl_rcon.request.requestVal)
-}
+ }
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
-// @@protoc_insertion_point(namespace_scope)
+ // @@protoc_insertion_point(namespace_scope)
} // namespace cl_rcon
diff --git a/NorthstarDedicatedTest/sv_rcon.pb.h b/NorthstarDedicatedTest/sv_rcon.pb.h
index 152c0cf0..82959b05 100644
--- a/NorthstarDedicatedTest/sv_rcon.pb.h
+++ b/NorthstarDedicatedTest/sv_rcon.pb.h
@@ -28,7 +28,7 @@
#include <protobuf/metadata_lite.h>
#include <protobuf/message_lite.h>
#include <protobuf/repeated_field.h> // IWYU pragma: export
-#include <protobuf/extension_set.h> // IWYU pragma: export
+#include <protobuf/extension_set.h> // IWYU pragma: export
#include <protobuf/generated_enum_util.h>
// @@protoc_insertion_point(includes)
#include <protobuf/port_def.inc>
@@ -36,7 +36,7 @@
PROTOBUF_NAMESPACE_OPEN
namespace internal
{
-class AnyMetadata;
+ class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
@@ -52,9 +52,9 @@ struct TableStruct_sv_5frcon_2eproto
};
namespace sv_rcon
{
-class response;
-struct responseDefaultTypeInternal;
-extern responseDefaultTypeInternal _response_default_instance_;
+ class response;
+ struct responseDefaultTypeInternal;
+ extern responseDefaultTypeInternal _response_default_instance_;
} // namespace sv_rcon
PROTOBUF_NAMESPACE_OPEN
template <>::sv_rcon::response* Arena::CreateMaybeMessage<::sv_rcon::response>(Arena*);
@@ -62,458 +62,511 @@ PROTOBUF_NAMESPACE_CLOSE
namespace sv_rcon
{
-enum response_t : int
-{
- SERVERDATA_RESPONSE_VALUE = 0,
- SERVERDATA_RESPONSE_UPDATE = 1,
- SERVERDATA_RESPONSE_AUTH = 2,
- SERVERDATA_RESPONSE_CONSOLE_LOG = 3,
- SERVERDATA_RESPONSE_STRING = 4,
- SERVERDATA_RESPONSE_REMOTEBUG = 5,
- response_t_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
- response_t_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
-};
-bool response_t_IsValid(int value);
-constexpr response_t response_t_MIN = SERVERDATA_RESPONSE_VALUE;
-constexpr response_t response_t_MAX = SERVERDATA_RESPONSE_REMOTEBUG;
-constexpr int response_t_ARRAYSIZE = response_t_MAX + 1;
-
-const std::string& response_t_Name(response_t value);
-template <typename T> inline const std::string& response_t_Name(T enum_t_value)
-{
- static_assert(
- ::std::is_same<T, response_t>::value || ::std::is_integral<T>::value, "Incorrect type passed to function response_t_Name.");
- return response_t_Name(static_cast<response_t>(enum_t_value));
-}
-bool response_t_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, response_t* value);
-// ===================================================================
-
-class response final : public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:sv_rcon.response) */
-{
- public:
- inline response() : response(nullptr) {}
- ~response() override;
- explicit constexpr response(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
-
- response(const response& from);
- response(response&& from) noexcept : response() { *this = ::std::move(from); }
+ enum response_t : int
+ {
+ SERVERDATA_RESPONSE_VALUE = 0,
+ SERVERDATA_RESPONSE_UPDATE = 1,
+ SERVERDATA_RESPONSE_AUTH = 2,
+ SERVERDATA_RESPONSE_CONSOLE_LOG = 3,
+ SERVERDATA_RESPONSE_STRING = 4,
+ SERVERDATA_RESPONSE_REMOTEBUG = 5,
+ response_t_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
+ response_t_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
+ };
+ bool response_t_IsValid(int value);
+ constexpr response_t response_t_MIN = SERVERDATA_RESPONSE_VALUE;
+ constexpr response_t response_t_MAX = SERVERDATA_RESPONSE_REMOTEBUG;
+ constexpr int response_t_ARRAYSIZE = response_t_MAX + 1;
- inline response& operator=(const response& from)
+ const std::string& response_t_Name(response_t value);
+ template <typename T> inline const std::string& response_t_Name(T enum_t_value)
{
- CopyFrom(from);
- return *this;
+ static_assert(
+ ::std::is_same<T, response_t>::value || ::std::is_integral<T>::value, "Incorrect type passed to function response_t_Name.");
+ return response_t_Name(static_cast<response_t>(enum_t_value));
}
- inline response& operator=(response&& from) noexcept
+ bool response_t_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, response_t* value);
+ // ===================================================================
+
+ class response final : public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:sv_rcon.response) */
{
- if (this == &from)
+ public:
+ inline response() : response(nullptr) {}
+ ~response() override;
+ explicit constexpr response(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+
+ response(const response& from);
+ response(response&& from) noexcept : response()
+ {
+ *this = ::std::move(from);
+ }
+
+ inline response& operator=(const response& from)
+ {
+ CopyFrom(from);
return *this;
- if (GetOwningArena() == from.GetOwningArena()
+ }
+ inline response& operator=(response&& from) noexcept
+ {
+ if (this == &from)
+ return *this;
+ if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
- && GetOwningArena() != nullptr
+ && GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
- )
+ )
+ {
+ InternalSwap(&from);
+ }
+ else
+ {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ static const response& default_instance()
{
- InternalSwap(&from);
+ return *internal_default_instance();
}
- else
+ static inline const response* internal_default_instance()
{
- CopyFrom(from);
+ return reinterpret_cast<const response*>(&_response_default_instance_);
}
- return *this;
- }
-
- static const response& default_instance() { return *internal_default_instance(); }
- static inline const response* internal_default_instance() { return reinterpret_cast<const response*>(&_response_default_instance_); }
- static constexpr int kIndexInFileMessages = 0;
+ static constexpr int kIndexInFileMessages = 0;
- friend void swap(response& a, response& b) { a.Swap(&b); }
- inline void Swap(response* other)
- {
- if (other == this)
- return;
-#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() != nullptr && GetOwningArena() == other->GetOwningArena())
+ friend void swap(response& a, response& b)
{
-#else // PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() == other->GetOwningArena())
+ a.Swap(&b);
+ }
+ inline void Swap(response* 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);
+ InternalSwap(other);
+ }
+ else
+ {
+ ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
+ }
}
- else
+ void UnsafeArenaSwap(response* other)
{
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
+ if (other == this)
+ return;
+ GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
+ InternalSwap(other);
}
- }
- void UnsafeArenaSwap(response* other)
- {
- if (other == this)
- return;
- GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
- InternalSwap(other);
- }
-
- // implements Message ----------------------------------------------
- response* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage<response>(arena); }
- void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
- void CopyFrom(const response& from);
- void MergeFrom(const response& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
+ // implements Message ----------------------------------------------
- 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(); }
+ response* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
+ {
+ return CreateMaybeMessage<response>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
+ void CopyFrom(const response& from);
+ void MergeFrom(const response& 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 _cached_size_.Get();
+ }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const;
- void InternalSwap(response* other);
+ private:
+ void SharedCtor();
+ void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(response* other);
- private:
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "sv_rcon.response"; }
+ private:
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
+ {
+ return "sv_rcon.response";
+ }
- protected:
- explicit response(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
+ protected:
+ explicit response(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
- std::string GetTypeName() const final;
+ public:
+ std::string GetTypeName() const final;
- // nested types ----------------------------------------------------
+ // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
+ // accessors -------------------------------------------------------
- enum : int
- {
- kResponseBufFieldNumber = 3,
- kResponseValFieldNumber = 4,
- kResponseIDFieldNumber = 1,
- kResponseTypeFieldNumber = 2,
+ enum : int
+ {
+ kResponseBufFieldNumber = 3,
+ kResponseValFieldNumber = 4,
+ kResponseIDFieldNumber = 1,
+ kResponseTypeFieldNumber = 2,
+ };
+ // optional string responseBuf = 3;
+ bool has_responsebuf() const;
+
+ private:
+ bool _internal_has_responsebuf() const;
+
+ public:
+ void clear_responsebuf();
+ const std::string& responsebuf() const;
+ template <typename ArgT0 = const std::string&, typename... ArgT> void set_responsebuf(ArgT0&& arg0, ArgT... args);
+ std::string* mutable_responsebuf();
+ PROTOBUF_NODISCARD std::string* release_responsebuf();
+ void set_allocated_responsebuf(std::string* responsebuf);
+
+ private:
+ const std::string& _internal_responsebuf() const;
+ inline PROTOBUF_ALWAYS_INLINE void _internal_set_responsebuf(const std::string& value);
+ std::string* _internal_mutable_responsebuf();
+
+ public:
+ // optional string responseVal = 4;
+ bool has_responseval() const;
+
+ private:
+ bool _internal_has_responseval() const;
+
+ public:
+ void clear_responseval();
+ const std::string& responseval() const;
+ template <typename ArgT0 = const std::string&, typename... ArgT> void set_responseval(ArgT0&& arg0, ArgT... args);
+ std::string* mutable_responseval();
+ PROTOBUF_NODISCARD std::string* release_responseval();
+ void set_allocated_responseval(std::string* responseval);
+
+ private:
+ const std::string& _internal_responseval() const;
+ inline PROTOBUF_ALWAYS_INLINE void _internal_set_responseval(const std::string& value);
+ std::string* _internal_mutable_responseval();
+
+ public:
+ // optional int32 responseID = 1;
+ bool has_responseid() const;
+
+ private:
+ bool _internal_has_responseid() const;
+
+ public:
+ void clear_responseid();
+ int32_t responseid() const;
+ void set_responseid(int32_t value);
+
+ private:
+ int32_t _internal_responseid() const;
+ void _internal_set_responseid(int32_t value);
+
+ public:
+ // optional .sv_rcon.response_t responseType = 2;
+ bool has_responsetype() const;
+
+ private:
+ bool _internal_has_responsetype() const;
+
+ public:
+ void clear_responsetype();
+ ::sv_rcon::response_t responsetype() const;
+ void set_responsetype(::sv_rcon::response_t value);
+
+ private:
+ ::sv_rcon::response_t _internal_responsetype() const;
+ void _internal_set_responsetype(::sv_rcon::response_t value);
+
+ public:
+ // @@protoc_insertion_point(class_scope:sv_rcon.response)
+ private:
+ class _Internal;
+
+ template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr responsebuf_;
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr responseval_;
+ int32_t responseid_;
+ int responsetype_;
+ friend struct ::TableStruct_sv_5frcon_2eproto;
};
- // optional string responseBuf = 3;
- bool has_responsebuf() const;
-
- private:
- bool _internal_has_responsebuf() const;
-
- public:
- void clear_responsebuf();
- const std::string& responsebuf() const;
- template <typename ArgT0 = const std::string&, typename... ArgT> void set_responsebuf(ArgT0&& arg0, ArgT... args);
- std::string* mutable_responsebuf();
- PROTOBUF_NODISCARD std::string* release_responsebuf();
- void set_allocated_responsebuf(std::string* responsebuf);
-
- private:
- const std::string& _internal_responsebuf() const;
- inline PROTOBUF_ALWAYS_INLINE void _internal_set_responsebuf(const std::string& value);
- std::string* _internal_mutable_responsebuf();
+ // ===================================================================
- public:
- // optional string responseVal = 4;
- bool has_responseval() const;
-
- private:
- bool _internal_has_responseval() const;
-
- public:
- void clear_responseval();
- const std::string& responseval() const;
- template <typename ArgT0 = const std::string&, typename... ArgT> void set_responseval(ArgT0&& arg0, ArgT... args);
- std::string* mutable_responseval();
- PROTOBUF_NODISCARD std::string* release_responseval();
- void set_allocated_responseval(std::string* responseval);
-
- private:
- const std::string& _internal_responseval() const;
- inline PROTOBUF_ALWAYS_INLINE void _internal_set_responseval(const std::string& value);
- std::string* _internal_mutable_responseval();
-
- public:
- // optional int32 responseID = 1;
- bool has_responseid() const;
-
- private:
- bool _internal_has_responseid() const;
-
- public:
- void clear_responseid();
- int32_t responseid() const;
- void set_responseid(int32_t value);
-
- private:
- int32_t _internal_responseid() const;
- void _internal_set_responseid(int32_t value);
-
- public:
- // optional .sv_rcon.response_t responseType = 2;
- bool has_responsetype() const;
-
- private:
- bool _internal_has_responsetype() const;
-
- public:
- void clear_responsetype();
- ::sv_rcon::response_t responsetype() const;
- void set_responsetype(::sv_rcon::response_t value);
-
- private:
- ::sv_rcon::response_t _internal_responsetype() const;
- void _internal_set_responsetype(::sv_rcon::response_t value);
-
- public:
- // @@protoc_insertion_point(class_scope:sv_rcon.response)
- private:
- class _Internal;
-
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr responsebuf_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr responseval_;
- int32_t responseid_;
- int responsetype_;
- friend struct ::TableStruct_sv_5frcon_2eproto;
-};
-// ===================================================================
-
-// ===================================================================
+ // ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
-// response
+ // response
-// optional int32 responseID = 1;
-inline bool response::_internal_has_responseid() const
-{
- bool value = (_has_bits_[0] & 0x00000004u) != 0;
- return value;
-}
-inline bool response::has_responseid() const { return _internal_has_responseid(); }
-inline void response::clear_responseid()
-{
- responseid_ = 0;
- _has_bits_[0] &= ~0x00000004u;
-}
-inline int32_t response::_internal_responseid() const { return responseid_; }
-inline int32_t response::responseid() const
-{
- // @@protoc_insertion_point(field_get:sv_rcon.response.responseID)
- return _internal_responseid();
-}
-inline void response::_internal_set_responseid(int32_t value)
-{
- _has_bits_[0] |= 0x00000004u;
- responseid_ = value;
-}
-inline void response::set_responseid(int32_t value)
-{
- _internal_set_responseid(value);
- // @@protoc_insertion_point(field_set:sv_rcon.response.responseID)
-}
+ // optional int32 responseID = 1;
+ inline bool response::_internal_has_responseid() const
+ {
+ bool value = (_has_bits_[0] & 0x00000004u) != 0;
+ return value;
+ }
+ inline bool response::has_responseid() const
+ {
+ return _internal_has_responseid();
+ }
+ inline void response::clear_responseid()
+ {
+ responseid_ = 0;
+ _has_bits_[0] &= ~0x00000004u;
+ }
+ inline int32_t response::_internal_responseid() const
+ {
+ return responseid_;
+ }
+ inline int32_t response::responseid() const
+ {
+ // @@protoc_insertion_point(field_get:sv_rcon.response.responseID)
+ return _internal_responseid();
+ }
+ inline void response::_internal_set_responseid(int32_t value)
+ {
+ _has_bits_[0] |= 0x00000004u;
+ responseid_ = value;
+ }
+ inline void response::set_responseid(int32_t value)
+ {
+ _internal_set_responseid(value);
+ // @@protoc_insertion_point(field_set:sv_rcon.response.responseID)
+ }
-// optional .sv_rcon.response_t responseType = 2;
-inline bool response::_internal_has_responsetype() const
-{
- bool value = (_has_bits_[0] & 0x00000008u) != 0;
- return value;
-}
-inline bool response::has_responsetype() const { return _internal_has_responsetype(); }
-inline void response::clear_responsetype()
-{
- responsetype_ = 0;
- _has_bits_[0] &= ~0x00000008u;
-}
-inline ::sv_rcon::response_t response::_internal_responsetype() const { return static_cast<::sv_rcon::response_t>(responsetype_); }
-inline ::sv_rcon::response_t response::responsetype() const
-{
- // @@protoc_insertion_point(field_get:sv_rcon.response.responseType)
- return _internal_responsetype();
-}
-inline void response::_internal_set_responsetype(::sv_rcon::response_t value)
-{
- _has_bits_[0] |= 0x00000008u;
- responsetype_ = value;
-}
-inline void response::set_responsetype(::sv_rcon::response_t value)
-{
- _internal_set_responsetype(value);
- // @@protoc_insertion_point(field_set:sv_rcon.response.responseType)
-}
+ // optional .sv_rcon.response_t responseType = 2;
+ inline bool response::_internal_has_responsetype() const
+ {
+ bool value = (_has_bits_[0] & 0x00000008u) != 0;
+ return value;
+ }
+ inline bool response::has_responsetype() const
+ {
+ return _internal_has_responsetype();
+ }
+ inline void response::clear_responsetype()
+ {
+ responsetype_ = 0;
+ _has_bits_[0] &= ~0x00000008u;
+ }
+ inline ::sv_rcon::response_t response::_internal_responsetype() const
+ {
+ return static_cast<::sv_rcon::response_t>(responsetype_);
+ }
+ inline ::sv_rcon::response_t response::responsetype() const
+ {
+ // @@protoc_insertion_point(field_get:sv_rcon.response.responseType)
+ return _internal_responsetype();
+ }
+ inline void response::_internal_set_responsetype(::sv_rcon::response_t value)
+ {
+ _has_bits_[0] |= 0x00000008u;
+ responsetype_ = value;
+ }
+ inline void response::set_responsetype(::sv_rcon::response_t value)
+ {
+ _internal_set_responsetype(value);
+ // @@protoc_insertion_point(field_set:sv_rcon.response.responseType)
+ }
-// optional string responseBuf = 3;
-inline bool response::_internal_has_responsebuf() const
-{
- bool value = (_has_bits_[0] & 0x00000001u) != 0;
- return value;
-}
-inline bool response::has_responsebuf() const { return _internal_has_responsebuf(); }
-inline void response::clear_responsebuf()
-{
- responsebuf_.ClearToEmpty();
- _has_bits_[0] &= ~0x00000001u;
-}
-inline const std::string& response::responsebuf() const
-{
- // @@protoc_insertion_point(field_get:sv_rcon.response.responseBuf)
- return _internal_responsebuf();
-}
-template <typename ArgT0, typename... ArgT> inline PROTOBUF_ALWAYS_INLINE void response::set_responsebuf(ArgT0&& arg0, ArgT... args)
-{
- _has_bits_[0] |= 0x00000001u;
- responsebuf_.Set(
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
- // @@protoc_insertion_point(field_set:sv_rcon.response.responseBuf)
-}
-inline std::string* response::mutable_responsebuf()
-{
- std::string* _s = _internal_mutable_responsebuf();
- // @@protoc_insertion_point(field_mutable:sv_rcon.response.responseBuf)
- return _s;
-}
-inline const std::string& response::_internal_responsebuf() const { return responsebuf_.Get(); }
-inline void response::_internal_set_responsebuf(const std::string& value)
-{
- _has_bits_[0] |= 0x00000001u;
- responsebuf_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
-}
-inline std::string* response::_internal_mutable_responsebuf()
-{
- _has_bits_[0] |= 0x00000001u;
- return responsebuf_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
-}
-inline std::string* response::release_responsebuf()
-{
- // @@protoc_insertion_point(field_release:sv_rcon.response.responseBuf)
- if (!_internal_has_responsebuf())
+ // optional string responseBuf = 3;
+ inline bool response::_internal_has_responsebuf() const
{
- return nullptr;
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ return value;
}
- _has_bits_[0] &= ~0x00000001u;
- auto* p = responsebuf_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
-#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (responsebuf_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()))
+ inline bool response::has_responsebuf() const
{
- responsebuf_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ return _internal_has_responsebuf();
}
-#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- return p;
-}
-inline void response::set_allocated_responsebuf(std::string* responsebuf)
-{
- if (responsebuf != nullptr)
+ inline void response::clear_responsebuf()
+ {
+ responsebuf_.ClearToEmpty();
+ _has_bits_[0] &= ~0x00000001u;
+ }
+ inline const std::string& response::responsebuf() const
+ {
+ // @@protoc_insertion_point(field_get:sv_rcon.response.responseBuf)
+ return _internal_responsebuf();
+ }
+ template <typename ArgT0, typename... ArgT> inline PROTOBUF_ALWAYS_INLINE void response::set_responsebuf(ArgT0&& arg0, ArgT... args)
{
_has_bits_[0] |= 0x00000001u;
+ responsebuf_.Set(
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault {},
+ static_cast<ArgT0&&>(arg0),
+ args...,
+ GetArenaForAllocation());
+ // @@protoc_insertion_point(field_set:sv_rcon.response.responseBuf)
}
- else
+ inline std::string* response::mutable_responsebuf()
{
- _has_bits_[0] &= ~0x00000001u;
+ std::string* _s = _internal_mutable_responsebuf();
+ // @@protoc_insertion_point(field_mutable:sv_rcon.response.responseBuf)
+ return _s;
}
- responsebuf_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), responsebuf, GetArenaForAllocation());
-#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (responsebuf_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()))
+ inline const std::string& response::_internal_responsebuf() const
+ {
+ return responsebuf_.Get();
+ }
+ inline void response::_internal_set_responsebuf(const std::string& value)
+ {
+ _has_bits_[0] |= 0x00000001u;
+ responsebuf_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault {}, value, GetArenaForAllocation());
+ }
+ inline std::string* response::_internal_mutable_responsebuf()
{
- responsebuf_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ _has_bits_[0] |= 0x00000001u;
+ return responsebuf_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault {}, GetArenaForAllocation());
}
+ inline std::string* response::release_responsebuf()
+ {
+ // @@protoc_insertion_point(field_release:sv_rcon.response.responseBuf)
+ if (!_internal_has_responsebuf())
+ {
+ return nullptr;
+ }
+ _has_bits_[0] &= ~0x00000001u;
+ auto* p =
+ responsebuf_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (responsebuf_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()))
+ {
+ responsebuf_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ }
+#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ return p;
+ }
+ inline void response::set_allocated_responsebuf(std::string* responsebuf)
+ {
+ if (responsebuf != nullptr)
+ {
+ _has_bits_[0] |= 0x00000001u;
+ }
+ else
+ {
+ _has_bits_[0] &= ~0x00000001u;
+ }
+ responsebuf_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), responsebuf, GetArenaForAllocation());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (responsebuf_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()))
+ {
+ responsebuf_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ }
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:sv_rcon.response.responseBuf)
-}
+ }
-// optional string responseVal = 4;
-inline bool response::_internal_has_responseval() const
-{
- bool value = (_has_bits_[0] & 0x00000002u) != 0;
- return value;
-}
-inline bool response::has_responseval() const { return _internal_has_responseval(); }
-inline void response::clear_responseval()
-{
- responseval_.ClearToEmpty();
- _has_bits_[0] &= ~0x00000002u;
-}
-inline const std::string& response::responseval() const
-{
- // @@protoc_insertion_point(field_get:sv_rcon.response.responseVal)
- return _internal_responseval();
-}
-template <typename ArgT0, typename... ArgT> inline PROTOBUF_ALWAYS_INLINE void response::set_responseval(ArgT0&& arg0, ArgT... args)
-{
- _has_bits_[0] |= 0x00000002u;
- responseval_.Set(
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
- // @@protoc_insertion_point(field_set:sv_rcon.response.responseVal)
-}
-inline std::string* response::mutable_responseval()
-{
- std::string* _s = _internal_mutable_responseval();
- // @@protoc_insertion_point(field_mutable:sv_rcon.response.responseVal)
- return _s;
-}
-inline const std::string& response::_internal_responseval() const { return responseval_.Get(); }
-inline void response::_internal_set_responseval(const std::string& value)
-{
- _has_bits_[0] |= 0x00000002u;
- responseval_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
-}
-inline std::string* response::_internal_mutable_responseval()
-{
- _has_bits_[0] |= 0x00000002u;
- return responseval_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
-}
-inline std::string* response::release_responseval()
-{
- // @@protoc_insertion_point(field_release:sv_rcon.response.responseVal)
- if (!_internal_has_responseval())
+ // optional string responseVal = 4;
+ inline bool response::_internal_has_responseval() const
{
- return nullptr;
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ return value;
}
- _has_bits_[0] &= ~0x00000002u;
- auto* p = responseval_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
-#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (responseval_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()))
+ inline bool response::has_responseval() const
{
- responseval_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ return _internal_has_responseval();
}
-#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- return p;
-}
-inline void response::set_allocated_responseval(std::string* responseval)
-{
- if (responseval != nullptr)
+ inline void response::clear_responseval()
+ {
+ responseval_.ClearToEmpty();
+ _has_bits_[0] &= ~0x00000002u;
+ }
+ inline const std::string& response::responseval() const
+ {
+ // @@protoc_insertion_point(field_get:sv_rcon.response.responseVal)
+ return _internal_responseval();
+ }
+ template <typename ArgT0, typename... ArgT> inline PROTOBUF_ALWAYS_INLINE void response::set_responseval(ArgT0&& arg0, ArgT... args)
{
_has_bits_[0] |= 0x00000002u;
+ responseval_.Set(
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault {},
+ static_cast<ArgT0&&>(arg0),
+ args...,
+ GetArenaForAllocation());
+ // @@protoc_insertion_point(field_set:sv_rcon.response.responseVal)
}
- else
+ inline std::string* response::mutable_responseval()
{
- _has_bits_[0] &= ~0x00000002u;
+ std::string* _s = _internal_mutable_responseval();
+ // @@protoc_insertion_point(field_mutable:sv_rcon.response.responseVal)
+ return _s;
}
- responseval_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), responseval, GetArenaForAllocation());
-#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (responseval_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()))
+ inline const std::string& response::_internal_responseval() const
{
- responseval_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ return responseval_.Get();
}
+ inline void response::_internal_set_responseval(const std::string& value)
+ {
+ _has_bits_[0] |= 0x00000002u;
+ responseval_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault {}, value, GetArenaForAllocation());
+ }
+ inline std::string* response::_internal_mutable_responseval()
+ {
+ _has_bits_[0] |= 0x00000002u;
+ return responseval_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault {}, GetArenaForAllocation());
+ }
+ inline std::string* response::release_responseval()
+ {
+ // @@protoc_insertion_point(field_release:sv_rcon.response.responseVal)
+ if (!_internal_has_responseval())
+ {
+ return nullptr;
+ }
+ _has_bits_[0] &= ~0x00000002u;
+ auto* p =
+ responseval_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (responseval_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()))
+ {
+ responseval_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ }
+#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ return p;
+ }
+ inline void response::set_allocated_responseval(std::string* responseval)
+ {
+ if (responseval != nullptr)
+ {
+ _has_bits_[0] |= 0x00000002u;
+ }
+ else
+ {
+ _has_bits_[0] &= ~0x00000002u;
+ }
+ responseval_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), responseval, GetArenaForAllocation());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (responseval_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()))
+ {
+ responseval_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ }
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:sv_rcon.response.responseVal)
-}
+ }
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
-// @@protoc_insertion_point(namespace_scope)
+ // @@protoc_insertion_point(namespace_scope)
} // namespace sv_rcon