316 lines
10 KiB
C
316 lines
10 KiB
C
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||
|
// source: TestMessage.proto
|
||
|
|
||
|
#ifndef GOOGLE_PROTOBUF_INCLUDED_TestMessage_2eproto_2epb_2eh
|
||
|
#define GOOGLE_PROTOBUF_INCLUDED_TestMessage_2eproto_2epb_2eh
|
||
|
|
||
|
#include <limits>
|
||
|
#include <string>
|
||
|
#include <type_traits>
|
||
|
|
||
|
#include "google/protobuf/port_def.inc"
|
||
|
#if PROTOBUF_VERSION < 4023000
|
||
|
#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 // PROTOBUF_VERSION
|
||
|
|
||
|
#if 4023000 < 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 // PROTOBUF_MIN_PROTOC_VERSION
|
||
|
#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_tctable_decl.h"
|
||
|
#include "google/protobuf/generated_message_util.h"
|
||
|
#include "google/protobuf/metadata_lite.h"
|
||
|
#include "google/protobuf/generated_message_reflection.h"
|
||
|
#include "google/protobuf/message.h"
|
||
|
#include "google/protobuf/repeated_field.h" // IWYU pragma: export
|
||
|
#include "google/protobuf/extension_set.h" // IWYU pragma: export
|
||
|
#include "google/protobuf/unknown_field_set.h"
|
||
|
// @@protoc_insertion_point(includes)
|
||
|
|
||
|
// Must be included last.
|
||
|
#include "google/protobuf/port_def.inc"
|
||
|
|
||
|
#define PROTOBUF_INTERNAL_EXPORT_TestMessage_2eproto
|
||
|
|
||
|
namespace google {
|
||
|
namespace protobuf {
|
||
|
namespace internal {
|
||
|
class AnyMetadata;
|
||
|
} // namespace internal
|
||
|
} // namespace protobuf
|
||
|
} // namespace google
|
||
|
|
||
|
// Internal implementation detail -- do not use these members.
|
||
|
struct TableStruct_TestMessage_2eproto {
|
||
|
static const ::uint32_t offsets[];
|
||
|
};
|
||
|
extern const ::google::protobuf::internal::DescriptorTable
|
||
|
descriptor_table_TestMessage_2eproto;
|
||
|
namespace WhisperCom {
|
||
|
namespace Protobuf {
|
||
|
class TestMessage;
|
||
|
struct TestMessageDefaultTypeInternal;
|
||
|
extern TestMessageDefaultTypeInternal _TestMessage_default_instance_;
|
||
|
} // namespace Protobuf
|
||
|
} // namespace WhisperCom
|
||
|
namespace google {
|
||
|
namespace protobuf {
|
||
|
template <>
|
||
|
::WhisperCom::Protobuf::TestMessage* Arena::CreateMaybeMessage<::WhisperCom::Protobuf::TestMessage>(Arena*);
|
||
|
} // namespace protobuf
|
||
|
} // namespace google
|
||
|
|
||
|
namespace WhisperCom {
|
||
|
namespace Protobuf {
|
||
|
|
||
|
// ===================================================================
|
||
|
|
||
|
|
||
|
// -------------------------------------------------------------------
|
||
|
|
||
|
class TestMessage final :
|
||
|
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:WhisperCom.Protobuf.TestMessage) */ {
|
||
|
public:
|
||
|
inline TestMessage() : TestMessage(nullptr) {}
|
||
|
~TestMessage() override;
|
||
|
template<typename = void>
|
||
|
explicit PROTOBUF_CONSTEXPR TestMessage(::google::protobuf::internal::ConstantInitialized);
|
||
|
|
||
|
TestMessage(const TestMessage& from);
|
||
|
TestMessage(TestMessage&& from) noexcept
|
||
|
: TestMessage() {
|
||
|
*this = ::std::move(from);
|
||
|
}
|
||
|
|
||
|
inline TestMessage& operator=(const TestMessage& from) {
|
||
|
CopyFrom(from);
|
||
|
return *this;
|
||
|
}
|
||
|
inline TestMessage& operator=(TestMessage&& 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;
|
||
|
}
|
||
|
|
||
|
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
|
||
|
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
|
||
|
}
|
||
|
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
|
||
|
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
|
||
|
}
|
||
|
|
||
|
static const ::google::protobuf::Descriptor* descriptor() {
|
||
|
return GetDescriptor();
|
||
|
}
|
||
|
static const ::google::protobuf::Descriptor* GetDescriptor() {
|
||
|
return default_instance().GetMetadata().descriptor;
|
||
|
}
|
||
|
static const ::google::protobuf::Reflection* GetReflection() {
|
||
|
return default_instance().GetMetadata().reflection;
|
||
|
}
|
||
|
static const TestMessage& default_instance() {
|
||
|
return *internal_default_instance();
|
||
|
}
|
||
|
static inline const TestMessage* internal_default_instance() {
|
||
|
return reinterpret_cast<const TestMessage*>(
|
||
|
&_TestMessage_default_instance_);
|
||
|
}
|
||
|
static constexpr int kIndexInFileMessages =
|
||
|
0;
|
||
|
|
||
|
friend void swap(TestMessage& a, TestMessage& b) {
|
||
|
a.Swap(&b);
|
||
|
}
|
||
|
inline void Swap(TestMessage* 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 {
|
||
|
::google::protobuf::internal::GenericSwap(this, other);
|
||
|
}
|
||
|
}
|
||
|
void UnsafeArenaSwap(TestMessage* other) {
|
||
|
if (other == this) return;
|
||
|
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||
|
InternalSwap(other);
|
||
|
}
|
||
|
|
||
|
// implements Message ----------------------------------------------
|
||
|
|
||
|
TestMessage* New(::google::protobuf::Arena* arena = nullptr) const final {
|
||
|
return CreateMaybeMessage<TestMessage>(arena);
|
||
|
}
|
||
|
using ::google::protobuf::Message::CopyFrom;
|
||
|
void CopyFrom(const TestMessage& from);
|
||
|
using ::google::protobuf::Message::MergeFrom;
|
||
|
void MergeFrom( const TestMessage& from) {
|
||
|
TestMessage::MergeImpl(*this, from);
|
||
|
}
|
||
|
private:
|
||
|
static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
|
||
|
public:
|
||
|
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
||
|
bool IsInitialized() const final;
|
||
|
|
||
|
::size_t ByteSizeLong() const final;
|
||
|
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
|
||
|
::uint8_t* _InternalSerialize(
|
||
|
::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
|
||
|
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
|
||
|
|
||
|
private:
|
||
|
void SharedCtor(::google::protobuf::Arena* arena);
|
||
|
void SharedDtor();
|
||
|
void SetCachedSize(int size) const final;
|
||
|
void InternalSwap(TestMessage* other);
|
||
|
|
||
|
private:
|
||
|
friend class ::google::protobuf::internal::AnyMetadata;
|
||
|
static ::absl::string_view FullMessageName() {
|
||
|
return "WhisperCom.Protobuf.TestMessage";
|
||
|
}
|
||
|
protected:
|
||
|
explicit TestMessage(::google::protobuf::Arena* arena);
|
||
|
public:
|
||
|
|
||
|
static const ClassData _class_data_;
|
||
|
const ::google::protobuf::Message::ClassData*GetClassData() const final;
|
||
|
|
||
|
::google::protobuf::Metadata GetMetadata() const final;
|
||
|
|
||
|
// nested types ----------------------------------------------------
|
||
|
|
||
|
// accessors -------------------------------------------------------
|
||
|
|
||
|
enum : int {
|
||
|
kStrFieldNumber = 1,
|
||
|
};
|
||
|
// string str = 1;
|
||
|
void clear_str() ;
|
||
|
const std::string& str() const;
|
||
|
template <typename Arg_ = const std::string&, typename... Args_>
|
||
|
void set_str(Arg_&& arg, Args_... args);
|
||
|
std::string* mutable_str();
|
||
|
PROTOBUF_NODISCARD std::string* release_str();
|
||
|
void set_allocated_str(std::string* ptr);
|
||
|
|
||
|
private:
|
||
|
const std::string& _internal_str() const;
|
||
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_str(
|
||
|
const std::string& value);
|
||
|
std::string* _internal_mutable_str();
|
||
|
|
||
|
public:
|
||
|
// @@protoc_insertion_point(class_scope:WhisperCom.Protobuf.TestMessage)
|
||
|
private:
|
||
|
class _Internal;
|
||
|
|
||
|
friend class ::google::protobuf::internal::TcParser;
|
||
|
static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 43, 2> _table_;
|
||
|
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
|
||
|
typedef void InternalArenaConstructable_;
|
||
|
typedef void DestructorSkippable_;
|
||
|
struct Impl_ {
|
||
|
::google::protobuf::internal::ArenaStringPtr str_;
|
||
|
mutable ::google::protobuf::internal::CachedSize _cached_size_;
|
||
|
};
|
||
|
union { Impl_ _impl_; };
|
||
|
friend struct ::TableStruct_TestMessage_2eproto;
|
||
|
};
|
||
|
|
||
|
// ===================================================================
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
// ===================================================================
|
||
|
|
||
|
|
||
|
#ifdef __GNUC__
|
||
|
#pragma GCC diagnostic push
|
||
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||
|
#endif // __GNUC__
|
||
|
// -------------------------------------------------------------------
|
||
|
|
||
|
// TestMessage
|
||
|
|
||
|
// string str = 1;
|
||
|
inline void TestMessage::clear_str() {
|
||
|
_impl_.str_.ClearToEmpty();
|
||
|
}
|
||
|
inline const std::string& TestMessage::str() const {
|
||
|
// @@protoc_insertion_point(field_get:WhisperCom.Protobuf.TestMessage.str)
|
||
|
return _internal_str();
|
||
|
}
|
||
|
template <typename Arg_, typename... Args_>
|
||
|
inline PROTOBUF_ALWAYS_INLINE void TestMessage::set_str(Arg_&& arg,
|
||
|
Args_... args) {
|
||
|
;
|
||
|
_impl_.str_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
|
||
|
// @@protoc_insertion_point(field_set:WhisperCom.Protobuf.TestMessage.str)
|
||
|
}
|
||
|
inline std::string* TestMessage::mutable_str() {
|
||
|
std::string* _s = _internal_mutable_str();
|
||
|
// @@protoc_insertion_point(field_mutable:WhisperCom.Protobuf.TestMessage.str)
|
||
|
return _s;
|
||
|
}
|
||
|
inline const std::string& TestMessage::_internal_str() const {
|
||
|
return _impl_.str_.Get();
|
||
|
}
|
||
|
inline void TestMessage::_internal_set_str(const std::string& value) {
|
||
|
;
|
||
|
_impl_.str_.Set(value, GetArenaForAllocation());
|
||
|
}
|
||
|
inline std::string* TestMessage::_internal_mutable_str() {
|
||
|
;
|
||
|
return _impl_.str_.Mutable( GetArenaForAllocation());
|
||
|
}
|
||
|
inline std::string* TestMessage::release_str() {
|
||
|
// @@protoc_insertion_point(field_release:WhisperCom.Protobuf.TestMessage.str)
|
||
|
return _impl_.str_.Release();
|
||
|
}
|
||
|
inline void TestMessage::set_allocated_str(std::string* value) {
|
||
|
_impl_.str_.SetAllocated(value, GetArenaForAllocation());
|
||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||
|
if (_impl_.str_.IsDefault()) {
|
||
|
_impl_.str_.Set("", GetArenaForAllocation());
|
||
|
}
|
||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||
|
// @@protoc_insertion_point(field_set_allocated:WhisperCom.Protobuf.TestMessage.str)
|
||
|
}
|
||
|
|
||
|
#ifdef __GNUC__
|
||
|
#pragma GCC diagnostic pop
|
||
|
#endif // __GNUC__
|
||
|
|
||
|
// @@protoc_insertion_point(namespace_scope)
|
||
|
} // namespace Protobuf
|
||
|
} // namespace WhisperCom
|
||
|
|
||
|
|
||
|
// @@protoc_insertion_point(global_scope)
|
||
|
|
||
|
#include "google/protobuf/port_undef.inc"
|
||
|
|
||
|
#endif // GOOGLE_PROTOBUF_INCLUDED_TestMessage_2eproto_2epb_2eh
|