// Generated by the protocol buffer compiler. DO NOT EDIT! // source: SentBody.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_SentBody_2eproto #define GOOGLE_PROTOBUF_INCLUDED_SentBody_2eproto #include #include #include #if PROTOBUF_VERSION < 3009000 #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 3009001 < 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 #include #include #include #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include // IWYU pragma: export #include #include #include // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_SentBody_2eproto PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_SentBody_2eproto { static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_SentBody_2eproto; class Model; class ModelDefaultTypeInternal; extern ModelDefaultTypeInternal _Model_default_instance_; class Model_DataEntry_DoNotUse; class Model_DataEntry_DoNotUseDefaultTypeInternal; extern Model_DataEntry_DoNotUseDefaultTypeInternal _Model_DataEntry_DoNotUse_default_instance_; PROTOBUF_NAMESPACE_OPEN template<> ::Model* Arena::CreateMaybeMessage<::Model>(Arena*); template<> ::Model_DataEntry_DoNotUse* Arena::CreateMaybeMessage<::Model_DataEntry_DoNotUse>(Arena*); PROTOBUF_NAMESPACE_CLOSE // =================================================================== class Model_DataEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { public: typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; Model_DataEntry_DoNotUse(); Model_DataEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); void MergeFrom(const Model_DataEntry_DoNotUse& other); static const Model_DataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Model_DataEntry_DoNotUse_default_instance_); } static bool ValidateKey(std::string* s) { return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), s->size(), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Model.DataEntry.key"); } static bool ValidateValue(std::string* s) { return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), s->size(), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Model.DataEntry.value"); } void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final; ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_SentBody_2eproto); return ::descriptor_table_SentBody_2eproto.file_level_metadata[0]; } public: }; // ------------------------------------------------------------------- class Model : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Model) */ { public: Model(); virtual ~Model(); Model(const Model& from); Model(Model&& from) noexcept : Model() { *this = ::std::move(from); } inline Model& operator=(const Model& from) { CopyFrom(from); return *this; } inline Model& operator=(Model&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const Model& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Model* internal_default_instance() { return reinterpret_cast( &_Model_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(Model& a, Model& b) { a.Swap(&b); } inline void Swap(Model* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline Model* New() const final { return CreateMaybeMessage(nullptr); } Model* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Model& from); void MergeFrom(const Model& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Model* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "Model"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_SentBody_2eproto); return ::descriptor_table_SentBody_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kDataFieldNumber = 3, kKeyFieldNumber = 1, kTimestampFieldNumber = 2, }; // map data = 3; int data_size() const; void clear_data(); const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& data() const; ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* mutable_data(); // string key = 1; void clear_key(); const std::string& key() const; void set_key(const std::string& value); void set_key(std::string&& value); void set_key(const char* value); void set_key(const char* value, size_t size); std::string* mutable_key(); std::string* release_key(); void set_allocated_key(std::string* key); // int64 timestamp = 2; void clear_timestamp(); ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; void set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); // @@protoc_insertion_point(class_scope:Model) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::MapField< Model_DataEntry_DoNotUse, std::string, std::string, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, 0 > data_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_SentBody_2eproto; }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // ------------------------------------------------------------------- // Model // string key = 1; inline void Model::clear_key() { key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline const std::string& Model::key() const { // @@protoc_insertion_point(field_get:Model.key) return key_.GetNoArena(); } inline void Model::set_key(const std::string& value) { key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:Model.key) } inline void Model::set_key(std::string&& value) { key_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Model.key) } inline void Model::set_key(const char* value) { GOOGLE_DCHECK(value != nullptr); key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Model.key) } inline void Model::set_key(const char* value, size_t size) { key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Model.key) } inline std::string* Model::mutable_key() { // @@protoc_insertion_point(field_mutable:Model.key) return key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline std::string* Model::release_key() { // @@protoc_insertion_point(field_release:Model.key) return key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline void Model::set_allocated_key(std::string* key) { if (key != nullptr) { } else { } key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key); // @@protoc_insertion_point(field_set_allocated:Model.key) } // int64 timestamp = 2; inline void Model::clear_timestamp() { timestamp_ = PROTOBUF_LONGLONG(0); } inline ::PROTOBUF_NAMESPACE_ID::int64 Model::timestamp() const { // @@protoc_insertion_point(field_get:Model.timestamp) return timestamp_; } inline void Model::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { timestamp_ = value; // @@protoc_insertion_point(field_set:Model.timestamp) } // map data = 3; inline int Model::data_size() const { return data_.size(); } inline void Model::clear_data() { data_.Clear(); } inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& Model::data() const { // @@protoc_insertion_point(field_map:Model.data) return data_.GetMap(); } inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* Model::mutable_data() { // @@protoc_insertion_point(field_mutable_map:Model.data) return data_.MutableMap(); } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // ------------------------------------------------------------------- // @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(global_scope) #include #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_SentBody_2eproto