diff --git a/lib/facts/bots.js b/lib/facts/bots.js --- a/lib/facts/bots.js +++ b/lib/facts/bots.js @@ -1,5 +1,9 @@ // @flow -var bots = { +type Bots = { + commbot: any, +}; + +var bots: Bots = { commbot: { userID: '5', staffThreadID: '83794', diff --git a/lib/facts/genesis.js b/lib/facts/genesis.js --- a/lib/facts/genesis.js +++ b/lib/facts/genesis.js @@ -1,5 +1,12 @@ // @flow -var genesis = { +type Genesis = { + id: string, + name: string, + description: string, + introMessages: string[], +}; + +var genesis: Genesis = { id: '1', name: 'GENESIS', description: diff --git a/lib/facts/staff.js b/lib/facts/staff.js --- a/lib/facts/staff.js +++ b/lib/facts/staff.js @@ -1,5 +1,5 @@ // @flow -var staff = [ +var staff: string[] = [ '256', '518252', '379341', diff --git a/native/cpp/CommonCpp/grpc/_generated/backup.pb.h b/native/cpp/CommonCpp/grpc/_generated/backup.pb.h --- a/native/cpp/CommonCpp/grpc/_generated/backup.pb.h +++ b/native/cpp/CommonCpp/grpc/_generated/backup.pb.h @@ -8,12 +8,12 @@ #include #include -#if PROTOBUF_VERSION < 3015000 +#if PROTOBUF_VERSION < 3021000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3015008 < PROTOBUF_MIN_PROTOC_VERSION +#if 3021005 < 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. @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include @@ -43,18 +42,9 @@ // Internal implementation detail -- do not use these members. struct TableStruct_backup_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[9] - 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[]; + static const uint32_t offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_backup_2eproto; -::PROTOBUF_NAMESPACE_ID::Metadata descriptor_table_backup_2eproto_metadata_getter(int index); namespace backup { class AddAttachmentsRequest; struct AddAttachmentsRequestDefaultTypeInternal; @@ -99,12 +89,12 @@ // =================================================================== -class CreateNewBackupRequest PROTOBUF_FINAL : +class CreateNewBackupRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.CreateNewBackupRequest) */ { public: inline CreateNewBackupRequest() : CreateNewBackupRequest(nullptr) {} - virtual ~CreateNewBackupRequest(); - explicit constexpr CreateNewBackupRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~CreateNewBackupRequest() override; + explicit PROTOBUF_CONSTEXPR CreateNewBackupRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); CreateNewBackupRequest(const CreateNewBackupRequest& from); CreateNewBackupRequest(CreateNewBackupRequest&& from) noexcept @@ -117,8 +107,13 @@ return *this; } inline CreateNewBackupRequest& operator=(CreateNewBackupRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -129,10 +124,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const CreateNewBackupRequest& default_instance() { return *internal_default_instance(); @@ -158,7 +153,12 @@ } inline void Swap(CreateNewBackupRequest* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -166,55 +166,53 @@ } void UnsafeArenaSwap(CreateNewBackupRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline CreateNewBackupRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateNewBackupRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + CreateNewBackupRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CreateNewBackupRequest& from); - void MergeFrom(const CreateNewBackupRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CreateNewBackupRequest& from) { + CreateNewBackupRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(CreateNewBackupRequest* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "backup.CreateNewBackupRequest"; } protected: - explicit CreateNewBackupRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit CreateNewBackupRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_backup_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -234,16 +232,14 @@ public: void clear_userid(); const std::string& userid() const; - void set_userid(const std::string& value); - void set_userid(std::string&& value); - void set_userid(const char* value); - void set_userid(const char* value, size_t size); + template + void set_userid(ArgT0&& arg0, ArgT... args); std::string* mutable_userid(); - std::string* release_userid(); + PROTOBUF_NODISCARD std::string* release_userid(); void set_allocated_userid(std::string* userid); private: const std::string& _internal_userid() const; - void _internal_set_userid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_userid(const std::string& value); std::string* _internal_mutable_userid(); public: @@ -254,16 +250,14 @@ public: void clear_deviceid(); const std::string& deviceid() const; - void set_deviceid(const std::string& value); - void set_deviceid(std::string&& value); - void set_deviceid(const char* value); - void set_deviceid(const char* value, size_t size); + template + void set_deviceid(ArgT0&& arg0, ArgT... args); std::string* mutable_deviceid(); - std::string* release_deviceid(); + PROTOBUF_NODISCARD std::string* release_deviceid(); void set_allocated_deviceid(std::string* deviceid); private: const std::string& _internal_deviceid() const; - void _internal_set_deviceid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_deviceid(const std::string& value); std::string* _internal_mutable_deviceid(); public: @@ -274,16 +268,14 @@ public: void clear_keyentropy(); const std::string& keyentropy() const; - void set_keyentropy(const std::string& value); - void set_keyentropy(std::string&& value); - void set_keyentropy(const char* value); - void set_keyentropy(const void* value, size_t size); + template + void set_keyentropy(ArgT0&& arg0, ArgT... args); std::string* mutable_keyentropy(); - std::string* release_keyentropy(); + PROTOBUF_NODISCARD std::string* release_keyentropy(); void set_allocated_keyentropy(std::string* keyentropy); private: const std::string& _internal_keyentropy() const; - void _internal_set_keyentropy(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_keyentropy(const std::string& value); std::string* _internal_mutable_keyentropy(); public: @@ -294,16 +286,14 @@ public: void clear_newcompactionhash(); const std::string& newcompactionhash() const; - void set_newcompactionhash(const std::string& value); - void set_newcompactionhash(std::string&& value); - void set_newcompactionhash(const char* value); - void set_newcompactionhash(const void* value, size_t size); + template + void set_newcompactionhash(ArgT0&& arg0, ArgT... args); std::string* mutable_newcompactionhash(); - std::string* release_newcompactionhash(); + PROTOBUF_NODISCARD std::string* release_newcompactionhash(); void set_allocated_newcompactionhash(std::string* newcompactionhash); private: const std::string& _internal_newcompactionhash() const; - void _internal_set_newcompactionhash(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_newcompactionhash(const std::string& value); std::string* _internal_mutable_newcompactionhash(); public: @@ -314,16 +304,14 @@ public: void clear_newcompactionchunk(); const std::string& newcompactionchunk() const; - void set_newcompactionchunk(const std::string& value); - void set_newcompactionchunk(std::string&& value); - void set_newcompactionchunk(const char* value); - void set_newcompactionchunk(const void* value, size_t size); + template + void set_newcompactionchunk(ArgT0&& arg0, ArgT... args); std::string* mutable_newcompactionchunk(); - std::string* release_newcompactionchunk(); + PROTOBUF_NODISCARD std::string* release_newcompactionchunk(); void set_allocated_newcompactionchunk(std::string* newcompactionchunk); private: const std::string& _internal_newcompactionchunk() const; - void _internal_set_newcompactionchunk(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_newcompactionchunk(const std::string& value); std::string* _internal_mutable_newcompactionchunk(); public: @@ -344,28 +332,31 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - union DataUnion { - constexpr DataUnion() : _constinit_{} {} - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr deviceid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr keyentropy_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr newcompactionhash_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr newcompactionchunk_; - } data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + struct Impl_ { + union DataUnion { + constexpr DataUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr deviceid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr keyentropy_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr newcompactionhash_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr newcompactionchunk_; + } data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_backup_2eproto; }; // ------------------------------------------------------------------- -class CreateNewBackupResponse PROTOBUF_FINAL : +class CreateNewBackupResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.CreateNewBackupResponse) */ { public: inline CreateNewBackupResponse() : CreateNewBackupResponse(nullptr) {} - virtual ~CreateNewBackupResponse(); - explicit constexpr CreateNewBackupResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~CreateNewBackupResponse() override; + explicit PROTOBUF_CONSTEXPR CreateNewBackupResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); CreateNewBackupResponse(const CreateNewBackupResponse& from); CreateNewBackupResponse(CreateNewBackupResponse&& from) noexcept @@ -378,8 +369,13 @@ return *this; } inline CreateNewBackupResponse& operator=(CreateNewBackupResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -390,10 +386,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const CreateNewBackupResponse& default_instance() { return *internal_default_instance(); @@ -410,7 +406,12 @@ } inline void Swap(CreateNewBackupResponse* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -418,55 +419,53 @@ } void UnsafeArenaSwap(CreateNewBackupResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline CreateNewBackupResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateNewBackupResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + CreateNewBackupResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CreateNewBackupResponse& from); - void MergeFrom(const CreateNewBackupResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CreateNewBackupResponse& from) { + CreateNewBackupResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(CreateNewBackupResponse* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "backup.CreateNewBackupResponse"; } protected: - explicit CreateNewBackupResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit CreateNewBackupResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_backup_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -478,16 +477,14 @@ // string backupID = 1; void clear_backupid(); const std::string& backupid() const; - void set_backupid(const std::string& value); - void set_backupid(std::string&& value); - void set_backupid(const char* value); - void set_backupid(const char* value, size_t size); + template + void set_backupid(ArgT0&& arg0, ArgT... args); std::string* mutable_backupid(); - std::string* release_backupid(); + PROTOBUF_NODISCARD std::string* release_backupid(); void set_allocated_backupid(std::string* backupid); private: const std::string& _internal_backupid() const; - void _internal_set_backupid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_backupid(const std::string& value); std::string* _internal_mutable_backupid(); public: @@ -498,18 +495,21 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr backupid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr backupid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_backup_2eproto; }; // ------------------------------------------------------------------- -class SendLogRequest PROTOBUF_FINAL : +class SendLogRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.SendLogRequest) */ { public: inline SendLogRequest() : SendLogRequest(nullptr) {} - virtual ~SendLogRequest(); - explicit constexpr SendLogRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~SendLogRequest() override; + explicit PROTOBUF_CONSTEXPR SendLogRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SendLogRequest(const SendLogRequest& from); SendLogRequest(SendLogRequest&& from) noexcept @@ -522,8 +522,13 @@ return *this; } inline SendLogRequest& operator=(SendLogRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -534,10 +539,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const SendLogRequest& default_instance() { return *internal_default_instance(); @@ -562,7 +567,12 @@ } inline void Swap(SendLogRequest* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -570,55 +580,53 @@ } void UnsafeArenaSwap(SendLogRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline SendLogRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - SendLogRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + SendLogRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SendLogRequest& from); - void MergeFrom(const SendLogRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SendLogRequest& from) { + SendLogRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SendLogRequest* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "backup.SendLogRequest"; } protected: - explicit SendLogRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SendLogRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_backup_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -637,16 +645,14 @@ public: void clear_userid(); const std::string& userid() const; - void set_userid(const std::string& value); - void set_userid(std::string&& value); - void set_userid(const char* value); - void set_userid(const char* value, size_t size); + template + void set_userid(ArgT0&& arg0, ArgT... args); std::string* mutable_userid(); - std::string* release_userid(); + PROTOBUF_NODISCARD std::string* release_userid(); void set_allocated_userid(std::string* userid); private: const std::string& _internal_userid() const; - void _internal_set_userid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_userid(const std::string& value); std::string* _internal_mutable_userid(); public: @@ -657,16 +663,14 @@ public: void clear_backupid(); const std::string& backupid() const; - void set_backupid(const std::string& value); - void set_backupid(std::string&& value); - void set_backupid(const char* value); - void set_backupid(const char* value, size_t size); + template + void set_backupid(ArgT0&& arg0, ArgT... args); std::string* mutable_backupid(); - std::string* release_backupid(); + PROTOBUF_NODISCARD std::string* release_backupid(); void set_allocated_backupid(std::string* backupid); private: const std::string& _internal_backupid() const; - void _internal_set_backupid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_backupid(const std::string& value); std::string* _internal_mutable_backupid(); public: @@ -677,16 +681,14 @@ public: void clear_loghash(); const std::string& loghash() const; - void set_loghash(const std::string& value); - void set_loghash(std::string&& value); - void set_loghash(const char* value); - void set_loghash(const void* value, size_t size); + template + void set_loghash(ArgT0&& arg0, ArgT... args); std::string* mutable_loghash(); - std::string* release_loghash(); + PROTOBUF_NODISCARD std::string* release_loghash(); void set_allocated_loghash(std::string* loghash); private: const std::string& _internal_loghash() const; - void _internal_set_loghash(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_loghash(const std::string& value); std::string* _internal_mutable_loghash(); public: @@ -697,16 +699,14 @@ public: void clear_logdata(); const std::string& logdata() const; - void set_logdata(const std::string& value); - void set_logdata(std::string&& value); - void set_logdata(const char* value); - void set_logdata(const void* value, size_t size); + template + void set_logdata(ArgT0&& arg0, ArgT... args); std::string* mutable_logdata(); - std::string* release_logdata(); + PROTOBUF_NODISCARD std::string* release_logdata(); void set_allocated_logdata(std::string* logdata); private: const std::string& _internal_logdata() const; - void _internal_set_logdata(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_logdata(const std::string& value); std::string* _internal_mutable_logdata(); public: @@ -726,27 +726,30 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - union DataUnion { - constexpr DataUnion() : _constinit_{} {} - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr backupid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr loghash_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logdata_; - } data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + struct Impl_ { + union DataUnion { + constexpr DataUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr backupid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr loghash_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logdata_; + } data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_backup_2eproto; }; // ------------------------------------------------------------------- -class SendLogResponse PROTOBUF_FINAL : +class SendLogResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.SendLogResponse) */ { public: inline SendLogResponse() : SendLogResponse(nullptr) {} - virtual ~SendLogResponse(); - explicit constexpr SendLogResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~SendLogResponse() override; + explicit PROTOBUF_CONSTEXPR SendLogResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SendLogResponse(const SendLogResponse& from); SendLogResponse(SendLogResponse&& from) noexcept @@ -759,8 +762,13 @@ return *this; } inline SendLogResponse& operator=(SendLogResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -771,10 +779,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const SendLogResponse& default_instance() { return *internal_default_instance(); @@ -791,7 +799,12 @@ } inline void Swap(SendLogResponse* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -799,55 +812,53 @@ } void UnsafeArenaSwap(SendLogResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline SendLogResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - SendLogResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + SendLogResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SendLogResponse& from); - void MergeFrom(const SendLogResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SendLogResponse& from) { + SendLogResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SendLogResponse* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "backup.SendLogResponse"; } protected: - explicit SendLogResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SendLogResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_backup_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -859,16 +870,14 @@ // string logCheckpoint = 1; void clear_logcheckpoint(); const std::string& logcheckpoint() const; - void set_logcheckpoint(const std::string& value); - void set_logcheckpoint(std::string&& value); - void set_logcheckpoint(const char* value); - void set_logcheckpoint(const char* value, size_t size); + template + void set_logcheckpoint(ArgT0&& arg0, ArgT... args); std::string* mutable_logcheckpoint(); - std::string* release_logcheckpoint(); + PROTOBUF_NODISCARD std::string* release_logcheckpoint(); void set_allocated_logcheckpoint(std::string* logcheckpoint); private: const std::string& _internal_logcheckpoint() const; - void _internal_set_logcheckpoint(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_logcheckpoint(const std::string& value); std::string* _internal_mutable_logcheckpoint(); public: @@ -879,18 +888,21 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logcheckpoint_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logcheckpoint_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_backup_2eproto; }; // ------------------------------------------------------------------- -class RecoverBackupKeyRequest PROTOBUF_FINAL : +class RecoverBackupKeyRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.RecoverBackupKeyRequest) */ { public: inline RecoverBackupKeyRequest() : RecoverBackupKeyRequest(nullptr) {} - virtual ~RecoverBackupKeyRequest(); - explicit constexpr RecoverBackupKeyRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~RecoverBackupKeyRequest() override; + explicit PROTOBUF_CONSTEXPR RecoverBackupKeyRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); RecoverBackupKeyRequest(const RecoverBackupKeyRequest& from); RecoverBackupKeyRequest(RecoverBackupKeyRequest&& from) noexcept @@ -903,8 +915,13 @@ return *this; } inline RecoverBackupKeyRequest& operator=(RecoverBackupKeyRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -915,10 +932,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const RecoverBackupKeyRequest& default_instance() { return *internal_default_instance(); @@ -935,7 +952,12 @@ } inline void Swap(RecoverBackupKeyRequest* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -943,55 +965,53 @@ } void UnsafeArenaSwap(RecoverBackupKeyRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline RecoverBackupKeyRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - RecoverBackupKeyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + RecoverBackupKeyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const RecoverBackupKeyRequest& from); - void MergeFrom(const RecoverBackupKeyRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RecoverBackupKeyRequest& from) { + RecoverBackupKeyRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(RecoverBackupKeyRequest* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "backup.RecoverBackupKeyRequest"; } protected: - explicit RecoverBackupKeyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit RecoverBackupKeyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_backup_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1003,16 +1023,14 @@ // string userID = 1; void clear_userid(); const std::string& userid() const; - void set_userid(const std::string& value); - void set_userid(std::string&& value); - void set_userid(const char* value); - void set_userid(const char* value, size_t size); + template + void set_userid(ArgT0&& arg0, ArgT... args); std::string* mutable_userid(); - std::string* release_userid(); + PROTOBUF_NODISCARD std::string* release_userid(); void set_allocated_userid(std::string* userid); private: const std::string& _internal_userid() const; - void _internal_set_userid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_userid(const std::string& value); std::string* _internal_mutable_userid(); public: @@ -1023,18 +1041,21 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_backup_2eproto; }; // ------------------------------------------------------------------- -class RecoverBackupKeyResponse PROTOBUF_FINAL : +class RecoverBackupKeyResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.RecoverBackupKeyResponse) */ { public: inline RecoverBackupKeyResponse() : RecoverBackupKeyResponse(nullptr) {} - virtual ~RecoverBackupKeyResponse(); - explicit constexpr RecoverBackupKeyResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~RecoverBackupKeyResponse() override; + explicit PROTOBUF_CONSTEXPR RecoverBackupKeyResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); RecoverBackupKeyResponse(const RecoverBackupKeyResponse& from); RecoverBackupKeyResponse(RecoverBackupKeyResponse&& from) noexcept @@ -1047,8 +1068,13 @@ return *this; } inline RecoverBackupKeyResponse& operator=(RecoverBackupKeyResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -1059,10 +1085,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const RecoverBackupKeyResponse& default_instance() { return *internal_default_instance(); @@ -1079,7 +1105,12 @@ } inline void Swap(RecoverBackupKeyResponse* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1087,55 +1118,53 @@ } void UnsafeArenaSwap(RecoverBackupKeyResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline RecoverBackupKeyResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - RecoverBackupKeyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + RecoverBackupKeyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const RecoverBackupKeyResponse& from); - void MergeFrom(const RecoverBackupKeyResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RecoverBackupKeyResponse& from) { + RecoverBackupKeyResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(RecoverBackupKeyResponse* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "backup.RecoverBackupKeyResponse"; } protected: - explicit RecoverBackupKeyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit RecoverBackupKeyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_backup_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1147,16 +1176,14 @@ // string backupID = 4; void clear_backupid(); const std::string& backupid() const; - void set_backupid(const std::string& value); - void set_backupid(std::string&& value); - void set_backupid(const char* value); - void set_backupid(const char* value, size_t size); + template + void set_backupid(ArgT0&& arg0, ArgT... args); std::string* mutable_backupid(); - std::string* release_backupid(); + PROTOBUF_NODISCARD std::string* release_backupid(); void set_allocated_backupid(std::string* backupid); private: const std::string& _internal_backupid() const; - void _internal_set_backupid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_backupid(const std::string& value); std::string* _internal_mutable_backupid(); public: @@ -1167,18 +1194,21 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr backupid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr backupid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_backup_2eproto; }; // ------------------------------------------------------------------- -class PullBackupRequest PROTOBUF_FINAL : +class PullBackupRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.PullBackupRequest) */ { public: inline PullBackupRequest() : PullBackupRequest(nullptr) {} - virtual ~PullBackupRequest(); - explicit constexpr PullBackupRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~PullBackupRequest() override; + explicit PROTOBUF_CONSTEXPR PullBackupRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); PullBackupRequest(const PullBackupRequest& from); PullBackupRequest(PullBackupRequest&& from) noexcept @@ -1191,8 +1221,13 @@ return *this; } inline PullBackupRequest& operator=(PullBackupRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -1203,10 +1238,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const PullBackupRequest& default_instance() { return *internal_default_instance(); @@ -1223,7 +1258,12 @@ } inline void Swap(PullBackupRequest* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1231,55 +1271,53 @@ } void UnsafeArenaSwap(PullBackupRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline PullBackupRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - PullBackupRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + PullBackupRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const PullBackupRequest& from); - void MergeFrom(const PullBackupRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const PullBackupRequest& from) { + PullBackupRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(PullBackupRequest* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "backup.PullBackupRequest"; } protected: - explicit PullBackupRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit PullBackupRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_backup_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1292,32 +1330,28 @@ // string userID = 1; void clear_userid(); const std::string& userid() const; - void set_userid(const std::string& value); - void set_userid(std::string&& value); - void set_userid(const char* value); - void set_userid(const char* value, size_t size); + template + void set_userid(ArgT0&& arg0, ArgT... args); std::string* mutable_userid(); - std::string* release_userid(); + PROTOBUF_NODISCARD std::string* release_userid(); void set_allocated_userid(std::string* userid); private: const std::string& _internal_userid() const; - void _internal_set_userid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_userid(const std::string& value); std::string* _internal_mutable_userid(); public: // string backupID = 2; void clear_backupid(); const std::string& backupid() const; - void set_backupid(const std::string& value); - void set_backupid(std::string&& value); - void set_backupid(const char* value); - void set_backupid(const char* value, size_t size); + template + void set_backupid(ArgT0&& arg0, ArgT... args); std::string* mutable_backupid(); - std::string* release_backupid(); + PROTOBUF_NODISCARD std::string* release_backupid(); void set_allocated_backupid(std::string* backupid); private: const std::string& _internal_backupid() const; - void _internal_set_backupid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_backupid(const std::string& value); std::string* _internal_mutable_backupid(); public: @@ -1328,19 +1362,22 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr backupid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr backupid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_backup_2eproto; }; // ------------------------------------------------------------------- -class PullBackupResponse PROTOBUF_FINAL : +class PullBackupResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.PullBackupResponse) */ { public: inline PullBackupResponse() : PullBackupResponse(nullptr) {} - virtual ~PullBackupResponse(); - explicit constexpr PullBackupResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~PullBackupResponse() override; + explicit PROTOBUF_CONSTEXPR PullBackupResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); PullBackupResponse(const PullBackupResponse& from); PullBackupResponse(PullBackupResponse&& from) noexcept @@ -1353,8 +1390,13 @@ return *this; } inline PullBackupResponse& operator=(PullBackupResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -1365,10 +1407,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const PullBackupResponse& default_instance() { return *internal_default_instance(); @@ -1397,7 +1439,12 @@ } inline void Swap(PullBackupResponse* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1405,55 +1452,53 @@ } void UnsafeArenaSwap(PullBackupResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline PullBackupResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - PullBackupResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + PullBackupResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const PullBackupResponse& from); - void MergeFrom(const PullBackupResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const PullBackupResponse& from) { + PullBackupResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(PullBackupResponse* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "backup.PullBackupResponse"; } protected: - explicit PullBackupResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit PullBackupResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_backup_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1466,23 +1511,21 @@ kCompactionChunkFieldNumber = 3, kLogChunkFieldNumber = 4, }; - // string attachmentHolders = 5; + // optional string attachmentHolders = 5; bool has_attachmentholders() const; private: bool _internal_has_attachmentholders() const; public: void clear_attachmentholders(); const std::string& attachmentholders() const; - void set_attachmentholders(const std::string& value); - void set_attachmentholders(std::string&& value); - void set_attachmentholders(const char* value); - void set_attachmentholders(const char* value, size_t size); + template + void set_attachmentholders(ArgT0&& arg0, ArgT... args); std::string* mutable_attachmentholders(); - std::string* release_attachmentholders(); + PROTOBUF_NODISCARD std::string* release_attachmentholders(); void set_allocated_attachmentholders(std::string* attachmentholders); private: const std::string& _internal_attachmentholders() const; - void _internal_set_attachmentholders(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_attachmentholders(const std::string& value); std::string* _internal_mutable_attachmentholders(); public: @@ -1493,16 +1536,14 @@ public: void clear_backupid(); const std::string& backupid() const; - void set_backupid(const std::string& value); - void set_backupid(std::string&& value); - void set_backupid(const char* value); - void set_backupid(const char* value, size_t size); + template + void set_backupid(ArgT0&& arg0, ArgT... args); std::string* mutable_backupid(); - std::string* release_backupid(); + PROTOBUF_NODISCARD std::string* release_backupid(); void set_allocated_backupid(std::string* backupid); private: const std::string& _internal_backupid() const; - void _internal_set_backupid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_backupid(const std::string& value); std::string* _internal_mutable_backupid(); public: @@ -1513,16 +1554,14 @@ public: void clear_logid(); const std::string& logid() const; - void set_logid(const std::string& value); - void set_logid(std::string&& value); - void set_logid(const char* value); - void set_logid(const char* value, size_t size); + template + void set_logid(ArgT0&& arg0, ArgT... args); std::string* mutable_logid(); - std::string* release_logid(); + PROTOBUF_NODISCARD std::string* release_logid(); void set_allocated_logid(std::string* logid); private: const std::string& _internal_logid() const; - void _internal_set_logid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_logid(const std::string& value); std::string* _internal_mutable_logid(); public: @@ -1533,16 +1572,14 @@ public: void clear_compactionchunk(); const std::string& compactionchunk() const; - void set_compactionchunk(const std::string& value); - void set_compactionchunk(std::string&& value); - void set_compactionchunk(const char* value); - void set_compactionchunk(const void* value, size_t size); + template + void set_compactionchunk(ArgT0&& arg0, ArgT... args); std::string* mutable_compactionchunk(); - std::string* release_compactionchunk(); + PROTOBUF_NODISCARD std::string* release_compactionchunk(); void set_allocated_compactionchunk(std::string* compactionchunk); private: const std::string& _internal_compactionchunk() const; - void _internal_set_compactionchunk(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_compactionchunk(const std::string& value); std::string* _internal_mutable_compactionchunk(); public: @@ -1553,16 +1590,14 @@ public: void clear_logchunk(); const std::string& logchunk() const; - void set_logchunk(const std::string& value); - void set_logchunk(std::string&& value); - void set_logchunk(const char* value); - void set_logchunk(const void* value, size_t size); + template + void set_logchunk(ArgT0&& arg0, ArgT... args); std::string* mutable_logchunk(); - std::string* release_logchunk(); + PROTOBUF_NODISCARD std::string* release_logchunk(); void set_allocated_logchunk(std::string* logchunk); private: const std::string& _internal_logchunk() const; - void _internal_set_logchunk(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_logchunk(const std::string& value); std::string* _internal_mutable_logchunk(); public: @@ -1587,33 +1622,36 @@ template 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 attachmentholders_; - union IdUnion { - constexpr IdUnion() : _constinit_{} {} - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr backupid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logid_; - } id_; - union DataUnion { - constexpr DataUnion() : _constinit_{} {} - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr compactionchunk_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logchunk_; - } data_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[2]; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr attachmentholders_; + union IdUnion { + constexpr IdUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr backupid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logid_; + } id_; + union DataUnion { + constexpr DataUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr compactionchunk_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logchunk_; + } data_; + uint32_t _oneof_case_[2]; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_backup_2eproto; }; // ------------------------------------------------------------------- -class AddAttachmentsRequest PROTOBUF_FINAL : +class AddAttachmentsRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.AddAttachmentsRequest) */ { public: inline AddAttachmentsRequest() : AddAttachmentsRequest(nullptr) {} - virtual ~AddAttachmentsRequest(); - explicit constexpr AddAttachmentsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~AddAttachmentsRequest() override; + explicit PROTOBUF_CONSTEXPR AddAttachmentsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); AddAttachmentsRequest(const AddAttachmentsRequest& from); AddAttachmentsRequest(AddAttachmentsRequest&& from) noexcept @@ -1626,8 +1664,13 @@ return *this; } inline AddAttachmentsRequest& operator=(AddAttachmentsRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -1638,10 +1681,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const AddAttachmentsRequest& default_instance() { return *internal_default_instance(); @@ -1658,7 +1701,12 @@ } inline void Swap(AddAttachmentsRequest* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1666,55 +1714,53 @@ } void UnsafeArenaSwap(AddAttachmentsRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline AddAttachmentsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - AddAttachmentsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + AddAttachmentsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const AddAttachmentsRequest& from); - void MergeFrom(const AddAttachmentsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AddAttachmentsRequest& from) { + AddAttachmentsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(AddAttachmentsRequest* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "backup.AddAttachmentsRequest"; } protected: - explicit AddAttachmentsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit AddAttachmentsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_backup_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1729,64 +1775,56 @@ // string userID = 1; void clear_userid(); const std::string& userid() const; - void set_userid(const std::string& value); - void set_userid(std::string&& value); - void set_userid(const char* value); - void set_userid(const char* value, size_t size); + template + void set_userid(ArgT0&& arg0, ArgT... args); std::string* mutable_userid(); - std::string* release_userid(); + PROTOBUF_NODISCARD std::string* release_userid(); void set_allocated_userid(std::string* userid); private: const std::string& _internal_userid() const; - void _internal_set_userid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_userid(const std::string& value); std::string* _internal_mutable_userid(); public: // string backupID = 2; void clear_backupid(); const std::string& backupid() const; - void set_backupid(const std::string& value); - void set_backupid(std::string&& value); - void set_backupid(const char* value); - void set_backupid(const char* value, size_t size); + template + void set_backupid(ArgT0&& arg0, ArgT... args); std::string* mutable_backupid(); - std::string* release_backupid(); + PROTOBUF_NODISCARD std::string* release_backupid(); void set_allocated_backupid(std::string* backupid); private: const std::string& _internal_backupid() const; - void _internal_set_backupid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_backupid(const std::string& value); std::string* _internal_mutable_backupid(); public: // string logID = 3; void clear_logid(); const std::string& logid() const; - void set_logid(const std::string& value); - void set_logid(std::string&& value); - void set_logid(const char* value); - void set_logid(const char* value, size_t size); + template + void set_logid(ArgT0&& arg0, ArgT... args); std::string* mutable_logid(); - std::string* release_logid(); + PROTOBUF_NODISCARD std::string* release_logid(); void set_allocated_logid(std::string* logid); private: const std::string& _internal_logid() const; - void _internal_set_logid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_logid(const std::string& value); std::string* _internal_mutable_logid(); public: // string holders = 4; void clear_holders(); const std::string& holders() const; - void set_holders(const std::string& value); - void set_holders(std::string&& value); - void set_holders(const char* value); - void set_holders(const char* value, size_t size); + template + void set_holders(ArgT0&& arg0, ArgT... args); std::string* mutable_holders(); - std::string* release_holders(); + PROTOBUF_NODISCARD std::string* release_holders(); void set_allocated_holders(std::string* holders); private: const std::string& _internal_holders() const; - void _internal_set_holders(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_holders(const std::string& value); std::string* _internal_mutable_holders(); public: @@ -1797,11 +1835,14 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr backupid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr holders_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr backupid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr holders_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_backup_2eproto; }; // =================================================================== @@ -1823,11 +1864,11 @@ return _internal_has_userid(); } inline void CreateNewBackupRequest::set_has_userid() { - _oneof_case_[0] = kUserID; + _impl_._oneof_case_[0] = kUserID; } inline void CreateNewBackupRequest::clear_userid() { if (_internal_has_userid()) { - data_.userid_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.userid_.Destroy(); clear_has_data(); } } @@ -1835,17 +1876,24 @@ // @@protoc_insertion_point(field_get:backup.CreateNewBackupRequest.userID) return _internal_userid(); } -inline void CreateNewBackupRequest::set_userid(const std::string& value) { - _internal_set_userid(value); +template +inline void CreateNewBackupRequest::set_userid(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_userid()) { + clear_data(); + set_has_userid(); + _impl_.data_.userid_.InitDefault(); + } + _impl_.data_.userid_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.CreateNewBackupRequest.userID) } inline std::string* CreateNewBackupRequest::mutable_userid() { + std::string* _s = _internal_mutable_userid(); // @@protoc_insertion_point(field_mutable:backup.CreateNewBackupRequest.userID) - return _internal_mutable_userid(); + return _s; } inline const std::string& CreateNewBackupRequest::_internal_userid() const { if (_internal_has_userid()) { - return data_.userid_.Get(); + return _impl_.data_.userid_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } @@ -1853,59 +1901,23 @@ if (!_internal_has_userid()) { clear_data(); set_has_userid(); - data_.userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.userid_.InitDefault(); } - data_.userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void CreateNewBackupRequest::set_userid(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.CreateNewBackupRequest.userID) - if (!_internal_has_userid()) { - clear_data(); - set_has_userid(); - data_.userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.userid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.CreateNewBackupRequest.userID) -} -inline void CreateNewBackupRequest::set_userid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_userid()) { - clear_data(); - set_has_userid(); - data_.userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.CreateNewBackupRequest.userID) -} -inline void CreateNewBackupRequest::set_userid(const char* value, - size_t size) { - if (!_internal_has_userid()) { - clear_data(); - set_has_userid(); - data_.userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.userid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.CreateNewBackupRequest.userID) + _impl_.data_.userid_.Set(value, GetArenaForAllocation()); } inline std::string* CreateNewBackupRequest::_internal_mutable_userid() { if (!_internal_has_userid()) { clear_data(); set_has_userid(); - data_.userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.userid_.InitDefault(); } - return data_.userid_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.data_.userid_.Mutable( GetArenaForAllocation()); } inline std::string* CreateNewBackupRequest::release_userid() { // @@protoc_insertion_point(field_release:backup.CreateNewBackupRequest.userID) if (_internal_has_userid()) { clear_has_data(); - return data_.userid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.data_.userid_.Release(); } else { return nullptr; } @@ -1916,11 +1928,7 @@ } if (userid != nullptr) { set_has_userid(); - data_.userid_.UnsafeSetDefault(userid); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(userid); - } + _impl_.data_.userid_.InitAllocated(userid, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:backup.CreateNewBackupRequest.userID) } @@ -1933,11 +1941,11 @@ return _internal_has_deviceid(); } inline void CreateNewBackupRequest::set_has_deviceid() { - _oneof_case_[0] = kDeviceID; + _impl_._oneof_case_[0] = kDeviceID; } inline void CreateNewBackupRequest::clear_deviceid() { if (_internal_has_deviceid()) { - data_.deviceid_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.deviceid_.Destroy(); clear_has_data(); } } @@ -1945,17 +1953,24 @@ // @@protoc_insertion_point(field_get:backup.CreateNewBackupRequest.deviceID) return _internal_deviceid(); } -inline void CreateNewBackupRequest::set_deviceid(const std::string& value) { - _internal_set_deviceid(value); +template +inline void CreateNewBackupRequest::set_deviceid(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_deviceid()) { + clear_data(); + set_has_deviceid(); + _impl_.data_.deviceid_.InitDefault(); + } + _impl_.data_.deviceid_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.CreateNewBackupRequest.deviceID) } inline std::string* CreateNewBackupRequest::mutable_deviceid() { + std::string* _s = _internal_mutable_deviceid(); // @@protoc_insertion_point(field_mutable:backup.CreateNewBackupRequest.deviceID) - return _internal_mutable_deviceid(); + return _s; } inline const std::string& CreateNewBackupRequest::_internal_deviceid() const { if (_internal_has_deviceid()) { - return data_.deviceid_.Get(); + return _impl_.data_.deviceid_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } @@ -1963,59 +1978,23 @@ if (!_internal_has_deviceid()) { clear_data(); set_has_deviceid(); - data_.deviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void CreateNewBackupRequest::set_deviceid(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.CreateNewBackupRequest.deviceID) - if (!_internal_has_deviceid()) { - clear_data(); - set_has_deviceid(); - data_.deviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.deviceid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.CreateNewBackupRequest.deviceID) -} -inline void CreateNewBackupRequest::set_deviceid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_deviceid()) { - clear_data(); - set_has_deviceid(); - data_.deviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.deviceid_.InitDefault(); } - data_.deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.CreateNewBackupRequest.deviceID) -} -inline void CreateNewBackupRequest::set_deviceid(const char* value, - size_t size) { - if (!_internal_has_deviceid()) { - clear_data(); - set_has_deviceid(); - data_.deviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.deviceid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.CreateNewBackupRequest.deviceID) + _impl_.data_.deviceid_.Set(value, GetArenaForAllocation()); } inline std::string* CreateNewBackupRequest::_internal_mutable_deviceid() { if (!_internal_has_deviceid()) { clear_data(); set_has_deviceid(); - data_.deviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.deviceid_.InitDefault(); } - return data_.deviceid_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.data_.deviceid_.Mutable( GetArenaForAllocation()); } inline std::string* CreateNewBackupRequest::release_deviceid() { // @@protoc_insertion_point(field_release:backup.CreateNewBackupRequest.deviceID) if (_internal_has_deviceid()) { clear_has_data(); - return data_.deviceid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.data_.deviceid_.Release(); } else { return nullptr; } @@ -2026,11 +2005,7 @@ } if (deviceid != nullptr) { set_has_deviceid(); - data_.deviceid_.UnsafeSetDefault(deviceid); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(deviceid); - } + _impl_.data_.deviceid_.InitAllocated(deviceid, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:backup.CreateNewBackupRequest.deviceID) } @@ -2043,11 +2018,11 @@ return _internal_has_keyentropy(); } inline void CreateNewBackupRequest::set_has_keyentropy() { - _oneof_case_[0] = kKeyEntropy; + _impl_._oneof_case_[0] = kKeyEntropy; } inline void CreateNewBackupRequest::clear_keyentropy() { if (_internal_has_keyentropy()) { - data_.keyentropy_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.keyentropy_.Destroy(); clear_has_data(); } } @@ -2055,17 +2030,24 @@ // @@protoc_insertion_point(field_get:backup.CreateNewBackupRequest.keyEntropy) return _internal_keyentropy(); } -inline void CreateNewBackupRequest::set_keyentropy(const std::string& value) { - _internal_set_keyentropy(value); +template +inline void CreateNewBackupRequest::set_keyentropy(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_keyentropy()) { + clear_data(); + set_has_keyentropy(); + _impl_.data_.keyentropy_.InitDefault(); + } + _impl_.data_.keyentropy_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.CreateNewBackupRequest.keyEntropy) } inline std::string* CreateNewBackupRequest::mutable_keyentropy() { + std::string* _s = _internal_mutable_keyentropy(); // @@protoc_insertion_point(field_mutable:backup.CreateNewBackupRequest.keyEntropy) - return _internal_mutable_keyentropy(); + return _s; } inline const std::string& CreateNewBackupRequest::_internal_keyentropy() const { if (_internal_has_keyentropy()) { - return data_.keyentropy_.Get(); + return _impl_.data_.keyentropy_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } @@ -2073,59 +2055,23 @@ if (!_internal_has_keyentropy()) { clear_data(); set_has_keyentropy(); - data_.keyentropy_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.keyentropy_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void CreateNewBackupRequest::set_keyentropy(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.CreateNewBackupRequest.keyEntropy) - if (!_internal_has_keyentropy()) { - clear_data(); - set_has_keyentropy(); - data_.keyentropy_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.keyentropy_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.CreateNewBackupRequest.keyEntropy) -} -inline void CreateNewBackupRequest::set_keyentropy(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_keyentropy()) { - clear_data(); - set_has_keyentropy(); - data_.keyentropy_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.keyentropy_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.CreateNewBackupRequest.keyEntropy) -} -inline void CreateNewBackupRequest::set_keyentropy(const void* value, - size_t size) { - if (!_internal_has_keyentropy()) { - clear_data(); - set_has_keyentropy(); - data_.keyentropy_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.keyentropy_.InitDefault(); } - data_.keyentropy_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.CreateNewBackupRequest.keyEntropy) + _impl_.data_.keyentropy_.Set(value, GetArenaForAllocation()); } inline std::string* CreateNewBackupRequest::_internal_mutable_keyentropy() { if (!_internal_has_keyentropy()) { clear_data(); set_has_keyentropy(); - data_.keyentropy_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.keyentropy_.InitDefault(); } - return data_.keyentropy_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.data_.keyentropy_.Mutable( GetArenaForAllocation()); } inline std::string* CreateNewBackupRequest::release_keyentropy() { // @@protoc_insertion_point(field_release:backup.CreateNewBackupRequest.keyEntropy) if (_internal_has_keyentropy()) { clear_has_data(); - return data_.keyentropy_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.data_.keyentropy_.Release(); } else { return nullptr; } @@ -2136,11 +2082,7 @@ } if (keyentropy != nullptr) { set_has_keyentropy(); - data_.keyentropy_.UnsafeSetDefault(keyentropy); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(keyentropy); - } + _impl_.data_.keyentropy_.InitAllocated(keyentropy, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:backup.CreateNewBackupRequest.keyEntropy) } @@ -2153,11 +2095,11 @@ return _internal_has_newcompactionhash(); } inline void CreateNewBackupRequest::set_has_newcompactionhash() { - _oneof_case_[0] = kNewCompactionHash; + _impl_._oneof_case_[0] = kNewCompactionHash; } inline void CreateNewBackupRequest::clear_newcompactionhash() { if (_internal_has_newcompactionhash()) { - data_.newcompactionhash_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.newcompactionhash_.Destroy(); clear_has_data(); } } @@ -2165,17 +2107,24 @@ // @@protoc_insertion_point(field_get:backup.CreateNewBackupRequest.newCompactionHash) return _internal_newcompactionhash(); } -inline void CreateNewBackupRequest::set_newcompactionhash(const std::string& value) { - _internal_set_newcompactionhash(value); +template +inline void CreateNewBackupRequest::set_newcompactionhash(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_newcompactionhash()) { + clear_data(); + set_has_newcompactionhash(); + _impl_.data_.newcompactionhash_.InitDefault(); + } + _impl_.data_.newcompactionhash_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.CreateNewBackupRequest.newCompactionHash) } inline std::string* CreateNewBackupRequest::mutable_newcompactionhash() { + std::string* _s = _internal_mutable_newcompactionhash(); // @@protoc_insertion_point(field_mutable:backup.CreateNewBackupRequest.newCompactionHash) - return _internal_mutable_newcompactionhash(); + return _s; } inline const std::string& CreateNewBackupRequest::_internal_newcompactionhash() const { if (_internal_has_newcompactionhash()) { - return data_.newcompactionhash_.Get(); + return _impl_.data_.newcompactionhash_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } @@ -2183,59 +2132,23 @@ if (!_internal_has_newcompactionhash()) { clear_data(); set_has_newcompactionhash(); - data_.newcompactionhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.newcompactionhash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void CreateNewBackupRequest::set_newcompactionhash(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.CreateNewBackupRequest.newCompactionHash) - if (!_internal_has_newcompactionhash()) { - clear_data(); - set_has_newcompactionhash(); - data_.newcompactionhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.newcompactionhash_.InitDefault(); } - data_.newcompactionhash_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.CreateNewBackupRequest.newCompactionHash) -} -inline void CreateNewBackupRequest::set_newcompactionhash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_newcompactionhash()) { - clear_data(); - set_has_newcompactionhash(); - data_.newcompactionhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.newcompactionhash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.CreateNewBackupRequest.newCompactionHash) -} -inline void CreateNewBackupRequest::set_newcompactionhash(const void* value, - size_t size) { - if (!_internal_has_newcompactionhash()) { - clear_data(); - set_has_newcompactionhash(); - data_.newcompactionhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.newcompactionhash_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.CreateNewBackupRequest.newCompactionHash) + _impl_.data_.newcompactionhash_.Set(value, GetArenaForAllocation()); } inline std::string* CreateNewBackupRequest::_internal_mutable_newcompactionhash() { if (!_internal_has_newcompactionhash()) { clear_data(); set_has_newcompactionhash(); - data_.newcompactionhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.newcompactionhash_.InitDefault(); } - return data_.newcompactionhash_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.data_.newcompactionhash_.Mutable( GetArenaForAllocation()); } inline std::string* CreateNewBackupRequest::release_newcompactionhash() { // @@protoc_insertion_point(field_release:backup.CreateNewBackupRequest.newCompactionHash) if (_internal_has_newcompactionhash()) { clear_has_data(); - return data_.newcompactionhash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.data_.newcompactionhash_.Release(); } else { return nullptr; } @@ -2246,11 +2159,7 @@ } if (newcompactionhash != nullptr) { set_has_newcompactionhash(); - data_.newcompactionhash_.UnsafeSetDefault(newcompactionhash); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(newcompactionhash); - } + _impl_.data_.newcompactionhash_.InitAllocated(newcompactionhash, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:backup.CreateNewBackupRequest.newCompactionHash) } @@ -2263,11 +2172,11 @@ return _internal_has_newcompactionchunk(); } inline void CreateNewBackupRequest::set_has_newcompactionchunk() { - _oneof_case_[0] = kNewCompactionChunk; + _impl_._oneof_case_[0] = kNewCompactionChunk; } inline void CreateNewBackupRequest::clear_newcompactionchunk() { if (_internal_has_newcompactionchunk()) { - data_.newcompactionchunk_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.newcompactionchunk_.Destroy(); clear_has_data(); } } @@ -2275,17 +2184,24 @@ // @@protoc_insertion_point(field_get:backup.CreateNewBackupRequest.newCompactionChunk) return _internal_newcompactionchunk(); } -inline void CreateNewBackupRequest::set_newcompactionchunk(const std::string& value) { - _internal_set_newcompactionchunk(value); +template +inline void CreateNewBackupRequest::set_newcompactionchunk(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_newcompactionchunk()) { + clear_data(); + set_has_newcompactionchunk(); + _impl_.data_.newcompactionchunk_.InitDefault(); + } + _impl_.data_.newcompactionchunk_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.CreateNewBackupRequest.newCompactionChunk) } inline std::string* CreateNewBackupRequest::mutable_newcompactionchunk() { + std::string* _s = _internal_mutable_newcompactionchunk(); // @@protoc_insertion_point(field_mutable:backup.CreateNewBackupRequest.newCompactionChunk) - return _internal_mutable_newcompactionchunk(); + return _s; } inline const std::string& CreateNewBackupRequest::_internal_newcompactionchunk() const { if (_internal_has_newcompactionchunk()) { - return data_.newcompactionchunk_.Get(); + return _impl_.data_.newcompactionchunk_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } @@ -2293,59 +2209,23 @@ if (!_internal_has_newcompactionchunk()) { clear_data(); set_has_newcompactionchunk(); - data_.newcompactionchunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.newcompactionchunk_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void CreateNewBackupRequest::set_newcompactionchunk(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.CreateNewBackupRequest.newCompactionChunk) - if (!_internal_has_newcompactionchunk()) { - clear_data(); - set_has_newcompactionchunk(); - data_.newcompactionchunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.newcompactionchunk_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.CreateNewBackupRequest.newCompactionChunk) -} -inline void CreateNewBackupRequest::set_newcompactionchunk(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_newcompactionchunk()) { - clear_data(); - set_has_newcompactionchunk(); - data_.newcompactionchunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.newcompactionchunk_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.CreateNewBackupRequest.newCompactionChunk) -} -inline void CreateNewBackupRequest::set_newcompactionchunk(const void* value, - size_t size) { - if (!_internal_has_newcompactionchunk()) { - clear_data(); - set_has_newcompactionchunk(); - data_.newcompactionchunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.newcompactionchunk_.InitDefault(); } - data_.newcompactionchunk_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.CreateNewBackupRequest.newCompactionChunk) + _impl_.data_.newcompactionchunk_.Set(value, GetArenaForAllocation()); } inline std::string* CreateNewBackupRequest::_internal_mutable_newcompactionchunk() { if (!_internal_has_newcompactionchunk()) { clear_data(); set_has_newcompactionchunk(); - data_.newcompactionchunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.newcompactionchunk_.InitDefault(); } - return data_.newcompactionchunk_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.data_.newcompactionchunk_.Mutable( GetArenaForAllocation()); } inline std::string* CreateNewBackupRequest::release_newcompactionchunk() { // @@protoc_insertion_point(field_release:backup.CreateNewBackupRequest.newCompactionChunk) if (_internal_has_newcompactionchunk()) { clear_has_data(); - return data_.newcompactionchunk_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.data_.newcompactionchunk_.Release(); } else { return nullptr; } @@ -2356,11 +2236,7 @@ } if (newcompactionchunk != nullptr) { set_has_newcompactionchunk(); - data_.newcompactionchunk_.UnsafeSetDefault(newcompactionchunk); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(newcompactionchunk); - } + _impl_.data_.newcompactionchunk_.InitAllocated(newcompactionchunk, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:backup.CreateNewBackupRequest.newCompactionChunk) } @@ -2369,10 +2245,10 @@ return data_case() != DATA_NOT_SET; } inline void CreateNewBackupRequest::clear_has_data() { - _oneof_case_[0] = DATA_NOT_SET; + _impl_._oneof_case_[0] = DATA_NOT_SET; } inline CreateNewBackupRequest::DataCase CreateNewBackupRequest::data_case() const { - return CreateNewBackupRequest::DataCase(_oneof_case_[0]); + return CreateNewBackupRequest::DataCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- @@ -2380,53 +2256,38 @@ // string backupID = 1; inline void CreateNewBackupResponse::clear_backupid() { - backupid_.ClearToEmpty(); + _impl_.backupid_.ClearToEmpty(); } inline const std::string& CreateNewBackupResponse::backupid() const { // @@protoc_insertion_point(field_get:backup.CreateNewBackupResponse.backupID) return _internal_backupid(); } -inline void CreateNewBackupResponse::set_backupid(const std::string& value) { - _internal_set_backupid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void CreateNewBackupResponse::set_backupid(ArgT0&& arg0, ArgT... args) { + + _impl_.backupid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.CreateNewBackupResponse.backupID) } inline std::string* CreateNewBackupResponse::mutable_backupid() { + std::string* _s = _internal_mutable_backupid(); // @@protoc_insertion_point(field_mutable:backup.CreateNewBackupResponse.backupID) - return _internal_mutable_backupid(); + return _s; } inline const std::string& CreateNewBackupResponse::_internal_backupid() const { - return backupid_.Get(); + return _impl_.backupid_.Get(); } inline void CreateNewBackupResponse::_internal_set_backupid(const std::string& value) { - backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void CreateNewBackupResponse::set_backupid(std::string&& value) { - - backupid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.CreateNewBackupResponse.backupID) -} -inline void CreateNewBackupResponse::set_backupid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.CreateNewBackupResponse.backupID) -} -inline void CreateNewBackupResponse::set_backupid(const char* value, - size_t size) { - - backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.CreateNewBackupResponse.backupID) + _impl_.backupid_.Set(value, GetArenaForAllocation()); } inline std::string* CreateNewBackupResponse::_internal_mutable_backupid() { - return backupid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.backupid_.Mutable(GetArenaForAllocation()); } inline std::string* CreateNewBackupResponse::release_backupid() { // @@protoc_insertion_point(field_release:backup.CreateNewBackupResponse.backupID) - return backupid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.backupid_.Release(); } inline void CreateNewBackupResponse::set_allocated_backupid(std::string* backupid) { if (backupid != nullptr) { @@ -2434,8 +2295,12 @@ } else { } - backupid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), backupid, - GetArena()); + _impl_.backupid_.SetAllocated(backupid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.backupid_.IsDefault()) { + _impl_.backupid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:backup.CreateNewBackupResponse.backupID) } @@ -2451,11 +2316,11 @@ return _internal_has_userid(); } inline void SendLogRequest::set_has_userid() { - _oneof_case_[0] = kUserID; + _impl_._oneof_case_[0] = kUserID; } inline void SendLogRequest::clear_userid() { if (_internal_has_userid()) { - data_.userid_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.userid_.Destroy(); clear_has_data(); } } @@ -2463,17 +2328,24 @@ // @@protoc_insertion_point(field_get:backup.SendLogRequest.userID) return _internal_userid(); } -inline void SendLogRequest::set_userid(const std::string& value) { - _internal_set_userid(value); +template +inline void SendLogRequest::set_userid(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_userid()) { + clear_data(); + set_has_userid(); + _impl_.data_.userid_.InitDefault(); + } + _impl_.data_.userid_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.SendLogRequest.userID) } inline std::string* SendLogRequest::mutable_userid() { + std::string* _s = _internal_mutable_userid(); // @@protoc_insertion_point(field_mutable:backup.SendLogRequest.userID) - return _internal_mutable_userid(); + return _s; } inline const std::string& SendLogRequest::_internal_userid() const { if (_internal_has_userid()) { - return data_.userid_.Get(); + return _impl_.data_.userid_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } @@ -2481,59 +2353,23 @@ if (!_internal_has_userid()) { clear_data(); set_has_userid(); - data_.userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.userid_.InitDefault(); } - data_.userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void SendLogRequest::set_userid(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.SendLogRequest.userID) - if (!_internal_has_userid()) { - clear_data(); - set_has_userid(); - data_.userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.userid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.SendLogRequest.userID) -} -inline void SendLogRequest::set_userid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_userid()) { - clear_data(); - set_has_userid(); - data_.userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.SendLogRequest.userID) -} -inline void SendLogRequest::set_userid(const char* value, - size_t size) { - if (!_internal_has_userid()) { - clear_data(); - set_has_userid(); - data_.userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.userid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.SendLogRequest.userID) + _impl_.data_.userid_.Set(value, GetArenaForAllocation()); } inline std::string* SendLogRequest::_internal_mutable_userid() { if (!_internal_has_userid()) { clear_data(); set_has_userid(); - data_.userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.userid_.InitDefault(); } - return data_.userid_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.data_.userid_.Mutable( GetArenaForAllocation()); } inline std::string* SendLogRequest::release_userid() { // @@protoc_insertion_point(field_release:backup.SendLogRequest.userID) if (_internal_has_userid()) { clear_has_data(); - return data_.userid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.data_.userid_.Release(); } else { return nullptr; } @@ -2544,11 +2380,7 @@ } if (userid != nullptr) { set_has_userid(); - data_.userid_.UnsafeSetDefault(userid); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(userid); - } + _impl_.data_.userid_.InitAllocated(userid, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:backup.SendLogRequest.userID) } @@ -2561,11 +2393,11 @@ return _internal_has_backupid(); } inline void SendLogRequest::set_has_backupid() { - _oneof_case_[0] = kBackupID; + _impl_._oneof_case_[0] = kBackupID; } inline void SendLogRequest::clear_backupid() { if (_internal_has_backupid()) { - data_.backupid_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.backupid_.Destroy(); clear_has_data(); } } @@ -2573,17 +2405,24 @@ // @@protoc_insertion_point(field_get:backup.SendLogRequest.backupID) return _internal_backupid(); } -inline void SendLogRequest::set_backupid(const std::string& value) { - _internal_set_backupid(value); +template +inline void SendLogRequest::set_backupid(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_backupid()) { + clear_data(); + set_has_backupid(); + _impl_.data_.backupid_.InitDefault(); + } + _impl_.data_.backupid_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.SendLogRequest.backupID) } inline std::string* SendLogRequest::mutable_backupid() { + std::string* _s = _internal_mutable_backupid(); // @@protoc_insertion_point(field_mutable:backup.SendLogRequest.backupID) - return _internal_mutable_backupid(); + return _s; } inline const std::string& SendLogRequest::_internal_backupid() const { if (_internal_has_backupid()) { - return data_.backupid_.Get(); + return _impl_.data_.backupid_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } @@ -2591,59 +2430,23 @@ if (!_internal_has_backupid()) { clear_data(); set_has_backupid(); - data_.backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void SendLogRequest::set_backupid(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.SendLogRequest.backupID) - if (!_internal_has_backupid()) { - clear_data(); - set_has_backupid(); - data_.backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.backupid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.SendLogRequest.backupID) -} -inline void SendLogRequest::set_backupid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_backupid()) { - clear_data(); - set_has_backupid(); - data_.backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.SendLogRequest.backupID) -} -inline void SendLogRequest::set_backupid(const char* value, - size_t size) { - if (!_internal_has_backupid()) { - clear_data(); - set_has_backupid(); - data_.backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.backupid_.InitDefault(); } - data_.backupid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.SendLogRequest.backupID) + _impl_.data_.backupid_.Set(value, GetArenaForAllocation()); } inline std::string* SendLogRequest::_internal_mutable_backupid() { if (!_internal_has_backupid()) { clear_data(); set_has_backupid(); - data_.backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.backupid_.InitDefault(); } - return data_.backupid_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.data_.backupid_.Mutable( GetArenaForAllocation()); } inline std::string* SendLogRequest::release_backupid() { // @@protoc_insertion_point(field_release:backup.SendLogRequest.backupID) if (_internal_has_backupid()) { clear_has_data(); - return data_.backupid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.data_.backupid_.Release(); } else { return nullptr; } @@ -2654,11 +2457,7 @@ } if (backupid != nullptr) { set_has_backupid(); - data_.backupid_.UnsafeSetDefault(backupid); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(backupid); - } + _impl_.data_.backupid_.InitAllocated(backupid, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:backup.SendLogRequest.backupID) } @@ -2671,11 +2470,11 @@ return _internal_has_loghash(); } inline void SendLogRequest::set_has_loghash() { - _oneof_case_[0] = kLogHash; + _impl_._oneof_case_[0] = kLogHash; } inline void SendLogRequest::clear_loghash() { if (_internal_has_loghash()) { - data_.loghash_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.loghash_.Destroy(); clear_has_data(); } } @@ -2683,17 +2482,24 @@ // @@protoc_insertion_point(field_get:backup.SendLogRequest.logHash) return _internal_loghash(); } -inline void SendLogRequest::set_loghash(const std::string& value) { - _internal_set_loghash(value); +template +inline void SendLogRequest::set_loghash(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_loghash()) { + clear_data(); + set_has_loghash(); + _impl_.data_.loghash_.InitDefault(); + } + _impl_.data_.loghash_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.SendLogRequest.logHash) } inline std::string* SendLogRequest::mutable_loghash() { + std::string* _s = _internal_mutable_loghash(); // @@protoc_insertion_point(field_mutable:backup.SendLogRequest.logHash) - return _internal_mutable_loghash(); + return _s; } inline const std::string& SendLogRequest::_internal_loghash() const { if (_internal_has_loghash()) { - return data_.loghash_.Get(); + return _impl_.data_.loghash_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } @@ -2701,59 +2507,23 @@ if (!_internal_has_loghash()) { clear_data(); set_has_loghash(); - data_.loghash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.loghash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void SendLogRequest::set_loghash(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.SendLogRequest.logHash) - if (!_internal_has_loghash()) { - clear_data(); - set_has_loghash(); - data_.loghash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.loghash_.InitDefault(); } - data_.loghash_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.SendLogRequest.logHash) -} -inline void SendLogRequest::set_loghash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_loghash()) { - clear_data(); - set_has_loghash(); - data_.loghash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.loghash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.SendLogRequest.logHash) -} -inline void SendLogRequest::set_loghash(const void* value, - size_t size) { - if (!_internal_has_loghash()) { - clear_data(); - set_has_loghash(); - data_.loghash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.loghash_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.SendLogRequest.logHash) + _impl_.data_.loghash_.Set(value, GetArenaForAllocation()); } inline std::string* SendLogRequest::_internal_mutable_loghash() { if (!_internal_has_loghash()) { clear_data(); set_has_loghash(); - data_.loghash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.loghash_.InitDefault(); } - return data_.loghash_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.data_.loghash_.Mutable( GetArenaForAllocation()); } inline std::string* SendLogRequest::release_loghash() { // @@protoc_insertion_point(field_release:backup.SendLogRequest.logHash) if (_internal_has_loghash()) { clear_has_data(); - return data_.loghash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.data_.loghash_.Release(); } else { return nullptr; } @@ -2764,11 +2534,7 @@ } if (loghash != nullptr) { set_has_loghash(); - data_.loghash_.UnsafeSetDefault(loghash); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(loghash); - } + _impl_.data_.loghash_.InitAllocated(loghash, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:backup.SendLogRequest.logHash) } @@ -2781,11 +2547,11 @@ return _internal_has_logdata(); } inline void SendLogRequest::set_has_logdata() { - _oneof_case_[0] = kLogData; + _impl_._oneof_case_[0] = kLogData; } inline void SendLogRequest::clear_logdata() { if (_internal_has_logdata()) { - data_.logdata_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.logdata_.Destroy(); clear_has_data(); } } @@ -2793,17 +2559,24 @@ // @@protoc_insertion_point(field_get:backup.SendLogRequest.logData) return _internal_logdata(); } -inline void SendLogRequest::set_logdata(const std::string& value) { - _internal_set_logdata(value); +template +inline void SendLogRequest::set_logdata(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_logdata()) { + clear_data(); + set_has_logdata(); + _impl_.data_.logdata_.InitDefault(); + } + _impl_.data_.logdata_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.SendLogRequest.logData) } inline std::string* SendLogRequest::mutable_logdata() { + std::string* _s = _internal_mutable_logdata(); // @@protoc_insertion_point(field_mutable:backup.SendLogRequest.logData) - return _internal_mutable_logdata(); + return _s; } inline const std::string& SendLogRequest::_internal_logdata() const { if (_internal_has_logdata()) { - return data_.logdata_.Get(); + return _impl_.data_.logdata_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } @@ -2811,59 +2584,23 @@ if (!_internal_has_logdata()) { clear_data(); set_has_logdata(); - data_.logdata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.logdata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void SendLogRequest::set_logdata(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.SendLogRequest.logData) - if (!_internal_has_logdata()) { - clear_data(); - set_has_logdata(); - data_.logdata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.logdata_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.SendLogRequest.logData) -} -inline void SendLogRequest::set_logdata(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_logdata()) { - clear_data(); - set_has_logdata(); - data_.logdata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.logdata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.SendLogRequest.logData) -} -inline void SendLogRequest::set_logdata(const void* value, - size_t size) { - if (!_internal_has_logdata()) { - clear_data(); - set_has_logdata(); - data_.logdata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.logdata_.InitDefault(); } - data_.logdata_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.SendLogRequest.logData) + _impl_.data_.logdata_.Set(value, GetArenaForAllocation()); } inline std::string* SendLogRequest::_internal_mutable_logdata() { if (!_internal_has_logdata()) { clear_data(); set_has_logdata(); - data_.logdata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.logdata_.InitDefault(); } - return data_.logdata_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.data_.logdata_.Mutable( GetArenaForAllocation()); } inline std::string* SendLogRequest::release_logdata() { // @@protoc_insertion_point(field_release:backup.SendLogRequest.logData) if (_internal_has_logdata()) { clear_has_data(); - return data_.logdata_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.data_.logdata_.Release(); } else { return nullptr; } @@ -2874,11 +2611,7 @@ } if (logdata != nullptr) { set_has_logdata(); - data_.logdata_.UnsafeSetDefault(logdata); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(logdata); - } + _impl_.data_.logdata_.InitAllocated(logdata, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:backup.SendLogRequest.logData) } @@ -2887,10 +2620,10 @@ return data_case() != DATA_NOT_SET; } inline void SendLogRequest::clear_has_data() { - _oneof_case_[0] = DATA_NOT_SET; + _impl_._oneof_case_[0] = DATA_NOT_SET; } inline SendLogRequest::DataCase SendLogRequest::data_case() const { - return SendLogRequest::DataCase(_oneof_case_[0]); + return SendLogRequest::DataCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- @@ -2898,53 +2631,38 @@ // string logCheckpoint = 1; inline void SendLogResponse::clear_logcheckpoint() { - logcheckpoint_.ClearToEmpty(); + _impl_.logcheckpoint_.ClearToEmpty(); } inline const std::string& SendLogResponse::logcheckpoint() const { // @@protoc_insertion_point(field_get:backup.SendLogResponse.logCheckpoint) return _internal_logcheckpoint(); } -inline void SendLogResponse::set_logcheckpoint(const std::string& value) { - _internal_set_logcheckpoint(value); +template +inline PROTOBUF_ALWAYS_INLINE +void SendLogResponse::set_logcheckpoint(ArgT0&& arg0, ArgT... args) { + + _impl_.logcheckpoint_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.SendLogResponse.logCheckpoint) } inline std::string* SendLogResponse::mutable_logcheckpoint() { + std::string* _s = _internal_mutable_logcheckpoint(); // @@protoc_insertion_point(field_mutable:backup.SendLogResponse.logCheckpoint) - return _internal_mutable_logcheckpoint(); + return _s; } inline const std::string& SendLogResponse::_internal_logcheckpoint() const { - return logcheckpoint_.Get(); + return _impl_.logcheckpoint_.Get(); } inline void SendLogResponse::_internal_set_logcheckpoint(const std::string& value) { - logcheckpoint_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void SendLogResponse::set_logcheckpoint(std::string&& value) { - - logcheckpoint_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.SendLogResponse.logCheckpoint) -} -inline void SendLogResponse::set_logcheckpoint(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - logcheckpoint_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.SendLogResponse.logCheckpoint) -} -inline void SendLogResponse::set_logcheckpoint(const char* value, - size_t size) { - - logcheckpoint_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.SendLogResponse.logCheckpoint) + _impl_.logcheckpoint_.Set(value, GetArenaForAllocation()); } inline std::string* SendLogResponse::_internal_mutable_logcheckpoint() { - return logcheckpoint_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.logcheckpoint_.Mutable(GetArenaForAllocation()); } inline std::string* SendLogResponse::release_logcheckpoint() { // @@protoc_insertion_point(field_release:backup.SendLogResponse.logCheckpoint) - return logcheckpoint_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.logcheckpoint_.Release(); } inline void SendLogResponse::set_allocated_logcheckpoint(std::string* logcheckpoint) { if (logcheckpoint != nullptr) { @@ -2952,8 +2670,12 @@ } else { } - logcheckpoint_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), logcheckpoint, - GetArena()); + _impl_.logcheckpoint_.SetAllocated(logcheckpoint, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.logcheckpoint_.IsDefault()) { + _impl_.logcheckpoint_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:backup.SendLogResponse.logCheckpoint) } @@ -2963,53 +2685,38 @@ // string userID = 1; inline void RecoverBackupKeyRequest::clear_userid() { - userid_.ClearToEmpty(); + _impl_.userid_.ClearToEmpty(); } inline const std::string& RecoverBackupKeyRequest::userid() const { // @@protoc_insertion_point(field_get:backup.RecoverBackupKeyRequest.userID) return _internal_userid(); } -inline void RecoverBackupKeyRequest::set_userid(const std::string& value) { - _internal_set_userid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void RecoverBackupKeyRequest::set_userid(ArgT0&& arg0, ArgT... args) { + + _impl_.userid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.RecoverBackupKeyRequest.userID) } inline std::string* RecoverBackupKeyRequest::mutable_userid() { + std::string* _s = _internal_mutable_userid(); // @@protoc_insertion_point(field_mutable:backup.RecoverBackupKeyRequest.userID) - return _internal_mutable_userid(); + return _s; } inline const std::string& RecoverBackupKeyRequest::_internal_userid() const { - return userid_.Get(); + return _impl_.userid_.Get(); } inline void RecoverBackupKeyRequest::_internal_set_userid(const std::string& value) { - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void RecoverBackupKeyRequest::set_userid(std::string&& value) { - - userid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.RecoverBackupKeyRequest.userID) -} -inline void RecoverBackupKeyRequest::set_userid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.RecoverBackupKeyRequest.userID) -} -inline void RecoverBackupKeyRequest::set_userid(const char* value, - size_t size) { - - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.RecoverBackupKeyRequest.userID) + _impl_.userid_.Set(value, GetArenaForAllocation()); } inline std::string* RecoverBackupKeyRequest::_internal_mutable_userid() { - return userid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.userid_.Mutable(GetArenaForAllocation()); } inline std::string* RecoverBackupKeyRequest::release_userid() { // @@protoc_insertion_point(field_release:backup.RecoverBackupKeyRequest.userID) - return userid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.userid_.Release(); } inline void RecoverBackupKeyRequest::set_allocated_userid(std::string* userid) { if (userid != nullptr) { @@ -3017,8 +2724,12 @@ } else { } - userid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), userid, - GetArena()); + _impl_.userid_.SetAllocated(userid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.userid_.IsDefault()) { + _impl_.userid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:backup.RecoverBackupKeyRequest.userID) } @@ -3028,53 +2739,38 @@ // string backupID = 4; inline void RecoverBackupKeyResponse::clear_backupid() { - backupid_.ClearToEmpty(); + _impl_.backupid_.ClearToEmpty(); } inline const std::string& RecoverBackupKeyResponse::backupid() const { // @@protoc_insertion_point(field_get:backup.RecoverBackupKeyResponse.backupID) return _internal_backupid(); } -inline void RecoverBackupKeyResponse::set_backupid(const std::string& value) { - _internal_set_backupid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void RecoverBackupKeyResponse::set_backupid(ArgT0&& arg0, ArgT... args) { + + _impl_.backupid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.RecoverBackupKeyResponse.backupID) } inline std::string* RecoverBackupKeyResponse::mutable_backupid() { + std::string* _s = _internal_mutable_backupid(); // @@protoc_insertion_point(field_mutable:backup.RecoverBackupKeyResponse.backupID) - return _internal_mutable_backupid(); + return _s; } inline const std::string& RecoverBackupKeyResponse::_internal_backupid() const { - return backupid_.Get(); + return _impl_.backupid_.Get(); } inline void RecoverBackupKeyResponse::_internal_set_backupid(const std::string& value) { - backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void RecoverBackupKeyResponse::set_backupid(std::string&& value) { - - backupid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.RecoverBackupKeyResponse.backupID) -} -inline void RecoverBackupKeyResponse::set_backupid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.RecoverBackupKeyResponse.backupID) -} -inline void RecoverBackupKeyResponse::set_backupid(const char* value, - size_t size) { - - backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.RecoverBackupKeyResponse.backupID) + _impl_.backupid_.Set(value, GetArenaForAllocation()); } inline std::string* RecoverBackupKeyResponse::_internal_mutable_backupid() { - return backupid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.backupid_.Mutable(GetArenaForAllocation()); } inline std::string* RecoverBackupKeyResponse::release_backupid() { // @@protoc_insertion_point(field_release:backup.RecoverBackupKeyResponse.backupID) - return backupid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.backupid_.Release(); } inline void RecoverBackupKeyResponse::set_allocated_backupid(std::string* backupid) { if (backupid != nullptr) { @@ -3082,8 +2778,12 @@ } else { } - backupid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), backupid, - GetArena()); + _impl_.backupid_.SetAllocated(backupid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.backupid_.IsDefault()) { + _impl_.backupid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:backup.RecoverBackupKeyResponse.backupID) } @@ -3093,53 +2793,38 @@ // string userID = 1; inline void PullBackupRequest::clear_userid() { - userid_.ClearToEmpty(); + _impl_.userid_.ClearToEmpty(); } inline const std::string& PullBackupRequest::userid() const { // @@protoc_insertion_point(field_get:backup.PullBackupRequest.userID) return _internal_userid(); } -inline void PullBackupRequest::set_userid(const std::string& value) { - _internal_set_userid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void PullBackupRequest::set_userid(ArgT0&& arg0, ArgT... args) { + + _impl_.userid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.PullBackupRequest.userID) } inline std::string* PullBackupRequest::mutable_userid() { + std::string* _s = _internal_mutable_userid(); // @@protoc_insertion_point(field_mutable:backup.PullBackupRequest.userID) - return _internal_mutable_userid(); + return _s; } inline const std::string& PullBackupRequest::_internal_userid() const { - return userid_.Get(); + return _impl_.userid_.Get(); } inline void PullBackupRequest::_internal_set_userid(const std::string& value) { - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PullBackupRequest::set_userid(std::string&& value) { - - userid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.PullBackupRequest.userID) -} -inline void PullBackupRequest::set_userid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.PullBackupRequest.userID) -} -inline void PullBackupRequest::set_userid(const char* value, - size_t size) { - - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.PullBackupRequest.userID) + _impl_.userid_.Set(value, GetArenaForAllocation()); } inline std::string* PullBackupRequest::_internal_mutable_userid() { - return userid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.userid_.Mutable(GetArenaForAllocation()); } inline std::string* PullBackupRequest::release_userid() { // @@protoc_insertion_point(field_release:backup.PullBackupRequest.userID) - return userid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.userid_.Release(); } inline void PullBackupRequest::set_allocated_userid(std::string* userid) { if (userid != nullptr) { @@ -3147,60 +2832,49 @@ } else { } - userid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), userid, - GetArena()); + _impl_.userid_.SetAllocated(userid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.userid_.IsDefault()) { + _impl_.userid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:backup.PullBackupRequest.userID) } // string backupID = 2; inline void PullBackupRequest::clear_backupid() { - backupid_.ClearToEmpty(); + _impl_.backupid_.ClearToEmpty(); } inline const std::string& PullBackupRequest::backupid() const { // @@protoc_insertion_point(field_get:backup.PullBackupRequest.backupID) return _internal_backupid(); } -inline void PullBackupRequest::set_backupid(const std::string& value) { - _internal_set_backupid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void PullBackupRequest::set_backupid(ArgT0&& arg0, ArgT... args) { + + _impl_.backupid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.PullBackupRequest.backupID) } inline std::string* PullBackupRequest::mutable_backupid() { + std::string* _s = _internal_mutable_backupid(); // @@protoc_insertion_point(field_mutable:backup.PullBackupRequest.backupID) - return _internal_mutable_backupid(); + return _s; } inline const std::string& PullBackupRequest::_internal_backupid() const { - return backupid_.Get(); + return _impl_.backupid_.Get(); } inline void PullBackupRequest::_internal_set_backupid(const std::string& value) { - backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PullBackupRequest::set_backupid(std::string&& value) { - - backupid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.PullBackupRequest.backupID) -} -inline void PullBackupRequest::set_backupid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.PullBackupRequest.backupID) -} -inline void PullBackupRequest::set_backupid(const char* value, - size_t size) { - - backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.PullBackupRequest.backupID) + _impl_.backupid_.Set(value, GetArenaForAllocation()); } inline std::string* PullBackupRequest::_internal_mutable_backupid() { - return backupid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.backupid_.Mutable(GetArenaForAllocation()); } inline std::string* PullBackupRequest::release_backupid() { // @@protoc_insertion_point(field_release:backup.PullBackupRequest.backupID) - return backupid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.backupid_.Release(); } inline void PullBackupRequest::set_allocated_backupid(std::string* backupid) { if (backupid != nullptr) { @@ -3208,8 +2882,12 @@ } else { } - backupid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), backupid, - GetArena()); + _impl_.backupid_.SetAllocated(backupid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.backupid_.IsDefault()) { + _impl_.backupid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:backup.PullBackupRequest.backupID) } @@ -3225,11 +2903,11 @@ return _internal_has_backupid(); } inline void PullBackupResponse::set_has_backupid() { - _oneof_case_[0] = kBackupID; + _impl_._oneof_case_[0] = kBackupID; } inline void PullBackupResponse::clear_backupid() { if (_internal_has_backupid()) { - id_.backupid_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.id_.backupid_.Destroy(); clear_has_id(); } } @@ -3237,17 +2915,24 @@ // @@protoc_insertion_point(field_get:backup.PullBackupResponse.backupID) return _internal_backupid(); } -inline void PullBackupResponse::set_backupid(const std::string& value) { - _internal_set_backupid(value); +template +inline void PullBackupResponse::set_backupid(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_backupid()) { + clear_id(); + set_has_backupid(); + _impl_.id_.backupid_.InitDefault(); + } + _impl_.id_.backupid_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.PullBackupResponse.backupID) } inline std::string* PullBackupResponse::mutable_backupid() { + std::string* _s = _internal_mutable_backupid(); // @@protoc_insertion_point(field_mutable:backup.PullBackupResponse.backupID) - return _internal_mutable_backupid(); + return _s; } inline const std::string& PullBackupResponse::_internal_backupid() const { if (_internal_has_backupid()) { - return id_.backupid_.Get(); + return _impl_.id_.backupid_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } @@ -3255,59 +2940,23 @@ if (!_internal_has_backupid()) { clear_id(); set_has_backupid(); - id_.backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.id_.backupid_.InitDefault(); } - id_.backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PullBackupResponse::set_backupid(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.PullBackupResponse.backupID) - if (!_internal_has_backupid()) { - clear_id(); - set_has_backupid(); - id_.backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - id_.backupid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.PullBackupResponse.backupID) -} -inline void PullBackupResponse::set_backupid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_backupid()) { - clear_id(); - set_has_backupid(); - id_.backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - id_.backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.PullBackupResponse.backupID) -} -inline void PullBackupResponse::set_backupid(const char* value, - size_t size) { - if (!_internal_has_backupid()) { - clear_id(); - set_has_backupid(); - id_.backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - id_.backupid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.PullBackupResponse.backupID) + _impl_.id_.backupid_.Set(value, GetArenaForAllocation()); } inline std::string* PullBackupResponse::_internal_mutable_backupid() { if (!_internal_has_backupid()) { clear_id(); set_has_backupid(); - id_.backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.id_.backupid_.InitDefault(); } - return id_.backupid_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.id_.backupid_.Mutable( GetArenaForAllocation()); } inline std::string* PullBackupResponse::release_backupid() { // @@protoc_insertion_point(field_release:backup.PullBackupResponse.backupID) if (_internal_has_backupid()) { clear_has_id(); - return id_.backupid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.id_.backupid_.Release(); } else { return nullptr; } @@ -3318,11 +2967,7 @@ } if (backupid != nullptr) { set_has_backupid(); - id_.backupid_.UnsafeSetDefault(backupid); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(backupid); - } + _impl_.id_.backupid_.InitAllocated(backupid, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:backup.PullBackupResponse.backupID) } @@ -3335,11 +2980,11 @@ return _internal_has_logid(); } inline void PullBackupResponse::set_has_logid() { - _oneof_case_[0] = kLogID; + _impl_._oneof_case_[0] = kLogID; } inline void PullBackupResponse::clear_logid() { if (_internal_has_logid()) { - id_.logid_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.id_.logid_.Destroy(); clear_has_id(); } } @@ -3347,17 +2992,24 @@ // @@protoc_insertion_point(field_get:backup.PullBackupResponse.logID) return _internal_logid(); } -inline void PullBackupResponse::set_logid(const std::string& value) { - _internal_set_logid(value); +template +inline void PullBackupResponse::set_logid(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_logid()) { + clear_id(); + set_has_logid(); + _impl_.id_.logid_.InitDefault(); + } + _impl_.id_.logid_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.PullBackupResponse.logID) } inline std::string* PullBackupResponse::mutable_logid() { + std::string* _s = _internal_mutable_logid(); // @@protoc_insertion_point(field_mutable:backup.PullBackupResponse.logID) - return _internal_mutable_logid(); + return _s; } inline const std::string& PullBackupResponse::_internal_logid() const { if (_internal_has_logid()) { - return id_.logid_.Get(); + return _impl_.id_.logid_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } @@ -3365,59 +3017,23 @@ if (!_internal_has_logid()) { clear_id(); set_has_logid(); - id_.logid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - id_.logid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PullBackupResponse::set_logid(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.PullBackupResponse.logID) - if (!_internal_has_logid()) { - clear_id(); - set_has_logid(); - id_.logid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - id_.logid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.PullBackupResponse.logID) -} -inline void PullBackupResponse::set_logid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_logid()) { - clear_id(); - set_has_logid(); - id_.logid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - id_.logid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.PullBackupResponse.logID) -} -inline void PullBackupResponse::set_logid(const char* value, - size_t size) { - if (!_internal_has_logid()) { - clear_id(); - set_has_logid(); - id_.logid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.id_.logid_.InitDefault(); } - id_.logid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.PullBackupResponse.logID) + _impl_.id_.logid_.Set(value, GetArenaForAllocation()); } inline std::string* PullBackupResponse::_internal_mutable_logid() { if (!_internal_has_logid()) { clear_id(); set_has_logid(); - id_.logid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.id_.logid_.InitDefault(); } - return id_.logid_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.id_.logid_.Mutable( GetArenaForAllocation()); } inline std::string* PullBackupResponse::release_logid() { // @@protoc_insertion_point(field_release:backup.PullBackupResponse.logID) if (_internal_has_logid()) { clear_has_id(); - return id_.logid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.id_.logid_.Release(); } else { return nullptr; } @@ -3428,11 +3044,7 @@ } if (logid != nullptr) { set_has_logid(); - id_.logid_.UnsafeSetDefault(logid); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(logid); - } + _impl_.id_.logid_.InitAllocated(logid, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:backup.PullBackupResponse.logID) } @@ -3445,11 +3057,11 @@ return _internal_has_compactionchunk(); } inline void PullBackupResponse::set_has_compactionchunk() { - _oneof_case_[1] = kCompactionChunk; + _impl_._oneof_case_[1] = kCompactionChunk; } inline void PullBackupResponse::clear_compactionchunk() { if (_internal_has_compactionchunk()) { - data_.compactionchunk_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.compactionchunk_.Destroy(); clear_has_data(); } } @@ -3457,17 +3069,24 @@ // @@protoc_insertion_point(field_get:backup.PullBackupResponse.compactionChunk) return _internal_compactionchunk(); } -inline void PullBackupResponse::set_compactionchunk(const std::string& value) { - _internal_set_compactionchunk(value); +template +inline void PullBackupResponse::set_compactionchunk(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_compactionchunk()) { + clear_data(); + set_has_compactionchunk(); + _impl_.data_.compactionchunk_.InitDefault(); + } + _impl_.data_.compactionchunk_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.PullBackupResponse.compactionChunk) } inline std::string* PullBackupResponse::mutable_compactionchunk() { + std::string* _s = _internal_mutable_compactionchunk(); // @@protoc_insertion_point(field_mutable:backup.PullBackupResponse.compactionChunk) - return _internal_mutable_compactionchunk(); + return _s; } inline const std::string& PullBackupResponse::_internal_compactionchunk() const { if (_internal_has_compactionchunk()) { - return data_.compactionchunk_.Get(); + return _impl_.data_.compactionchunk_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } @@ -3475,59 +3094,23 @@ if (!_internal_has_compactionchunk()) { clear_data(); set_has_compactionchunk(); - data_.compactionchunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.compactionchunk_.InitDefault(); } - data_.compactionchunk_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PullBackupResponse::set_compactionchunk(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.PullBackupResponse.compactionChunk) - if (!_internal_has_compactionchunk()) { - clear_data(); - set_has_compactionchunk(); - data_.compactionchunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.compactionchunk_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.PullBackupResponse.compactionChunk) -} -inline void PullBackupResponse::set_compactionchunk(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_compactionchunk()) { - clear_data(); - set_has_compactionchunk(); - data_.compactionchunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.compactionchunk_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.PullBackupResponse.compactionChunk) -} -inline void PullBackupResponse::set_compactionchunk(const void* value, - size_t size) { - if (!_internal_has_compactionchunk()) { - clear_data(); - set_has_compactionchunk(); - data_.compactionchunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.compactionchunk_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.PullBackupResponse.compactionChunk) + _impl_.data_.compactionchunk_.Set(value, GetArenaForAllocation()); } inline std::string* PullBackupResponse::_internal_mutable_compactionchunk() { if (!_internal_has_compactionchunk()) { clear_data(); set_has_compactionchunk(); - data_.compactionchunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.compactionchunk_.InitDefault(); } - return data_.compactionchunk_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.data_.compactionchunk_.Mutable( GetArenaForAllocation()); } inline std::string* PullBackupResponse::release_compactionchunk() { // @@protoc_insertion_point(field_release:backup.PullBackupResponse.compactionChunk) if (_internal_has_compactionchunk()) { clear_has_data(); - return data_.compactionchunk_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.data_.compactionchunk_.Release(); } else { return nullptr; } @@ -3538,11 +3121,7 @@ } if (compactionchunk != nullptr) { set_has_compactionchunk(); - data_.compactionchunk_.UnsafeSetDefault(compactionchunk); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(compactionchunk); - } + _impl_.data_.compactionchunk_.InitAllocated(compactionchunk, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:backup.PullBackupResponse.compactionChunk) } @@ -3555,11 +3134,11 @@ return _internal_has_logchunk(); } inline void PullBackupResponse::set_has_logchunk() { - _oneof_case_[1] = kLogChunk; + _impl_._oneof_case_[1] = kLogChunk; } inline void PullBackupResponse::clear_logchunk() { if (_internal_has_logchunk()) { - data_.logchunk_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.logchunk_.Destroy(); clear_has_data(); } } @@ -3567,17 +3146,24 @@ // @@protoc_insertion_point(field_get:backup.PullBackupResponse.logChunk) return _internal_logchunk(); } -inline void PullBackupResponse::set_logchunk(const std::string& value) { - _internal_set_logchunk(value); +template +inline void PullBackupResponse::set_logchunk(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_logchunk()) { + clear_data(); + set_has_logchunk(); + _impl_.data_.logchunk_.InitDefault(); + } + _impl_.data_.logchunk_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.PullBackupResponse.logChunk) } inline std::string* PullBackupResponse::mutable_logchunk() { + std::string* _s = _internal_mutable_logchunk(); // @@protoc_insertion_point(field_mutable:backup.PullBackupResponse.logChunk) - return _internal_mutable_logchunk(); + return _s; } inline const std::string& PullBackupResponse::_internal_logchunk() const { if (_internal_has_logchunk()) { - return data_.logchunk_.Get(); + return _impl_.data_.logchunk_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } @@ -3585,59 +3171,23 @@ if (!_internal_has_logchunk()) { clear_data(); set_has_logchunk(); - data_.logchunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.logchunk_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PullBackupResponse::set_logchunk(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.PullBackupResponse.logChunk) - if (!_internal_has_logchunk()) { - clear_data(); - set_has_logchunk(); - data_.logchunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.logchunk_.InitDefault(); } - data_.logchunk_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.PullBackupResponse.logChunk) -} -inline void PullBackupResponse::set_logchunk(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_logchunk()) { - clear_data(); - set_has_logchunk(); - data_.logchunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.logchunk_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.PullBackupResponse.logChunk) -} -inline void PullBackupResponse::set_logchunk(const void* value, - size_t size) { - if (!_internal_has_logchunk()) { - clear_data(); - set_has_logchunk(); - data_.logchunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.logchunk_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.PullBackupResponse.logChunk) + _impl_.data_.logchunk_.Set(value, GetArenaForAllocation()); } inline std::string* PullBackupResponse::_internal_mutable_logchunk() { if (!_internal_has_logchunk()) { clear_data(); set_has_logchunk(); - data_.logchunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.logchunk_.InitDefault(); } - return data_.logchunk_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.data_.logchunk_.Mutable( GetArenaForAllocation()); } inline std::string* PullBackupResponse::release_logchunk() { // @@protoc_insertion_point(field_release:backup.PullBackupResponse.logChunk) if (_internal_has_logchunk()) { clear_has_data(); - return data_.logchunk_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.data_.logchunk_.Release(); } else { return nullptr; } @@ -3648,85 +3198,76 @@ } if (logchunk != nullptr) { set_has_logchunk(); - data_.logchunk_.UnsafeSetDefault(logchunk); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(logchunk); - } + _impl_.data_.logchunk_.InitAllocated(logchunk, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:backup.PullBackupResponse.logChunk) } -// string attachmentHolders = 5; +// optional string attachmentHolders = 5; inline bool PullBackupResponse::_internal_has_attachmentholders() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } inline bool PullBackupResponse::has_attachmentholders() const { return _internal_has_attachmentholders(); } inline void PullBackupResponse::clear_attachmentholders() { - attachmentholders_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + _impl_.attachmentholders_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const std::string& PullBackupResponse::attachmentholders() const { // @@protoc_insertion_point(field_get:backup.PullBackupResponse.attachmentHolders) return _internal_attachmentholders(); } -inline void PullBackupResponse::set_attachmentholders(const std::string& value) { - _internal_set_attachmentholders(value); +template +inline PROTOBUF_ALWAYS_INLINE +void PullBackupResponse::set_attachmentholders(ArgT0&& arg0, ArgT... args) { + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.attachmentholders_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.PullBackupResponse.attachmentHolders) } inline std::string* PullBackupResponse::mutable_attachmentholders() { + std::string* _s = _internal_mutable_attachmentholders(); // @@protoc_insertion_point(field_mutable:backup.PullBackupResponse.attachmentHolders) - return _internal_mutable_attachmentholders(); + return _s; } inline const std::string& PullBackupResponse::_internal_attachmentholders() const { - return attachmentholders_.Get(); + return _impl_.attachmentholders_.Get(); } inline void PullBackupResponse::_internal_set_attachmentholders(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - attachmentholders_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PullBackupResponse::set_attachmentholders(std::string&& value) { - _has_bits_[0] |= 0x00000001u; - attachmentholders_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.PullBackupResponse.attachmentHolders) -} -inline void PullBackupResponse::set_attachmentholders(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - attachmentholders_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.PullBackupResponse.attachmentHolders) -} -inline void PullBackupResponse::set_attachmentholders(const char* value, - size_t size) { - _has_bits_[0] |= 0x00000001u; - attachmentholders_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.PullBackupResponse.attachmentHolders) + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.attachmentholders_.Set(value, GetArenaForAllocation()); } inline std::string* PullBackupResponse::_internal_mutable_attachmentholders() { - _has_bits_[0] |= 0x00000001u; - return attachmentholders_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_._has_bits_[0] |= 0x00000001u; + return _impl_.attachmentholders_.Mutable(GetArenaForAllocation()); } inline std::string* PullBackupResponse::release_attachmentholders() { // @@protoc_insertion_point(field_release:backup.PullBackupResponse.attachmentHolders) if (!_internal_has_attachmentholders()) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - return attachmentholders_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _impl_._has_bits_[0] &= ~0x00000001u; + auto* p = _impl_.attachmentholders_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.attachmentholders_.IsDefault()) { + _impl_.attachmentholders_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; } inline void PullBackupResponse::set_allocated_attachmentholders(std::string* attachmentholders) { if (attachmentholders != nullptr) { - _has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000001u; } else { - _has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.attachmentholders_.SetAllocated(attachmentholders, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.attachmentholders_.IsDefault()) { + _impl_.attachmentholders_.Set("", GetArenaForAllocation()); } - attachmentholders_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), attachmentholders, - GetArena()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:backup.PullBackupResponse.attachmentHolders) } @@ -3734,19 +3275,19 @@ return id_case() != ID_NOT_SET; } inline void PullBackupResponse::clear_has_id() { - _oneof_case_[0] = ID_NOT_SET; + _impl_._oneof_case_[0] = ID_NOT_SET; } inline bool PullBackupResponse::has_data() const { return data_case() != DATA_NOT_SET; } inline void PullBackupResponse::clear_has_data() { - _oneof_case_[1] = DATA_NOT_SET; + _impl_._oneof_case_[1] = DATA_NOT_SET; } inline PullBackupResponse::IdCase PullBackupResponse::id_case() const { - return PullBackupResponse::IdCase(_oneof_case_[0]); + return PullBackupResponse::IdCase(_impl_._oneof_case_[0]); } inline PullBackupResponse::DataCase PullBackupResponse::data_case() const { - return PullBackupResponse::DataCase(_oneof_case_[1]); + return PullBackupResponse::DataCase(_impl_._oneof_case_[1]); } // ------------------------------------------------------------------- @@ -3754,53 +3295,38 @@ // string userID = 1; inline void AddAttachmentsRequest::clear_userid() { - userid_.ClearToEmpty(); + _impl_.userid_.ClearToEmpty(); } inline const std::string& AddAttachmentsRequest::userid() const { // @@protoc_insertion_point(field_get:backup.AddAttachmentsRequest.userID) return _internal_userid(); } -inline void AddAttachmentsRequest::set_userid(const std::string& value) { - _internal_set_userid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void AddAttachmentsRequest::set_userid(ArgT0&& arg0, ArgT... args) { + + _impl_.userid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.AddAttachmentsRequest.userID) } inline std::string* AddAttachmentsRequest::mutable_userid() { + std::string* _s = _internal_mutable_userid(); // @@protoc_insertion_point(field_mutable:backup.AddAttachmentsRequest.userID) - return _internal_mutable_userid(); + return _s; } inline const std::string& AddAttachmentsRequest::_internal_userid() const { - return userid_.Get(); + return _impl_.userid_.Get(); } inline void AddAttachmentsRequest::_internal_set_userid(const std::string& value) { - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void AddAttachmentsRequest::set_userid(std::string&& value) { - - userid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.AddAttachmentsRequest.userID) -} -inline void AddAttachmentsRequest::set_userid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.AddAttachmentsRequest.userID) -} -inline void AddAttachmentsRequest::set_userid(const char* value, - size_t size) { - - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.AddAttachmentsRequest.userID) + _impl_.userid_.Set(value, GetArenaForAllocation()); } inline std::string* AddAttachmentsRequest::_internal_mutable_userid() { - return userid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.userid_.Mutable(GetArenaForAllocation()); } inline std::string* AddAttachmentsRequest::release_userid() { // @@protoc_insertion_point(field_release:backup.AddAttachmentsRequest.userID) - return userid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.userid_.Release(); } inline void AddAttachmentsRequest::set_allocated_userid(std::string* userid) { if (userid != nullptr) { @@ -3808,60 +3334,49 @@ } else { } - userid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), userid, - GetArena()); + _impl_.userid_.SetAllocated(userid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.userid_.IsDefault()) { + _impl_.userid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:backup.AddAttachmentsRequest.userID) } // string backupID = 2; inline void AddAttachmentsRequest::clear_backupid() { - backupid_.ClearToEmpty(); + _impl_.backupid_.ClearToEmpty(); } inline const std::string& AddAttachmentsRequest::backupid() const { // @@protoc_insertion_point(field_get:backup.AddAttachmentsRequest.backupID) return _internal_backupid(); } -inline void AddAttachmentsRequest::set_backupid(const std::string& value) { - _internal_set_backupid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void AddAttachmentsRequest::set_backupid(ArgT0&& arg0, ArgT... args) { + + _impl_.backupid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.AddAttachmentsRequest.backupID) } inline std::string* AddAttachmentsRequest::mutable_backupid() { + std::string* _s = _internal_mutable_backupid(); // @@protoc_insertion_point(field_mutable:backup.AddAttachmentsRequest.backupID) - return _internal_mutable_backupid(); + return _s; } inline const std::string& AddAttachmentsRequest::_internal_backupid() const { - return backupid_.Get(); + return _impl_.backupid_.Get(); } inline void AddAttachmentsRequest::_internal_set_backupid(const std::string& value) { - backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void AddAttachmentsRequest::set_backupid(std::string&& value) { - - backupid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.AddAttachmentsRequest.backupID) -} -inline void AddAttachmentsRequest::set_backupid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.AddAttachmentsRequest.backupID) -} -inline void AddAttachmentsRequest::set_backupid(const char* value, - size_t size) { - - backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.AddAttachmentsRequest.backupID) + _impl_.backupid_.Set(value, GetArenaForAllocation()); } inline std::string* AddAttachmentsRequest::_internal_mutable_backupid() { - return backupid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.backupid_.Mutable(GetArenaForAllocation()); } inline std::string* AddAttachmentsRequest::release_backupid() { // @@protoc_insertion_point(field_release:backup.AddAttachmentsRequest.backupID) - return backupid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.backupid_.Release(); } inline void AddAttachmentsRequest::set_allocated_backupid(std::string* backupid) { if (backupid != nullptr) { @@ -3869,60 +3384,49 @@ } else { } - backupid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), backupid, - GetArena()); + _impl_.backupid_.SetAllocated(backupid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.backupid_.IsDefault()) { + _impl_.backupid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:backup.AddAttachmentsRequest.backupID) } // string logID = 3; inline void AddAttachmentsRequest::clear_logid() { - logid_.ClearToEmpty(); + _impl_.logid_.ClearToEmpty(); } inline const std::string& AddAttachmentsRequest::logid() const { // @@protoc_insertion_point(field_get:backup.AddAttachmentsRequest.logID) return _internal_logid(); } -inline void AddAttachmentsRequest::set_logid(const std::string& value) { - _internal_set_logid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void AddAttachmentsRequest::set_logid(ArgT0&& arg0, ArgT... args) { + + _impl_.logid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.AddAttachmentsRequest.logID) } inline std::string* AddAttachmentsRequest::mutable_logid() { + std::string* _s = _internal_mutable_logid(); // @@protoc_insertion_point(field_mutable:backup.AddAttachmentsRequest.logID) - return _internal_mutable_logid(); + return _s; } inline const std::string& AddAttachmentsRequest::_internal_logid() const { - return logid_.Get(); + return _impl_.logid_.Get(); } inline void AddAttachmentsRequest::_internal_set_logid(const std::string& value) { - logid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void AddAttachmentsRequest::set_logid(std::string&& value) { - - logid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.AddAttachmentsRequest.logID) -} -inline void AddAttachmentsRequest::set_logid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - logid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.AddAttachmentsRequest.logID) -} -inline void AddAttachmentsRequest::set_logid(const char* value, - size_t size) { - - logid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.AddAttachmentsRequest.logID) + _impl_.logid_.Set(value, GetArenaForAllocation()); } inline std::string* AddAttachmentsRequest::_internal_mutable_logid() { - return logid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.logid_.Mutable(GetArenaForAllocation()); } inline std::string* AddAttachmentsRequest::release_logid() { // @@protoc_insertion_point(field_release:backup.AddAttachmentsRequest.logID) - return logid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.logid_.Release(); } inline void AddAttachmentsRequest::set_allocated_logid(std::string* logid) { if (logid != nullptr) { @@ -3930,60 +3434,49 @@ } else { } - logid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), logid, - GetArena()); + _impl_.logid_.SetAllocated(logid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.logid_.IsDefault()) { + _impl_.logid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:backup.AddAttachmentsRequest.logID) } // string holders = 4; inline void AddAttachmentsRequest::clear_holders() { - holders_.ClearToEmpty(); + _impl_.holders_.ClearToEmpty(); } inline const std::string& AddAttachmentsRequest::holders() const { // @@protoc_insertion_point(field_get:backup.AddAttachmentsRequest.holders) return _internal_holders(); } -inline void AddAttachmentsRequest::set_holders(const std::string& value) { - _internal_set_holders(value); +template +inline PROTOBUF_ALWAYS_INLINE +void AddAttachmentsRequest::set_holders(ArgT0&& arg0, ArgT... args) { + + _impl_.holders_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:backup.AddAttachmentsRequest.holders) } inline std::string* AddAttachmentsRequest::mutable_holders() { + std::string* _s = _internal_mutable_holders(); // @@protoc_insertion_point(field_mutable:backup.AddAttachmentsRequest.holders) - return _internal_mutable_holders(); + return _s; } inline const std::string& AddAttachmentsRequest::_internal_holders() const { - return holders_.Get(); + return _impl_.holders_.Get(); } inline void AddAttachmentsRequest::_internal_set_holders(const std::string& value) { - holders_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void AddAttachmentsRequest::set_holders(std::string&& value) { - - holders_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.AddAttachmentsRequest.holders) -} -inline void AddAttachmentsRequest::set_holders(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - holders_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.AddAttachmentsRequest.holders) -} -inline void AddAttachmentsRequest::set_holders(const char* value, - size_t size) { - - holders_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.AddAttachmentsRequest.holders) + _impl_.holders_.Set(value, GetArenaForAllocation()); } inline std::string* AddAttachmentsRequest::_internal_mutable_holders() { - return holders_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.holders_.Mutable(GetArenaForAllocation()); } inline std::string* AddAttachmentsRequest::release_holders() { // @@protoc_insertion_point(field_release:backup.AddAttachmentsRequest.holders) - return holders_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.holders_.Release(); } inline void AddAttachmentsRequest::set_allocated_holders(std::string* holders) { if (holders != nullptr) { @@ -3991,8 +3484,12 @@ } else { } - holders_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), holders, - GetArena()); + _impl_.holders_.SetAllocated(holders, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.holders_.IsDefault()) { + _impl_.holders_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:backup.AddAttachmentsRequest.holders) } diff --git a/native/cpp/CommonCpp/grpc/_generated/backup.pb.cc b/native/cpp/CommonCpp/grpc/_generated/backup.pb.cc --- a/native/cpp/CommonCpp/grpc/_generated/backup.pb.cc +++ b/native/cpp/CommonCpp/grpc/_generated/backup.pb.cc @@ -16,190 +16,216 @@ #include PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace backup { -constexpr CreateNewBackupRequest::CreateNewBackupRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : _oneof_case_{}{} +PROTOBUF_CONSTEXPR CreateNewBackupRequest::CreateNewBackupRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.data_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} struct CreateNewBackupRequestDefaultTypeInternal { - constexpr CreateNewBackupRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CreateNewBackupRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~CreateNewBackupRequestDefaultTypeInternal() {} union { CreateNewBackupRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateNewBackupRequestDefaultTypeInternal _CreateNewBackupRequest_default_instance_; -constexpr CreateNewBackupResponse::CreateNewBackupResponse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : backupid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateNewBackupRequestDefaultTypeInternal _CreateNewBackupRequest_default_instance_; +PROTOBUF_CONSTEXPR CreateNewBackupResponse::CreateNewBackupResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.backupid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct CreateNewBackupResponseDefaultTypeInternal { - constexpr CreateNewBackupResponseDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CreateNewBackupResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~CreateNewBackupResponseDefaultTypeInternal() {} union { CreateNewBackupResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateNewBackupResponseDefaultTypeInternal _CreateNewBackupResponse_default_instance_; -constexpr SendLogRequest::SendLogRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : _oneof_case_{}{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateNewBackupResponseDefaultTypeInternal _CreateNewBackupResponse_default_instance_; +PROTOBUF_CONSTEXPR SendLogRequest::SendLogRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.data_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} struct SendLogRequestDefaultTypeInternal { - constexpr SendLogRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SendLogRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~SendLogRequestDefaultTypeInternal() {} union { SendLogRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SendLogRequestDefaultTypeInternal _SendLogRequest_default_instance_; -constexpr SendLogResponse::SendLogResponse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : logcheckpoint_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendLogRequestDefaultTypeInternal _SendLogRequest_default_instance_; +PROTOBUF_CONSTEXPR SendLogResponse::SendLogResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.logcheckpoint_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct SendLogResponseDefaultTypeInternal { - constexpr SendLogResponseDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SendLogResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~SendLogResponseDefaultTypeInternal() {} union { SendLogResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SendLogResponseDefaultTypeInternal _SendLogResponse_default_instance_; -constexpr RecoverBackupKeyRequest::RecoverBackupKeyRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : userid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendLogResponseDefaultTypeInternal _SendLogResponse_default_instance_; +PROTOBUF_CONSTEXPR RecoverBackupKeyRequest::RecoverBackupKeyRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.userid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct RecoverBackupKeyRequestDefaultTypeInternal { - constexpr RecoverBackupKeyRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR RecoverBackupKeyRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~RecoverBackupKeyRequestDefaultTypeInternal() {} union { RecoverBackupKeyRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RecoverBackupKeyRequestDefaultTypeInternal _RecoverBackupKeyRequest_default_instance_; -constexpr RecoverBackupKeyResponse::RecoverBackupKeyResponse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : backupid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RecoverBackupKeyRequestDefaultTypeInternal _RecoverBackupKeyRequest_default_instance_; +PROTOBUF_CONSTEXPR RecoverBackupKeyResponse::RecoverBackupKeyResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.backupid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct RecoverBackupKeyResponseDefaultTypeInternal { - constexpr RecoverBackupKeyResponseDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR RecoverBackupKeyResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~RecoverBackupKeyResponseDefaultTypeInternal() {} union { RecoverBackupKeyResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RecoverBackupKeyResponseDefaultTypeInternal _RecoverBackupKeyResponse_default_instance_; -constexpr PullBackupRequest::PullBackupRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : userid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , backupid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RecoverBackupKeyResponseDefaultTypeInternal _RecoverBackupKeyResponse_default_instance_; +PROTOBUF_CONSTEXPR PullBackupRequest::PullBackupRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.userid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.backupid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct PullBackupRequestDefaultTypeInternal { - constexpr PullBackupRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PullBackupRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~PullBackupRequestDefaultTypeInternal() {} union { PullBackupRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PullBackupRequestDefaultTypeInternal _PullBackupRequest_default_instance_; -constexpr PullBackupResponse::PullBackupResponse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : attachmentholders_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , _oneof_case_{}{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PullBackupRequestDefaultTypeInternal _PullBackupRequest_default_instance_; +PROTOBUF_CONSTEXPR PullBackupResponse::PullBackupResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.attachmentholders_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.id_)*/{} + , /*decltype(_impl_.data_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} struct PullBackupResponseDefaultTypeInternal { - constexpr PullBackupResponseDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PullBackupResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~PullBackupResponseDefaultTypeInternal() {} union { PullBackupResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PullBackupResponseDefaultTypeInternal _PullBackupResponse_default_instance_; -constexpr AddAttachmentsRequest::AddAttachmentsRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : userid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , backupid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , logid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , holders_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PullBackupResponseDefaultTypeInternal _PullBackupResponse_default_instance_; +PROTOBUF_CONSTEXPR AddAttachmentsRequest::AddAttachmentsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.userid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.backupid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.logid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.holders_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct AddAttachmentsRequestDefaultTypeInternal { - constexpr AddAttachmentsRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AddAttachmentsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~AddAttachmentsRequestDefaultTypeInternal() {} union { AddAttachmentsRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AddAttachmentsRequestDefaultTypeInternal _AddAttachmentsRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddAttachmentsRequestDefaultTypeInternal _AddAttachmentsRequest_default_instance_; } // namespace backup -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_backup_2eproto[9]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_backup_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_backup_2eproto = nullptr; +static ::_pb::Metadata file_level_metadata_backup_2eproto[9]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_backup_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_backup_2eproto = nullptr; -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_backup_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const uint32_t TableStruct_backup_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::backup::CreateNewBackupRequest, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::backup::CreateNewBackupRequest, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::backup::CreateNewBackupRequest, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::backup::CreateNewBackupRequest, data_), + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::backup::CreateNewBackupRequest, _impl_.data_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::backup::CreateNewBackupResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::backup::CreateNewBackupResponse, backupid_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::backup::CreateNewBackupResponse, _impl_.backupid_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::backup::SendLogRequest, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::backup::SendLogRequest, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::backup::SendLogRequest, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::backup::SendLogRequest, data_), + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::backup::SendLogRequest, _impl_.data_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::backup::SendLogResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::backup::SendLogResponse, logcheckpoint_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::backup::SendLogResponse, _impl_.logcheckpoint_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::backup::RecoverBackupKeyRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::backup::RecoverBackupKeyRequest, userid_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::backup::RecoverBackupKeyRequest, _impl_.userid_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::backup::RecoverBackupKeyResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::backup::RecoverBackupKeyResponse, backupid_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::backup::RecoverBackupKeyResponse, _impl_.backupid_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::backup::PullBackupRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::backup::PullBackupRequest, userid_), - PROTOBUF_FIELD_OFFSET(::backup::PullBackupRequest, backupid_), - PROTOBUF_FIELD_OFFSET(::backup::PullBackupResponse, _has_bits_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::backup::PullBackupRequest, _impl_.userid_), + PROTOBUF_FIELD_OFFSET(::backup::PullBackupRequest, _impl_.backupid_), + PROTOBUF_FIELD_OFFSET(::backup::PullBackupResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::backup::PullBackupResponse, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::backup::PullBackupResponse, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::backup::PullBackupResponse, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::backup::PullBackupResponse, attachmentholders_), - PROTOBUF_FIELD_OFFSET(::backup::PullBackupResponse, id_), - PROTOBUF_FIELD_OFFSET(::backup::PullBackupResponse, data_), + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::backup::PullBackupResponse, _impl_.attachmentholders_), + PROTOBUF_FIELD_OFFSET(::backup::PullBackupResponse, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::backup::PullBackupResponse, _impl_.data_), ~0u, ~0u, ~0u, @@ -210,33 +236,34 @@ ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::backup::AddAttachmentsRequest, userid_), - PROTOBUF_FIELD_OFFSET(::backup::AddAttachmentsRequest, backupid_), - PROTOBUF_FIELD_OFFSET(::backup::AddAttachmentsRequest, logid_), - PROTOBUF_FIELD_OFFSET(::backup::AddAttachmentsRequest, holders_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::backup::AddAttachmentsRequest, _impl_.userid_), + PROTOBUF_FIELD_OFFSET(::backup::AddAttachmentsRequest, _impl_.backupid_), + PROTOBUF_FIELD_OFFSET(::backup::AddAttachmentsRequest, _impl_.logid_), + PROTOBUF_FIELD_OFFSET(::backup::AddAttachmentsRequest, _impl_.holders_), }; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::backup::CreateNewBackupRequest)}, - { 11, -1, sizeof(::backup::CreateNewBackupResponse)}, - { 17, -1, sizeof(::backup::SendLogRequest)}, - { 27, -1, sizeof(::backup::SendLogResponse)}, - { 33, -1, sizeof(::backup::RecoverBackupKeyRequest)}, - { 39, -1, sizeof(::backup::RecoverBackupKeyResponse)}, - { 45, -1, sizeof(::backup::PullBackupRequest)}, - { 52, 64, sizeof(::backup::PullBackupResponse)}, - { 69, -1, sizeof(::backup::AddAttachmentsRequest)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::backup::CreateNewBackupRequest)}, + { 12, -1, -1, sizeof(::backup::CreateNewBackupResponse)}, + { 19, -1, -1, sizeof(::backup::SendLogRequest)}, + { 30, -1, -1, sizeof(::backup::SendLogResponse)}, + { 37, -1, -1, sizeof(::backup::RecoverBackupKeyRequest)}, + { 44, -1, -1, sizeof(::backup::RecoverBackupKeyResponse)}, + { 51, -1, -1, sizeof(::backup::PullBackupRequest)}, + { 59, 72, -1, sizeof(::backup::PullBackupResponse)}, + { 77, -1, -1, sizeof(::backup::AddAttachmentsRequest)}, }; -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::backup::_CreateNewBackupRequest_default_instance_), - reinterpret_cast(&::backup::_CreateNewBackupResponse_default_instance_), - reinterpret_cast(&::backup::_SendLogRequest_default_instance_), - reinterpret_cast(&::backup::_SendLogResponse_default_instance_), - reinterpret_cast(&::backup::_RecoverBackupKeyRequest_default_instance_), - reinterpret_cast(&::backup::_RecoverBackupKeyResponse_default_instance_), - reinterpret_cast(&::backup::_PullBackupRequest_default_instance_), - reinterpret_cast(&::backup::_PullBackupResponse_default_instance_), - reinterpret_cast(&::backup::_AddAttachmentsRequest_default_instance_), +static const ::_pb::Message* const file_default_instances[] = { + &::backup::_CreateNewBackupRequest_default_instance_._instance, + &::backup::_CreateNewBackupResponse_default_instance_._instance, + &::backup::_SendLogRequest_default_instance_._instance, + &::backup::_SendLogResponse_default_instance_._instance, + &::backup::_RecoverBackupKeyRequest_default_instance_._instance, + &::backup::_RecoverBackupKeyResponse_default_instance_._instance, + &::backup::_PullBackupRequest_default_instance_._instance, + &::backup::_PullBackupResponse_default_instance_._instance, + &::backup::_AddAttachmentsRequest_default_instance_._instance, }; const char descriptor_table_protodef_backup_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -272,24 +299,24 @@ "\022\035.backup.AddAttachmentsRequest\032\026.google" ".protobuf.Empty\"\000b\006proto3" ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_backup_2eproto_deps[1] = { +static const ::_pbi::DescriptorTable* const descriptor_table_backup_2eproto_deps[1] = { &::descriptor_table_google_2fprotobuf_2fempty_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_backup_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_backup_2eproto = { - false, false, 1225, descriptor_table_protodef_backup_2eproto, "backup.proto", - &descriptor_table_backup_2eproto_once, descriptor_table_backup_2eproto_deps, 1, 9, - schemas, file_default_instances, TableStruct_backup_2eproto::offsets, - file_level_metadata_backup_2eproto, file_level_enum_descriptors_backup_2eproto, file_level_service_descriptors_backup_2eproto, +static ::_pbi::once_flag descriptor_table_backup_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_backup_2eproto = { + false, false, 1225, descriptor_table_protodef_backup_2eproto, + "backup.proto", + &descriptor_table_backup_2eproto_once, descriptor_table_backup_2eproto_deps, 1, 9, + schemas, file_default_instances, TableStruct_backup_2eproto::offsets, + file_level_metadata_backup_2eproto, file_level_enum_descriptors_backup_2eproto, + file_level_service_descriptors_backup_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::Metadata -descriptor_table_backup_2eproto_metadata_getter(int index) { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_backup_2eproto); - return descriptor_table_backup_2eproto.file_level_metadata[index]; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_backup_2eproto_getter() { + return &descriptor_table_backup_2eproto; } // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_backup_2eproto(&descriptor_table_backup_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_backup_2eproto(&descriptor_table_backup_2eproto); namespace backup { // =================================================================== @@ -298,35 +325,41 @@ public: }; -CreateNewBackupRequest::CreateNewBackupRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +CreateNewBackupRequest::CreateNewBackupRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:backup.CreateNewBackupRequest) } CreateNewBackupRequest::CreateNewBackupRequest(const CreateNewBackupRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + CreateNewBackupRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.data_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); clear_has_data(); switch (from.data_case()) { case kUserID: { - _internal_set_userid(from._internal_userid()); + _this->_internal_set_userid(from._internal_userid()); break; } case kDeviceID: { - _internal_set_deviceid(from._internal_deviceid()); + _this->_internal_set_deviceid(from._internal_deviceid()); break; } case kKeyEntropy: { - _internal_set_keyentropy(from._internal_keyentropy()); + _this->_internal_set_keyentropy(from._internal_keyentropy()); break; } case kNewCompactionHash: { - _internal_set_newcompactionhash(from._internal_newcompactionhash()); + _this->_internal_set_newcompactionhash(from._internal_newcompactionhash()); break; } case kNewCompactionChunk: { - _internal_set_newcompactionchunk(from._internal_newcompactionchunk()); + _this->_internal_set_newcompactionchunk(from._internal_newcompactionchunk()); break; } case DATA_NOT_SET: { @@ -336,67 +369,72 @@ // @@protoc_insertion_point(copy_constructor:backup.CreateNewBackupRequest) } -void CreateNewBackupRequest::SharedCtor() { -clear_has_data(); +inline void CreateNewBackupRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.data_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_data(); } CreateNewBackupRequest::~CreateNewBackupRequest() { // @@protoc_insertion_point(destructor:backup.CreateNewBackupRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void CreateNewBackupRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void CreateNewBackupRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_data()) { clear_data(); } } -void CreateNewBackupRequest::ArenaDtor(void* object) { - CreateNewBackupRequest* _this = reinterpret_cast< CreateNewBackupRequest* >(object); - (void)_this; -} -void CreateNewBackupRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void CreateNewBackupRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void CreateNewBackupRequest::clear_data() { // @@protoc_insertion_point(one_of_clear_start:backup.CreateNewBackupRequest) switch (data_case()) { case kUserID: { - data_.userid_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.userid_.Destroy(); break; } case kDeviceID: { - data_.deviceid_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.deviceid_.Destroy(); break; } case kKeyEntropy: { - data_.keyentropy_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.keyentropy_.Destroy(); break; } case kNewCompactionHash: { - data_.newcompactionhash_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.newcompactionhash_.Destroy(); break; } case kNewCompactionChunk: { - data_.newcompactionchunk_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.newcompactionchunk_.Destroy(); break; } case DATA_NOT_SET: { break; } } - _oneof_case_[0] = DATA_NOT_SET; + _impl_._oneof_case_[0] = DATA_NOT_SET; } void CreateNewBackupRequest::Clear() { // @@protoc_insertion_point(message_clear_start:backup.CreateNewBackupRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -404,81 +442,86 @@ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* CreateNewBackupRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* CreateNewBackupRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string userID = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_userid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.CreateNewBackupRequest.userID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "backup.CreateNewBackupRequest.userID")); + } else + goto handle_unusual; continue; // string deviceID = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_deviceid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.CreateNewBackupRequest.deviceID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "backup.CreateNewBackupRequest.deviceID")); + } else + goto handle_unusual; continue; // bytes keyEntropy = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_keyentropy(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // bytes newCompactionHash = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { auto str = _internal_mutable_newcompactionhash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // bytes newCompactionChunk = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { auto str = _internal_mutable_newcompactionchunk(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* CreateNewBackupRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* CreateNewBackupRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:backup.CreateNewBackupRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string userID = 1; @@ -520,7 +563,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:backup.CreateNewBackupRequest) @@ -531,7 +574,7 @@ // @@protoc_insertion_point(message_byte_size_start:backup.CreateNewBackupRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -575,69 +618,50 @@ break; } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void CreateNewBackupRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:backup.CreateNewBackupRequest) - GOOGLE_DCHECK_NE(&from, this); - const CreateNewBackupRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:backup.CreateNewBackupRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:backup.CreateNewBackupRequest) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateNewBackupRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CreateNewBackupRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateNewBackupRequest::GetClassData() const { return &_class_data_; } -void CreateNewBackupRequest::MergeFrom(const CreateNewBackupRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:backup.CreateNewBackupRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void CreateNewBackupRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:backup.CreateNewBackupRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.data_case()) { case kUserID: { - _internal_set_userid(from._internal_userid()); + _this->_internal_set_userid(from._internal_userid()); break; } case kDeviceID: { - _internal_set_deviceid(from._internal_deviceid()); + _this->_internal_set_deviceid(from._internal_deviceid()); break; } case kKeyEntropy: { - _internal_set_keyentropy(from._internal_keyentropy()); + _this->_internal_set_keyentropy(from._internal_keyentropy()); break; } case kNewCompactionHash: { - _internal_set_newcompactionhash(from._internal_newcompactionhash()); + _this->_internal_set_newcompactionhash(from._internal_newcompactionhash()); break; } case kNewCompactionChunk: { - _internal_set_newcompactionchunk(from._internal_newcompactionchunk()); + _this->_internal_set_newcompactionchunk(from._internal_newcompactionchunk()); break; } case DATA_NOT_SET: { break; } } -} - -void CreateNewBackupRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:backup.CreateNewBackupRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CreateNewBackupRequest::CopyFrom(const CreateNewBackupRequest& from) { @@ -653,120 +677,137 @@ void CreateNewBackupRequest::InternalSwap(CreateNewBackupRequest* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(data_, other->data_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.data_, other->_impl_.data_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata CreateNewBackupRequest::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_backup_2eproto_getter, &descriptor_table_backup_2eproto_once, + file_level_metadata_backup_2eproto[0]); } - // =================================================================== class CreateNewBackupResponse::_Internal { public: }; -CreateNewBackupResponse::CreateNewBackupResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +CreateNewBackupResponse::CreateNewBackupResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:backup.CreateNewBackupResponse) } CreateNewBackupResponse::CreateNewBackupResponse(const CreateNewBackupResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + CreateNewBackupResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.backupid_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.backupid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.backupid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_backupid().empty()) { - backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_backupid(), - GetArena()); + _this->_impl_.backupid_.Set(from._internal_backupid(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:backup.CreateNewBackupResponse) } -void CreateNewBackupResponse::SharedCtor() { -backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void CreateNewBackupResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.backupid_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.backupid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.backupid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } CreateNewBackupResponse::~CreateNewBackupResponse() { // @@protoc_insertion_point(destructor:backup.CreateNewBackupResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void CreateNewBackupResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - backupid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void CreateNewBackupResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.backupid_.Destroy(); } -void CreateNewBackupResponse::ArenaDtor(void* object) { - CreateNewBackupResponse* _this = reinterpret_cast< CreateNewBackupResponse* >(object); - (void)_this; -} -void CreateNewBackupResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void CreateNewBackupResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void CreateNewBackupResponse::Clear() { // @@protoc_insertion_point(message_clear_start:backup.CreateNewBackupResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - backupid_.ClearToEmpty(); + _impl_.backupid_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* CreateNewBackupResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* CreateNewBackupResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string backupID = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_backupid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.CreateNewBackupResponse.backupID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "backup.CreateNewBackupResponse.backupID")); + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* CreateNewBackupResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* CreateNewBackupResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:backup.CreateNewBackupResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string backupID = 1; - if (this->backupid().size() > 0) { + if (!this->_internal_backupid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_backupid().data(), static_cast(this->_internal_backupid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -776,7 +817,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:backup.CreateNewBackupResponse) @@ -787,58 +828,39 @@ // @@protoc_insertion_point(message_byte_size_start:backup.CreateNewBackupResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string backupID = 1; - if (this->backupid().size() > 0) { + if (!this->_internal_backupid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_backupid()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void CreateNewBackupResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:backup.CreateNewBackupResponse) - GOOGLE_DCHECK_NE(&from, this); - const CreateNewBackupResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:backup.CreateNewBackupResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:backup.CreateNewBackupResponse) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateNewBackupResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CreateNewBackupResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateNewBackupResponse::GetClassData() const { return &_class_data_; } -void CreateNewBackupResponse::MergeFrom(const CreateNewBackupResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:backup.CreateNewBackupResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void CreateNewBackupResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:backup.CreateNewBackupResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.backupid().size() > 0) { - _internal_set_backupid(from._internal_backupid()); + if (!from._internal_backupid().empty()) { + _this->_internal_set_backupid(from._internal_backupid()); } -} - -void CreateNewBackupResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:backup.CreateNewBackupResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CreateNewBackupResponse::CopyFrom(const CreateNewBackupResponse& from) { @@ -854,46 +876,58 @@ void CreateNewBackupResponse::InternalSwap(CreateNewBackupResponse* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - backupid_.Swap(&other->backupid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.backupid_, lhs_arena, + &other->_impl_.backupid_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata CreateNewBackupResponse::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_backup_2eproto_getter, &descriptor_table_backup_2eproto_once, + file_level_metadata_backup_2eproto[1]); } - // =================================================================== class SendLogRequest::_Internal { public: }; -SendLogRequest::SendLogRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +SendLogRequest::SendLogRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:backup.SendLogRequest) } SendLogRequest::SendLogRequest(const SendLogRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SendLogRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.data_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); clear_has_data(); switch (from.data_case()) { case kUserID: { - _internal_set_userid(from._internal_userid()); + _this->_internal_set_userid(from._internal_userid()); break; } case kBackupID: { - _internal_set_backupid(from._internal_backupid()); + _this->_internal_set_backupid(from._internal_backupid()); break; } case kLogHash: { - _internal_set_loghash(from._internal_loghash()); + _this->_internal_set_loghash(from._internal_loghash()); break; } case kLogData: { - _internal_set_logdata(from._internal_logdata()); + _this->_internal_set_logdata(from._internal_logdata()); break; } case DATA_NOT_SET: { @@ -903,63 +937,68 @@ // @@protoc_insertion_point(copy_constructor:backup.SendLogRequest) } -void SendLogRequest::SharedCtor() { -clear_has_data(); +inline void SendLogRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.data_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_data(); } SendLogRequest::~SendLogRequest() { // @@protoc_insertion_point(destructor:backup.SendLogRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void SendLogRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void SendLogRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_data()) { clear_data(); } } -void SendLogRequest::ArenaDtor(void* object) { - SendLogRequest* _this = reinterpret_cast< SendLogRequest* >(object); - (void)_this; -} -void SendLogRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void SendLogRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SendLogRequest::clear_data() { // @@protoc_insertion_point(one_of_clear_start:backup.SendLogRequest) switch (data_case()) { case kUserID: { - data_.userid_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.userid_.Destroy(); break; } case kBackupID: { - data_.backupid_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.backupid_.Destroy(); break; } case kLogHash: { - data_.loghash_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.loghash_.Destroy(); break; } case kLogData: { - data_.logdata_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.logdata_.Destroy(); break; } case DATA_NOT_SET: { break; } } - _oneof_case_[0] = DATA_NOT_SET; + _impl_._oneof_case_[0] = DATA_NOT_SET; } void SendLogRequest::Clear() { // @@protoc_insertion_point(message_clear_start:backup.SendLogRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -967,73 +1006,77 @@ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* SendLogRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* SendLogRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string userID = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_userid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.SendLogRequest.userID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "backup.SendLogRequest.userID")); + } else + goto handle_unusual; continue; // string backupID = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_backupid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.SendLogRequest.backupID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "backup.SendLogRequest.backupID")); + } else + goto handle_unusual; continue; // bytes logHash = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_loghash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // bytes logData = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { auto str = _internal_mutable_logdata(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* SendLogRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* SendLogRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:backup.SendLogRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string userID = 1; @@ -1069,7 +1112,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:backup.SendLogRequest) @@ -1080,7 +1123,7 @@ // @@protoc_insertion_point(message_byte_size_start:backup.SendLogRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1117,65 +1160,46 @@ break; } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void SendLogRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:backup.SendLogRequest) - GOOGLE_DCHECK_NE(&from, this); - const SendLogRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:backup.SendLogRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:backup.SendLogRequest) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendLogRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SendLogRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SendLogRequest::GetClassData() const { return &_class_data_; } -void SendLogRequest::MergeFrom(const SendLogRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:backup.SendLogRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void SendLogRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:backup.SendLogRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.data_case()) { case kUserID: { - _internal_set_userid(from._internal_userid()); + _this->_internal_set_userid(from._internal_userid()); break; } case kBackupID: { - _internal_set_backupid(from._internal_backupid()); + _this->_internal_set_backupid(from._internal_backupid()); break; } case kLogHash: { - _internal_set_loghash(from._internal_loghash()); + _this->_internal_set_loghash(from._internal_loghash()); break; } case kLogData: { - _internal_set_logdata(from._internal_logdata()); + _this->_internal_set_logdata(from._internal_logdata()); break; } case DATA_NOT_SET: { break; } } -} - -void SendLogRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:backup.SendLogRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SendLogRequest::CopyFrom(const SendLogRequest& from) { @@ -1191,120 +1215,137 @@ void SendLogRequest::InternalSwap(SendLogRequest* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(data_, other->data_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.data_, other->_impl_.data_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata SendLogRequest::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_backup_2eproto_getter, &descriptor_table_backup_2eproto_once, + file_level_metadata_backup_2eproto[2]); } - // =================================================================== class SendLogResponse::_Internal { public: }; -SendLogResponse::SendLogResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +SendLogResponse::SendLogResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:backup.SendLogResponse) } SendLogResponse::SendLogResponse(const SendLogResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SendLogResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.logcheckpoint_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - logcheckpoint_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.logcheckpoint_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.logcheckpoint_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_logcheckpoint().empty()) { - logcheckpoint_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_logcheckpoint(), - GetArena()); + _this->_impl_.logcheckpoint_.Set(from._internal_logcheckpoint(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:backup.SendLogResponse) } -void SendLogResponse::SharedCtor() { -logcheckpoint_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void SendLogResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.logcheckpoint_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.logcheckpoint_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.logcheckpoint_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } SendLogResponse::~SendLogResponse() { // @@protoc_insertion_point(destructor:backup.SendLogResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void SendLogResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - logcheckpoint_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void SendLogResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.logcheckpoint_.Destroy(); } -void SendLogResponse::ArenaDtor(void* object) { - SendLogResponse* _this = reinterpret_cast< SendLogResponse* >(object); - (void)_this; -} -void SendLogResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void SendLogResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SendLogResponse::Clear() { // @@protoc_insertion_point(message_clear_start:backup.SendLogResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - logcheckpoint_.ClearToEmpty(); + _impl_.logcheckpoint_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* SendLogResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* SendLogResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string logCheckpoint = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_logcheckpoint(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.SendLogResponse.logCheckpoint")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + CHK_(::_pbi::VerifyUTF8(str, "backup.SendLogResponse.logCheckpoint")); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* SendLogResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* SendLogResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:backup.SendLogResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string logCheckpoint = 1; - if (this->logcheckpoint().size() > 0) { + if (!this->_internal_logcheckpoint().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_logcheckpoint().data(), static_cast(this->_internal_logcheckpoint().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1314,7 +1355,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:backup.SendLogResponse) @@ -1325,58 +1366,39 @@ // @@protoc_insertion_point(message_byte_size_start:backup.SendLogResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string logCheckpoint = 1; - if (this->logcheckpoint().size() > 0) { + if (!this->_internal_logcheckpoint().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_logcheckpoint()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void SendLogResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:backup.SendLogResponse) - GOOGLE_DCHECK_NE(&from, this); - const SendLogResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:backup.SendLogResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:backup.SendLogResponse) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendLogResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SendLogResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SendLogResponse::GetClassData() const { return &_class_data_; } -void SendLogResponse::MergeFrom(const SendLogResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:backup.SendLogResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void SendLogResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:backup.SendLogResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.logcheckpoint().size() > 0) { - _internal_set_logcheckpoint(from._internal_logcheckpoint()); + if (!from._internal_logcheckpoint().empty()) { + _this->_internal_set_logcheckpoint(from._internal_logcheckpoint()); } -} - -void SendLogResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:backup.SendLogResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SendLogResponse::CopyFrom(const SendLogResponse& from) { @@ -1392,119 +1414,141 @@ void SendLogResponse::InternalSwap(SendLogResponse* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - logcheckpoint_.Swap(&other->logcheckpoint_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.logcheckpoint_, lhs_arena, + &other->_impl_.logcheckpoint_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata SendLogResponse::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_backup_2eproto_getter, &descriptor_table_backup_2eproto_once, + file_level_metadata_backup_2eproto[3]); } - // =================================================================== class RecoverBackupKeyRequest::_Internal { public: }; -RecoverBackupKeyRequest::RecoverBackupKeyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +RecoverBackupKeyRequest::RecoverBackupKeyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:backup.RecoverBackupKeyRequest) } RecoverBackupKeyRequest::RecoverBackupKeyRequest(const RecoverBackupKeyRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + RecoverBackupKeyRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.userid_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.userid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.userid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_userid().empty()) { - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_userid(), - GetArena()); + _this->_impl_.userid_.Set(from._internal_userid(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:backup.RecoverBackupKeyRequest) } -void RecoverBackupKeyRequest::SharedCtor() { -userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void RecoverBackupKeyRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.userid_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.userid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.userid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } RecoverBackupKeyRequest::~RecoverBackupKeyRequest() { // @@protoc_insertion_point(destructor:backup.RecoverBackupKeyRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void RecoverBackupKeyRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - userid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void RecoverBackupKeyRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.userid_.Destroy(); } -void RecoverBackupKeyRequest::ArenaDtor(void* object) { - RecoverBackupKeyRequest* _this = reinterpret_cast< RecoverBackupKeyRequest* >(object); - (void)_this; -} -void RecoverBackupKeyRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void RecoverBackupKeyRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void RecoverBackupKeyRequest::Clear() { // @@protoc_insertion_point(message_clear_start:backup.RecoverBackupKeyRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - userid_.ClearToEmpty(); + _impl_.userid_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* RecoverBackupKeyRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* RecoverBackupKeyRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string userID = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_userid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.RecoverBackupKeyRequest.userID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + CHK_(::_pbi::VerifyUTF8(str, "backup.RecoverBackupKeyRequest.userID")); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* RecoverBackupKeyRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* RecoverBackupKeyRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:backup.RecoverBackupKeyRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string userID = 1; - if (this->userid().size() > 0) { + if (!this->_internal_userid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_userid().data(), static_cast(this->_internal_userid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1514,7 +1558,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:backup.RecoverBackupKeyRequest) @@ -1525,58 +1569,39 @@ // @@protoc_insertion_point(message_byte_size_start:backup.RecoverBackupKeyRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string userID = 1; - if (this->userid().size() > 0) { + if (!this->_internal_userid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_userid()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void RecoverBackupKeyRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:backup.RecoverBackupKeyRequest) - GOOGLE_DCHECK_NE(&from, this); - const RecoverBackupKeyRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:backup.RecoverBackupKeyRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:backup.RecoverBackupKeyRequest) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RecoverBackupKeyRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RecoverBackupKeyRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RecoverBackupKeyRequest::GetClassData() const { return &_class_data_; } -void RecoverBackupKeyRequest::MergeFrom(const RecoverBackupKeyRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:backup.RecoverBackupKeyRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void RecoverBackupKeyRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:backup.RecoverBackupKeyRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.userid().size() > 0) { - _internal_set_userid(from._internal_userid()); + if (!from._internal_userid().empty()) { + _this->_internal_set_userid(from._internal_userid()); } -} - -void RecoverBackupKeyRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:backup.RecoverBackupKeyRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RecoverBackupKeyRequest::CopyFrom(const RecoverBackupKeyRequest& from) { @@ -1592,119 +1617,141 @@ void RecoverBackupKeyRequest::InternalSwap(RecoverBackupKeyRequest* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - userid_.Swap(&other->userid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.userid_, lhs_arena, + &other->_impl_.userid_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata RecoverBackupKeyRequest::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_backup_2eproto_getter, &descriptor_table_backup_2eproto_once, + file_level_metadata_backup_2eproto[4]); } - // =================================================================== class RecoverBackupKeyResponse::_Internal { public: }; -RecoverBackupKeyResponse::RecoverBackupKeyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +RecoverBackupKeyResponse::RecoverBackupKeyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:backup.RecoverBackupKeyResponse) } RecoverBackupKeyResponse::RecoverBackupKeyResponse(const RecoverBackupKeyResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + RecoverBackupKeyResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.backupid_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.backupid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.backupid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_backupid().empty()) { - backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_backupid(), - GetArena()); + _this->_impl_.backupid_.Set(from._internal_backupid(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:backup.RecoverBackupKeyResponse) } -void RecoverBackupKeyResponse::SharedCtor() { -backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void RecoverBackupKeyResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.backupid_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.backupid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.backupid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } RecoverBackupKeyResponse::~RecoverBackupKeyResponse() { // @@protoc_insertion_point(destructor:backup.RecoverBackupKeyResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void RecoverBackupKeyResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - backupid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void RecoverBackupKeyResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.backupid_.Destroy(); } -void RecoverBackupKeyResponse::ArenaDtor(void* object) { - RecoverBackupKeyResponse* _this = reinterpret_cast< RecoverBackupKeyResponse* >(object); - (void)_this; -} -void RecoverBackupKeyResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void RecoverBackupKeyResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void RecoverBackupKeyResponse::Clear() { // @@protoc_insertion_point(message_clear_start:backup.RecoverBackupKeyResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - backupid_.ClearToEmpty(); + _impl_.backupid_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* RecoverBackupKeyResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* RecoverBackupKeyResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string backupID = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { auto str = _internal_mutable_backupid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.RecoverBackupKeyResponse.backupID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + CHK_(::_pbi::VerifyUTF8(str, "backup.RecoverBackupKeyResponse.backupID")); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* RecoverBackupKeyResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* RecoverBackupKeyResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:backup.RecoverBackupKeyResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string backupID = 4; - if (this->backupid().size() > 0) { + if (!this->_internal_backupid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_backupid().data(), static_cast(this->_internal_backupid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1714,7 +1761,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:backup.RecoverBackupKeyResponse) @@ -1725,58 +1772,39 @@ // @@protoc_insertion_point(message_byte_size_start:backup.RecoverBackupKeyResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string backupID = 4; - if (this->backupid().size() > 0) { + if (!this->_internal_backupid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_backupid()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void RecoverBackupKeyResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:backup.RecoverBackupKeyResponse) - GOOGLE_DCHECK_NE(&from, this); - const RecoverBackupKeyResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:backup.RecoverBackupKeyResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:backup.RecoverBackupKeyResponse) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RecoverBackupKeyResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RecoverBackupKeyResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RecoverBackupKeyResponse::GetClassData() const { return &_class_data_; } -void RecoverBackupKeyResponse::MergeFrom(const RecoverBackupKeyResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:backup.RecoverBackupKeyResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void RecoverBackupKeyResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:backup.RecoverBackupKeyResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.backupid().size() > 0) { - _internal_set_backupid(from._internal_backupid()); + if (!from._internal_backupid().empty()) { + _this->_internal_set_backupid(from._internal_backupid()); } -} - -void RecoverBackupKeyResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:backup.RecoverBackupKeyResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RecoverBackupKeyResponse::CopyFrom(const RecoverBackupKeyResponse& from) { @@ -1792,136 +1820,167 @@ void RecoverBackupKeyResponse::InternalSwap(RecoverBackupKeyResponse* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - backupid_.Swap(&other->backupid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.backupid_, lhs_arena, + &other->_impl_.backupid_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata RecoverBackupKeyResponse::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_backup_2eproto_getter, &descriptor_table_backup_2eproto_once, + file_level_metadata_backup_2eproto[5]); } - // =================================================================== class PullBackupRequest::_Internal { public: }; -PullBackupRequest::PullBackupRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +PullBackupRequest::PullBackupRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:backup.PullBackupRequest) } PullBackupRequest::PullBackupRequest(const PullBackupRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + PullBackupRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.userid_){} + , decltype(_impl_.backupid_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.userid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.userid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_userid().empty()) { - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_userid(), - GetArena()); + _this->_impl_.userid_.Set(from._internal_userid(), + _this->GetArenaForAllocation()); } - backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.backupid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.backupid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_backupid().empty()) { - backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_backupid(), - GetArena()); + _this->_impl_.backupid_.Set(from._internal_backupid(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:backup.PullBackupRequest) } -void PullBackupRequest::SharedCtor() { -userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void PullBackupRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.userid_){} + , decltype(_impl_.backupid_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.userid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.userid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.backupid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.backupid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } PullBackupRequest::~PullBackupRequest() { // @@protoc_insertion_point(destructor:backup.PullBackupRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void PullBackupRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - userid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - backupid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void PullBackupRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.userid_.Destroy(); + _impl_.backupid_.Destroy(); } -void PullBackupRequest::ArenaDtor(void* object) { - PullBackupRequest* _this = reinterpret_cast< PullBackupRequest* >(object); - (void)_this; -} -void PullBackupRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void PullBackupRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void PullBackupRequest::Clear() { // @@protoc_insertion_point(message_clear_start:backup.PullBackupRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - userid_.ClearToEmpty(); - backupid_.ClearToEmpty(); + _impl_.userid_.ClearToEmpty(); + _impl_.backupid_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* PullBackupRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* PullBackupRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string userID = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_userid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.PullBackupRequest.userID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "backup.PullBackupRequest.userID")); + } else + goto handle_unusual; continue; // string backupID = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_backupid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.PullBackupRequest.backupID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "backup.PullBackupRequest.backupID")); + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* PullBackupRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* PullBackupRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:backup.PullBackupRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string userID = 1; - if (this->userid().size() > 0) { + if (!this->_internal_userid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_userid().data(), static_cast(this->_internal_userid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1931,7 +1990,7 @@ } // string backupID = 2; - if (this->backupid().size() > 0) { + if (!this->_internal_backupid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_backupid().data(), static_cast(this->_internal_backupid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1941,7 +2000,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:backup.PullBackupRequest) @@ -1952,68 +2011,49 @@ // @@protoc_insertion_point(message_byte_size_start:backup.PullBackupRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string userID = 1; - if (this->userid().size() > 0) { + if (!this->_internal_userid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_userid()); } // string backupID = 2; - if (this->backupid().size() > 0) { + if (!this->_internal_backupid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_backupid()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void PullBackupRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:backup.PullBackupRequest) - GOOGLE_DCHECK_NE(&from, this); - const PullBackupRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:backup.PullBackupRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:backup.PullBackupRequest) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PullBackupRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PullBackupRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PullBackupRequest::GetClassData() const { return &_class_data_; } -void PullBackupRequest::MergeFrom(const PullBackupRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:backup.PullBackupRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void PullBackupRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:backup.PullBackupRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.userid().size() > 0) { - _internal_set_userid(from._internal_userid()); + if (!from._internal_userid().empty()) { + _this->_internal_set_userid(from._internal_userid()); } - if (from.backupid().size() > 0) { - _internal_set_backupid(from._internal_backupid()); + if (!from._internal_backupid().empty()) { + _this->_internal_set_backupid(from._internal_backupid()); } -} - -void PullBackupRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:backup.PullBackupRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PullBackupRequest::CopyFrom(const PullBackupRequest& from) { @@ -2029,49 +2069,69 @@ void PullBackupRequest::InternalSwap(PullBackupRequest* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - userid_.Swap(&other->userid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - backupid_.Swap(&other->backupid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.userid_, lhs_arena, + &other->_impl_.userid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.backupid_, lhs_arena, + &other->_impl_.backupid_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata PullBackupRequest::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_backup_2eproto_getter, &descriptor_table_backup_2eproto_once, + file_level_metadata_backup_2eproto[6]); } - // =================================================================== class PullBackupResponse::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); + using HasBits = decltype(std::declval()._impl_._has_bits_); static void set_has_attachmentholders(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -PullBackupResponse::PullBackupResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +PullBackupResponse::PullBackupResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:backup.PullBackupResponse) } PullBackupResponse::PullBackupResponse(const PullBackupResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + PullBackupResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.attachmentholders_){} + , decltype(_impl_.id_){} + , decltype(_impl_.data_){} + , /*decltype(_impl_._oneof_case_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - attachmentholders_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.attachmentholders_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentholders_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_attachmentholders()) { - attachmentholders_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_attachmentholders(), - GetArena()); + _this->_impl_.attachmentholders_.Set(from._internal_attachmentholders(), + _this->GetArenaForAllocation()); } clear_has_id(); switch (from.id_case()) { case kBackupID: { - _internal_set_backupid(from._internal_backupid()); + _this->_internal_set_backupid(from._internal_backupid()); break; } case kLogID: { - _internal_set_logid(from._internal_logid()); + _this->_internal_set_logid(from._internal_logid()); break; } case ID_NOT_SET: { @@ -2081,11 +2141,11 @@ clear_has_data(); switch (from.data_case()) { case kCompactionChunk: { - _internal_set_compactionchunk(from._internal_compactionchunk()); + _this->_internal_set_compactionchunk(from._internal_compactionchunk()); break; } case kLogChunk: { - _internal_set_logchunk(from._internal_logchunk()); + _this->_internal_set_logchunk(from._internal_logchunk()); break; } case DATA_NOT_SET: { @@ -2095,21 +2155,38 @@ // @@protoc_insertion_point(copy_constructor:backup.PullBackupResponse) } -void PullBackupResponse::SharedCtor() { -attachmentholders_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -clear_has_id(); -clear_has_data(); +inline void PullBackupResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.attachmentholders_){} + , decltype(_impl_.id_){} + , decltype(_impl_.data_){} + , /*decltype(_impl_._oneof_case_)*/{} + }; + _impl_.attachmentholders_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentholders_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + clear_has_id(); + clear_has_data(); } PullBackupResponse::~PullBackupResponse() { // @@protoc_insertion_point(destructor:backup.PullBackupResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void PullBackupResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - attachmentholders_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void PullBackupResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.attachmentholders_.Destroy(); if (has_id()) { clear_id(); } @@ -2118,147 +2195,146 @@ } } -void PullBackupResponse::ArenaDtor(void* object) { - PullBackupResponse* _this = reinterpret_cast< PullBackupResponse* >(object); - (void)_this; -} -void PullBackupResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void PullBackupResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void PullBackupResponse::clear_id() { // @@protoc_insertion_point(one_of_clear_start:backup.PullBackupResponse) switch (id_case()) { case kBackupID: { - id_.backupid_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.id_.backupid_.Destroy(); break; } case kLogID: { - id_.logid_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.id_.logid_.Destroy(); break; } case ID_NOT_SET: { break; } } - _oneof_case_[0] = ID_NOT_SET; + _impl_._oneof_case_[0] = ID_NOT_SET; } void PullBackupResponse::clear_data() { // @@protoc_insertion_point(one_of_clear_start:backup.PullBackupResponse) switch (data_case()) { case kCompactionChunk: { - data_.compactionchunk_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.compactionchunk_.Destroy(); break; } case kLogChunk: { - data_.logchunk_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.logchunk_.Destroy(); break; } case DATA_NOT_SET: { break; } } - _oneof_case_[1] = DATA_NOT_SET; + _impl_._oneof_case_[1] = DATA_NOT_SET; } void PullBackupResponse::Clear() { // @@protoc_insertion_point(message_clear_start:backup.PullBackupResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - attachmentholders_.ClearNonDefaultToEmpty(); + _impl_.attachmentholders_.ClearNonDefaultToEmpty(); } clear_id(); clear_data(); - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* PullBackupResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* PullBackupResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string backupID = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_backupid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.PullBackupResponse.backupID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "backup.PullBackupResponse.backupID")); + } else + goto handle_unusual; continue; // string logID = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_logid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.PullBackupResponse.logID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "backup.PullBackupResponse.logID")); + } else + goto handle_unusual; continue; // bytes compactionChunk = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_compactionchunk(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // bytes logChunk = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { auto str = _internal_mutable_logchunk(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; - // string attachmentHolders = 5; + // optional string attachmentHolders = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { auto str = _internal_mutable_attachmentholders(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.PullBackupResponse.attachmentHolders")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + CHK_(::_pbi::VerifyUTF8(str, "backup.PullBackupResponse.attachmentHolders")); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: - _has_bits_.Or(has_bits); +message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* PullBackupResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* PullBackupResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:backup.PullBackupResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string backupID = 1; @@ -2293,7 +2369,7 @@ 4, this->_internal_logchunk(), target); } - // string attachmentHolders = 5; + // optional string attachmentHolders = 5; if (_internal_has_attachmentholders()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_attachmentholders().data(), static_cast(this->_internal_attachmentholders().length()), @@ -2304,7 +2380,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:backup.PullBackupResponse) @@ -2315,12 +2391,12 @@ // @@protoc_insertion_point(message_byte_size_start:backup.PullBackupResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string attachmentHolders = 5; - cached_has_bits = _has_bits_[0]; + // optional string attachmentHolders = 5; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( @@ -2365,47 +2441,34 @@ break; } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void PullBackupResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:backup.PullBackupResponse) - GOOGLE_DCHECK_NE(&from, this); - const PullBackupResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:backup.PullBackupResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:backup.PullBackupResponse) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PullBackupResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PullBackupResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PullBackupResponse::GetClassData() const { return &_class_data_; } -void PullBackupResponse::MergeFrom(const PullBackupResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:backup.PullBackupResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void PullBackupResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:backup.PullBackupResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_attachmentholders()) { - _internal_set_attachmentholders(from._internal_attachmentholders()); + _this->_internal_set_attachmentholders(from._internal_attachmentholders()); } switch (from.id_case()) { case kBackupID: { - _internal_set_backupid(from._internal_backupid()); + _this->_internal_set_backupid(from._internal_backupid()); break; } case kLogID: { - _internal_set_logid(from._internal_logid()); + _this->_internal_set_logid(from._internal_logid()); break; } case ID_NOT_SET: { @@ -2414,24 +2477,18 @@ } switch (from.data_case()) { case kCompactionChunk: { - _internal_set_compactionchunk(from._internal_compactionchunk()); + _this->_internal_set_compactionchunk(from._internal_compactionchunk()); break; } case kLogChunk: { - _internal_set_logchunk(from._internal_logchunk()); + _this->_internal_set_logchunk(from._internal_logchunk()); break; } case DATA_NOT_SET: { break; } } -} - -void PullBackupResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:backup.PullBackupResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PullBackupResponse::CopyFrom(const PullBackupResponse& from) { @@ -2447,175 +2504,224 @@ void PullBackupResponse::InternalSwap(PullBackupResponse* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - attachmentholders_.Swap(&other->attachmentholders_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(id_, other->id_); - swap(data_, other->data_); - swap(_oneof_case_[0], other->_oneof_case_[0]); - swap(_oneof_case_[1], other->_oneof_case_[1]); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.attachmentholders_, lhs_arena, + &other->_impl_.attachmentholders_, rhs_arena + ); + swap(_impl_.id_, other->_impl_.id_); + swap(_impl_.data_, other->_impl_.data_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(_impl_._oneof_case_[1], other->_impl_._oneof_case_[1]); } ::PROTOBUF_NAMESPACE_ID::Metadata PullBackupResponse::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_backup_2eproto_getter, &descriptor_table_backup_2eproto_once, + file_level_metadata_backup_2eproto[7]); } - // =================================================================== class AddAttachmentsRequest::_Internal { public: }; -AddAttachmentsRequest::AddAttachmentsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +AddAttachmentsRequest::AddAttachmentsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:backup.AddAttachmentsRequest) } AddAttachmentsRequest::AddAttachmentsRequest(const AddAttachmentsRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + AddAttachmentsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.userid_){} + , decltype(_impl_.backupid_){} + , decltype(_impl_.logid_){} + , decltype(_impl_.holders_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.userid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.userid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_userid().empty()) { - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_userid(), - GetArena()); + _this->_impl_.userid_.Set(from._internal_userid(), + _this->GetArenaForAllocation()); } - backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.backupid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.backupid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_backupid().empty()) { - backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_backupid(), - GetArena()); + _this->_impl_.backupid_.Set(from._internal_backupid(), + _this->GetArenaForAllocation()); } - logid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.logid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.logid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_logid().empty()) { - logid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_logid(), - GetArena()); + _this->_impl_.logid_.Set(from._internal_logid(), + _this->GetArenaForAllocation()); } - holders_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.holders_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.holders_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_holders().empty()) { - holders_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_holders(), - GetArena()); + _this->_impl_.holders_.Set(from._internal_holders(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:backup.AddAttachmentsRequest) } -void AddAttachmentsRequest::SharedCtor() { -userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -logid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -holders_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void AddAttachmentsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.userid_){} + , decltype(_impl_.backupid_){} + , decltype(_impl_.logid_){} + , decltype(_impl_.holders_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.userid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.userid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.backupid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.backupid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.logid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.logid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.holders_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.holders_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } AddAttachmentsRequest::~AddAttachmentsRequest() { // @@protoc_insertion_point(destructor:backup.AddAttachmentsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void AddAttachmentsRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - userid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - backupid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - logid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - holders_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void AddAttachmentsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.userid_.Destroy(); + _impl_.backupid_.Destroy(); + _impl_.logid_.Destroy(); + _impl_.holders_.Destroy(); } -void AddAttachmentsRequest::ArenaDtor(void* object) { - AddAttachmentsRequest* _this = reinterpret_cast< AddAttachmentsRequest* >(object); - (void)_this; -} -void AddAttachmentsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void AddAttachmentsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void AddAttachmentsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:backup.AddAttachmentsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - userid_.ClearToEmpty(); - backupid_.ClearToEmpty(); - logid_.ClearToEmpty(); - holders_.ClearToEmpty(); + _impl_.userid_.ClearToEmpty(); + _impl_.backupid_.ClearToEmpty(); + _impl_.logid_.ClearToEmpty(); + _impl_.holders_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* AddAttachmentsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* AddAttachmentsRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string userID = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_userid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.AddAttachmentsRequest.userID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "backup.AddAttachmentsRequest.userID")); + } else + goto handle_unusual; continue; // string backupID = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_backupid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.AddAttachmentsRequest.backupID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "backup.AddAttachmentsRequest.backupID")); + } else + goto handle_unusual; continue; // string logID = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_logid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.AddAttachmentsRequest.logID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "backup.AddAttachmentsRequest.logID")); + } else + goto handle_unusual; continue; // string holders = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { auto str = _internal_mutable_holders(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.AddAttachmentsRequest.holders")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + CHK_(::_pbi::VerifyUTF8(str, "backup.AddAttachmentsRequest.holders")); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* AddAttachmentsRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* AddAttachmentsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:backup.AddAttachmentsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string userID = 1; - if (this->userid().size() > 0) { + if (!this->_internal_userid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_userid().data(), static_cast(this->_internal_userid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -2625,7 +2731,7 @@ } // string backupID = 2; - if (this->backupid().size() > 0) { + if (!this->_internal_backupid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_backupid().data(), static_cast(this->_internal_backupid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -2635,7 +2741,7 @@ } // string logID = 3; - if (this->logid().size() > 0) { + if (!this->_internal_logid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_logid().data(), static_cast(this->_internal_logid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -2645,7 +2751,7 @@ } // string holders = 4; - if (this->holders().size() > 0) { + if (!this->_internal_holders().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_holders().data(), static_cast(this->_internal_holders().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -2655,7 +2761,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:backup.AddAttachmentsRequest) @@ -2666,88 +2772,69 @@ // @@protoc_insertion_point(message_byte_size_start:backup.AddAttachmentsRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string userID = 1; - if (this->userid().size() > 0) { + if (!this->_internal_userid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_userid()); } // string backupID = 2; - if (this->backupid().size() > 0) { + if (!this->_internal_backupid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_backupid()); } // string logID = 3; - if (this->logid().size() > 0) { + if (!this->_internal_logid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_logid()); } // string holders = 4; - if (this->holders().size() > 0) { + if (!this->_internal_holders().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_holders()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void AddAttachmentsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:backup.AddAttachmentsRequest) - GOOGLE_DCHECK_NE(&from, this); - const AddAttachmentsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:backup.AddAttachmentsRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:backup.AddAttachmentsRequest) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddAttachmentsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AddAttachmentsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddAttachmentsRequest::GetClassData() const { return &_class_data_; } -void AddAttachmentsRequest::MergeFrom(const AddAttachmentsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:backup.AddAttachmentsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void AddAttachmentsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:backup.AddAttachmentsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.userid().size() > 0) { - _internal_set_userid(from._internal_userid()); + if (!from._internal_userid().empty()) { + _this->_internal_set_userid(from._internal_userid()); } - if (from.backupid().size() > 0) { - _internal_set_backupid(from._internal_backupid()); + if (!from._internal_backupid().empty()) { + _this->_internal_set_backupid(from._internal_backupid()); } - if (from.logid().size() > 0) { - _internal_set_logid(from._internal_logid()); + if (!from._internal_logid().empty()) { + _this->_internal_set_logid(from._internal_logid()); } - if (from.holders().size() > 0) { - _internal_set_holders(from._internal_holders()); + if (!from._internal_holders().empty()) { + _this->_internal_set_holders(from._internal_holders()); } -} - -void AddAttachmentsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:backup.AddAttachmentsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AddAttachmentsRequest::CopyFrom(const AddAttachmentsRequest& from) { @@ -2763,46 +2850,70 @@ void AddAttachmentsRequest::InternalSwap(AddAttachmentsRequest* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - userid_.Swap(&other->userid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - backupid_.Swap(&other->backupid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - logid_.Swap(&other->logid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - holders_.Swap(&other->holders_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.userid_, lhs_arena, + &other->_impl_.userid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.backupid_, lhs_arena, + &other->_impl_.backupid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.logid_, lhs_arena, + &other->_impl_.logid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.holders_, lhs_arena, + &other->_impl_.holders_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata AddAttachmentsRequest::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_backup_2eproto_getter, &descriptor_table_backup_2eproto_once, + file_level_metadata_backup_2eproto[8]); } - // @@protoc_insertion_point(namespace_scope) } // namespace backup PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::backup::CreateNewBackupRequest* Arena::CreateMaybeMessage< ::backup::CreateNewBackupRequest >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::backup::CreateNewBackupRequest* +Arena::CreateMaybeMessage< ::backup::CreateNewBackupRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::backup::CreateNewBackupRequest >(arena); } -template<> PROTOBUF_NOINLINE ::backup::CreateNewBackupResponse* Arena::CreateMaybeMessage< ::backup::CreateNewBackupResponse >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::backup::CreateNewBackupResponse* +Arena::CreateMaybeMessage< ::backup::CreateNewBackupResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::backup::CreateNewBackupResponse >(arena); } -template<> PROTOBUF_NOINLINE ::backup::SendLogRequest* Arena::CreateMaybeMessage< ::backup::SendLogRequest >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::backup::SendLogRequest* +Arena::CreateMaybeMessage< ::backup::SendLogRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::backup::SendLogRequest >(arena); } -template<> PROTOBUF_NOINLINE ::backup::SendLogResponse* Arena::CreateMaybeMessage< ::backup::SendLogResponse >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::backup::SendLogResponse* +Arena::CreateMaybeMessage< ::backup::SendLogResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::backup::SendLogResponse >(arena); } -template<> PROTOBUF_NOINLINE ::backup::RecoverBackupKeyRequest* Arena::CreateMaybeMessage< ::backup::RecoverBackupKeyRequest >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::backup::RecoverBackupKeyRequest* +Arena::CreateMaybeMessage< ::backup::RecoverBackupKeyRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::backup::RecoverBackupKeyRequest >(arena); } -template<> PROTOBUF_NOINLINE ::backup::RecoverBackupKeyResponse* Arena::CreateMaybeMessage< ::backup::RecoverBackupKeyResponse >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::backup::RecoverBackupKeyResponse* +Arena::CreateMaybeMessage< ::backup::RecoverBackupKeyResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::backup::RecoverBackupKeyResponse >(arena); } -template<> PROTOBUF_NOINLINE ::backup::PullBackupRequest* Arena::CreateMaybeMessage< ::backup::PullBackupRequest >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::backup::PullBackupRequest* +Arena::CreateMaybeMessage< ::backup::PullBackupRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::backup::PullBackupRequest >(arena); } -template<> PROTOBUF_NOINLINE ::backup::PullBackupResponse* Arena::CreateMaybeMessage< ::backup::PullBackupResponse >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::backup::PullBackupResponse* +Arena::CreateMaybeMessage< ::backup::PullBackupResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::backup::PullBackupResponse >(arena); } -template<> PROTOBUF_NOINLINE ::backup::AddAttachmentsRequest* Arena::CreateMaybeMessage< ::backup::AddAttachmentsRequest >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::backup::AddAttachmentsRequest* +Arena::CreateMaybeMessage< ::backup::AddAttachmentsRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::backup::AddAttachmentsRequest >(arena); } PROTOBUF_NAMESPACE_CLOSE diff --git a/native/cpp/CommonCpp/grpc/_generated/blob.pb.h b/native/cpp/CommonCpp/grpc/_generated/blob.pb.h --- a/native/cpp/CommonCpp/grpc/_generated/blob.pb.h +++ b/native/cpp/CommonCpp/grpc/_generated/blob.pb.h @@ -8,12 +8,12 @@ #include #include -#if PROTOBUF_VERSION < 3015000 +#if PROTOBUF_VERSION < 3021000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3015008 < PROTOBUF_MIN_PROTOC_VERSION +#if 3021005 < 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. @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include @@ -43,18 +42,9 @@ // Internal implementation detail -- do not use these members. struct TableStruct_blob_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[5] - 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[]; + static const uint32_t offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_blob_2eproto; -::PROTOBUF_NAMESPACE_ID::Metadata descriptor_table_blob_2eproto_metadata_getter(int index); namespace blob { class GetRequest; struct GetRequestDefaultTypeInternal; @@ -83,12 +73,12 @@ // =================================================================== -class PutRequest PROTOBUF_FINAL : +class PutRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:blob.PutRequest) */ { public: inline PutRequest() : PutRequest(nullptr) {} - virtual ~PutRequest(); - explicit constexpr PutRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~PutRequest() override; + explicit PROTOBUF_CONSTEXPR PutRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); PutRequest(const PutRequest& from); PutRequest(PutRequest&& from) noexcept @@ -101,8 +91,13 @@ return *this; } inline PutRequest& operator=(PutRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -113,10 +108,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const PutRequest& default_instance() { return *internal_default_instance(); @@ -140,7 +135,12 @@ } inline void Swap(PutRequest* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -148,55 +148,53 @@ } void UnsafeArenaSwap(PutRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline PutRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - PutRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + PutRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const PutRequest& from); - void MergeFrom(const PutRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const PutRequest& from) { + PutRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(PutRequest* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "blob.PutRequest"; } protected: - explicit PutRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit PutRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_blob_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -214,16 +212,14 @@ public: void clear_holder(); const std::string& holder() const; - void set_holder(const std::string& value); - void set_holder(std::string&& value); - void set_holder(const char* value); - void set_holder(const char* value, size_t size); + template + void set_holder(ArgT0&& arg0, ArgT... args); std::string* mutable_holder(); - std::string* release_holder(); + PROTOBUF_NODISCARD std::string* release_holder(); void set_allocated_holder(std::string* holder); private: const std::string& _internal_holder() const; - void _internal_set_holder(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_holder(const std::string& value); std::string* _internal_mutable_holder(); public: @@ -234,16 +230,14 @@ public: void clear_blobhash(); const std::string& blobhash() const; - void set_blobhash(const std::string& value); - void set_blobhash(std::string&& value); - void set_blobhash(const char* value); - void set_blobhash(const char* value, size_t size); + template + void set_blobhash(ArgT0&& arg0, ArgT... args); std::string* mutable_blobhash(); - std::string* release_blobhash(); + PROTOBUF_NODISCARD std::string* release_blobhash(); void set_allocated_blobhash(std::string* blobhash); private: const std::string& _internal_blobhash() const; - void _internal_set_blobhash(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_blobhash(const std::string& value); std::string* _internal_mutable_blobhash(); public: @@ -254,16 +248,14 @@ public: void clear_datachunk(); const std::string& datachunk() const; - void set_datachunk(const std::string& value); - void set_datachunk(std::string&& value); - void set_datachunk(const char* value); - void set_datachunk(const void* value, size_t size); + template + void set_datachunk(ArgT0&& arg0, ArgT... args); std::string* mutable_datachunk(); - std::string* release_datachunk(); + PROTOBUF_NODISCARD std::string* release_datachunk(); void set_allocated_datachunk(std::string* datachunk); private: const std::string& _internal_datachunk() const; - void _internal_set_datachunk(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_datachunk(const std::string& value); std::string* _internal_mutable_datachunk(); public: @@ -282,26 +274,29 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - union DataUnion { - constexpr DataUnion() : _constinit_{} {} - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr holder_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr blobhash_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr datachunk_; - } data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + struct Impl_ { + union DataUnion { + constexpr DataUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr holder_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr blobhash_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr datachunk_; + } data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_blob_2eproto; }; // ------------------------------------------------------------------- -class PutResponse PROTOBUF_FINAL : +class PutResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:blob.PutResponse) */ { public: inline PutResponse() : PutResponse(nullptr) {} - virtual ~PutResponse(); - explicit constexpr PutResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~PutResponse() override; + explicit PROTOBUF_CONSTEXPR PutResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); PutResponse(const PutResponse& from); PutResponse(PutResponse&& from) noexcept @@ -314,8 +309,13 @@ return *this; } inline PutResponse& operator=(PutResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -326,10 +326,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const PutResponse& default_instance() { return *internal_default_instance(); @@ -346,7 +346,12 @@ } inline void Swap(PutResponse* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -354,55 +359,53 @@ } void UnsafeArenaSwap(PutResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline PutResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - PutResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + PutResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const PutResponse& from); - void MergeFrom(const PutResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const PutResponse& from) { + PutResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(PutResponse* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "blob.PutResponse"; } protected: - explicit PutResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit PutResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_blob_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -427,18 +430,21 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - bool dataexists_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + bool dataexists_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_blob_2eproto; }; // ------------------------------------------------------------------- -class GetRequest PROTOBUF_FINAL : +class GetRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:blob.GetRequest) */ { public: inline GetRequest() : GetRequest(nullptr) {} - virtual ~GetRequest(); - explicit constexpr GetRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~GetRequest() override; + explicit PROTOBUF_CONSTEXPR GetRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); GetRequest(const GetRequest& from); GetRequest(GetRequest&& from) noexcept @@ -451,8 +457,13 @@ return *this; } inline GetRequest& operator=(GetRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -463,10 +474,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const GetRequest& default_instance() { return *internal_default_instance(); @@ -483,7 +494,12 @@ } inline void Swap(GetRequest* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -491,55 +507,53 @@ } void UnsafeArenaSwap(GetRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GetRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + GetRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetRequest& from); - void MergeFrom(const GetRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetRequest& from) { + GetRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(GetRequest* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "blob.GetRequest"; } protected: - explicit GetRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit GetRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_blob_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -551,16 +565,14 @@ // string holder = 1; void clear_holder(); const std::string& holder() const; - void set_holder(const std::string& value); - void set_holder(std::string&& value); - void set_holder(const char* value); - void set_holder(const char* value, size_t size); + template + void set_holder(ArgT0&& arg0, ArgT... args); std::string* mutable_holder(); - std::string* release_holder(); + PROTOBUF_NODISCARD std::string* release_holder(); void set_allocated_holder(std::string* holder); private: const std::string& _internal_holder() const; - void _internal_set_holder(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_holder(const std::string& value); std::string* _internal_mutable_holder(); public: @@ -571,18 +583,21 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr holder_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr holder_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_blob_2eproto; }; // ------------------------------------------------------------------- -class GetResponse PROTOBUF_FINAL : +class GetResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:blob.GetResponse) */ { public: inline GetResponse() : GetResponse(nullptr) {} - virtual ~GetResponse(); - explicit constexpr GetResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~GetResponse() override; + explicit PROTOBUF_CONSTEXPR GetResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); GetResponse(const GetResponse& from); GetResponse(GetResponse&& from) noexcept @@ -595,8 +610,13 @@ return *this; } inline GetResponse& operator=(GetResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -607,10 +627,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const GetResponse& default_instance() { return *internal_default_instance(); @@ -627,7 +647,12 @@ } inline void Swap(GetResponse* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -635,55 +660,53 @@ } void UnsafeArenaSwap(GetResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GetResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + GetResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetResponse& from); - void MergeFrom(const GetResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetResponse& from) { + GetResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(GetResponse* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "blob.GetResponse"; } protected: - explicit GetResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit GetResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_blob_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -695,16 +718,14 @@ // bytes dataChunk = 1; void clear_datachunk(); const std::string& datachunk() const; - void set_datachunk(const std::string& value); - void set_datachunk(std::string&& value); - void set_datachunk(const char* value); - void set_datachunk(const void* value, size_t size); + template + void set_datachunk(ArgT0&& arg0, ArgT... args); std::string* mutable_datachunk(); - std::string* release_datachunk(); + PROTOBUF_NODISCARD std::string* release_datachunk(); void set_allocated_datachunk(std::string* datachunk); private: const std::string& _internal_datachunk() const; - void _internal_set_datachunk(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_datachunk(const std::string& value); std::string* _internal_mutable_datachunk(); public: @@ -715,18 +736,21 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr datachunk_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr datachunk_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_blob_2eproto; }; // ------------------------------------------------------------------- -class RemoveRequest PROTOBUF_FINAL : +class RemoveRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:blob.RemoveRequest) */ { public: inline RemoveRequest() : RemoveRequest(nullptr) {} - virtual ~RemoveRequest(); - explicit constexpr RemoveRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~RemoveRequest() override; + explicit PROTOBUF_CONSTEXPR RemoveRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); RemoveRequest(const RemoveRequest& from); RemoveRequest(RemoveRequest&& from) noexcept @@ -739,8 +763,13 @@ return *this; } inline RemoveRequest& operator=(RemoveRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -751,10 +780,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const RemoveRequest& default_instance() { return *internal_default_instance(); @@ -771,7 +800,12 @@ } inline void Swap(RemoveRequest* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -779,55 +813,53 @@ } void UnsafeArenaSwap(RemoveRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline RemoveRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - RemoveRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + RemoveRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const RemoveRequest& from); - void MergeFrom(const RemoveRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RemoveRequest& from) { + RemoveRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(RemoveRequest* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "blob.RemoveRequest"; } protected: - explicit RemoveRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit RemoveRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_blob_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -839,16 +871,14 @@ // string holder = 1; void clear_holder(); const std::string& holder() const; - void set_holder(const std::string& value); - void set_holder(std::string&& value); - void set_holder(const char* value); - void set_holder(const char* value, size_t size); + template + void set_holder(ArgT0&& arg0, ArgT... args); std::string* mutable_holder(); - std::string* release_holder(); + PROTOBUF_NODISCARD std::string* release_holder(); void set_allocated_holder(std::string* holder); private: const std::string& _internal_holder() const; - void _internal_set_holder(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_holder(const std::string& value); std::string* _internal_mutable_holder(); public: @@ -859,8 +889,11 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr holder_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr holder_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_blob_2eproto; }; // =================================================================== @@ -882,11 +915,11 @@ return _internal_has_holder(); } inline void PutRequest::set_has_holder() { - _oneof_case_[0] = kHolder; + _impl_._oneof_case_[0] = kHolder; } inline void PutRequest::clear_holder() { if (_internal_has_holder()) { - data_.holder_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.holder_.Destroy(); clear_has_data(); } } @@ -894,17 +927,24 @@ // @@protoc_insertion_point(field_get:blob.PutRequest.holder) return _internal_holder(); } -inline void PutRequest::set_holder(const std::string& value) { - _internal_set_holder(value); +template +inline void PutRequest::set_holder(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_holder()) { + clear_data(); + set_has_holder(); + _impl_.data_.holder_.InitDefault(); + } + _impl_.data_.holder_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:blob.PutRequest.holder) } inline std::string* PutRequest::mutable_holder() { + std::string* _s = _internal_mutable_holder(); // @@protoc_insertion_point(field_mutable:blob.PutRequest.holder) - return _internal_mutable_holder(); + return _s; } inline const std::string& PutRequest::_internal_holder() const { if (_internal_has_holder()) { - return data_.holder_.Get(); + return _impl_.data_.holder_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } @@ -912,59 +952,23 @@ if (!_internal_has_holder()) { clear_data(); set_has_holder(); - data_.holder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.holder_.InitDefault(); } - data_.holder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PutRequest::set_holder(std::string&& value) { - // @@protoc_insertion_point(field_set:blob.PutRequest.holder) - if (!_internal_has_holder()) { - clear_data(); - set_has_holder(); - data_.holder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.holder_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:blob.PutRequest.holder) -} -inline void PutRequest::set_holder(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_holder()) { - clear_data(); - set_has_holder(); - data_.holder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.holder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:blob.PutRequest.holder) -} -inline void PutRequest::set_holder(const char* value, - size_t size) { - if (!_internal_has_holder()) { - clear_data(); - set_has_holder(); - data_.holder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.holder_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:blob.PutRequest.holder) + _impl_.data_.holder_.Set(value, GetArenaForAllocation()); } inline std::string* PutRequest::_internal_mutable_holder() { if (!_internal_has_holder()) { clear_data(); set_has_holder(); - data_.holder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.holder_.InitDefault(); } - return data_.holder_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.data_.holder_.Mutable( GetArenaForAllocation()); } inline std::string* PutRequest::release_holder() { // @@protoc_insertion_point(field_release:blob.PutRequest.holder) if (_internal_has_holder()) { clear_has_data(); - return data_.holder_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.data_.holder_.Release(); } else { return nullptr; } @@ -975,11 +979,7 @@ } if (holder != nullptr) { set_has_holder(); - data_.holder_.UnsafeSetDefault(holder); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(holder); - } + _impl_.data_.holder_.InitAllocated(holder, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:blob.PutRequest.holder) } @@ -992,11 +992,11 @@ return _internal_has_blobhash(); } inline void PutRequest::set_has_blobhash() { - _oneof_case_[0] = kBlobHash; + _impl_._oneof_case_[0] = kBlobHash; } inline void PutRequest::clear_blobhash() { if (_internal_has_blobhash()) { - data_.blobhash_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.blobhash_.Destroy(); clear_has_data(); } } @@ -1004,17 +1004,24 @@ // @@protoc_insertion_point(field_get:blob.PutRequest.blobHash) return _internal_blobhash(); } -inline void PutRequest::set_blobhash(const std::string& value) { - _internal_set_blobhash(value); +template +inline void PutRequest::set_blobhash(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_blobhash()) { + clear_data(); + set_has_blobhash(); + _impl_.data_.blobhash_.InitDefault(); + } + _impl_.data_.blobhash_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:blob.PutRequest.blobHash) } inline std::string* PutRequest::mutable_blobhash() { + std::string* _s = _internal_mutable_blobhash(); // @@protoc_insertion_point(field_mutable:blob.PutRequest.blobHash) - return _internal_mutable_blobhash(); + return _s; } inline const std::string& PutRequest::_internal_blobhash() const { if (_internal_has_blobhash()) { - return data_.blobhash_.Get(); + return _impl_.data_.blobhash_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } @@ -1022,59 +1029,23 @@ if (!_internal_has_blobhash()) { clear_data(); set_has_blobhash(); - data_.blobhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.blobhash_.InitDefault(); } - data_.blobhash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PutRequest::set_blobhash(std::string&& value) { - // @@protoc_insertion_point(field_set:blob.PutRequest.blobHash) - if (!_internal_has_blobhash()) { - clear_data(); - set_has_blobhash(); - data_.blobhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.blobhash_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:blob.PutRequest.blobHash) -} -inline void PutRequest::set_blobhash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_blobhash()) { - clear_data(); - set_has_blobhash(); - data_.blobhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.blobhash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:blob.PutRequest.blobHash) -} -inline void PutRequest::set_blobhash(const char* value, - size_t size) { - if (!_internal_has_blobhash()) { - clear_data(); - set_has_blobhash(); - data_.blobhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.blobhash_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:blob.PutRequest.blobHash) + _impl_.data_.blobhash_.Set(value, GetArenaForAllocation()); } inline std::string* PutRequest::_internal_mutable_blobhash() { if (!_internal_has_blobhash()) { clear_data(); set_has_blobhash(); - data_.blobhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.blobhash_.InitDefault(); } - return data_.blobhash_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.data_.blobhash_.Mutable( GetArenaForAllocation()); } inline std::string* PutRequest::release_blobhash() { // @@protoc_insertion_point(field_release:blob.PutRequest.blobHash) if (_internal_has_blobhash()) { clear_has_data(); - return data_.blobhash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.data_.blobhash_.Release(); } else { return nullptr; } @@ -1085,11 +1056,7 @@ } if (blobhash != nullptr) { set_has_blobhash(); - data_.blobhash_.UnsafeSetDefault(blobhash); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(blobhash); - } + _impl_.data_.blobhash_.InitAllocated(blobhash, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:blob.PutRequest.blobHash) } @@ -1102,11 +1069,11 @@ return _internal_has_datachunk(); } inline void PutRequest::set_has_datachunk() { - _oneof_case_[0] = kDataChunk; + _impl_._oneof_case_[0] = kDataChunk; } inline void PutRequest::clear_datachunk() { if (_internal_has_datachunk()) { - data_.datachunk_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.datachunk_.Destroy(); clear_has_data(); } } @@ -1114,17 +1081,24 @@ // @@protoc_insertion_point(field_get:blob.PutRequest.dataChunk) return _internal_datachunk(); } -inline void PutRequest::set_datachunk(const std::string& value) { - _internal_set_datachunk(value); +template +inline void PutRequest::set_datachunk(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_datachunk()) { + clear_data(); + set_has_datachunk(); + _impl_.data_.datachunk_.InitDefault(); + } + _impl_.data_.datachunk_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:blob.PutRequest.dataChunk) } inline std::string* PutRequest::mutable_datachunk() { + std::string* _s = _internal_mutable_datachunk(); // @@protoc_insertion_point(field_mutable:blob.PutRequest.dataChunk) - return _internal_mutable_datachunk(); + return _s; } inline const std::string& PutRequest::_internal_datachunk() const { if (_internal_has_datachunk()) { - return data_.datachunk_.Get(); + return _impl_.data_.datachunk_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } @@ -1132,59 +1106,23 @@ if (!_internal_has_datachunk()) { clear_data(); set_has_datachunk(); - data_.datachunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.datachunk_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PutRequest::set_datachunk(std::string&& value) { - // @@protoc_insertion_point(field_set:blob.PutRequest.dataChunk) - if (!_internal_has_datachunk()) { - clear_data(); - set_has_datachunk(); - data_.datachunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.datachunk_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:blob.PutRequest.dataChunk) -} -inline void PutRequest::set_datachunk(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_datachunk()) { - clear_data(); - set_has_datachunk(); - data_.datachunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.datachunk_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:blob.PutRequest.dataChunk) -} -inline void PutRequest::set_datachunk(const void* value, - size_t size) { - if (!_internal_has_datachunk()) { - clear_data(); - set_has_datachunk(); - data_.datachunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.datachunk_.InitDefault(); } - data_.datachunk_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:blob.PutRequest.dataChunk) + _impl_.data_.datachunk_.Set(value, GetArenaForAllocation()); } inline std::string* PutRequest::_internal_mutable_datachunk() { if (!_internal_has_datachunk()) { clear_data(); set_has_datachunk(); - data_.datachunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.data_.datachunk_.InitDefault(); } - return data_.datachunk_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.data_.datachunk_.Mutable( GetArenaForAllocation()); } inline std::string* PutRequest::release_datachunk() { // @@protoc_insertion_point(field_release:blob.PutRequest.dataChunk) if (_internal_has_datachunk()) { clear_has_data(); - return data_.datachunk_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.data_.datachunk_.Release(); } else { return nullptr; } @@ -1195,11 +1133,7 @@ } if (datachunk != nullptr) { set_has_datachunk(); - data_.datachunk_.UnsafeSetDefault(datachunk); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(datachunk); - } + _impl_.data_.datachunk_.InitAllocated(datachunk, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:blob.PutRequest.dataChunk) } @@ -1208,10 +1142,10 @@ return data_case() != DATA_NOT_SET; } inline void PutRequest::clear_has_data() { - _oneof_case_[0] = DATA_NOT_SET; + _impl_._oneof_case_[0] = DATA_NOT_SET; } inline PutRequest::DataCase PutRequest::data_case() const { - return PutRequest::DataCase(_oneof_case_[0]); + return PutRequest::DataCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- @@ -1219,10 +1153,10 @@ // bool dataExists = 1; inline void PutResponse::clear_dataexists() { - dataexists_ = false; + _impl_.dataexists_ = false; } inline bool PutResponse::_internal_dataexists() const { - return dataexists_; + return _impl_.dataexists_; } inline bool PutResponse::dataexists() const { // @@protoc_insertion_point(field_get:blob.PutResponse.dataExists) @@ -1230,7 +1164,7 @@ } inline void PutResponse::_internal_set_dataexists(bool value) { - dataexists_ = value; + _impl_.dataexists_ = value; } inline void PutResponse::set_dataexists(bool value) { _internal_set_dataexists(value); @@ -1243,53 +1177,38 @@ // string holder = 1; inline void GetRequest::clear_holder() { - holder_.ClearToEmpty(); + _impl_.holder_.ClearToEmpty(); } inline const std::string& GetRequest::holder() const { // @@protoc_insertion_point(field_get:blob.GetRequest.holder) return _internal_holder(); } -inline void GetRequest::set_holder(const std::string& value) { - _internal_set_holder(value); +template +inline PROTOBUF_ALWAYS_INLINE +void GetRequest::set_holder(ArgT0&& arg0, ArgT... args) { + + _impl_.holder_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:blob.GetRequest.holder) } inline std::string* GetRequest::mutable_holder() { + std::string* _s = _internal_mutable_holder(); // @@protoc_insertion_point(field_mutable:blob.GetRequest.holder) - return _internal_mutable_holder(); + return _s; } inline const std::string& GetRequest::_internal_holder() const { - return holder_.Get(); + return _impl_.holder_.Get(); } inline void GetRequest::_internal_set_holder(const std::string& value) { - holder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void GetRequest::set_holder(std::string&& value) { - - holder_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:blob.GetRequest.holder) -} -inline void GetRequest::set_holder(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - holder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:blob.GetRequest.holder) -} -inline void GetRequest::set_holder(const char* value, - size_t size) { - - holder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:blob.GetRequest.holder) + _impl_.holder_.Set(value, GetArenaForAllocation()); } inline std::string* GetRequest::_internal_mutable_holder() { - return holder_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.holder_.Mutable(GetArenaForAllocation()); } inline std::string* GetRequest::release_holder() { // @@protoc_insertion_point(field_release:blob.GetRequest.holder) - return holder_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.holder_.Release(); } inline void GetRequest::set_allocated_holder(std::string* holder) { if (holder != nullptr) { @@ -1297,8 +1216,12 @@ } else { } - holder_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), holder, - GetArena()); + _impl_.holder_.SetAllocated(holder, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.holder_.IsDefault()) { + _impl_.holder_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:blob.GetRequest.holder) } @@ -1308,53 +1231,38 @@ // bytes dataChunk = 1; inline void GetResponse::clear_datachunk() { - datachunk_.ClearToEmpty(); + _impl_.datachunk_.ClearToEmpty(); } inline const std::string& GetResponse::datachunk() const { // @@protoc_insertion_point(field_get:blob.GetResponse.dataChunk) return _internal_datachunk(); } -inline void GetResponse::set_datachunk(const std::string& value) { - _internal_set_datachunk(value); +template +inline PROTOBUF_ALWAYS_INLINE +void GetResponse::set_datachunk(ArgT0&& arg0, ArgT... args) { + + _impl_.datachunk_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:blob.GetResponse.dataChunk) } inline std::string* GetResponse::mutable_datachunk() { + std::string* _s = _internal_mutable_datachunk(); // @@protoc_insertion_point(field_mutable:blob.GetResponse.dataChunk) - return _internal_mutable_datachunk(); + return _s; } inline const std::string& GetResponse::_internal_datachunk() const { - return datachunk_.Get(); + return _impl_.datachunk_.Get(); } inline void GetResponse::_internal_set_datachunk(const std::string& value) { - datachunk_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void GetResponse::set_datachunk(std::string&& value) { - - datachunk_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:blob.GetResponse.dataChunk) -} -inline void GetResponse::set_datachunk(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - datachunk_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:blob.GetResponse.dataChunk) -} -inline void GetResponse::set_datachunk(const void* value, - size_t size) { - - datachunk_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:blob.GetResponse.dataChunk) + _impl_.datachunk_.Set(value, GetArenaForAllocation()); } inline std::string* GetResponse::_internal_mutable_datachunk() { - return datachunk_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.datachunk_.Mutable(GetArenaForAllocation()); } inline std::string* GetResponse::release_datachunk() { // @@protoc_insertion_point(field_release:blob.GetResponse.dataChunk) - return datachunk_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.datachunk_.Release(); } inline void GetResponse::set_allocated_datachunk(std::string* datachunk) { if (datachunk != nullptr) { @@ -1362,8 +1270,12 @@ } else { } - datachunk_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), datachunk, - GetArena()); + _impl_.datachunk_.SetAllocated(datachunk, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.datachunk_.IsDefault()) { + _impl_.datachunk_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:blob.GetResponse.dataChunk) } @@ -1373,53 +1285,38 @@ // string holder = 1; inline void RemoveRequest::clear_holder() { - holder_.ClearToEmpty(); + _impl_.holder_.ClearToEmpty(); } inline const std::string& RemoveRequest::holder() const { // @@protoc_insertion_point(field_get:blob.RemoveRequest.holder) return _internal_holder(); } -inline void RemoveRequest::set_holder(const std::string& value) { - _internal_set_holder(value); +template +inline PROTOBUF_ALWAYS_INLINE +void RemoveRequest::set_holder(ArgT0&& arg0, ArgT... args) { + + _impl_.holder_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:blob.RemoveRequest.holder) } inline std::string* RemoveRequest::mutable_holder() { + std::string* _s = _internal_mutable_holder(); // @@protoc_insertion_point(field_mutable:blob.RemoveRequest.holder) - return _internal_mutable_holder(); + return _s; } inline const std::string& RemoveRequest::_internal_holder() const { - return holder_.Get(); + return _impl_.holder_.Get(); } inline void RemoveRequest::_internal_set_holder(const std::string& value) { - holder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void RemoveRequest::set_holder(std::string&& value) { - - holder_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:blob.RemoveRequest.holder) -} -inline void RemoveRequest::set_holder(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - holder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:blob.RemoveRequest.holder) -} -inline void RemoveRequest::set_holder(const char* value, - size_t size) { - - holder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:blob.RemoveRequest.holder) + _impl_.holder_.Set(value, GetArenaForAllocation()); } inline std::string* RemoveRequest::_internal_mutable_holder() { - return holder_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.holder_.Mutable(GetArenaForAllocation()); } inline std::string* RemoveRequest::release_holder() { // @@protoc_insertion_point(field_release:blob.RemoveRequest.holder) - return holder_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.holder_.Release(); } inline void RemoveRequest::set_allocated_holder(std::string* holder) { if (holder != nullptr) { @@ -1427,8 +1324,12 @@ } else { } - holder_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), holder, - GetArena()); + _impl_.holder_.SetAllocated(holder, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.holder_.IsDefault()) { + _impl_.holder_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:blob.RemoveRequest.holder) } diff --git a/native/cpp/CommonCpp/grpc/_generated/blob.pb.cc b/native/cpp/CommonCpp/grpc/_generated/blob.pb.cc --- a/native/cpp/CommonCpp/grpc/_generated/blob.pb.cc +++ b/native/cpp/CommonCpp/grpc/_generated/blob.pb.cc @@ -16,121 +16,136 @@ #include PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace blob { -constexpr PutRequest::PutRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : _oneof_case_{}{} +PROTOBUF_CONSTEXPR PutRequest::PutRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.data_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} struct PutRequestDefaultTypeInternal { - constexpr PutRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PutRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~PutRequestDefaultTypeInternal() {} union { PutRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PutRequestDefaultTypeInternal _PutRequest_default_instance_; -constexpr PutResponse::PutResponse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : dataexists_(false){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PutRequestDefaultTypeInternal _PutRequest_default_instance_; +PROTOBUF_CONSTEXPR PutResponse::PutResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.dataexists_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} struct PutResponseDefaultTypeInternal { - constexpr PutResponseDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PutResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~PutResponseDefaultTypeInternal() {} union { PutResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PutResponseDefaultTypeInternal _PutResponse_default_instance_; -constexpr GetRequest::GetRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : holder_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PutResponseDefaultTypeInternal _PutResponse_default_instance_; +PROTOBUF_CONSTEXPR GetRequest::GetRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.holder_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct GetRequestDefaultTypeInternal { - constexpr GetRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetRequestDefaultTypeInternal() {} union { GetRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetRequestDefaultTypeInternal _GetRequest_default_instance_; -constexpr GetResponse::GetResponse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : datachunk_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRequestDefaultTypeInternal _GetRequest_default_instance_; +PROTOBUF_CONSTEXPR GetResponse::GetResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.datachunk_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct GetResponseDefaultTypeInternal { - constexpr GetResponseDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetResponseDefaultTypeInternal() {} union { GetResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetResponseDefaultTypeInternal _GetResponse_default_instance_; -constexpr RemoveRequest::RemoveRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : holder_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetResponseDefaultTypeInternal _GetResponse_default_instance_; +PROTOBUF_CONSTEXPR RemoveRequest::RemoveRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.holder_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct RemoveRequestDefaultTypeInternal { - constexpr RemoveRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR RemoveRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~RemoveRequestDefaultTypeInternal() {} union { RemoveRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RemoveRequestDefaultTypeInternal _RemoveRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveRequestDefaultTypeInternal _RemoveRequest_default_instance_; } // namespace blob -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_blob_2eproto[5]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_blob_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_blob_2eproto = nullptr; +static ::_pb::Metadata file_level_metadata_blob_2eproto[5]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_blob_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_blob_2eproto = nullptr; -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_blob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const uint32_t TableStruct_blob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::blob::PutRequest, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::blob::PutRequest, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::blob::PutRequest, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::blob::PutRequest, data_), + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::blob::PutRequest, _impl_.data_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::blob::PutResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::blob::PutResponse, dataexists_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::blob::PutResponse, _impl_.dataexists_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::blob::GetRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::blob::GetRequest, holder_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::blob::GetRequest, _impl_.holder_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::blob::GetResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::blob::GetResponse, datachunk_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::blob::GetResponse, _impl_.datachunk_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::blob::RemoveRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::blob::RemoveRequest, holder_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::blob::RemoveRequest, _impl_.holder_), }; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::blob::PutRequest)}, - { 9, -1, sizeof(::blob::PutResponse)}, - { 15, -1, sizeof(::blob::GetRequest)}, - { 21, -1, sizeof(::blob::GetResponse)}, - { 27, -1, sizeof(::blob::RemoveRequest)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::blob::PutRequest)}, + { 10, -1, -1, sizeof(::blob::PutResponse)}, + { 17, -1, -1, sizeof(::blob::GetRequest)}, + { 24, -1, -1, sizeof(::blob::GetResponse)}, + { 31, -1, -1, sizeof(::blob::RemoveRequest)}, }; -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::blob::_PutRequest_default_instance_), - reinterpret_cast(&::blob::_PutResponse_default_instance_), - reinterpret_cast(&::blob::_GetRequest_default_instance_), - reinterpret_cast(&::blob::_GetResponse_default_instance_), - reinterpret_cast(&::blob::_RemoveRequest_default_instance_), +static const ::_pb::Message* const file_default_instances[] = { + &::blob::_PutRequest_default_instance_._instance, + &::blob::_PutResponse_default_instance_._instance, + &::blob::_GetRequest_default_instance_._instance, + &::blob::_GetResponse_default_instance_._instance, + &::blob::_RemoveRequest_default_instance_._instance, }; const char descriptor_table_protodef_blob_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -146,24 +161,24 @@ "etResponse\"\0000\001\0227\n\006Remove\022\023.blob.RemoveRe" "quest\032\026.google.protobuf.Empty\"\000b\006proto3" ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_blob_2eproto_deps[1] = { +static const ::_pbi::DescriptorTable* const descriptor_table_blob_2eproto_deps[1] = { &::descriptor_table_google_2fprotobuf_2fempty_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_blob_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_blob_2eproto = { - false, false, 439, descriptor_table_protodef_blob_2eproto, "blob.proto", - &descriptor_table_blob_2eproto_once, descriptor_table_blob_2eproto_deps, 1, 5, - schemas, file_default_instances, TableStruct_blob_2eproto::offsets, - file_level_metadata_blob_2eproto, file_level_enum_descriptors_blob_2eproto, file_level_service_descriptors_blob_2eproto, +static ::_pbi::once_flag descriptor_table_blob_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_blob_2eproto = { + false, false, 439, descriptor_table_protodef_blob_2eproto, + "blob.proto", + &descriptor_table_blob_2eproto_once, descriptor_table_blob_2eproto_deps, 1, 5, + schemas, file_default_instances, TableStruct_blob_2eproto::offsets, + file_level_metadata_blob_2eproto, file_level_enum_descriptors_blob_2eproto, + file_level_service_descriptors_blob_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::Metadata -descriptor_table_blob_2eproto_metadata_getter(int index) { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_blob_2eproto); - return descriptor_table_blob_2eproto.file_level_metadata[index]; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_blob_2eproto_getter() { + return &descriptor_table_blob_2eproto; } // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_blob_2eproto(&descriptor_table_blob_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_blob_2eproto(&descriptor_table_blob_2eproto); namespace blob { // =================================================================== @@ -172,27 +187,33 @@ public: }; -PutRequest::PutRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +PutRequest::PutRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:blob.PutRequest) } PutRequest::PutRequest(const PutRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + PutRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.data_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); clear_has_data(); switch (from.data_case()) { case kHolder: { - _internal_set_holder(from._internal_holder()); + _this->_internal_set_holder(from._internal_holder()); break; } case kBlobHash: { - _internal_set_blobhash(from._internal_blobhash()); + _this->_internal_set_blobhash(from._internal_blobhash()); break; } case kDataChunk: { - _internal_set_datachunk(from._internal_datachunk()); + _this->_internal_set_datachunk(from._internal_datachunk()); break; } case DATA_NOT_SET: { @@ -202,59 +223,64 @@ // @@protoc_insertion_point(copy_constructor:blob.PutRequest) } -void PutRequest::SharedCtor() { -clear_has_data(); +inline void PutRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.data_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_data(); } PutRequest::~PutRequest() { // @@protoc_insertion_point(destructor:blob.PutRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void PutRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void PutRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_data()) { clear_data(); } } -void PutRequest::ArenaDtor(void* object) { - PutRequest* _this = reinterpret_cast< PutRequest* >(object); - (void)_this; -} -void PutRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void PutRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void PutRequest::clear_data() { // @@protoc_insertion_point(one_of_clear_start:blob.PutRequest) switch (data_case()) { case kHolder: { - data_.holder_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.holder_.Destroy(); break; } case kBlobHash: { - data_.blobhash_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.blobhash_.Destroy(); break; } case kDataChunk: { - data_.datachunk_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_.data_.datachunk_.Destroy(); break; } case DATA_NOT_SET: { break; } } - _oneof_case_[0] = DATA_NOT_SET; + _impl_._oneof_case_[0] = DATA_NOT_SET; } void PutRequest::Clear() { // @@protoc_insertion_point(message_clear_start:blob.PutRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -262,65 +288,68 @@ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* PutRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* PutRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string holder = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_holder(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "blob.PutRequest.holder")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "blob.PutRequest.holder")); + } else + goto handle_unusual; continue; // string blobHash = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_blobhash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "blob.PutRequest.blobHash")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "blob.PutRequest.blobHash")); + } else + goto handle_unusual; continue; // bytes dataChunk = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_datachunk(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* PutRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* PutRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:blob.PutRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string holder = 1; @@ -350,7 +379,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:blob.PutRequest) @@ -361,7 +390,7 @@ // @@protoc_insertion_point(message_byte_size_start:blob.PutRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -391,61 +420,42 @@ break; } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PutRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:blob.PutRequest) - GOOGLE_DCHECK_NE(&from, this); - const PutRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:blob.PutRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:blob.PutRequest) - MergeFrom(*source); - } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void PutRequest::MergeFrom(const PutRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:blob.PutRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PutRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PutRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PutRequest::GetClassData() const { return &_class_data_; } + + +void PutRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:blob.PutRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.data_case()) { case kHolder: { - _internal_set_holder(from._internal_holder()); + _this->_internal_set_holder(from._internal_holder()); break; } case kBlobHash: { - _internal_set_blobhash(from._internal_blobhash()); + _this->_internal_set_blobhash(from._internal_blobhash()); break; } case kDataChunk: { - _internal_set_datachunk(from._internal_datachunk()); + _this->_internal_set_datachunk(from._internal_datachunk()); break; } case DATA_NOT_SET: { break; } } -} - -void PutRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:blob.PutRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PutRequest::CopyFrom(const PutRequest& from) { @@ -461,119 +471,129 @@ void PutRequest::InternalSwap(PutRequest* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(data_, other->data_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.data_, other->_impl_.data_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata PutRequest::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_blob_2eproto_getter, &descriptor_table_blob_2eproto_once, + file_level_metadata_blob_2eproto[0]); } - // =================================================================== class PutResponse::_Internal { public: }; -PutResponse::PutResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +PutResponse::PutResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:blob.PutResponse) } PutResponse::PutResponse(const PutResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + PutResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.dataexists_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - dataexists_ = from.dataexists_; + _this->_impl_.dataexists_ = from._impl_.dataexists_; // @@protoc_insertion_point(copy_constructor:blob.PutResponse) } -void PutResponse::SharedCtor() { -dataexists_ = false; +inline void PutResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.dataexists_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; } PutResponse::~PutResponse() { // @@protoc_insertion_point(destructor:blob.PutResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void PutResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void PutResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -void PutResponse::ArenaDtor(void* object) { - PutResponse* _this = reinterpret_cast< PutResponse* >(object); - (void)_this; -} -void PutResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void PutResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void PutResponse::Clear() { // @@protoc_insertion_point(message_clear_start:blob.PutResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - dataexists_ = false; + _impl_.dataexists_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* PutResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* PutResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // bool dataExists = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - dataexists_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.dataexists_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* PutResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* PutResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:blob.PutResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // bool dataExists = 1; - if (this->dataexists() != 0) { + if (this->_internal_dataexists() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_dataexists(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_dataexists(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:blob.PutResponse) @@ -584,56 +604,37 @@ // @@protoc_insertion_point(message_byte_size_start:blob.PutResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool dataExists = 1; - if (this->dataexists() != 0) { + if (this->_internal_dataexists() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PutResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:blob.PutResponse) - GOOGLE_DCHECK_NE(&from, this); - const PutResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:blob.PutResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:blob.PutResponse) - MergeFrom(*source); - } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void PutResponse::MergeFrom(const PutResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:blob.PutResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PutResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PutResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PutResponse::GetClassData() const { return &_class_data_; } + + +void PutResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:blob.PutResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.dataexists() != 0) { - _internal_set_dataexists(from._internal_dataexists()); + if (from._internal_dataexists() != 0) { + _this->_internal_set_dataexists(from._internal_dataexists()); } -} - -void PutResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:blob.PutResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PutResponse::CopyFrom(const PutResponse& from) { @@ -649,119 +650,136 @@ void PutResponse::InternalSwap(PutResponse* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(dataexists_, other->dataexists_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.dataexists_, other->_impl_.dataexists_); } ::PROTOBUF_NAMESPACE_ID::Metadata PutResponse::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_blob_2eproto_getter, &descriptor_table_blob_2eproto_once, + file_level_metadata_blob_2eproto[1]); } - // =================================================================== class GetRequest::_Internal { public: }; -GetRequest::GetRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +GetRequest::GetRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:blob.GetRequest) } GetRequest::GetRequest(const GetRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + GetRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.holder_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - holder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.holder_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.holder_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_holder().empty()) { - holder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_holder(), - GetArena()); + _this->_impl_.holder_.Set(from._internal_holder(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:blob.GetRequest) } -void GetRequest::SharedCtor() { -holder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GetRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.holder_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.holder_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.holder_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } GetRequest::~GetRequest() { // @@protoc_insertion_point(destructor:blob.GetRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void GetRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - holder_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GetRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.holder_.Destroy(); } -void GetRequest::ArenaDtor(void* object) { - GetRequest* _this = reinterpret_cast< GetRequest* >(object); - (void)_this; -} -void GetRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void GetRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void GetRequest::Clear() { // @@protoc_insertion_point(message_clear_start:blob.GetRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - holder_.ClearToEmpty(); + _impl_.holder_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* GetRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* GetRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string holder = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_holder(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "blob.GetRequest.holder")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + CHK_(::_pbi::VerifyUTF8(str, "blob.GetRequest.holder")); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* GetRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:blob.GetRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string holder = 1; - if (this->holder().size() > 0) { + if (!this->_internal_holder().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_holder().data(), static_cast(this->_internal_holder().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -771,7 +789,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:blob.GetRequest) @@ -782,58 +800,39 @@ // @@protoc_insertion_point(message_byte_size_start:blob.GetRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string holder = 1; - if (this->holder().size() > 0) { + if (!this->_internal_holder().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_holder()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:blob.GetRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:blob.GetRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:blob.GetRequest) - MergeFrom(*source); - } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void GetRequest::MergeFrom(const GetRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:blob.GetRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRequest::GetClassData() const { return &_class_data_; } + + +void GetRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:blob.GetRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.holder().size() > 0) { - _internal_set_holder(from._internal_holder()); + if (!from._internal_holder().empty()) { + _this->_internal_set_holder(from._internal_holder()); } -} - -void GetRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:blob.GetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetRequest::CopyFrom(const GetRequest& from) { @@ -849,124 +848,146 @@ void GetRequest::InternalSwap(GetRequest* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - holder_.Swap(&other->holder_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.holder_, lhs_arena, + &other->_impl_.holder_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata GetRequest::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_blob_2eproto_getter, &descriptor_table_blob_2eproto_once, + file_level_metadata_blob_2eproto[2]); } - // =================================================================== class GetResponse::_Internal { public: }; -GetResponse::GetResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +GetResponse::GetResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:blob.GetResponse) } GetResponse::GetResponse(const GetResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + GetResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.datachunk_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - datachunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.datachunk_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.datachunk_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_datachunk().empty()) { - datachunk_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_datachunk(), - GetArena()); + _this->_impl_.datachunk_.Set(from._internal_datachunk(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:blob.GetResponse) } -void GetResponse::SharedCtor() { -datachunk_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GetResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.datachunk_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.datachunk_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.datachunk_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } GetResponse::~GetResponse() { // @@protoc_insertion_point(destructor:blob.GetResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void GetResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - datachunk_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GetResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.datachunk_.Destroy(); } -void GetResponse::ArenaDtor(void* object) { - GetResponse* _this = reinterpret_cast< GetResponse* >(object); - (void)_this; -} -void GetResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void GetResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void GetResponse::Clear() { // @@protoc_insertion_point(message_clear_start:blob.GetResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - datachunk_.ClearToEmpty(); + _impl_.datachunk_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* GetResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* GetResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // bytes dataChunk = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_datachunk(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* GetResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:blob.GetResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // bytes dataChunk = 1; - if (this->datachunk().size() > 0) { + if (!this->_internal_datachunk().empty()) { target = stream->WriteBytesMaybeAliased( 1, this->_internal_datachunk(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:blob.GetResponse) @@ -977,58 +998,39 @@ // @@protoc_insertion_point(message_byte_size_start:blob.GetResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bytes dataChunk = 1; - if (this->datachunk().size() > 0) { + if (!this->_internal_datachunk().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_datachunk()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:blob.GetResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:blob.GetResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:blob.GetResponse) - MergeFrom(*source); - } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void GetResponse::MergeFrom(const GetResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:blob.GetResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetResponse::GetClassData() const { return &_class_data_; } + + +void GetResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:blob.GetResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.datachunk().size() > 0) { - _internal_set_datachunk(from._internal_datachunk()); + if (!from._internal_datachunk().empty()) { + _this->_internal_set_datachunk(from._internal_datachunk()); } -} - -void GetResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:blob.GetResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetResponse::CopyFrom(const GetResponse& from) { @@ -1044,119 +1046,141 @@ void GetResponse::InternalSwap(GetResponse* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - datachunk_.Swap(&other->datachunk_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.datachunk_, lhs_arena, + &other->_impl_.datachunk_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata GetResponse::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_blob_2eproto_getter, &descriptor_table_blob_2eproto_once, + file_level_metadata_blob_2eproto[3]); } - // =================================================================== class RemoveRequest::_Internal { public: }; -RemoveRequest::RemoveRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +RemoveRequest::RemoveRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:blob.RemoveRequest) } RemoveRequest::RemoveRequest(const RemoveRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + RemoveRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.holder_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - holder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.holder_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.holder_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_holder().empty()) { - holder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_holder(), - GetArena()); + _this->_impl_.holder_.Set(from._internal_holder(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:blob.RemoveRequest) } -void RemoveRequest::SharedCtor() { -holder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void RemoveRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.holder_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.holder_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.holder_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } RemoveRequest::~RemoveRequest() { // @@protoc_insertion_point(destructor:blob.RemoveRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void RemoveRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - holder_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void RemoveRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.holder_.Destroy(); } -void RemoveRequest::ArenaDtor(void* object) { - RemoveRequest* _this = reinterpret_cast< RemoveRequest* >(object); - (void)_this; -} -void RemoveRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void RemoveRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void RemoveRequest::Clear() { // @@protoc_insertion_point(message_clear_start:blob.RemoveRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - holder_.ClearToEmpty(); + _impl_.holder_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* RemoveRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* RemoveRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string holder = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_holder(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "blob.RemoveRequest.holder")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "blob.RemoveRequest.holder")); + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* RemoveRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* RemoveRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:blob.RemoveRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string holder = 1; - if (this->holder().size() > 0) { + if (!this->_internal_holder().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_holder().data(), static_cast(this->_internal_holder().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1166,7 +1190,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:blob.RemoveRequest) @@ -1177,58 +1201,39 @@ // @@protoc_insertion_point(message_byte_size_start:blob.RemoveRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string holder = 1; - if (this->holder().size() > 0) { + if (!this->_internal_holder().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_holder()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RemoveRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:blob.RemoveRequest) - GOOGLE_DCHECK_NE(&from, this); - const RemoveRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:blob.RemoveRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:blob.RemoveRequest) - MergeFrom(*source); - } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void RemoveRequest::MergeFrom(const RemoveRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:blob.RemoveRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoveRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RemoveRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveRequest::GetClassData() const { return &_class_data_; } + + +void RemoveRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:blob.RemoveRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.holder().size() > 0) { - _internal_set_holder(from._internal_holder()); + if (!from._internal_holder().empty()) { + _this->_internal_set_holder(from._internal_holder()); } -} - -void RemoveRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:blob.RemoveRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RemoveRequest::CopyFrom(const RemoveRequest& from) { @@ -1244,31 +1249,42 @@ void RemoveRequest::InternalSwap(RemoveRequest* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - holder_.Swap(&other->holder_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.holder_, lhs_arena, + &other->_impl_.holder_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata RemoveRequest::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_blob_2eproto_getter, &descriptor_table_blob_2eproto_once, + file_level_metadata_blob_2eproto[4]); } - // @@protoc_insertion_point(namespace_scope) } // namespace blob PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::blob::PutRequest* Arena::CreateMaybeMessage< ::blob::PutRequest >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::blob::PutRequest* +Arena::CreateMaybeMessage< ::blob::PutRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::blob::PutRequest >(arena); } -template<> PROTOBUF_NOINLINE ::blob::PutResponse* Arena::CreateMaybeMessage< ::blob::PutResponse >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::blob::PutResponse* +Arena::CreateMaybeMessage< ::blob::PutResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::blob::PutResponse >(arena); } -template<> PROTOBUF_NOINLINE ::blob::GetRequest* Arena::CreateMaybeMessage< ::blob::GetRequest >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::blob::GetRequest* +Arena::CreateMaybeMessage< ::blob::GetRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::blob::GetRequest >(arena); } -template<> PROTOBUF_NOINLINE ::blob::GetResponse* Arena::CreateMaybeMessage< ::blob::GetResponse >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::blob::GetResponse* +Arena::CreateMaybeMessage< ::blob::GetResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::blob::GetResponse >(arena); } -template<> PROTOBUF_NOINLINE ::blob::RemoveRequest* Arena::CreateMaybeMessage< ::blob::RemoveRequest >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::blob::RemoveRequest* +Arena::CreateMaybeMessage< ::blob::RemoveRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::blob::RemoveRequest >(arena); } PROTOBUF_NAMESPACE_CLOSE diff --git a/native/cpp/CommonCpp/grpc/_generated/tunnelbroker.pb.h b/native/cpp/CommonCpp/grpc/_generated/tunnelbroker.pb.h --- a/native/cpp/CommonCpp/grpc/_generated/tunnelbroker.pb.h +++ b/native/cpp/CommonCpp/grpc/_generated/tunnelbroker.pb.h @@ -8,12 +8,12 @@ #include #include -#if PROTOBUF_VERSION < 3015000 +#if PROTOBUF_VERSION < 3021000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3015008 < PROTOBUF_MIN_PROTOC_VERSION +#if 3021005 < 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. @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include @@ -44,18 +43,9 @@ // Internal implementation detail -- do not use these members. struct TableStruct_tunnelbroker_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[19] - 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[]; + static const uint32_t offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tunnelbroker_2eproto; -::PROTOBUF_NAMESPACE_ID::Metadata descriptor_table_tunnelbroker_2eproto_metadata_getter(int index); namespace tunnelbroker { class CheckRequest; struct CheckRequestDefaultTypeInternal; @@ -142,8 +132,8 @@ NewSessionRequest_DeviceTypes_MOBILE = 0, NewSessionRequest_DeviceTypes_WEB = 1, NewSessionRequest_DeviceTypes_KEYSERVER = 2, - NewSessionRequest_DeviceTypes_NewSessionRequest_DeviceTypes_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - NewSessionRequest_DeviceTypes_NewSessionRequest_DeviceTypes_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() + NewSessionRequest_DeviceTypes_NewSessionRequest_DeviceTypes_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + NewSessionRequest_DeviceTypes_NewSessionRequest_DeviceTypes_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; bool NewSessionRequest_DeviceTypes_IsValid(int value); constexpr NewSessionRequest_DeviceTypes NewSessionRequest_DeviceTypes_DeviceTypes_MIN = NewSessionRequest_DeviceTypes_MOBILE; @@ -169,8 +159,8 @@ PRIMARY_ONLINE = 1, PRIMARY_OFFLINE = 2, CURRENT_IS_PRIMARY = 3, - CheckResponseType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - CheckResponseType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() + CheckResponseType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + CheckResponseType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; bool CheckResponseType_IsValid(int value); constexpr CheckResponseType CheckResponseType_MIN = PRIMARY_DOESNT_EXIST; @@ -193,12 +183,12 @@ } // =================================================================== -class SessionSignatureRequest PROTOBUF_FINAL : +class SessionSignatureRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.SessionSignatureRequest) */ { public: inline SessionSignatureRequest() : SessionSignatureRequest(nullptr) {} - virtual ~SessionSignatureRequest(); - explicit constexpr SessionSignatureRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~SessionSignatureRequest() override; + explicit PROTOBUF_CONSTEXPR SessionSignatureRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SessionSignatureRequest(const SessionSignatureRequest& from); SessionSignatureRequest(SessionSignatureRequest&& from) noexcept @@ -211,8 +201,13 @@ return *this; } inline SessionSignatureRequest& operator=(SessionSignatureRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -223,10 +218,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const SessionSignatureRequest& default_instance() { return *internal_default_instance(); @@ -243,7 +238,12 @@ } inline void Swap(SessionSignatureRequest* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -251,55 +251,53 @@ } void UnsafeArenaSwap(SessionSignatureRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline SessionSignatureRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - SessionSignatureRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + SessionSignatureRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SessionSignatureRequest& from); - void MergeFrom(const SessionSignatureRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SessionSignatureRequest& from) { + SessionSignatureRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SessionSignatureRequest* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tunnelbroker.SessionSignatureRequest"; } protected: - explicit SessionSignatureRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SessionSignatureRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -311,16 +309,14 @@ // string deviceID = 1; void clear_deviceid(); const std::string& deviceid() const; - void set_deviceid(const std::string& value); - void set_deviceid(std::string&& value); - void set_deviceid(const char* value); - void set_deviceid(const char* value, size_t size); + template + void set_deviceid(ArgT0&& arg0, ArgT... args); std::string* mutable_deviceid(); - std::string* release_deviceid(); + PROTOBUF_NODISCARD std::string* release_deviceid(); void set_allocated_deviceid(std::string* deviceid); private: const std::string& _internal_deviceid() const; - void _internal_set_deviceid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_deviceid(const std::string& value); std::string* _internal_mutable_deviceid(); public: @@ -331,18 +327,21 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr deviceid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr deviceid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_tunnelbroker_2eproto; }; // ------------------------------------------------------------------- -class SessionSignatureResponse PROTOBUF_FINAL : +class SessionSignatureResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.SessionSignatureResponse) */ { public: inline SessionSignatureResponse() : SessionSignatureResponse(nullptr) {} - virtual ~SessionSignatureResponse(); - explicit constexpr SessionSignatureResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~SessionSignatureResponse() override; + explicit PROTOBUF_CONSTEXPR SessionSignatureResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SessionSignatureResponse(const SessionSignatureResponse& from); SessionSignatureResponse(SessionSignatureResponse&& from) noexcept @@ -355,8 +354,13 @@ return *this; } inline SessionSignatureResponse& operator=(SessionSignatureResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -367,10 +371,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const SessionSignatureResponse& default_instance() { return *internal_default_instance(); @@ -387,7 +391,12 @@ } inline void Swap(SessionSignatureResponse* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -395,55 +404,53 @@ } void UnsafeArenaSwap(SessionSignatureResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline SessionSignatureResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - SessionSignatureResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + SessionSignatureResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SessionSignatureResponse& from); - void MergeFrom(const SessionSignatureResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SessionSignatureResponse& from) { + SessionSignatureResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SessionSignatureResponse* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tunnelbroker.SessionSignatureResponse"; } protected: - explicit SessionSignatureResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SessionSignatureResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -455,16 +462,14 @@ // string toSign = 1; void clear_tosign(); const std::string& tosign() const; - void set_tosign(const std::string& value); - void set_tosign(std::string&& value); - void set_tosign(const char* value); - void set_tosign(const char* value, size_t size); + template + void set_tosign(ArgT0&& arg0, ArgT... args); std::string* mutable_tosign(); - std::string* release_tosign(); + PROTOBUF_NODISCARD std::string* release_tosign(); void set_allocated_tosign(std::string* tosign); private: const std::string& _internal_tosign() const; - void _internal_set_tosign(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_tosign(const std::string& value); std::string* _internal_mutable_tosign(); public: @@ -475,18 +480,21 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tosign_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tosign_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_tunnelbroker_2eproto; }; // ------------------------------------------------------------------- -class NewSessionRequest PROTOBUF_FINAL : +class NewSessionRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.NewSessionRequest) */ { public: inline NewSessionRequest() : NewSessionRequest(nullptr) {} - virtual ~NewSessionRequest(); - explicit constexpr NewSessionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~NewSessionRequest() override; + explicit PROTOBUF_CONSTEXPR NewSessionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); NewSessionRequest(const NewSessionRequest& from); NewSessionRequest(NewSessionRequest&& from) noexcept @@ -499,8 +507,13 @@ return *this; } inline NewSessionRequest& operator=(NewSessionRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -511,10 +524,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const NewSessionRequest& default_instance() { return *internal_default_instance(); @@ -531,7 +544,12 @@ } inline void Swap(NewSessionRequest* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -539,55 +557,53 @@ } void UnsafeArenaSwap(NewSessionRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline NewSessionRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - NewSessionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + NewSessionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const NewSessionRequest& from); - void MergeFrom(const NewSessionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const NewSessionRequest& from) { + NewSessionRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(NewSessionRequest* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tunnelbroker.NewSessionRequest"; } protected: - explicit NewSessionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit NewSessionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -637,100 +653,88 @@ // string deviceID = 1; void clear_deviceid(); const std::string& deviceid() const; - void set_deviceid(const std::string& value); - void set_deviceid(std::string&& value); - void set_deviceid(const char* value); - void set_deviceid(const char* value, size_t size); + template + void set_deviceid(ArgT0&& arg0, ArgT... args); std::string* mutable_deviceid(); - std::string* release_deviceid(); + PROTOBUF_NODISCARD std::string* release_deviceid(); void set_allocated_deviceid(std::string* deviceid); private: const std::string& _internal_deviceid() const; - void _internal_set_deviceid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_deviceid(const std::string& value); std::string* _internal_mutable_deviceid(); public: // string publicKey = 2; void clear_publickey(); const std::string& publickey() const; - void set_publickey(const std::string& value); - void set_publickey(std::string&& value); - void set_publickey(const char* value); - void set_publickey(const char* value, size_t size); + template + void set_publickey(ArgT0&& arg0, ArgT... args); std::string* mutable_publickey(); - std::string* release_publickey(); + PROTOBUF_NODISCARD std::string* release_publickey(); void set_allocated_publickey(std::string* publickey); private: const std::string& _internal_publickey() const; - void _internal_set_publickey(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_publickey(const std::string& value); std::string* _internal_mutable_publickey(); public: // string signature = 3; void clear_signature(); const std::string& signature() const; - void set_signature(const std::string& value); - void set_signature(std::string&& value); - void set_signature(const char* value); - void set_signature(const char* value, size_t size); + template + void set_signature(ArgT0&& arg0, ArgT... args); std::string* mutable_signature(); - std::string* release_signature(); + PROTOBUF_NODISCARD std::string* release_signature(); void set_allocated_signature(std::string* signature); private: const std::string& _internal_signature() const; - void _internal_set_signature(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_signature(const std::string& value); std::string* _internal_mutable_signature(); public: - // string notifyToken = 4; + // optional string notifyToken = 4; bool has_notifytoken() const; private: bool _internal_has_notifytoken() const; public: void clear_notifytoken(); const std::string& notifytoken() const; - void set_notifytoken(const std::string& value); - void set_notifytoken(std::string&& value); - void set_notifytoken(const char* value); - void set_notifytoken(const char* value, size_t size); + template + void set_notifytoken(ArgT0&& arg0, ArgT... args); std::string* mutable_notifytoken(); - std::string* release_notifytoken(); + PROTOBUF_NODISCARD std::string* release_notifytoken(); void set_allocated_notifytoken(std::string* notifytoken); private: const std::string& _internal_notifytoken() const; - void _internal_set_notifytoken(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_notifytoken(const std::string& value); std::string* _internal_mutable_notifytoken(); public: // string deviceAppVersion = 6; void clear_deviceappversion(); const std::string& deviceappversion() const; - void set_deviceappversion(const std::string& value); - void set_deviceappversion(std::string&& value); - void set_deviceappversion(const char* value); - void set_deviceappversion(const char* value, size_t size); + template + void set_deviceappversion(ArgT0&& arg0, ArgT... args); std::string* mutable_deviceappversion(); - std::string* release_deviceappversion(); + PROTOBUF_NODISCARD std::string* release_deviceappversion(); void set_allocated_deviceappversion(std::string* deviceappversion); private: const std::string& _internal_deviceappversion() const; - void _internal_set_deviceappversion(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_deviceappversion(const std::string& value); std::string* _internal_mutable_deviceappversion(); public: // string deviceOS = 7; void clear_deviceos(); const std::string& deviceos() const; - void set_deviceos(const std::string& value); - void set_deviceos(std::string&& value); - void set_deviceos(const char* value); - void set_deviceos(const char* value, size_t size); + template + void set_deviceos(ArgT0&& arg0, ArgT... args); std::string* mutable_deviceos(); - std::string* release_deviceos(); + PROTOBUF_NODISCARD std::string* release_deviceos(); void set_allocated_deviceos(std::string* deviceos); private: const std::string& _internal_deviceos() const; - void _internal_set_deviceos(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_deviceos(const std::string& value); std::string* _internal_mutable_deviceos(); public: @@ -750,25 +754,28 @@ template 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 deviceid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr publickey_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr signature_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr notifytoken_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr deviceappversion_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr deviceos_; - int devicetype_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr deviceid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr publickey_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr signature_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr notifytoken_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr deviceappversion_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr deviceos_; + int devicetype_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_tunnelbroker_2eproto; }; // ------------------------------------------------------------------- -class NewSessionResponse PROTOBUF_FINAL : +class NewSessionResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.NewSessionResponse) */ { public: inline NewSessionResponse() : NewSessionResponse(nullptr) {} - virtual ~NewSessionResponse(); - explicit constexpr NewSessionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~NewSessionResponse() override; + explicit PROTOBUF_CONSTEXPR NewSessionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); NewSessionResponse(const NewSessionResponse& from); NewSessionResponse(NewSessionResponse&& from) noexcept @@ -781,8 +788,13 @@ return *this; } inline NewSessionResponse& operator=(NewSessionResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -793,10 +805,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const NewSessionResponse& default_instance() { return *internal_default_instance(); @@ -813,7 +825,12 @@ } inline void Swap(NewSessionResponse* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -821,55 +838,53 @@ } void UnsafeArenaSwap(NewSessionResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline NewSessionResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - NewSessionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + NewSessionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const NewSessionResponse& from); - void MergeFrom(const NewSessionResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const NewSessionResponse& from) { + NewSessionResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(NewSessionResponse* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tunnelbroker.NewSessionResponse"; } protected: - explicit NewSessionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit NewSessionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -881,16 +896,14 @@ // string sessionID = 1; void clear_sessionid(); const std::string& sessionid() const; - void set_sessionid(const std::string& value); - void set_sessionid(std::string&& value); - void set_sessionid(const char* value); - void set_sessionid(const char* value, size_t size); + template + void set_sessionid(ArgT0&& arg0, ArgT... args); std::string* mutable_sessionid(); - std::string* release_sessionid(); + PROTOBUF_NODISCARD std::string* release_sessionid(); void set_allocated_sessionid(std::string* sessionid); private: const std::string& _internal_sessionid() const; - void _internal_set_sessionid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_sessionid(const std::string& value); std::string* _internal_mutable_sessionid(); public: @@ -901,18 +914,21 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sessionid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sessionid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_tunnelbroker_2eproto; }; // ------------------------------------------------------------------- -class SendRequest PROTOBUF_FINAL : +class SendRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.SendRequest) */ { public: inline SendRequest() : SendRequest(nullptr) {} - virtual ~SendRequest(); - explicit constexpr SendRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~SendRequest() override; + explicit PROTOBUF_CONSTEXPR SendRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SendRequest(const SendRequest& from); SendRequest(SendRequest&& from) noexcept @@ -925,8 +941,13 @@ return *this; } inline SendRequest& operator=(SendRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -937,10 +958,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const SendRequest& default_instance() { return *internal_default_instance(); @@ -957,7 +978,12 @@ } inline void Swap(SendRequest* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -965,55 +991,53 @@ } void UnsafeArenaSwap(SendRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline SendRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - SendRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + SendRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SendRequest& from); - void MergeFrom(const SendRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SendRequest& from) { + SendRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SendRequest* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tunnelbroker.SendRequest"; } protected: - explicit SendRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SendRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1052,48 +1076,42 @@ // string sessionID = 1; void clear_sessionid(); const std::string& sessionid() const; - void set_sessionid(const std::string& value); - void set_sessionid(std::string&& value); - void set_sessionid(const char* value); - void set_sessionid(const char* value, size_t size); + template + void set_sessionid(ArgT0&& arg0, ArgT... args); std::string* mutable_sessionid(); - std::string* release_sessionid(); + PROTOBUF_NODISCARD std::string* release_sessionid(); void set_allocated_sessionid(std::string* sessionid); private: const std::string& _internal_sessionid() const; - void _internal_set_sessionid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_sessionid(const std::string& value); std::string* _internal_mutable_sessionid(); public: // string toDeviceID = 2; void clear_todeviceid(); const std::string& todeviceid() const; - void set_todeviceid(const std::string& value); - void set_todeviceid(std::string&& value); - void set_todeviceid(const char* value); - void set_todeviceid(const char* value, size_t size); + template + void set_todeviceid(ArgT0&& arg0, ArgT... args); std::string* mutable_todeviceid(); - std::string* release_todeviceid(); + PROTOBUF_NODISCARD std::string* release_todeviceid(); void set_allocated_todeviceid(std::string* todeviceid); private: const std::string& _internal_todeviceid() const; - void _internal_set_todeviceid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_todeviceid(const std::string& value); std::string* _internal_mutable_todeviceid(); public: // bytes payload = 3; void clear_payload(); const std::string& payload() const; - void set_payload(const std::string& value); - void set_payload(std::string&& value); - void set_payload(const char* value); - void set_payload(const void* value, size_t size); + template + void set_payload(ArgT0&& arg0, ArgT... args); std::string* mutable_payload(); - std::string* release_payload(); + PROTOBUF_NODISCARD std::string* release_payload(); void set_allocated_payload(std::string* payload); private: const std::string& _internal_payload() const; - void _internal_set_payload(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_payload(const std::string& value); std::string* _internal_mutable_payload(); public: @@ -1104,21 +1122,24 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField blobhashes_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sessionid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr todeviceid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField blobhashes_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sessionid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr todeviceid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_tunnelbroker_2eproto; }; // ------------------------------------------------------------------- -class GetRequest PROTOBUF_FINAL : +class GetRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.GetRequest) */ { public: inline GetRequest() : GetRequest(nullptr) {} - virtual ~GetRequest(); - explicit constexpr GetRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~GetRequest() override; + explicit PROTOBUF_CONSTEXPR GetRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); GetRequest(const GetRequest& from); GetRequest(GetRequest&& from) noexcept @@ -1131,8 +1152,13 @@ return *this; } inline GetRequest& operator=(GetRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -1143,10 +1169,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const GetRequest& default_instance() { return *internal_default_instance(); @@ -1163,7 +1189,12 @@ } inline void Swap(GetRequest* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1171,55 +1202,53 @@ } void UnsafeArenaSwap(GetRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GetRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + GetRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetRequest& from); - void MergeFrom(const GetRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetRequest& from) { + GetRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(GetRequest* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tunnelbroker.GetRequest"; } protected: - explicit GetRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit GetRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1231,16 +1260,14 @@ // string sessionID = 1; void clear_sessionid(); const std::string& sessionid() const; - void set_sessionid(const std::string& value); - void set_sessionid(std::string&& value); - void set_sessionid(const char* value); - void set_sessionid(const char* value, size_t size); + template + void set_sessionid(ArgT0&& arg0, ArgT... args); std::string* mutable_sessionid(); - std::string* release_sessionid(); + PROTOBUF_NODISCARD std::string* release_sessionid(); void set_allocated_sessionid(std::string* sessionid); private: const std::string& _internal_sessionid() const; - void _internal_set_sessionid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_sessionid(const std::string& value); std::string* _internal_mutable_sessionid(); public: @@ -1251,18 +1278,21 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sessionid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sessionid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_tunnelbroker_2eproto; }; // ------------------------------------------------------------------- -class GetResponse PROTOBUF_FINAL : +class GetResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.GetResponse) */ { public: inline GetResponse() : GetResponse(nullptr) {} - virtual ~GetResponse(); - explicit constexpr GetResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~GetResponse() override; + explicit PROTOBUF_CONSTEXPR GetResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); GetResponse(const GetResponse& from); GetResponse(GetResponse&& from) noexcept @@ -1275,8 +1305,13 @@ return *this; } inline GetResponse& operator=(GetResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -1287,10 +1322,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const GetResponse& default_instance() { return *internal_default_instance(); @@ -1307,7 +1342,12 @@ } inline void Swap(GetResponse* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1315,55 +1355,53 @@ } void UnsafeArenaSwap(GetResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline GetResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + GetResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetResponse& from); - void MergeFrom(const GetResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GetResponse& from) { + GetResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(GetResponse* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tunnelbroker.GetResponse"; } protected: - explicit GetResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit GetResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1401,32 +1439,28 @@ // string fromDeviceID = 1; void clear_fromdeviceid(); const std::string& fromdeviceid() const; - void set_fromdeviceid(const std::string& value); - void set_fromdeviceid(std::string&& value); - void set_fromdeviceid(const char* value); - void set_fromdeviceid(const char* value, size_t size); + template + void set_fromdeviceid(ArgT0&& arg0, ArgT... args); std::string* mutable_fromdeviceid(); - std::string* release_fromdeviceid(); + PROTOBUF_NODISCARD std::string* release_fromdeviceid(); void set_allocated_fromdeviceid(std::string* fromdeviceid); private: const std::string& _internal_fromdeviceid() const; - void _internal_set_fromdeviceid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fromdeviceid(const std::string& value); std::string* _internal_mutable_fromdeviceid(); public: // bytes payload = 2; void clear_payload(); const std::string& payload() const; - void set_payload(const std::string& value); - void set_payload(std::string&& value); - void set_payload(const char* value); - void set_payload(const void* value, size_t size); + template + void set_payload(ArgT0&& arg0, ArgT... args); std::string* mutable_payload(); - std::string* release_payload(); + PROTOBUF_NODISCARD std::string* release_payload(); void set_allocated_payload(std::string* payload); private: const std::string& _internal_payload() const; - void _internal_set_payload(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_payload(const std::string& value); std::string* _internal_mutable_payload(); public: @@ -1437,20 +1471,23 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField blobhashes_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fromdeviceid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField blobhashes_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fromdeviceid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_tunnelbroker_2eproto; }; // ------------------------------------------------------------------- -class ProcessedMessages PROTOBUF_FINAL : +class ProcessedMessages final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.ProcessedMessages) */ { public: inline ProcessedMessages() : ProcessedMessages(nullptr) {} - virtual ~ProcessedMessages(); - explicit constexpr ProcessedMessages(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~ProcessedMessages() override; + explicit PROTOBUF_CONSTEXPR ProcessedMessages(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ProcessedMessages(const ProcessedMessages& from); ProcessedMessages(ProcessedMessages&& from) noexcept @@ -1463,8 +1500,13 @@ return *this; } inline ProcessedMessages& operator=(ProcessedMessages&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -1475,10 +1517,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const ProcessedMessages& default_instance() { return *internal_default_instance(); @@ -1495,7 +1537,12 @@ } inline void Swap(ProcessedMessages* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1503,55 +1550,53 @@ } void UnsafeArenaSwap(ProcessedMessages* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline ProcessedMessages* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProcessedMessages* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + ProcessedMessages* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ProcessedMessages& from); - void MergeFrom(const ProcessedMessages& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ProcessedMessages& from) { + ProcessedMessages::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ProcessedMessages* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tunnelbroker.ProcessedMessages"; } protected: - explicit ProcessedMessages(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ProcessedMessages(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1591,18 +1636,21 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField messageid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField messageid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_tunnelbroker_2eproto; }; // ------------------------------------------------------------------- -class MessageToTunnelbrokerStruct PROTOBUF_FINAL : +class MessageToTunnelbrokerStruct final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.MessageToTunnelbrokerStruct) */ { public: inline MessageToTunnelbrokerStruct() : MessageToTunnelbrokerStruct(nullptr) {} - virtual ~MessageToTunnelbrokerStruct(); - explicit constexpr MessageToTunnelbrokerStruct(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~MessageToTunnelbrokerStruct() override; + explicit PROTOBUF_CONSTEXPR MessageToTunnelbrokerStruct(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageToTunnelbrokerStruct(const MessageToTunnelbrokerStruct& from); MessageToTunnelbrokerStruct(MessageToTunnelbrokerStruct&& from) noexcept @@ -1615,8 +1663,13 @@ return *this; } inline MessageToTunnelbrokerStruct& operator=(MessageToTunnelbrokerStruct&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -1627,10 +1680,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const MessageToTunnelbrokerStruct& default_instance() { return *internal_default_instance(); @@ -1647,7 +1700,12 @@ } inline void Swap(MessageToTunnelbrokerStruct* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1655,55 +1713,53 @@ } void UnsafeArenaSwap(MessageToTunnelbrokerStruct* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline MessageToTunnelbrokerStruct* New() const final { - return CreateMaybeMessage(nullptr); - } - - MessageToTunnelbrokerStruct* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + MessageToTunnelbrokerStruct* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageToTunnelbrokerStruct& from); - void MergeFrom(const MessageToTunnelbrokerStruct& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MessageToTunnelbrokerStruct& from) { + MessageToTunnelbrokerStruct::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageToTunnelbrokerStruct* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tunnelbroker.MessageToTunnelbrokerStruct"; } protected: - explicit MessageToTunnelbrokerStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit MessageToTunnelbrokerStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1742,48 +1798,42 @@ // string messageID = 1; void clear_messageid(); const std::string& messageid() const; - void set_messageid(const std::string& value); - void set_messageid(std::string&& value); - void set_messageid(const char* value); - void set_messageid(const char* value, size_t size); + template + void set_messageid(ArgT0&& arg0, ArgT... args); std::string* mutable_messageid(); - std::string* release_messageid(); + PROTOBUF_NODISCARD std::string* release_messageid(); void set_allocated_messageid(std::string* messageid); private: const std::string& _internal_messageid() const; - void _internal_set_messageid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_messageid(const std::string& value); std::string* _internal_mutable_messageid(); public: // string toDeviceID = 2; void clear_todeviceid(); const std::string& todeviceid() const; - void set_todeviceid(const std::string& value); - void set_todeviceid(std::string&& value); - void set_todeviceid(const char* value); - void set_todeviceid(const char* value, size_t size); + template + void set_todeviceid(ArgT0&& arg0, ArgT... args); std::string* mutable_todeviceid(); - std::string* release_todeviceid(); + PROTOBUF_NODISCARD std::string* release_todeviceid(); void set_allocated_todeviceid(std::string* todeviceid); private: const std::string& _internal_todeviceid() const; - void _internal_set_todeviceid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_todeviceid(const std::string& value); std::string* _internal_mutable_todeviceid(); public: // string payload = 3; void clear_payload(); const std::string& payload() const; - void set_payload(const std::string& value); - void set_payload(std::string&& value); - void set_payload(const char* value); - void set_payload(const char* value, size_t size); + template + void set_payload(ArgT0&& arg0, ArgT... args); std::string* mutable_payload(); - std::string* release_payload(); + PROTOBUF_NODISCARD std::string* release_payload(); void set_allocated_payload(std::string* payload); private: const std::string& _internal_payload() const; - void _internal_set_payload(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_payload(const std::string& value); std::string* _internal_mutable_payload(); public: @@ -1794,21 +1844,24 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField blobhashes_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr messageid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr todeviceid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField blobhashes_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr messageid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr todeviceid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_tunnelbroker_2eproto; }; // ------------------------------------------------------------------- -class MessagesToSend PROTOBUF_FINAL : +class MessagesToSend final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.MessagesToSend) */ { public: inline MessagesToSend() : MessagesToSend(nullptr) {} - virtual ~MessagesToSend(); - explicit constexpr MessagesToSend(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~MessagesToSend() override; + explicit PROTOBUF_CONSTEXPR MessagesToSend(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessagesToSend(const MessagesToSend& from); MessagesToSend(MessagesToSend&& from) noexcept @@ -1821,8 +1874,13 @@ return *this; } inline MessagesToSend& operator=(MessagesToSend&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -1833,10 +1891,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const MessagesToSend& default_instance() { return *internal_default_instance(); @@ -1853,7 +1911,12 @@ } inline void Swap(MessagesToSend* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1861,55 +1924,53 @@ } void UnsafeArenaSwap(MessagesToSend* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline MessagesToSend* New() const final { - return CreateMaybeMessage(nullptr); - } - - MessagesToSend* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + MessagesToSend* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessagesToSend& from); - void MergeFrom(const MessagesToSend& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MessagesToSend& from) { + MessagesToSend::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessagesToSend* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tunnelbroker.MessagesToSend"; } protected: - explicit MessagesToSend(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit MessagesToSend(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1943,18 +2004,21 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToTunnelbrokerStruct > messages_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToTunnelbrokerStruct > messages_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_tunnelbroker_2eproto; }; // ------------------------------------------------------------------- -class MessageToTunnelbroker PROTOBUF_FINAL : +class MessageToTunnelbroker final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.MessageToTunnelbroker) */ { public: inline MessageToTunnelbroker() : MessageToTunnelbroker(nullptr) {} - virtual ~MessageToTunnelbroker(); - explicit constexpr MessageToTunnelbroker(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~MessageToTunnelbroker() override; + explicit PROTOBUF_CONSTEXPR MessageToTunnelbroker(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageToTunnelbroker(const MessageToTunnelbroker& from); MessageToTunnelbroker(MessageToTunnelbroker&& from) noexcept @@ -1967,8 +2031,13 @@ return *this; } inline MessageToTunnelbroker& operator=(MessageToTunnelbroker&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -1979,10 +2048,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const MessageToTunnelbroker& default_instance() { return *internal_default_instance(); @@ -2005,7 +2074,12 @@ } inline void Swap(MessageToTunnelbroker* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -2013,55 +2087,53 @@ } void UnsafeArenaSwap(MessageToTunnelbroker* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline MessageToTunnelbroker* New() const final { - return CreateMaybeMessage(nullptr); - } - - MessageToTunnelbroker* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + MessageToTunnelbroker* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageToTunnelbroker& from); - void MergeFrom(const MessageToTunnelbroker& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MessageToTunnelbroker& from) { + MessageToTunnelbroker::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageToTunnelbroker* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tunnelbroker.MessageToTunnelbroker"; } protected: - explicit MessageToTunnelbroker(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit MessageToTunnelbroker(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2075,16 +2147,14 @@ // string sessionID = 1; void clear_sessionid(); const std::string& sessionid() const; - void set_sessionid(const std::string& value); - void set_sessionid(std::string&& value); - void set_sessionid(const char* value); - void set_sessionid(const char* value, size_t size); + template + void set_sessionid(ArgT0&& arg0, ArgT... args); std::string* mutable_sessionid(); - std::string* release_sessionid(); + PROTOBUF_NODISCARD std::string* release_sessionid(); void set_allocated_sessionid(std::string* sessionid); private: const std::string& _internal_sessionid() const; - void _internal_set_sessionid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_sessionid(const std::string& value); std::string* _internal_mutable_sessionid(); public: @@ -2095,7 +2165,7 @@ public: void clear_messagestosend(); const ::tunnelbroker::MessagesToSend& messagestosend() const; - ::tunnelbroker::MessagesToSend* release_messagestosend(); + PROTOBUF_NODISCARD ::tunnelbroker::MessagesToSend* release_messagestosend(); ::tunnelbroker::MessagesToSend* mutable_messagestosend(); void set_allocated_messagestosend(::tunnelbroker::MessagesToSend* messagestosend); private: @@ -2113,7 +2183,7 @@ public: void clear_processedmessages(); const ::tunnelbroker::ProcessedMessages& processedmessages() const; - ::tunnelbroker::ProcessedMessages* release_processedmessages(); + PROTOBUF_NODISCARD ::tunnelbroker::ProcessedMessages* release_processedmessages(); ::tunnelbroker::ProcessedMessages* mutable_processedmessages(); void set_allocated_processedmessages(::tunnelbroker::ProcessedMessages* processedmessages); private: @@ -2138,26 +2208,29 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sessionid_; - union DataUnion { - constexpr DataUnion() : _constinit_{} {} - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - ::tunnelbroker::MessagesToSend* messagestosend_; - ::tunnelbroker::ProcessedMessages* processedmessages_; - } data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sessionid_; + union DataUnion { + constexpr DataUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::tunnelbroker::MessagesToSend* messagestosend_; + ::tunnelbroker::ProcessedMessages* processedmessages_; + } data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_tunnelbroker_2eproto; }; // ------------------------------------------------------------------- -class MessageToClientStruct PROTOBUF_FINAL : +class MessageToClientStruct final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.MessageToClientStruct) */ { public: inline MessageToClientStruct() : MessageToClientStruct(nullptr) {} - virtual ~MessageToClientStruct(); - explicit constexpr MessageToClientStruct(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~MessageToClientStruct() override; + explicit PROTOBUF_CONSTEXPR MessageToClientStruct(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageToClientStruct(const MessageToClientStruct& from); MessageToClientStruct(MessageToClientStruct&& from) noexcept @@ -2170,8 +2243,13 @@ return *this; } inline MessageToClientStruct& operator=(MessageToClientStruct&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -2182,10 +2260,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const MessageToClientStruct& default_instance() { return *internal_default_instance(); @@ -2202,7 +2280,12 @@ } inline void Swap(MessageToClientStruct* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -2210,55 +2293,53 @@ } void UnsafeArenaSwap(MessageToClientStruct* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline MessageToClientStruct* New() const final { - return CreateMaybeMessage(nullptr); - } - - MessageToClientStruct* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + MessageToClientStruct* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageToClientStruct& from); - void MergeFrom(const MessageToClientStruct& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MessageToClientStruct& from) { + MessageToClientStruct::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageToClientStruct* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tunnelbroker.MessageToClientStruct"; } protected: - explicit MessageToClientStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit MessageToClientStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2297,48 +2378,42 @@ // string messageID = 1; void clear_messageid(); const std::string& messageid() const; - void set_messageid(const std::string& value); - void set_messageid(std::string&& value); - void set_messageid(const char* value); - void set_messageid(const char* value, size_t size); + template + void set_messageid(ArgT0&& arg0, ArgT... args); std::string* mutable_messageid(); - std::string* release_messageid(); + PROTOBUF_NODISCARD std::string* release_messageid(); void set_allocated_messageid(std::string* messageid); private: const std::string& _internal_messageid() const; - void _internal_set_messageid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_messageid(const std::string& value); std::string* _internal_mutable_messageid(); public: // string fromDeviceID = 2; void clear_fromdeviceid(); const std::string& fromdeviceid() const; - void set_fromdeviceid(const std::string& value); - void set_fromdeviceid(std::string&& value); - void set_fromdeviceid(const char* value); - void set_fromdeviceid(const char* value, size_t size); + template + void set_fromdeviceid(ArgT0&& arg0, ArgT... args); std::string* mutable_fromdeviceid(); - std::string* release_fromdeviceid(); + PROTOBUF_NODISCARD std::string* release_fromdeviceid(); void set_allocated_fromdeviceid(std::string* fromdeviceid); private: const std::string& _internal_fromdeviceid() const; - void _internal_set_fromdeviceid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fromdeviceid(const std::string& value); std::string* _internal_mutable_fromdeviceid(); public: // string payload = 3; void clear_payload(); const std::string& payload() const; - void set_payload(const std::string& value); - void set_payload(std::string&& value); - void set_payload(const char* value); - void set_payload(const char* value, size_t size); + template + void set_payload(ArgT0&& arg0, ArgT... args); std::string* mutable_payload(); - std::string* release_payload(); + PROTOBUF_NODISCARD std::string* release_payload(); void set_allocated_payload(std::string* payload); private: const std::string& _internal_payload() const; - void _internal_set_payload(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_payload(const std::string& value); std::string* _internal_mutable_payload(); public: @@ -2349,21 +2424,24 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField blobhashes_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr messageid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fromdeviceid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField blobhashes_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr messageid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fromdeviceid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_tunnelbroker_2eproto; }; // ------------------------------------------------------------------- -class MessagesToDeliver PROTOBUF_FINAL : +class MessagesToDeliver final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.MessagesToDeliver) */ { public: inline MessagesToDeliver() : MessagesToDeliver(nullptr) {} - virtual ~MessagesToDeliver(); - explicit constexpr MessagesToDeliver(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~MessagesToDeliver() override; + explicit PROTOBUF_CONSTEXPR MessagesToDeliver(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessagesToDeliver(const MessagesToDeliver& from); MessagesToDeliver(MessagesToDeliver&& from) noexcept @@ -2376,8 +2454,13 @@ return *this; } inline MessagesToDeliver& operator=(MessagesToDeliver&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -2388,10 +2471,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const MessagesToDeliver& default_instance() { return *internal_default_instance(); @@ -2408,7 +2491,12 @@ } inline void Swap(MessagesToDeliver* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -2416,55 +2504,53 @@ } void UnsafeArenaSwap(MessagesToDeliver* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline MessagesToDeliver* New() const final { - return CreateMaybeMessage(nullptr); - } - - MessagesToDeliver* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + MessagesToDeliver* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessagesToDeliver& from); - void MergeFrom(const MessagesToDeliver& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MessagesToDeliver& from) { + MessagesToDeliver::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessagesToDeliver* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tunnelbroker.MessagesToDeliver"; } protected: - explicit MessagesToDeliver(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit MessagesToDeliver(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2498,18 +2584,21 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToClientStruct > messages_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToClientStruct > messages_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_tunnelbroker_2eproto; }; // ------------------------------------------------------------------- -class MessageToClient PROTOBUF_FINAL : +class MessageToClient final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.MessageToClient) */ { public: inline MessageToClient() : MessageToClient(nullptr) {} - virtual ~MessageToClient(); - explicit constexpr MessageToClient(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~MessageToClient() override; + explicit PROTOBUF_CONSTEXPR MessageToClient(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageToClient(const MessageToClient& from); MessageToClient(MessageToClient&& from) noexcept @@ -2522,8 +2611,13 @@ return *this; } inline MessageToClient& operator=(MessageToClient&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -2534,10 +2628,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const MessageToClient& default_instance() { return *internal_default_instance(); @@ -2560,7 +2654,12 @@ } inline void Swap(MessageToClient* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -2568,55 +2667,53 @@ } void UnsafeArenaSwap(MessageToClient* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline MessageToClient* New() const final { - return CreateMaybeMessage(nullptr); - } - - MessageToClient* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + MessageToClient* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageToClient& from); - void MergeFrom(const MessageToClient& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MessageToClient& from) { + MessageToClient::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageToClient* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tunnelbroker.MessageToClient"; } protected: - explicit MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2633,7 +2730,7 @@ public: void clear_messagestodeliver(); const ::tunnelbroker::MessagesToDeliver& messagestodeliver() const; - ::tunnelbroker::MessagesToDeliver* release_messagestodeliver(); + PROTOBUF_NODISCARD ::tunnelbroker::MessagesToDeliver* release_messagestodeliver(); ::tunnelbroker::MessagesToDeliver* mutable_messagestodeliver(); void set_allocated_messagestodeliver(::tunnelbroker::MessagesToDeliver* messagestodeliver); private: @@ -2651,7 +2748,7 @@ public: void clear_processedmessages(); const ::tunnelbroker::ProcessedMessages& processedmessages() const; - ::tunnelbroker::ProcessedMessages* release_processedmessages(); + PROTOBUF_NODISCARD ::tunnelbroker::ProcessedMessages* release_processedmessages(); ::tunnelbroker::ProcessedMessages* mutable_processedmessages(); void set_allocated_processedmessages(::tunnelbroker::ProcessedMessages* processedmessages); private: @@ -2676,25 +2773,28 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - union DataUnion { - constexpr DataUnion() : _constinit_{} {} - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - ::tunnelbroker::MessagesToDeliver* messagestodeliver_; - ::tunnelbroker::ProcessedMessages* processedmessages_; - } data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + struct Impl_ { + union DataUnion { + constexpr DataUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::tunnelbroker::MessagesToDeliver* messagestodeliver_; + ::tunnelbroker::ProcessedMessages* processedmessages_; + } data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_tunnelbroker_2eproto; }; // ------------------------------------------------------------------- -class CheckRequest PROTOBUF_FINAL : +class CheckRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.CheckRequest) */ { public: inline CheckRequest() : CheckRequest(nullptr) {} - virtual ~CheckRequest(); - explicit constexpr CheckRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~CheckRequest() override; + explicit PROTOBUF_CONSTEXPR CheckRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); CheckRequest(const CheckRequest& from); CheckRequest(CheckRequest&& from) noexcept @@ -2707,8 +2807,13 @@ return *this; } inline CheckRequest& operator=(CheckRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -2719,10 +2824,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const CheckRequest& default_instance() { return *internal_default_instance(); @@ -2739,7 +2844,12 @@ } inline void Swap(CheckRequest* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -2747,55 +2857,53 @@ } void UnsafeArenaSwap(CheckRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline CheckRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - CheckRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + CheckRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CheckRequest& from); - void MergeFrom(const CheckRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CheckRequest& from) { + CheckRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(CheckRequest* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tunnelbroker.CheckRequest"; } protected: - explicit CheckRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit CheckRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2808,32 +2916,28 @@ // string userId = 1; void clear_userid(); const std::string& userid() const; - void set_userid(const std::string& value); - void set_userid(std::string&& value); - void set_userid(const char* value); - void set_userid(const char* value, size_t size); + template + void set_userid(ArgT0&& arg0, ArgT... args); std::string* mutable_userid(); - std::string* release_userid(); + PROTOBUF_NODISCARD std::string* release_userid(); void set_allocated_userid(std::string* userid); private: const std::string& _internal_userid() const; - void _internal_set_userid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_userid(const std::string& value); std::string* _internal_mutable_userid(); public: // string deviceToken = 2; void clear_devicetoken(); const std::string& devicetoken() const; - void set_devicetoken(const std::string& value); - void set_devicetoken(std::string&& value); - void set_devicetoken(const char* value); - void set_devicetoken(const char* value, size_t size); + template + void set_devicetoken(ArgT0&& arg0, ArgT... args); std::string* mutable_devicetoken(); - std::string* release_devicetoken(); + PROTOBUF_NODISCARD std::string* release_devicetoken(); void set_allocated_devicetoken(std::string* devicetoken); private: const std::string& _internal_devicetoken() const; - void _internal_set_devicetoken(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_devicetoken(const std::string& value); std::string* _internal_mutable_devicetoken(); public: @@ -2844,19 +2948,22 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr devicetoken_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr devicetoken_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_tunnelbroker_2eproto; }; // ------------------------------------------------------------------- -class CheckResponse PROTOBUF_FINAL : +class CheckResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.CheckResponse) */ { public: inline CheckResponse() : CheckResponse(nullptr) {} - virtual ~CheckResponse(); - explicit constexpr CheckResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~CheckResponse() override; + explicit PROTOBUF_CONSTEXPR CheckResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); CheckResponse(const CheckResponse& from); CheckResponse(CheckResponse&& from) noexcept @@ -2869,8 +2976,13 @@ return *this; } inline CheckResponse& operator=(CheckResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -2881,10 +2993,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const CheckResponse& default_instance() { return *internal_default_instance(); @@ -2901,7 +3013,12 @@ } inline void Swap(CheckResponse* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -2909,55 +3026,53 @@ } void UnsafeArenaSwap(CheckResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline CheckResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - CheckResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + CheckResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CheckResponse& from); - void MergeFrom(const CheckResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CheckResponse& from) { + CheckResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(CheckResponse* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tunnelbroker.CheckResponse"; } protected: - explicit CheckResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit CheckResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2982,18 +3097,21 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int checkresponsetype_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + int checkresponsetype_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_tunnelbroker_2eproto; }; // ------------------------------------------------------------------- -class NewPrimaryRequest PROTOBUF_FINAL : +class NewPrimaryRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.NewPrimaryRequest) */ { public: inline NewPrimaryRequest() : NewPrimaryRequest(nullptr) {} - virtual ~NewPrimaryRequest(); - explicit constexpr NewPrimaryRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~NewPrimaryRequest() override; + explicit PROTOBUF_CONSTEXPR NewPrimaryRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); NewPrimaryRequest(const NewPrimaryRequest& from); NewPrimaryRequest(NewPrimaryRequest&& from) noexcept @@ -3006,8 +3124,13 @@ return *this; } inline NewPrimaryRequest& operator=(NewPrimaryRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -3018,10 +3141,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const NewPrimaryRequest& default_instance() { return *internal_default_instance(); @@ -3038,7 +3161,12 @@ } inline void Swap(NewPrimaryRequest* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -3046,55 +3174,53 @@ } void UnsafeArenaSwap(NewPrimaryRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline NewPrimaryRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - NewPrimaryRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + NewPrimaryRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const NewPrimaryRequest& from); - void MergeFrom(const NewPrimaryRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const NewPrimaryRequest& from) { + NewPrimaryRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(NewPrimaryRequest* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tunnelbroker.NewPrimaryRequest"; } protected: - explicit NewPrimaryRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit NewPrimaryRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3107,32 +3233,28 @@ // string userId = 1; void clear_userid(); const std::string& userid() const; - void set_userid(const std::string& value); - void set_userid(std::string&& value); - void set_userid(const char* value); - void set_userid(const char* value, size_t size); + template + void set_userid(ArgT0&& arg0, ArgT... args); std::string* mutable_userid(); - std::string* release_userid(); + PROTOBUF_NODISCARD std::string* release_userid(); void set_allocated_userid(std::string* userid); private: const std::string& _internal_userid() const; - void _internal_set_userid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_userid(const std::string& value); std::string* _internal_mutable_userid(); public: // string deviceToken = 2; void clear_devicetoken(); const std::string& devicetoken() const; - void set_devicetoken(const std::string& value); - void set_devicetoken(std::string&& value); - void set_devicetoken(const char* value); - void set_devicetoken(const char* value, size_t size); + template + void set_devicetoken(ArgT0&& arg0, ArgT... args); std::string* mutable_devicetoken(); - std::string* release_devicetoken(); + PROTOBUF_NODISCARD std::string* release_devicetoken(); void set_allocated_devicetoken(std::string* devicetoken); private: const std::string& _internal_devicetoken() const; - void _internal_set_devicetoken(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_devicetoken(const std::string& value); std::string* _internal_mutable_devicetoken(); public: @@ -3143,19 +3265,22 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr devicetoken_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr devicetoken_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_tunnelbroker_2eproto; }; // ------------------------------------------------------------------- -class NewPrimaryResponse PROTOBUF_FINAL : +class NewPrimaryResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.NewPrimaryResponse) */ { public: inline NewPrimaryResponse() : NewPrimaryResponse(nullptr) {} - virtual ~NewPrimaryResponse(); - explicit constexpr NewPrimaryResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~NewPrimaryResponse() override; + explicit PROTOBUF_CONSTEXPR NewPrimaryResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); NewPrimaryResponse(const NewPrimaryResponse& from); NewPrimaryResponse(NewPrimaryResponse&& from) noexcept @@ -3168,8 +3293,13 @@ return *this; } inline NewPrimaryResponse& operator=(NewPrimaryResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -3180,10 +3310,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const NewPrimaryResponse& default_instance() { return *internal_default_instance(); @@ -3200,7 +3330,12 @@ } inline void Swap(NewPrimaryResponse* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -3208,55 +3343,53 @@ } void UnsafeArenaSwap(NewPrimaryResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline NewPrimaryResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - NewPrimaryResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + NewPrimaryResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const NewPrimaryResponse& from); - void MergeFrom(const NewPrimaryResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const NewPrimaryResponse& from) { + NewPrimaryResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(NewPrimaryResponse* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tunnelbroker.NewPrimaryResponse"; } protected: - explicit NewPrimaryResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit NewPrimaryResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3281,18 +3414,21 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - bool success_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + bool success_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_tunnelbroker_2eproto; }; // ------------------------------------------------------------------- -class PongRequest PROTOBUF_FINAL : +class PongRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tunnelbroker.PongRequest) */ { public: inline PongRequest() : PongRequest(nullptr) {} - virtual ~PongRequest(); - explicit constexpr PongRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~PongRequest() override; + explicit PROTOBUF_CONSTEXPR PongRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); PongRequest(const PongRequest& from); PongRequest(PongRequest&& from) noexcept @@ -3305,8 +3441,13 @@ return *this; } inline PongRequest& operator=(PongRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + 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); } @@ -3317,10 +3458,10 @@ return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const PongRequest& default_instance() { return *internal_default_instance(); @@ -3337,7 +3478,12 @@ } inline void Swap(PongRequest* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -3345,55 +3491,53 @@ } void UnsafeArenaSwap(PongRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline PongRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - PongRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + PongRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const PongRequest& from); - void MergeFrom(const PongRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const PongRequest& from) { + PongRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(PongRequest* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "tunnelbroker.PongRequest"; } protected: - explicit PongRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit PongRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_tunnelbroker_2eproto_metadata_getter(kIndexInFileMessages); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3406,32 +3550,28 @@ // string userId = 1; void clear_userid(); const std::string& userid() const; - void set_userid(const std::string& value); - void set_userid(std::string&& value); - void set_userid(const char* value); - void set_userid(const char* value, size_t size); + template + void set_userid(ArgT0&& arg0, ArgT... args); std::string* mutable_userid(); - std::string* release_userid(); + PROTOBUF_NODISCARD std::string* release_userid(); void set_allocated_userid(std::string* userid); private: const std::string& _internal_userid() const; - void _internal_set_userid(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_userid(const std::string& value); std::string* _internal_mutable_userid(); public: // string deviceToken = 2; void clear_devicetoken(); const std::string& devicetoken() const; - void set_devicetoken(const std::string& value); - void set_devicetoken(std::string&& value); - void set_devicetoken(const char* value); - void set_devicetoken(const char* value, size_t size); + template + void set_devicetoken(ArgT0&& arg0, ArgT... args); std::string* mutable_devicetoken(); - std::string* release_devicetoken(); + PROTOBUF_NODISCARD std::string* release_devicetoken(); void set_allocated_devicetoken(std::string* devicetoken); private: const std::string& _internal_devicetoken() const; - void _internal_set_devicetoken(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_devicetoken(const std::string& value); std::string* _internal_mutable_devicetoken(); public: @@ -3442,9 +3582,12 @@ template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr devicetoken_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr devicetoken_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_tunnelbroker_2eproto; }; // =================================================================== @@ -3460,53 +3603,38 @@ // string deviceID = 1; inline void SessionSignatureRequest::clear_deviceid() { - deviceid_.ClearToEmpty(); + _impl_.deviceid_.ClearToEmpty(); } inline const std::string& SessionSignatureRequest::deviceid() const { // @@protoc_insertion_point(field_get:tunnelbroker.SessionSignatureRequest.deviceID) return _internal_deviceid(); } -inline void SessionSignatureRequest::set_deviceid(const std::string& value) { - _internal_set_deviceid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void SessionSignatureRequest::set_deviceid(ArgT0&& arg0, ArgT... args) { + + _impl_.deviceid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.SessionSignatureRequest.deviceID) } inline std::string* SessionSignatureRequest::mutable_deviceid() { + std::string* _s = _internal_mutable_deviceid(); // @@protoc_insertion_point(field_mutable:tunnelbroker.SessionSignatureRequest.deviceID) - return _internal_mutable_deviceid(); + return _s; } inline const std::string& SessionSignatureRequest::_internal_deviceid() const { - return deviceid_.Get(); + return _impl_.deviceid_.Get(); } inline void SessionSignatureRequest::_internal_set_deviceid(const std::string& value) { - deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void SessionSignatureRequest::set_deviceid(std::string&& value) { - - deviceid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.SessionSignatureRequest.deviceID) -} -inline void SessionSignatureRequest::set_deviceid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.SessionSignatureRequest.deviceID) -} -inline void SessionSignatureRequest::set_deviceid(const char* value, - size_t size) { - - deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.SessionSignatureRequest.deviceID) + _impl_.deviceid_.Set(value, GetArenaForAllocation()); } inline std::string* SessionSignatureRequest::_internal_mutable_deviceid() { - return deviceid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.deviceid_.Mutable(GetArenaForAllocation()); } inline std::string* SessionSignatureRequest::release_deviceid() { // @@protoc_insertion_point(field_release:tunnelbroker.SessionSignatureRequest.deviceID) - return deviceid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.deviceid_.Release(); } inline void SessionSignatureRequest::set_allocated_deviceid(std::string* deviceid) { if (deviceid != nullptr) { @@ -3514,8 +3642,12 @@ } else { } - deviceid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), deviceid, - GetArena()); + _impl_.deviceid_.SetAllocated(deviceid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.deviceid_.IsDefault()) { + _impl_.deviceid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.SessionSignatureRequest.deviceID) } @@ -3525,53 +3657,38 @@ // string toSign = 1; inline void SessionSignatureResponse::clear_tosign() { - tosign_.ClearToEmpty(); + _impl_.tosign_.ClearToEmpty(); } inline const std::string& SessionSignatureResponse::tosign() const { // @@protoc_insertion_point(field_get:tunnelbroker.SessionSignatureResponse.toSign) return _internal_tosign(); } -inline void SessionSignatureResponse::set_tosign(const std::string& value) { - _internal_set_tosign(value); +template +inline PROTOBUF_ALWAYS_INLINE +void SessionSignatureResponse::set_tosign(ArgT0&& arg0, ArgT... args) { + + _impl_.tosign_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.SessionSignatureResponse.toSign) } inline std::string* SessionSignatureResponse::mutable_tosign() { + std::string* _s = _internal_mutable_tosign(); // @@protoc_insertion_point(field_mutable:tunnelbroker.SessionSignatureResponse.toSign) - return _internal_mutable_tosign(); + return _s; } inline const std::string& SessionSignatureResponse::_internal_tosign() const { - return tosign_.Get(); + return _impl_.tosign_.Get(); } inline void SessionSignatureResponse::_internal_set_tosign(const std::string& value) { - tosign_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void SessionSignatureResponse::set_tosign(std::string&& value) { - - tosign_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.SessionSignatureResponse.toSign) -} -inline void SessionSignatureResponse::set_tosign(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - tosign_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.SessionSignatureResponse.toSign) -} -inline void SessionSignatureResponse::set_tosign(const char* value, - size_t size) { - - tosign_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.SessionSignatureResponse.toSign) + _impl_.tosign_.Set(value, GetArenaForAllocation()); } inline std::string* SessionSignatureResponse::_internal_mutable_tosign() { - return tosign_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.tosign_.Mutable(GetArenaForAllocation()); } inline std::string* SessionSignatureResponse::release_tosign() { // @@protoc_insertion_point(field_release:tunnelbroker.SessionSignatureResponse.toSign) - return tosign_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.tosign_.Release(); } inline void SessionSignatureResponse::set_allocated_tosign(std::string* tosign) { if (tosign != nullptr) { @@ -3579,8 +3696,12 @@ } else { } - tosign_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tosign, - GetArena()); + _impl_.tosign_.SetAllocated(tosign, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.tosign_.IsDefault()) { + _impl_.tosign_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.SessionSignatureResponse.toSign) } @@ -3590,53 +3711,38 @@ // string deviceID = 1; inline void NewSessionRequest::clear_deviceid() { - deviceid_.ClearToEmpty(); + _impl_.deviceid_.ClearToEmpty(); } inline const std::string& NewSessionRequest::deviceid() const { // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.deviceID) return _internal_deviceid(); } -inline void NewSessionRequest::set_deviceid(const std::string& value) { - _internal_set_deviceid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void NewSessionRequest::set_deviceid(ArgT0&& arg0, ArgT... args) { + + _impl_.deviceid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.deviceID) } inline std::string* NewSessionRequest::mutable_deviceid() { + std::string* _s = _internal_mutable_deviceid(); // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionRequest.deviceID) - return _internal_mutable_deviceid(); + return _s; } inline const std::string& NewSessionRequest::_internal_deviceid() const { - return deviceid_.Get(); + return _impl_.deviceid_.Get(); } inline void NewSessionRequest::_internal_set_deviceid(const std::string& value) { - deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void NewSessionRequest::set_deviceid(std::string&& value) { - - deviceid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionRequest.deviceID) -} -inline void NewSessionRequest::set_deviceid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionRequest.deviceID) -} -inline void NewSessionRequest::set_deviceid(const char* value, - size_t size) { - - deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionRequest.deviceID) + _impl_.deviceid_.Set(value, GetArenaForAllocation()); } inline std::string* NewSessionRequest::_internal_mutable_deviceid() { - return deviceid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.deviceid_.Mutable(GetArenaForAllocation()); } inline std::string* NewSessionRequest::release_deviceid() { // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionRequest.deviceID) - return deviceid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.deviceid_.Release(); } inline void NewSessionRequest::set_allocated_deviceid(std::string* deviceid) { if (deviceid != nullptr) { @@ -3644,60 +3750,49 @@ } else { } - deviceid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), deviceid, - GetArena()); + _impl_.deviceid_.SetAllocated(deviceid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.deviceid_.IsDefault()) { + _impl_.deviceid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionRequest.deviceID) } // string publicKey = 2; inline void NewSessionRequest::clear_publickey() { - publickey_.ClearToEmpty(); + _impl_.publickey_.ClearToEmpty(); } inline const std::string& NewSessionRequest::publickey() const { // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.publicKey) return _internal_publickey(); } -inline void NewSessionRequest::set_publickey(const std::string& value) { - _internal_set_publickey(value); +template +inline PROTOBUF_ALWAYS_INLINE +void NewSessionRequest::set_publickey(ArgT0&& arg0, ArgT... args) { + + _impl_.publickey_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.publicKey) } inline std::string* NewSessionRequest::mutable_publickey() { + std::string* _s = _internal_mutable_publickey(); // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionRequest.publicKey) - return _internal_mutable_publickey(); + return _s; } inline const std::string& NewSessionRequest::_internal_publickey() const { - return publickey_.Get(); + return _impl_.publickey_.Get(); } inline void NewSessionRequest::_internal_set_publickey(const std::string& value) { - publickey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void NewSessionRequest::set_publickey(std::string&& value) { - - publickey_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionRequest.publicKey) -} -inline void NewSessionRequest::set_publickey(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - publickey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionRequest.publicKey) -} -inline void NewSessionRequest::set_publickey(const char* value, - size_t size) { - - publickey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionRequest.publicKey) + _impl_.publickey_.Set(value, GetArenaForAllocation()); } inline std::string* NewSessionRequest::_internal_mutable_publickey() { - return publickey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.publickey_.Mutable(GetArenaForAllocation()); } inline std::string* NewSessionRequest::release_publickey() { // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionRequest.publicKey) - return publickey_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.publickey_.Release(); } inline void NewSessionRequest::set_allocated_publickey(std::string* publickey) { if (publickey != nullptr) { @@ -3705,60 +3800,49 @@ } else { } - publickey_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), publickey, - GetArena()); + _impl_.publickey_.SetAllocated(publickey, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.publickey_.IsDefault()) { + _impl_.publickey_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionRequest.publicKey) } // string signature = 3; inline void NewSessionRequest::clear_signature() { - signature_.ClearToEmpty(); + _impl_.signature_.ClearToEmpty(); } inline const std::string& NewSessionRequest::signature() const { // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.signature) return _internal_signature(); } -inline void NewSessionRequest::set_signature(const std::string& value) { - _internal_set_signature(value); +template +inline PROTOBUF_ALWAYS_INLINE +void NewSessionRequest::set_signature(ArgT0&& arg0, ArgT... args) { + + _impl_.signature_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.signature) } inline std::string* NewSessionRequest::mutable_signature() { + std::string* _s = _internal_mutable_signature(); // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionRequest.signature) - return _internal_mutable_signature(); + return _s; } inline const std::string& NewSessionRequest::_internal_signature() const { - return signature_.Get(); + return _impl_.signature_.Get(); } inline void NewSessionRequest::_internal_set_signature(const std::string& value) { - signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void NewSessionRequest::set_signature(std::string&& value) { - - signature_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionRequest.signature) -} -inline void NewSessionRequest::set_signature(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionRequest.signature) -} -inline void NewSessionRequest::set_signature(const char* value, - size_t size) { - - signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionRequest.signature) + _impl_.signature_.Set(value, GetArenaForAllocation()); } inline std::string* NewSessionRequest::_internal_mutable_signature() { - return signature_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.signature_.Mutable(GetArenaForAllocation()); } inline std::string* NewSessionRequest::release_signature() { // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionRequest.signature) - return signature_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.signature_.Release(); } inline void NewSessionRequest::set_allocated_signature(std::string* signature) { if (signature != nullptr) { @@ -3766,90 +3850,89 @@ } else { } - signature_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), signature, - GetArena()); + _impl_.signature_.SetAllocated(signature, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.signature_.IsDefault()) { + _impl_.signature_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionRequest.signature) } -// string notifyToken = 4; +// optional string notifyToken = 4; inline bool NewSessionRequest::_internal_has_notifytoken() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } inline bool NewSessionRequest::has_notifytoken() const { return _internal_has_notifytoken(); } inline void NewSessionRequest::clear_notifytoken() { - notifytoken_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + _impl_.notifytoken_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const std::string& NewSessionRequest::notifytoken() const { // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.notifyToken) return _internal_notifytoken(); } -inline void NewSessionRequest::set_notifytoken(const std::string& value) { - _internal_set_notifytoken(value); +template +inline PROTOBUF_ALWAYS_INLINE +void NewSessionRequest::set_notifytoken(ArgT0&& arg0, ArgT... args) { + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.notifytoken_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.notifyToken) } inline std::string* NewSessionRequest::mutable_notifytoken() { + std::string* _s = _internal_mutable_notifytoken(); // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionRequest.notifyToken) - return _internal_mutable_notifytoken(); + return _s; } inline const std::string& NewSessionRequest::_internal_notifytoken() const { - return notifytoken_.Get(); + return _impl_.notifytoken_.Get(); } inline void NewSessionRequest::_internal_set_notifytoken(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - notifytoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void NewSessionRequest::set_notifytoken(std::string&& value) { - _has_bits_[0] |= 0x00000001u; - notifytoken_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionRequest.notifyToken) -} -inline void NewSessionRequest::set_notifytoken(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - notifytoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionRequest.notifyToken) -} -inline void NewSessionRequest::set_notifytoken(const char* value, - size_t size) { - _has_bits_[0] |= 0x00000001u; - notifytoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionRequest.notifyToken) + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.notifytoken_.Set(value, GetArenaForAllocation()); } inline std::string* NewSessionRequest::_internal_mutable_notifytoken() { - _has_bits_[0] |= 0x00000001u; - return notifytoken_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_._has_bits_[0] |= 0x00000001u; + return _impl_.notifytoken_.Mutable(GetArenaForAllocation()); } inline std::string* NewSessionRequest::release_notifytoken() { // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionRequest.notifyToken) if (!_internal_has_notifytoken()) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - return notifytoken_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _impl_._has_bits_[0] &= ~0x00000001u; + auto* p = _impl_.notifytoken_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.notifytoken_.IsDefault()) { + _impl_.notifytoken_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; } inline void NewSessionRequest::set_allocated_notifytoken(std::string* notifytoken) { if (notifytoken != nullptr) { - _has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000001u; } else { - _has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000001u; } - notifytoken_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), notifytoken, - GetArena()); + _impl_.notifytoken_.SetAllocated(notifytoken, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.notifytoken_.IsDefault()) { + _impl_.notifytoken_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionRequest.notifyToken) } // .tunnelbroker.NewSessionRequest.DeviceTypes deviceType = 5; inline void NewSessionRequest::clear_devicetype() { - devicetype_ = 0; + _impl_.devicetype_ = 0; } inline ::tunnelbroker::NewSessionRequest_DeviceTypes NewSessionRequest::_internal_devicetype() const { - return static_cast< ::tunnelbroker::NewSessionRequest_DeviceTypes >(devicetype_); + return static_cast< ::tunnelbroker::NewSessionRequest_DeviceTypes >(_impl_.devicetype_); } inline ::tunnelbroker::NewSessionRequest_DeviceTypes NewSessionRequest::devicetype() const { // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.deviceType) @@ -3857,7 +3940,7 @@ } inline void NewSessionRequest::_internal_set_devicetype(::tunnelbroker::NewSessionRequest_DeviceTypes value) { - devicetype_ = value; + _impl_.devicetype_ = value; } inline void NewSessionRequest::set_devicetype(::tunnelbroker::NewSessionRequest_DeviceTypes value) { _internal_set_devicetype(value); @@ -3866,53 +3949,38 @@ // string deviceAppVersion = 6; inline void NewSessionRequest::clear_deviceappversion() { - deviceappversion_.ClearToEmpty(); + _impl_.deviceappversion_.ClearToEmpty(); } inline const std::string& NewSessionRequest::deviceappversion() const { // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.deviceAppVersion) return _internal_deviceappversion(); } -inline void NewSessionRequest::set_deviceappversion(const std::string& value) { - _internal_set_deviceappversion(value); +template +inline PROTOBUF_ALWAYS_INLINE +void NewSessionRequest::set_deviceappversion(ArgT0&& arg0, ArgT... args) { + + _impl_.deviceappversion_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.deviceAppVersion) } inline std::string* NewSessionRequest::mutable_deviceappversion() { + std::string* _s = _internal_mutable_deviceappversion(); // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionRequest.deviceAppVersion) - return _internal_mutable_deviceappversion(); + return _s; } inline const std::string& NewSessionRequest::_internal_deviceappversion() const { - return deviceappversion_.Get(); + return _impl_.deviceappversion_.Get(); } inline void NewSessionRequest::_internal_set_deviceappversion(const std::string& value) { - deviceappversion_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void NewSessionRequest::set_deviceappversion(std::string&& value) { - - deviceappversion_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionRequest.deviceAppVersion) -} -inline void NewSessionRequest::set_deviceappversion(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - deviceappversion_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionRequest.deviceAppVersion) -} -inline void NewSessionRequest::set_deviceappversion(const char* value, - size_t size) { - - deviceappversion_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionRequest.deviceAppVersion) + _impl_.deviceappversion_.Set(value, GetArenaForAllocation()); } inline std::string* NewSessionRequest::_internal_mutable_deviceappversion() { - return deviceappversion_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.deviceappversion_.Mutable(GetArenaForAllocation()); } inline std::string* NewSessionRequest::release_deviceappversion() { // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionRequest.deviceAppVersion) - return deviceappversion_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.deviceappversion_.Release(); } inline void NewSessionRequest::set_allocated_deviceappversion(std::string* deviceappversion) { if (deviceappversion != nullptr) { @@ -3920,60 +3988,49 @@ } else { } - deviceappversion_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), deviceappversion, - GetArena()); + _impl_.deviceappversion_.SetAllocated(deviceappversion, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.deviceappversion_.IsDefault()) { + _impl_.deviceappversion_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionRequest.deviceAppVersion) } // string deviceOS = 7; inline void NewSessionRequest::clear_deviceos() { - deviceos_.ClearToEmpty(); + _impl_.deviceos_.ClearToEmpty(); } inline const std::string& NewSessionRequest::deviceos() const { // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionRequest.deviceOS) return _internal_deviceos(); } -inline void NewSessionRequest::set_deviceos(const std::string& value) { - _internal_set_deviceos(value); +template +inline PROTOBUF_ALWAYS_INLINE +void NewSessionRequest::set_deviceos(ArgT0&& arg0, ArgT... args) { + + _impl_.deviceos_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionRequest.deviceOS) } inline std::string* NewSessionRequest::mutable_deviceos() { + std::string* _s = _internal_mutable_deviceos(); // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionRequest.deviceOS) - return _internal_mutable_deviceos(); + return _s; } inline const std::string& NewSessionRequest::_internal_deviceos() const { - return deviceos_.Get(); + return _impl_.deviceos_.Get(); } inline void NewSessionRequest::_internal_set_deviceos(const std::string& value) { - deviceos_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void NewSessionRequest::set_deviceos(std::string&& value) { - - deviceos_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionRequest.deviceOS) -} -inline void NewSessionRequest::set_deviceos(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - deviceos_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionRequest.deviceOS) -} -inline void NewSessionRequest::set_deviceos(const char* value, - size_t size) { - - deviceos_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionRequest.deviceOS) + _impl_.deviceos_.Set(value, GetArenaForAllocation()); } inline std::string* NewSessionRequest::_internal_mutable_deviceos() { - return deviceos_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.deviceos_.Mutable(GetArenaForAllocation()); } inline std::string* NewSessionRequest::release_deviceos() { // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionRequest.deviceOS) - return deviceos_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.deviceos_.Release(); } inline void NewSessionRequest::set_allocated_deviceos(std::string* deviceos) { if (deviceos != nullptr) { @@ -3981,8 +4038,12 @@ } else { } - deviceos_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), deviceos, - GetArena()); + _impl_.deviceos_.SetAllocated(deviceos, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.deviceos_.IsDefault()) { + _impl_.deviceos_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionRequest.deviceOS) } @@ -3992,53 +4053,38 @@ // string sessionID = 1; inline void NewSessionResponse::clear_sessionid() { - sessionid_.ClearToEmpty(); + _impl_.sessionid_.ClearToEmpty(); } inline const std::string& NewSessionResponse::sessionid() const { // @@protoc_insertion_point(field_get:tunnelbroker.NewSessionResponse.sessionID) return _internal_sessionid(); } -inline void NewSessionResponse::set_sessionid(const std::string& value) { - _internal_set_sessionid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void NewSessionResponse::set_sessionid(ArgT0&& arg0, ArgT... args) { + + _impl_.sessionid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.NewSessionResponse.sessionID) } inline std::string* NewSessionResponse::mutable_sessionid() { + std::string* _s = _internal_mutable_sessionid(); // @@protoc_insertion_point(field_mutable:tunnelbroker.NewSessionResponse.sessionID) - return _internal_mutable_sessionid(); + return _s; } inline const std::string& NewSessionResponse::_internal_sessionid() const { - return sessionid_.Get(); + return _impl_.sessionid_.Get(); } inline void NewSessionResponse::_internal_set_sessionid(const std::string& value) { - sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void NewSessionResponse::set_sessionid(std::string&& value) { - - sessionid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewSessionResponse.sessionID) -} -inline void NewSessionResponse::set_sessionid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.NewSessionResponse.sessionID) -} -inline void NewSessionResponse::set_sessionid(const char* value, - size_t size) { - - sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewSessionResponse.sessionID) + _impl_.sessionid_.Set(value, GetArenaForAllocation()); } inline std::string* NewSessionResponse::_internal_mutable_sessionid() { - return sessionid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.sessionid_.Mutable(GetArenaForAllocation()); } inline std::string* NewSessionResponse::release_sessionid() { // @@protoc_insertion_point(field_release:tunnelbroker.NewSessionResponse.sessionID) - return sessionid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.sessionid_.Release(); } inline void NewSessionResponse::set_allocated_sessionid(std::string* sessionid) { if (sessionid != nullptr) { @@ -4046,8 +4092,12 @@ } else { } - sessionid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sessionid, - GetArena()); + _impl_.sessionid_.SetAllocated(sessionid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.sessionid_.IsDefault()) { + _impl_.sessionid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewSessionResponse.sessionID) } @@ -4057,53 +4107,38 @@ // string sessionID = 1; inline void SendRequest::clear_sessionid() { - sessionid_.ClearToEmpty(); + _impl_.sessionid_.ClearToEmpty(); } inline const std::string& SendRequest::sessionid() const { // @@protoc_insertion_point(field_get:tunnelbroker.SendRequest.sessionID) return _internal_sessionid(); } -inline void SendRequest::set_sessionid(const std::string& value) { - _internal_set_sessionid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void SendRequest::set_sessionid(ArgT0&& arg0, ArgT... args) { + + _impl_.sessionid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.SendRequest.sessionID) } inline std::string* SendRequest::mutable_sessionid() { + std::string* _s = _internal_mutable_sessionid(); // @@protoc_insertion_point(field_mutable:tunnelbroker.SendRequest.sessionID) - return _internal_mutable_sessionid(); + return _s; } inline const std::string& SendRequest::_internal_sessionid() const { - return sessionid_.Get(); + return _impl_.sessionid_.Get(); } inline void SendRequest::_internal_set_sessionid(const std::string& value) { - sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void SendRequest::set_sessionid(std::string&& value) { - - sessionid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.SendRequest.sessionID) -} -inline void SendRequest::set_sessionid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.SendRequest.sessionID) -} -inline void SendRequest::set_sessionid(const char* value, - size_t size) { - - sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.SendRequest.sessionID) + _impl_.sessionid_.Set(value, GetArenaForAllocation()); } inline std::string* SendRequest::_internal_mutable_sessionid() { - return sessionid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.sessionid_.Mutable(GetArenaForAllocation()); } inline std::string* SendRequest::release_sessionid() { // @@protoc_insertion_point(field_release:tunnelbroker.SendRequest.sessionID) - return sessionid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.sessionid_.Release(); } inline void SendRequest::set_allocated_sessionid(std::string* sessionid) { if (sessionid != nullptr) { @@ -4111,60 +4146,49 @@ } else { } - sessionid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sessionid, - GetArena()); + _impl_.sessionid_.SetAllocated(sessionid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.sessionid_.IsDefault()) { + _impl_.sessionid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.SendRequest.sessionID) } // string toDeviceID = 2; inline void SendRequest::clear_todeviceid() { - todeviceid_.ClearToEmpty(); + _impl_.todeviceid_.ClearToEmpty(); } inline const std::string& SendRequest::todeviceid() const { // @@protoc_insertion_point(field_get:tunnelbroker.SendRequest.toDeviceID) return _internal_todeviceid(); } -inline void SendRequest::set_todeviceid(const std::string& value) { - _internal_set_todeviceid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void SendRequest::set_todeviceid(ArgT0&& arg0, ArgT... args) { + + _impl_.todeviceid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.SendRequest.toDeviceID) } inline std::string* SendRequest::mutable_todeviceid() { + std::string* _s = _internal_mutable_todeviceid(); // @@protoc_insertion_point(field_mutable:tunnelbroker.SendRequest.toDeviceID) - return _internal_mutable_todeviceid(); + return _s; } inline const std::string& SendRequest::_internal_todeviceid() const { - return todeviceid_.Get(); + return _impl_.todeviceid_.Get(); } inline void SendRequest::_internal_set_todeviceid(const std::string& value) { - todeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void SendRequest::set_todeviceid(std::string&& value) { - - todeviceid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.SendRequest.toDeviceID) -} -inline void SendRequest::set_todeviceid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - todeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.SendRequest.toDeviceID) -} -inline void SendRequest::set_todeviceid(const char* value, - size_t size) { - - todeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.SendRequest.toDeviceID) + _impl_.todeviceid_.Set(value, GetArenaForAllocation()); } inline std::string* SendRequest::_internal_mutable_todeviceid() { - return todeviceid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.todeviceid_.Mutable(GetArenaForAllocation()); } inline std::string* SendRequest::release_todeviceid() { // @@protoc_insertion_point(field_release:tunnelbroker.SendRequest.toDeviceID) - return todeviceid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.todeviceid_.Release(); } inline void SendRequest::set_allocated_todeviceid(std::string* todeviceid) { if (todeviceid != nullptr) { @@ -4172,60 +4196,49 @@ } else { } - todeviceid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), todeviceid, - GetArena()); + _impl_.todeviceid_.SetAllocated(todeviceid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.todeviceid_.IsDefault()) { + _impl_.todeviceid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.SendRequest.toDeviceID) } // bytes payload = 3; inline void SendRequest::clear_payload() { - payload_.ClearToEmpty(); + _impl_.payload_.ClearToEmpty(); } inline const std::string& SendRequest::payload() const { // @@protoc_insertion_point(field_get:tunnelbroker.SendRequest.payload) return _internal_payload(); } -inline void SendRequest::set_payload(const std::string& value) { - _internal_set_payload(value); +template +inline PROTOBUF_ALWAYS_INLINE +void SendRequest::set_payload(ArgT0&& arg0, ArgT... args) { + + _impl_.payload_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.SendRequest.payload) } inline std::string* SendRequest::mutable_payload() { + std::string* _s = _internal_mutable_payload(); // @@protoc_insertion_point(field_mutable:tunnelbroker.SendRequest.payload) - return _internal_mutable_payload(); + return _s; } inline const std::string& SendRequest::_internal_payload() const { - return payload_.Get(); + return _impl_.payload_.Get(); } inline void SendRequest::_internal_set_payload(const std::string& value) { - payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void SendRequest::set_payload(std::string&& value) { - - payload_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.SendRequest.payload) -} -inline void SendRequest::set_payload(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.SendRequest.payload) -} -inline void SendRequest::set_payload(const void* value, - size_t size) { - - payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.SendRequest.payload) + _impl_.payload_.Set(value, GetArenaForAllocation()); } inline std::string* SendRequest::_internal_mutable_payload() { - return payload_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.payload_.Mutable(GetArenaForAllocation()); } inline std::string* SendRequest::release_payload() { // @@protoc_insertion_point(field_release:tunnelbroker.SendRequest.payload) - return payload_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.payload_.Release(); } inline void SendRequest::set_allocated_payload(std::string* payload) { if (payload != nullptr) { @@ -4233,27 +4246,32 @@ } else { } - payload_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), payload, - GetArena()); + _impl_.payload_.SetAllocated(payload, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.payload_.IsDefault()) { + _impl_.payload_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.SendRequest.payload) } // repeated string blobHashes = 4; inline int SendRequest::_internal_blobhashes_size() const { - return blobhashes_.size(); + return _impl_.blobhashes_.size(); } inline int SendRequest::blobhashes_size() const { return _internal_blobhashes_size(); } inline void SendRequest::clear_blobhashes() { - blobhashes_.Clear(); + _impl_.blobhashes_.Clear(); } inline std::string* SendRequest::add_blobhashes() { + std::string* _s = _internal_add_blobhashes(); // @@protoc_insertion_point(field_add_mutable:tunnelbroker.SendRequest.blobHashes) - return _internal_add_blobhashes(); + return _s; } inline const std::string& SendRequest::_internal_blobhashes(int index) const { - return blobhashes_.Get(index); + return _impl_.blobhashes_.Get(index); } inline const std::string& SendRequest::blobhashes(int index) const { // @@protoc_insertion_point(field_get:tunnelbroker.SendRequest.blobHashes) @@ -4261,55 +4279,55 @@ } inline std::string* SendRequest::mutable_blobhashes(int index) { // @@protoc_insertion_point(field_mutable:tunnelbroker.SendRequest.blobHashes) - return blobhashes_.Mutable(index); + return _impl_.blobhashes_.Mutable(index); } inline void SendRequest::set_blobhashes(int index, const std::string& value) { + _impl_.blobhashes_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:tunnelbroker.SendRequest.blobHashes) - blobhashes_.Mutable(index)->assign(value); } inline void SendRequest::set_blobhashes(int index, std::string&& value) { + _impl_.blobhashes_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:tunnelbroker.SendRequest.blobHashes) - blobhashes_.Mutable(index)->assign(std::move(value)); } inline void SendRequest::set_blobhashes(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); - blobhashes_.Mutable(index)->assign(value); + _impl_.blobhashes_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:tunnelbroker.SendRequest.blobHashes) } inline void SendRequest::set_blobhashes(int index, const char* value, size_t size) { - blobhashes_.Mutable(index)->assign( + _impl_.blobhashes_.Mutable(index)->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:tunnelbroker.SendRequest.blobHashes) } inline std::string* SendRequest::_internal_add_blobhashes() { - return blobhashes_.Add(); + return _impl_.blobhashes_.Add(); } inline void SendRequest::add_blobhashes(const std::string& value) { - blobhashes_.Add()->assign(value); + _impl_.blobhashes_.Add()->assign(value); // @@protoc_insertion_point(field_add:tunnelbroker.SendRequest.blobHashes) } inline void SendRequest::add_blobhashes(std::string&& value) { - blobhashes_.Add(std::move(value)); + _impl_.blobhashes_.Add(std::move(value)); // @@protoc_insertion_point(field_add:tunnelbroker.SendRequest.blobHashes) } inline void SendRequest::add_blobhashes(const char* value) { GOOGLE_DCHECK(value != nullptr); - blobhashes_.Add()->assign(value); + _impl_.blobhashes_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:tunnelbroker.SendRequest.blobHashes) } inline void SendRequest::add_blobhashes(const char* value, size_t size) { - blobhashes_.Add()->assign(reinterpret_cast(value), size); + _impl_.blobhashes_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:tunnelbroker.SendRequest.blobHashes) } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& SendRequest::blobhashes() const { // @@protoc_insertion_point(field_list:tunnelbroker.SendRequest.blobHashes) - return blobhashes_; + return _impl_.blobhashes_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* SendRequest::mutable_blobhashes() { // @@protoc_insertion_point(field_mutable_list:tunnelbroker.SendRequest.blobHashes) - return &blobhashes_; + return &_impl_.blobhashes_; } // ------------------------------------------------------------------- @@ -4318,53 +4336,38 @@ // string sessionID = 1; inline void GetRequest::clear_sessionid() { - sessionid_.ClearToEmpty(); + _impl_.sessionid_.ClearToEmpty(); } inline const std::string& GetRequest::sessionid() const { // @@protoc_insertion_point(field_get:tunnelbroker.GetRequest.sessionID) return _internal_sessionid(); } -inline void GetRequest::set_sessionid(const std::string& value) { - _internal_set_sessionid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void GetRequest::set_sessionid(ArgT0&& arg0, ArgT... args) { + + _impl_.sessionid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.GetRequest.sessionID) } inline std::string* GetRequest::mutable_sessionid() { + std::string* _s = _internal_mutable_sessionid(); // @@protoc_insertion_point(field_mutable:tunnelbroker.GetRequest.sessionID) - return _internal_mutable_sessionid(); + return _s; } inline const std::string& GetRequest::_internal_sessionid() const { - return sessionid_.Get(); + return _impl_.sessionid_.Get(); } inline void GetRequest::_internal_set_sessionid(const std::string& value) { - sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void GetRequest::set_sessionid(std::string&& value) { - - sessionid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.GetRequest.sessionID) -} -inline void GetRequest::set_sessionid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.GetRequest.sessionID) -} -inline void GetRequest::set_sessionid(const char* value, - size_t size) { - - sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.GetRequest.sessionID) + _impl_.sessionid_.Set(value, GetArenaForAllocation()); } inline std::string* GetRequest::_internal_mutable_sessionid() { - return sessionid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.sessionid_.Mutable(GetArenaForAllocation()); } inline std::string* GetRequest::release_sessionid() { // @@protoc_insertion_point(field_release:tunnelbroker.GetRequest.sessionID) - return sessionid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.sessionid_.Release(); } inline void GetRequest::set_allocated_sessionid(std::string* sessionid) { if (sessionid != nullptr) { @@ -4372,8 +4375,12 @@ } else { } - sessionid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sessionid, - GetArena()); + _impl_.sessionid_.SetAllocated(sessionid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.sessionid_.IsDefault()) { + _impl_.sessionid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.GetRequest.sessionID) } @@ -4383,53 +4390,38 @@ // string fromDeviceID = 1; inline void GetResponse::clear_fromdeviceid() { - fromdeviceid_.ClearToEmpty(); + _impl_.fromdeviceid_.ClearToEmpty(); } inline const std::string& GetResponse::fromdeviceid() const { // @@protoc_insertion_point(field_get:tunnelbroker.GetResponse.fromDeviceID) return _internal_fromdeviceid(); } -inline void GetResponse::set_fromdeviceid(const std::string& value) { - _internal_set_fromdeviceid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void GetResponse::set_fromdeviceid(ArgT0&& arg0, ArgT... args) { + + _impl_.fromdeviceid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.GetResponse.fromDeviceID) } inline std::string* GetResponse::mutable_fromdeviceid() { + std::string* _s = _internal_mutable_fromdeviceid(); // @@protoc_insertion_point(field_mutable:tunnelbroker.GetResponse.fromDeviceID) - return _internal_mutable_fromdeviceid(); + return _s; } inline const std::string& GetResponse::_internal_fromdeviceid() const { - return fromdeviceid_.Get(); + return _impl_.fromdeviceid_.Get(); } inline void GetResponse::_internal_set_fromdeviceid(const std::string& value) { - fromdeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void GetResponse::set_fromdeviceid(std::string&& value) { - - fromdeviceid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.GetResponse.fromDeviceID) -} -inline void GetResponse::set_fromdeviceid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - fromdeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.GetResponse.fromDeviceID) -} -inline void GetResponse::set_fromdeviceid(const char* value, - size_t size) { - - fromdeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.GetResponse.fromDeviceID) + _impl_.fromdeviceid_.Set(value, GetArenaForAllocation()); } inline std::string* GetResponse::_internal_mutable_fromdeviceid() { - return fromdeviceid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.fromdeviceid_.Mutable(GetArenaForAllocation()); } inline std::string* GetResponse::release_fromdeviceid() { // @@protoc_insertion_point(field_release:tunnelbroker.GetResponse.fromDeviceID) - return fromdeviceid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.fromdeviceid_.Release(); } inline void GetResponse::set_allocated_fromdeviceid(std::string* fromdeviceid) { if (fromdeviceid != nullptr) { @@ -4437,60 +4429,49 @@ } else { } - fromdeviceid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fromdeviceid, - GetArena()); + _impl_.fromdeviceid_.SetAllocated(fromdeviceid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.fromdeviceid_.IsDefault()) { + _impl_.fromdeviceid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.GetResponse.fromDeviceID) } // bytes payload = 2; inline void GetResponse::clear_payload() { - payload_.ClearToEmpty(); + _impl_.payload_.ClearToEmpty(); } inline const std::string& GetResponse::payload() const { // @@protoc_insertion_point(field_get:tunnelbroker.GetResponse.payload) return _internal_payload(); } -inline void GetResponse::set_payload(const std::string& value) { - _internal_set_payload(value); +template +inline PROTOBUF_ALWAYS_INLINE +void GetResponse::set_payload(ArgT0&& arg0, ArgT... args) { + + _impl_.payload_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.GetResponse.payload) } inline std::string* GetResponse::mutable_payload() { + std::string* _s = _internal_mutable_payload(); // @@protoc_insertion_point(field_mutable:tunnelbroker.GetResponse.payload) - return _internal_mutable_payload(); + return _s; } inline const std::string& GetResponse::_internal_payload() const { - return payload_.Get(); + return _impl_.payload_.Get(); } inline void GetResponse::_internal_set_payload(const std::string& value) { - payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void GetResponse::set_payload(std::string&& value) { - - payload_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.GetResponse.payload) -} -inline void GetResponse::set_payload(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.GetResponse.payload) -} -inline void GetResponse::set_payload(const void* value, - size_t size) { - - payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.GetResponse.payload) + _impl_.payload_.Set(value, GetArenaForAllocation()); } inline std::string* GetResponse::_internal_mutable_payload() { - return payload_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.payload_.Mutable(GetArenaForAllocation()); } inline std::string* GetResponse::release_payload() { // @@protoc_insertion_point(field_release:tunnelbroker.GetResponse.payload) - return payload_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.payload_.Release(); } inline void GetResponse::set_allocated_payload(std::string* payload) { if (payload != nullptr) { @@ -4498,27 +4479,32 @@ } else { } - payload_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), payload, - GetArena()); + _impl_.payload_.SetAllocated(payload, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.payload_.IsDefault()) { + _impl_.payload_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.GetResponse.payload) } // repeated string blobHashes = 3; inline int GetResponse::_internal_blobhashes_size() const { - return blobhashes_.size(); + return _impl_.blobhashes_.size(); } inline int GetResponse::blobhashes_size() const { return _internal_blobhashes_size(); } inline void GetResponse::clear_blobhashes() { - blobhashes_.Clear(); + _impl_.blobhashes_.Clear(); } inline std::string* GetResponse::add_blobhashes() { + std::string* _s = _internal_add_blobhashes(); // @@protoc_insertion_point(field_add_mutable:tunnelbroker.GetResponse.blobHashes) - return _internal_add_blobhashes(); + return _s; } inline const std::string& GetResponse::_internal_blobhashes(int index) const { - return blobhashes_.Get(index); + return _impl_.blobhashes_.Get(index); } inline const std::string& GetResponse::blobhashes(int index) const { // @@protoc_insertion_point(field_get:tunnelbroker.GetResponse.blobHashes) @@ -4526,55 +4512,55 @@ } inline std::string* GetResponse::mutable_blobhashes(int index) { // @@protoc_insertion_point(field_mutable:tunnelbroker.GetResponse.blobHashes) - return blobhashes_.Mutable(index); + return _impl_.blobhashes_.Mutable(index); } inline void GetResponse::set_blobhashes(int index, const std::string& value) { + _impl_.blobhashes_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:tunnelbroker.GetResponse.blobHashes) - blobhashes_.Mutable(index)->assign(value); } inline void GetResponse::set_blobhashes(int index, std::string&& value) { + _impl_.blobhashes_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:tunnelbroker.GetResponse.blobHashes) - blobhashes_.Mutable(index)->assign(std::move(value)); } inline void GetResponse::set_blobhashes(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); - blobhashes_.Mutable(index)->assign(value); + _impl_.blobhashes_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:tunnelbroker.GetResponse.blobHashes) } inline void GetResponse::set_blobhashes(int index, const char* value, size_t size) { - blobhashes_.Mutable(index)->assign( + _impl_.blobhashes_.Mutable(index)->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:tunnelbroker.GetResponse.blobHashes) } inline std::string* GetResponse::_internal_add_blobhashes() { - return blobhashes_.Add(); + return _impl_.blobhashes_.Add(); } inline void GetResponse::add_blobhashes(const std::string& value) { - blobhashes_.Add()->assign(value); + _impl_.blobhashes_.Add()->assign(value); // @@protoc_insertion_point(field_add:tunnelbroker.GetResponse.blobHashes) } inline void GetResponse::add_blobhashes(std::string&& value) { - blobhashes_.Add(std::move(value)); + _impl_.blobhashes_.Add(std::move(value)); // @@protoc_insertion_point(field_add:tunnelbroker.GetResponse.blobHashes) } inline void GetResponse::add_blobhashes(const char* value) { GOOGLE_DCHECK(value != nullptr); - blobhashes_.Add()->assign(value); + _impl_.blobhashes_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:tunnelbroker.GetResponse.blobHashes) } inline void GetResponse::add_blobhashes(const char* value, size_t size) { - blobhashes_.Add()->assign(reinterpret_cast(value), size); + _impl_.blobhashes_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:tunnelbroker.GetResponse.blobHashes) } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& GetResponse::blobhashes() const { // @@protoc_insertion_point(field_list:tunnelbroker.GetResponse.blobHashes) - return blobhashes_; + return _impl_.blobhashes_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* GetResponse::mutable_blobhashes() { // @@protoc_insertion_point(field_mutable_list:tunnelbroker.GetResponse.blobHashes) - return &blobhashes_; + return &_impl_.blobhashes_; } // ------------------------------------------------------------------- @@ -4583,20 +4569,21 @@ // repeated string messageID = 1; inline int ProcessedMessages::_internal_messageid_size() const { - return messageid_.size(); + return _impl_.messageid_.size(); } inline int ProcessedMessages::messageid_size() const { return _internal_messageid_size(); } inline void ProcessedMessages::clear_messageid() { - messageid_.Clear(); + _impl_.messageid_.Clear(); } inline std::string* ProcessedMessages::add_messageid() { + std::string* _s = _internal_add_messageid(); // @@protoc_insertion_point(field_add_mutable:tunnelbroker.ProcessedMessages.messageID) - return _internal_add_messageid(); + return _s; } inline const std::string& ProcessedMessages::_internal_messageid(int index) const { - return messageid_.Get(index); + return _impl_.messageid_.Get(index); } inline const std::string& ProcessedMessages::messageid(int index) const { // @@protoc_insertion_point(field_get:tunnelbroker.ProcessedMessages.messageID) @@ -4604,55 +4591,55 @@ } inline std::string* ProcessedMessages::mutable_messageid(int index) { // @@protoc_insertion_point(field_mutable:tunnelbroker.ProcessedMessages.messageID) - return messageid_.Mutable(index); + return _impl_.messageid_.Mutable(index); } inline void ProcessedMessages::set_messageid(int index, const std::string& value) { + _impl_.messageid_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:tunnelbroker.ProcessedMessages.messageID) - messageid_.Mutable(index)->assign(value); } inline void ProcessedMessages::set_messageid(int index, std::string&& value) { + _impl_.messageid_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:tunnelbroker.ProcessedMessages.messageID) - messageid_.Mutable(index)->assign(std::move(value)); } inline void ProcessedMessages::set_messageid(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); - messageid_.Mutable(index)->assign(value); + _impl_.messageid_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:tunnelbroker.ProcessedMessages.messageID) } inline void ProcessedMessages::set_messageid(int index, const char* value, size_t size) { - messageid_.Mutable(index)->assign( + _impl_.messageid_.Mutable(index)->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:tunnelbroker.ProcessedMessages.messageID) } inline std::string* ProcessedMessages::_internal_add_messageid() { - return messageid_.Add(); + return _impl_.messageid_.Add(); } inline void ProcessedMessages::add_messageid(const std::string& value) { - messageid_.Add()->assign(value); + _impl_.messageid_.Add()->assign(value); // @@protoc_insertion_point(field_add:tunnelbroker.ProcessedMessages.messageID) } inline void ProcessedMessages::add_messageid(std::string&& value) { - messageid_.Add(std::move(value)); + _impl_.messageid_.Add(std::move(value)); // @@protoc_insertion_point(field_add:tunnelbroker.ProcessedMessages.messageID) } inline void ProcessedMessages::add_messageid(const char* value) { GOOGLE_DCHECK(value != nullptr); - messageid_.Add()->assign(value); + _impl_.messageid_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:tunnelbroker.ProcessedMessages.messageID) } inline void ProcessedMessages::add_messageid(const char* value, size_t size) { - messageid_.Add()->assign(reinterpret_cast(value), size); + _impl_.messageid_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:tunnelbroker.ProcessedMessages.messageID) } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& ProcessedMessages::messageid() const { // @@protoc_insertion_point(field_list:tunnelbroker.ProcessedMessages.messageID) - return messageid_; + return _impl_.messageid_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* ProcessedMessages::mutable_messageid() { // @@protoc_insertion_point(field_mutable_list:tunnelbroker.ProcessedMessages.messageID) - return &messageid_; + return &_impl_.messageid_; } // ------------------------------------------------------------------- @@ -4661,53 +4648,38 @@ // string messageID = 1; inline void MessageToTunnelbrokerStruct::clear_messageid() { - messageid_.ClearToEmpty(); + _impl_.messageid_.ClearToEmpty(); } inline const std::string& MessageToTunnelbrokerStruct::messageid() const { // @@protoc_insertion_point(field_get:tunnelbroker.MessageToTunnelbrokerStruct.messageID) return _internal_messageid(); } -inline void MessageToTunnelbrokerStruct::set_messageid(const std::string& value) { - _internal_set_messageid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void MessageToTunnelbrokerStruct::set_messageid(ArgT0&& arg0, ArgT... args) { + + _impl_.messageid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.MessageToTunnelbrokerStruct.messageID) } inline std::string* MessageToTunnelbrokerStruct::mutable_messageid() { + std::string* _s = _internal_mutable_messageid(); // @@protoc_insertion_point(field_mutable:tunnelbroker.MessageToTunnelbrokerStruct.messageID) - return _internal_mutable_messageid(); + return _s; } inline const std::string& MessageToTunnelbrokerStruct::_internal_messageid() const { - return messageid_.Get(); + return _impl_.messageid_.Get(); } inline void MessageToTunnelbrokerStruct::_internal_set_messageid(const std::string& value) { - messageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MessageToTunnelbrokerStruct::set_messageid(std::string&& value) { - - messageid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.MessageToTunnelbrokerStruct.messageID) -} -inline void MessageToTunnelbrokerStruct::set_messageid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - messageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.MessageToTunnelbrokerStruct.messageID) -} -inline void MessageToTunnelbrokerStruct::set_messageid(const char* value, - size_t size) { - - messageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.MessageToTunnelbrokerStruct.messageID) + _impl_.messageid_.Set(value, GetArenaForAllocation()); } inline std::string* MessageToTunnelbrokerStruct::_internal_mutable_messageid() { - return messageid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.messageid_.Mutable(GetArenaForAllocation()); } inline std::string* MessageToTunnelbrokerStruct::release_messageid() { // @@protoc_insertion_point(field_release:tunnelbroker.MessageToTunnelbrokerStruct.messageID) - return messageid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.messageid_.Release(); } inline void MessageToTunnelbrokerStruct::set_allocated_messageid(std::string* messageid) { if (messageid != nullptr) { @@ -4715,60 +4687,49 @@ } else { } - messageid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), messageid, - GetArena()); + _impl_.messageid_.SetAllocated(messageid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.messageid_.IsDefault()) { + _impl_.messageid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToTunnelbrokerStruct.messageID) } // string toDeviceID = 2; inline void MessageToTunnelbrokerStruct::clear_todeviceid() { - todeviceid_.ClearToEmpty(); + _impl_.todeviceid_.ClearToEmpty(); } inline const std::string& MessageToTunnelbrokerStruct::todeviceid() const { // @@protoc_insertion_point(field_get:tunnelbroker.MessageToTunnelbrokerStruct.toDeviceID) return _internal_todeviceid(); } -inline void MessageToTunnelbrokerStruct::set_todeviceid(const std::string& value) { - _internal_set_todeviceid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void MessageToTunnelbrokerStruct::set_todeviceid(ArgT0&& arg0, ArgT... args) { + + _impl_.todeviceid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.MessageToTunnelbrokerStruct.toDeviceID) } inline std::string* MessageToTunnelbrokerStruct::mutable_todeviceid() { + std::string* _s = _internal_mutable_todeviceid(); // @@protoc_insertion_point(field_mutable:tunnelbroker.MessageToTunnelbrokerStruct.toDeviceID) - return _internal_mutable_todeviceid(); + return _s; } inline const std::string& MessageToTunnelbrokerStruct::_internal_todeviceid() const { - return todeviceid_.Get(); + return _impl_.todeviceid_.Get(); } inline void MessageToTunnelbrokerStruct::_internal_set_todeviceid(const std::string& value) { - todeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MessageToTunnelbrokerStruct::set_todeviceid(std::string&& value) { - - todeviceid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.MessageToTunnelbrokerStruct.toDeviceID) -} -inline void MessageToTunnelbrokerStruct::set_todeviceid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - todeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.MessageToTunnelbrokerStruct.toDeviceID) -} -inline void MessageToTunnelbrokerStruct::set_todeviceid(const char* value, - size_t size) { - - todeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.MessageToTunnelbrokerStruct.toDeviceID) + _impl_.todeviceid_.Set(value, GetArenaForAllocation()); } inline std::string* MessageToTunnelbrokerStruct::_internal_mutable_todeviceid() { - return todeviceid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.todeviceid_.Mutable(GetArenaForAllocation()); } inline std::string* MessageToTunnelbrokerStruct::release_todeviceid() { // @@protoc_insertion_point(field_release:tunnelbroker.MessageToTunnelbrokerStruct.toDeviceID) - return todeviceid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.todeviceid_.Release(); } inline void MessageToTunnelbrokerStruct::set_allocated_todeviceid(std::string* todeviceid) { if (todeviceid != nullptr) { @@ -4776,60 +4737,49 @@ } else { } - todeviceid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), todeviceid, - GetArena()); + _impl_.todeviceid_.SetAllocated(todeviceid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.todeviceid_.IsDefault()) { + _impl_.todeviceid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToTunnelbrokerStruct.toDeviceID) } // string payload = 3; inline void MessageToTunnelbrokerStruct::clear_payload() { - payload_.ClearToEmpty(); + _impl_.payload_.ClearToEmpty(); } inline const std::string& MessageToTunnelbrokerStruct::payload() const { // @@protoc_insertion_point(field_get:tunnelbroker.MessageToTunnelbrokerStruct.payload) return _internal_payload(); } -inline void MessageToTunnelbrokerStruct::set_payload(const std::string& value) { - _internal_set_payload(value); +template +inline PROTOBUF_ALWAYS_INLINE +void MessageToTunnelbrokerStruct::set_payload(ArgT0&& arg0, ArgT... args) { + + _impl_.payload_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.MessageToTunnelbrokerStruct.payload) } inline std::string* MessageToTunnelbrokerStruct::mutable_payload() { + std::string* _s = _internal_mutable_payload(); // @@protoc_insertion_point(field_mutable:tunnelbroker.MessageToTunnelbrokerStruct.payload) - return _internal_mutable_payload(); + return _s; } inline const std::string& MessageToTunnelbrokerStruct::_internal_payload() const { - return payload_.Get(); + return _impl_.payload_.Get(); } inline void MessageToTunnelbrokerStruct::_internal_set_payload(const std::string& value) { - payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MessageToTunnelbrokerStruct::set_payload(std::string&& value) { - - payload_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.MessageToTunnelbrokerStruct.payload) -} -inline void MessageToTunnelbrokerStruct::set_payload(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.MessageToTunnelbrokerStruct.payload) -} -inline void MessageToTunnelbrokerStruct::set_payload(const char* value, - size_t size) { - - payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.MessageToTunnelbrokerStruct.payload) + _impl_.payload_.Set(value, GetArenaForAllocation()); } inline std::string* MessageToTunnelbrokerStruct::_internal_mutable_payload() { - return payload_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.payload_.Mutable(GetArenaForAllocation()); } inline std::string* MessageToTunnelbrokerStruct::release_payload() { // @@protoc_insertion_point(field_release:tunnelbroker.MessageToTunnelbrokerStruct.payload) - return payload_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.payload_.Release(); } inline void MessageToTunnelbrokerStruct::set_allocated_payload(std::string* payload) { if (payload != nullptr) { @@ -4837,27 +4787,32 @@ } else { } - payload_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), payload, - GetArena()); + _impl_.payload_.SetAllocated(payload, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.payload_.IsDefault()) { + _impl_.payload_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToTunnelbrokerStruct.payload) } // repeated string blobHashes = 4; inline int MessageToTunnelbrokerStruct::_internal_blobhashes_size() const { - return blobhashes_.size(); + return _impl_.blobhashes_.size(); } inline int MessageToTunnelbrokerStruct::blobhashes_size() const { return _internal_blobhashes_size(); } inline void MessageToTunnelbrokerStruct::clear_blobhashes() { - blobhashes_.Clear(); + _impl_.blobhashes_.Clear(); } inline std::string* MessageToTunnelbrokerStruct::add_blobhashes() { + std::string* _s = _internal_add_blobhashes(); // @@protoc_insertion_point(field_add_mutable:tunnelbroker.MessageToTunnelbrokerStruct.blobHashes) - return _internal_add_blobhashes(); + return _s; } inline const std::string& MessageToTunnelbrokerStruct::_internal_blobhashes(int index) const { - return blobhashes_.Get(index); + return _impl_.blobhashes_.Get(index); } inline const std::string& MessageToTunnelbrokerStruct::blobhashes(int index) const { // @@protoc_insertion_point(field_get:tunnelbroker.MessageToTunnelbrokerStruct.blobHashes) @@ -4865,55 +4820,55 @@ } inline std::string* MessageToTunnelbrokerStruct::mutable_blobhashes(int index) { // @@protoc_insertion_point(field_mutable:tunnelbroker.MessageToTunnelbrokerStruct.blobHashes) - return blobhashes_.Mutable(index); + return _impl_.blobhashes_.Mutable(index); } inline void MessageToTunnelbrokerStruct::set_blobhashes(int index, const std::string& value) { + _impl_.blobhashes_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:tunnelbroker.MessageToTunnelbrokerStruct.blobHashes) - blobhashes_.Mutable(index)->assign(value); } inline void MessageToTunnelbrokerStruct::set_blobhashes(int index, std::string&& value) { + _impl_.blobhashes_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:tunnelbroker.MessageToTunnelbrokerStruct.blobHashes) - blobhashes_.Mutable(index)->assign(std::move(value)); } inline void MessageToTunnelbrokerStruct::set_blobhashes(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); - blobhashes_.Mutable(index)->assign(value); + _impl_.blobhashes_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:tunnelbroker.MessageToTunnelbrokerStruct.blobHashes) } inline void MessageToTunnelbrokerStruct::set_blobhashes(int index, const char* value, size_t size) { - blobhashes_.Mutable(index)->assign( + _impl_.blobhashes_.Mutable(index)->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:tunnelbroker.MessageToTunnelbrokerStruct.blobHashes) } inline std::string* MessageToTunnelbrokerStruct::_internal_add_blobhashes() { - return blobhashes_.Add(); + return _impl_.blobhashes_.Add(); } inline void MessageToTunnelbrokerStruct::add_blobhashes(const std::string& value) { - blobhashes_.Add()->assign(value); + _impl_.blobhashes_.Add()->assign(value); // @@protoc_insertion_point(field_add:tunnelbroker.MessageToTunnelbrokerStruct.blobHashes) } inline void MessageToTunnelbrokerStruct::add_blobhashes(std::string&& value) { - blobhashes_.Add(std::move(value)); + _impl_.blobhashes_.Add(std::move(value)); // @@protoc_insertion_point(field_add:tunnelbroker.MessageToTunnelbrokerStruct.blobHashes) } inline void MessageToTunnelbrokerStruct::add_blobhashes(const char* value) { GOOGLE_DCHECK(value != nullptr); - blobhashes_.Add()->assign(value); + _impl_.blobhashes_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:tunnelbroker.MessageToTunnelbrokerStruct.blobHashes) } inline void MessageToTunnelbrokerStruct::add_blobhashes(const char* value, size_t size) { - blobhashes_.Add()->assign(reinterpret_cast(value), size); + _impl_.blobhashes_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:tunnelbroker.MessageToTunnelbrokerStruct.blobHashes) } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& MessageToTunnelbrokerStruct::blobhashes() const { // @@protoc_insertion_point(field_list:tunnelbroker.MessageToTunnelbrokerStruct.blobHashes) - return blobhashes_; + return _impl_.blobhashes_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* MessageToTunnelbrokerStruct::mutable_blobhashes() { // @@protoc_insertion_point(field_mutable_list:tunnelbroker.MessageToTunnelbrokerStruct.blobHashes) - return &blobhashes_; + return &_impl_.blobhashes_; } // ------------------------------------------------------------------- @@ -4922,41 +4877,42 @@ // repeated .tunnelbroker.MessageToTunnelbrokerStruct messages = 1; inline int MessagesToSend::_internal_messages_size() const { - return messages_.size(); + return _impl_.messages_.size(); } inline int MessagesToSend::messages_size() const { return _internal_messages_size(); } inline void MessagesToSend::clear_messages() { - messages_.Clear(); + _impl_.messages_.Clear(); } inline ::tunnelbroker::MessageToTunnelbrokerStruct* MessagesToSend::mutable_messages(int index) { // @@protoc_insertion_point(field_mutable:tunnelbroker.MessagesToSend.messages) - return messages_.Mutable(index); + return _impl_.messages_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToTunnelbrokerStruct >* MessagesToSend::mutable_messages() { // @@protoc_insertion_point(field_mutable_list:tunnelbroker.MessagesToSend.messages) - return &messages_; + return &_impl_.messages_; } inline const ::tunnelbroker::MessageToTunnelbrokerStruct& MessagesToSend::_internal_messages(int index) const { - return messages_.Get(index); + return _impl_.messages_.Get(index); } inline const ::tunnelbroker::MessageToTunnelbrokerStruct& MessagesToSend::messages(int index) const { // @@protoc_insertion_point(field_get:tunnelbroker.MessagesToSend.messages) return _internal_messages(index); } inline ::tunnelbroker::MessageToTunnelbrokerStruct* MessagesToSend::_internal_add_messages() { - return messages_.Add(); + return _impl_.messages_.Add(); } inline ::tunnelbroker::MessageToTunnelbrokerStruct* MessagesToSend::add_messages() { + ::tunnelbroker::MessageToTunnelbrokerStruct* _add = _internal_add_messages(); // @@protoc_insertion_point(field_add:tunnelbroker.MessagesToSend.messages) - return _internal_add_messages(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToTunnelbrokerStruct >& MessagesToSend::messages() const { // @@protoc_insertion_point(field_list:tunnelbroker.MessagesToSend.messages) - return messages_; + return _impl_.messages_; } // ------------------------------------------------------------------- @@ -4965,53 +4921,38 @@ // string sessionID = 1; inline void MessageToTunnelbroker::clear_sessionid() { - sessionid_.ClearToEmpty(); + _impl_.sessionid_.ClearToEmpty(); } inline const std::string& MessageToTunnelbroker::sessionid() const { // @@protoc_insertion_point(field_get:tunnelbroker.MessageToTunnelbroker.sessionID) return _internal_sessionid(); } -inline void MessageToTunnelbroker::set_sessionid(const std::string& value) { - _internal_set_sessionid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void MessageToTunnelbroker::set_sessionid(ArgT0&& arg0, ArgT... args) { + + _impl_.sessionid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.MessageToTunnelbroker.sessionID) } inline std::string* MessageToTunnelbroker::mutable_sessionid() { + std::string* _s = _internal_mutable_sessionid(); // @@protoc_insertion_point(field_mutable:tunnelbroker.MessageToTunnelbroker.sessionID) - return _internal_mutable_sessionid(); + return _s; } inline const std::string& MessageToTunnelbroker::_internal_sessionid() const { - return sessionid_.Get(); + return _impl_.sessionid_.Get(); } inline void MessageToTunnelbroker::_internal_set_sessionid(const std::string& value) { - sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MessageToTunnelbroker::set_sessionid(std::string&& value) { - - sessionid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.MessageToTunnelbroker.sessionID) -} -inline void MessageToTunnelbroker::set_sessionid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.MessageToTunnelbroker.sessionID) -} -inline void MessageToTunnelbroker::set_sessionid(const char* value, - size_t size) { - - sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.MessageToTunnelbroker.sessionID) + _impl_.sessionid_.Set(value, GetArenaForAllocation()); } inline std::string* MessageToTunnelbroker::_internal_mutable_sessionid() { - return sessionid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.sessionid_.Mutable(GetArenaForAllocation()); } inline std::string* MessageToTunnelbroker::release_sessionid() { // @@protoc_insertion_point(field_release:tunnelbroker.MessageToTunnelbroker.sessionID) - return sessionid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.sessionid_.Release(); } inline void MessageToTunnelbroker::set_allocated_sessionid(std::string* sessionid) { if (sessionid != nullptr) { @@ -5019,8 +4960,12 @@ } else { } - sessionid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sessionid, - GetArena()); + _impl_.sessionid_.SetAllocated(sessionid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.sessionid_.IsDefault()) { + _impl_.sessionid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToTunnelbroker.sessionID) } @@ -5032,12 +4977,12 @@ return _internal_has_messagestosend(); } inline void MessageToTunnelbroker::set_has_messagestosend() { - _oneof_case_[0] = kMessagesToSend; + _impl_._oneof_case_[0] = kMessagesToSend; } inline void MessageToTunnelbroker::clear_messagestosend() { if (_internal_has_messagestosend()) { - if (GetArena() == nullptr) { - delete data_.messagestosend_; + if (GetArenaForAllocation() == nullptr) { + delete _impl_.data_.messagestosend_; } clear_has_data(); } @@ -5046,11 +4991,11 @@ // @@protoc_insertion_point(field_release:tunnelbroker.MessageToTunnelbroker.messagesToSend) if (_internal_has_messagestosend()) { clear_has_data(); - ::tunnelbroker::MessagesToSend* temp = data_.messagestosend_; - if (GetArena() != nullptr) { + ::tunnelbroker::MessagesToSend* temp = _impl_.data_.messagestosend_; + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - data_.messagestosend_ = nullptr; + _impl_.data_.messagestosend_ = nullptr; return temp; } else { return nullptr; @@ -5058,7 +5003,7 @@ } inline const ::tunnelbroker::MessagesToSend& MessageToTunnelbroker::_internal_messagestosend() const { return _internal_has_messagestosend() - ? *data_.messagestosend_ + ? *_impl_.data_.messagestosend_ : reinterpret_cast< ::tunnelbroker::MessagesToSend&>(::tunnelbroker::_MessagesToSend_default_instance_); } inline const ::tunnelbroker::MessagesToSend& MessageToTunnelbroker::messagestosend() const { @@ -5069,8 +5014,8 @@ // @@protoc_insertion_point(field_unsafe_arena_release:tunnelbroker.MessageToTunnelbroker.messagesToSend) if (_internal_has_messagestosend()) { clear_has_data(); - ::tunnelbroker::MessagesToSend* temp = data_.messagestosend_; - data_.messagestosend_ = nullptr; + ::tunnelbroker::MessagesToSend* temp = _impl_.data_.messagestosend_; + _impl_.data_.messagestosend_ = nullptr; return temp; } else { return nullptr; @@ -5080,7 +5025,7 @@ clear_data(); if (messagestosend) { set_has_messagestosend(); - data_.messagestosend_ = messagestosend; + _impl_.data_.messagestosend_ = messagestosend; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tunnelbroker.MessageToTunnelbroker.messagesToSend) } @@ -5088,13 +5033,14 @@ if (!_internal_has_messagestosend()) { clear_data(); set_has_messagestosend(); - data_.messagestosend_ = CreateMaybeMessage< ::tunnelbroker::MessagesToSend >(GetArena()); + _impl_.data_.messagestosend_ = CreateMaybeMessage< ::tunnelbroker::MessagesToSend >(GetArenaForAllocation()); } - return data_.messagestosend_; + return _impl_.data_.messagestosend_; } inline ::tunnelbroker::MessagesToSend* MessageToTunnelbroker::mutable_messagestosend() { + ::tunnelbroker::MessagesToSend* _msg = _internal_mutable_messagestosend(); // @@protoc_insertion_point(field_mutable:tunnelbroker.MessageToTunnelbroker.messagesToSend) - return _internal_mutable_messagestosend(); + return _msg; } // .tunnelbroker.ProcessedMessages processedMessages = 3; @@ -5105,12 +5051,12 @@ return _internal_has_processedmessages(); } inline void MessageToTunnelbroker::set_has_processedmessages() { - _oneof_case_[0] = kProcessedMessages; + _impl_._oneof_case_[0] = kProcessedMessages; } inline void MessageToTunnelbroker::clear_processedmessages() { if (_internal_has_processedmessages()) { - if (GetArena() == nullptr) { - delete data_.processedmessages_; + if (GetArenaForAllocation() == nullptr) { + delete _impl_.data_.processedmessages_; } clear_has_data(); } @@ -5119,11 +5065,11 @@ // @@protoc_insertion_point(field_release:tunnelbroker.MessageToTunnelbroker.processedMessages) if (_internal_has_processedmessages()) { clear_has_data(); - ::tunnelbroker::ProcessedMessages* temp = data_.processedmessages_; - if (GetArena() != nullptr) { + ::tunnelbroker::ProcessedMessages* temp = _impl_.data_.processedmessages_; + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - data_.processedmessages_ = nullptr; + _impl_.data_.processedmessages_ = nullptr; return temp; } else { return nullptr; @@ -5131,7 +5077,7 @@ } inline const ::tunnelbroker::ProcessedMessages& MessageToTunnelbroker::_internal_processedmessages() const { return _internal_has_processedmessages() - ? *data_.processedmessages_ + ? *_impl_.data_.processedmessages_ : reinterpret_cast< ::tunnelbroker::ProcessedMessages&>(::tunnelbroker::_ProcessedMessages_default_instance_); } inline const ::tunnelbroker::ProcessedMessages& MessageToTunnelbroker::processedmessages() const { @@ -5142,8 +5088,8 @@ // @@protoc_insertion_point(field_unsafe_arena_release:tunnelbroker.MessageToTunnelbroker.processedMessages) if (_internal_has_processedmessages()) { clear_has_data(); - ::tunnelbroker::ProcessedMessages* temp = data_.processedmessages_; - data_.processedmessages_ = nullptr; + ::tunnelbroker::ProcessedMessages* temp = _impl_.data_.processedmessages_; + _impl_.data_.processedmessages_ = nullptr; return temp; } else { return nullptr; @@ -5153,7 +5099,7 @@ clear_data(); if (processedmessages) { set_has_processedmessages(); - data_.processedmessages_ = processedmessages; + _impl_.data_.processedmessages_ = processedmessages; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tunnelbroker.MessageToTunnelbroker.processedMessages) } @@ -5161,23 +5107,24 @@ if (!_internal_has_processedmessages()) { clear_data(); set_has_processedmessages(); - data_.processedmessages_ = CreateMaybeMessage< ::tunnelbroker::ProcessedMessages >(GetArena()); + _impl_.data_.processedmessages_ = CreateMaybeMessage< ::tunnelbroker::ProcessedMessages >(GetArenaForAllocation()); } - return data_.processedmessages_; + return _impl_.data_.processedmessages_; } inline ::tunnelbroker::ProcessedMessages* MessageToTunnelbroker::mutable_processedmessages() { + ::tunnelbroker::ProcessedMessages* _msg = _internal_mutable_processedmessages(); // @@protoc_insertion_point(field_mutable:tunnelbroker.MessageToTunnelbroker.processedMessages) - return _internal_mutable_processedmessages(); + return _msg; } inline bool MessageToTunnelbroker::has_data() const { return data_case() != DATA_NOT_SET; } inline void MessageToTunnelbroker::clear_has_data() { - _oneof_case_[0] = DATA_NOT_SET; + _impl_._oneof_case_[0] = DATA_NOT_SET; } inline MessageToTunnelbroker::DataCase MessageToTunnelbroker::data_case() const { - return MessageToTunnelbroker::DataCase(_oneof_case_[0]); + return MessageToTunnelbroker::DataCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- @@ -5185,53 +5132,38 @@ // string messageID = 1; inline void MessageToClientStruct::clear_messageid() { - messageid_.ClearToEmpty(); + _impl_.messageid_.ClearToEmpty(); } inline const std::string& MessageToClientStruct::messageid() const { // @@protoc_insertion_point(field_get:tunnelbroker.MessageToClientStruct.messageID) return _internal_messageid(); } -inline void MessageToClientStruct::set_messageid(const std::string& value) { - _internal_set_messageid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void MessageToClientStruct::set_messageid(ArgT0&& arg0, ArgT... args) { + + _impl_.messageid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.MessageToClientStruct.messageID) } inline std::string* MessageToClientStruct::mutable_messageid() { + std::string* _s = _internal_mutable_messageid(); // @@protoc_insertion_point(field_mutable:tunnelbroker.MessageToClientStruct.messageID) - return _internal_mutable_messageid(); + return _s; } inline const std::string& MessageToClientStruct::_internal_messageid() const { - return messageid_.Get(); + return _impl_.messageid_.Get(); } inline void MessageToClientStruct::_internal_set_messageid(const std::string& value) { - messageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MessageToClientStruct::set_messageid(std::string&& value) { - - messageid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.MessageToClientStruct.messageID) -} -inline void MessageToClientStruct::set_messageid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - messageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.MessageToClientStruct.messageID) -} -inline void MessageToClientStruct::set_messageid(const char* value, - size_t size) { - - messageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.MessageToClientStruct.messageID) + _impl_.messageid_.Set(value, GetArenaForAllocation()); } inline std::string* MessageToClientStruct::_internal_mutable_messageid() { - return messageid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.messageid_.Mutable(GetArenaForAllocation()); } inline std::string* MessageToClientStruct::release_messageid() { // @@protoc_insertion_point(field_release:tunnelbroker.MessageToClientStruct.messageID) - return messageid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.messageid_.Release(); } inline void MessageToClientStruct::set_allocated_messageid(std::string* messageid) { if (messageid != nullptr) { @@ -5239,60 +5171,49 @@ } else { } - messageid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), messageid, - GetArena()); + _impl_.messageid_.SetAllocated(messageid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.messageid_.IsDefault()) { + _impl_.messageid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToClientStruct.messageID) } // string fromDeviceID = 2; inline void MessageToClientStruct::clear_fromdeviceid() { - fromdeviceid_.ClearToEmpty(); + _impl_.fromdeviceid_.ClearToEmpty(); } inline const std::string& MessageToClientStruct::fromdeviceid() const { // @@protoc_insertion_point(field_get:tunnelbroker.MessageToClientStruct.fromDeviceID) return _internal_fromdeviceid(); } -inline void MessageToClientStruct::set_fromdeviceid(const std::string& value) { - _internal_set_fromdeviceid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void MessageToClientStruct::set_fromdeviceid(ArgT0&& arg0, ArgT... args) { + + _impl_.fromdeviceid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.MessageToClientStruct.fromDeviceID) } inline std::string* MessageToClientStruct::mutable_fromdeviceid() { + std::string* _s = _internal_mutable_fromdeviceid(); // @@protoc_insertion_point(field_mutable:tunnelbroker.MessageToClientStruct.fromDeviceID) - return _internal_mutable_fromdeviceid(); + return _s; } inline const std::string& MessageToClientStruct::_internal_fromdeviceid() const { - return fromdeviceid_.Get(); + return _impl_.fromdeviceid_.Get(); } inline void MessageToClientStruct::_internal_set_fromdeviceid(const std::string& value) { - fromdeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MessageToClientStruct::set_fromdeviceid(std::string&& value) { - - fromdeviceid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.MessageToClientStruct.fromDeviceID) -} -inline void MessageToClientStruct::set_fromdeviceid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - fromdeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.MessageToClientStruct.fromDeviceID) -} -inline void MessageToClientStruct::set_fromdeviceid(const char* value, - size_t size) { - - fromdeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.MessageToClientStruct.fromDeviceID) + _impl_.fromdeviceid_.Set(value, GetArenaForAllocation()); } inline std::string* MessageToClientStruct::_internal_mutable_fromdeviceid() { - return fromdeviceid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.fromdeviceid_.Mutable(GetArenaForAllocation()); } inline std::string* MessageToClientStruct::release_fromdeviceid() { // @@protoc_insertion_point(field_release:tunnelbroker.MessageToClientStruct.fromDeviceID) - return fromdeviceid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.fromdeviceid_.Release(); } inline void MessageToClientStruct::set_allocated_fromdeviceid(std::string* fromdeviceid) { if (fromdeviceid != nullptr) { @@ -5300,60 +5221,49 @@ } else { } - fromdeviceid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fromdeviceid, - GetArena()); + _impl_.fromdeviceid_.SetAllocated(fromdeviceid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.fromdeviceid_.IsDefault()) { + _impl_.fromdeviceid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToClientStruct.fromDeviceID) } // string payload = 3; inline void MessageToClientStruct::clear_payload() { - payload_.ClearToEmpty(); + _impl_.payload_.ClearToEmpty(); } inline const std::string& MessageToClientStruct::payload() const { // @@protoc_insertion_point(field_get:tunnelbroker.MessageToClientStruct.payload) return _internal_payload(); } -inline void MessageToClientStruct::set_payload(const std::string& value) { - _internal_set_payload(value); +template +inline PROTOBUF_ALWAYS_INLINE +void MessageToClientStruct::set_payload(ArgT0&& arg0, ArgT... args) { + + _impl_.payload_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.MessageToClientStruct.payload) } inline std::string* MessageToClientStruct::mutable_payload() { + std::string* _s = _internal_mutable_payload(); // @@protoc_insertion_point(field_mutable:tunnelbroker.MessageToClientStruct.payload) - return _internal_mutable_payload(); + return _s; } inline const std::string& MessageToClientStruct::_internal_payload() const { - return payload_.Get(); + return _impl_.payload_.Get(); } inline void MessageToClientStruct::_internal_set_payload(const std::string& value) { - payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void MessageToClientStruct::set_payload(std::string&& value) { - - payload_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.MessageToClientStruct.payload) -} -inline void MessageToClientStruct::set_payload(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.MessageToClientStruct.payload) -} -inline void MessageToClientStruct::set_payload(const char* value, - size_t size) { - - payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.MessageToClientStruct.payload) + _impl_.payload_.Set(value, GetArenaForAllocation()); } inline std::string* MessageToClientStruct::_internal_mutable_payload() { - return payload_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.payload_.Mutable(GetArenaForAllocation()); } inline std::string* MessageToClientStruct::release_payload() { // @@protoc_insertion_point(field_release:tunnelbroker.MessageToClientStruct.payload) - return payload_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.payload_.Release(); } inline void MessageToClientStruct::set_allocated_payload(std::string* payload) { if (payload != nullptr) { @@ -5361,27 +5271,32 @@ } else { } - payload_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), payload, - GetArena()); + _impl_.payload_.SetAllocated(payload, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.payload_.IsDefault()) { + _impl_.payload_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToClientStruct.payload) } // repeated string blobHashes = 4; inline int MessageToClientStruct::_internal_blobhashes_size() const { - return blobhashes_.size(); + return _impl_.blobhashes_.size(); } inline int MessageToClientStruct::blobhashes_size() const { return _internal_blobhashes_size(); } inline void MessageToClientStruct::clear_blobhashes() { - blobhashes_.Clear(); + _impl_.blobhashes_.Clear(); } inline std::string* MessageToClientStruct::add_blobhashes() { + std::string* _s = _internal_add_blobhashes(); // @@protoc_insertion_point(field_add_mutable:tunnelbroker.MessageToClientStruct.blobHashes) - return _internal_add_blobhashes(); + return _s; } inline const std::string& MessageToClientStruct::_internal_blobhashes(int index) const { - return blobhashes_.Get(index); + return _impl_.blobhashes_.Get(index); } inline const std::string& MessageToClientStruct::blobhashes(int index) const { // @@protoc_insertion_point(field_get:tunnelbroker.MessageToClientStruct.blobHashes) @@ -5389,55 +5304,55 @@ } inline std::string* MessageToClientStruct::mutable_blobhashes(int index) { // @@protoc_insertion_point(field_mutable:tunnelbroker.MessageToClientStruct.blobHashes) - return blobhashes_.Mutable(index); + return _impl_.blobhashes_.Mutable(index); } inline void MessageToClientStruct::set_blobhashes(int index, const std::string& value) { + _impl_.blobhashes_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:tunnelbroker.MessageToClientStruct.blobHashes) - blobhashes_.Mutable(index)->assign(value); } inline void MessageToClientStruct::set_blobhashes(int index, std::string&& value) { + _impl_.blobhashes_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:tunnelbroker.MessageToClientStruct.blobHashes) - blobhashes_.Mutable(index)->assign(std::move(value)); } inline void MessageToClientStruct::set_blobhashes(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); - blobhashes_.Mutable(index)->assign(value); + _impl_.blobhashes_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:tunnelbroker.MessageToClientStruct.blobHashes) } inline void MessageToClientStruct::set_blobhashes(int index, const char* value, size_t size) { - blobhashes_.Mutable(index)->assign( + _impl_.blobhashes_.Mutable(index)->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:tunnelbroker.MessageToClientStruct.blobHashes) } inline std::string* MessageToClientStruct::_internal_add_blobhashes() { - return blobhashes_.Add(); + return _impl_.blobhashes_.Add(); } inline void MessageToClientStruct::add_blobhashes(const std::string& value) { - blobhashes_.Add()->assign(value); + _impl_.blobhashes_.Add()->assign(value); // @@protoc_insertion_point(field_add:tunnelbroker.MessageToClientStruct.blobHashes) } inline void MessageToClientStruct::add_blobhashes(std::string&& value) { - blobhashes_.Add(std::move(value)); + _impl_.blobhashes_.Add(std::move(value)); // @@protoc_insertion_point(field_add:tunnelbroker.MessageToClientStruct.blobHashes) } inline void MessageToClientStruct::add_blobhashes(const char* value) { GOOGLE_DCHECK(value != nullptr); - blobhashes_.Add()->assign(value); + _impl_.blobhashes_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:tunnelbroker.MessageToClientStruct.blobHashes) } inline void MessageToClientStruct::add_blobhashes(const char* value, size_t size) { - blobhashes_.Add()->assign(reinterpret_cast(value), size); + _impl_.blobhashes_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:tunnelbroker.MessageToClientStruct.blobHashes) } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& MessageToClientStruct::blobhashes() const { // @@protoc_insertion_point(field_list:tunnelbroker.MessageToClientStruct.blobHashes) - return blobhashes_; + return _impl_.blobhashes_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* MessageToClientStruct::mutable_blobhashes() { // @@protoc_insertion_point(field_mutable_list:tunnelbroker.MessageToClientStruct.blobHashes) - return &blobhashes_; + return &_impl_.blobhashes_; } // ------------------------------------------------------------------- @@ -5446,41 +5361,42 @@ // repeated .tunnelbroker.MessageToClientStruct messages = 1; inline int MessagesToDeliver::_internal_messages_size() const { - return messages_.size(); + return _impl_.messages_.size(); } inline int MessagesToDeliver::messages_size() const { return _internal_messages_size(); } inline void MessagesToDeliver::clear_messages() { - messages_.Clear(); + _impl_.messages_.Clear(); } inline ::tunnelbroker::MessageToClientStruct* MessagesToDeliver::mutable_messages(int index) { // @@protoc_insertion_point(field_mutable:tunnelbroker.MessagesToDeliver.messages) - return messages_.Mutable(index); + return _impl_.messages_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToClientStruct >* MessagesToDeliver::mutable_messages() { // @@protoc_insertion_point(field_mutable_list:tunnelbroker.MessagesToDeliver.messages) - return &messages_; + return &_impl_.messages_; } inline const ::tunnelbroker::MessageToClientStruct& MessagesToDeliver::_internal_messages(int index) const { - return messages_.Get(index); + return _impl_.messages_.Get(index); } inline const ::tunnelbroker::MessageToClientStruct& MessagesToDeliver::messages(int index) const { // @@protoc_insertion_point(field_get:tunnelbroker.MessagesToDeliver.messages) return _internal_messages(index); } inline ::tunnelbroker::MessageToClientStruct* MessagesToDeliver::_internal_add_messages() { - return messages_.Add(); + return _impl_.messages_.Add(); } inline ::tunnelbroker::MessageToClientStruct* MessagesToDeliver::add_messages() { + ::tunnelbroker::MessageToClientStruct* _add = _internal_add_messages(); // @@protoc_insertion_point(field_add:tunnelbroker.MessagesToDeliver.messages) - return _internal_add_messages(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tunnelbroker::MessageToClientStruct >& MessagesToDeliver::messages() const { // @@protoc_insertion_point(field_list:tunnelbroker.MessagesToDeliver.messages) - return messages_; + return _impl_.messages_; } // ------------------------------------------------------------------- @@ -5495,12 +5411,12 @@ return _internal_has_messagestodeliver(); } inline void MessageToClient::set_has_messagestodeliver() { - _oneof_case_[0] = kMessagesToDeliver; + _impl_._oneof_case_[0] = kMessagesToDeliver; } inline void MessageToClient::clear_messagestodeliver() { if (_internal_has_messagestodeliver()) { - if (GetArena() == nullptr) { - delete data_.messagestodeliver_; + if (GetArenaForAllocation() == nullptr) { + delete _impl_.data_.messagestodeliver_; } clear_has_data(); } @@ -5509,11 +5425,11 @@ // @@protoc_insertion_point(field_release:tunnelbroker.MessageToClient.messagesToDeliver) if (_internal_has_messagestodeliver()) { clear_has_data(); - ::tunnelbroker::MessagesToDeliver* temp = data_.messagestodeliver_; - if (GetArena() != nullptr) { + ::tunnelbroker::MessagesToDeliver* temp = _impl_.data_.messagestodeliver_; + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - data_.messagestodeliver_ = nullptr; + _impl_.data_.messagestodeliver_ = nullptr; return temp; } else { return nullptr; @@ -5521,7 +5437,7 @@ } inline const ::tunnelbroker::MessagesToDeliver& MessageToClient::_internal_messagestodeliver() const { return _internal_has_messagestodeliver() - ? *data_.messagestodeliver_ + ? *_impl_.data_.messagestodeliver_ : reinterpret_cast< ::tunnelbroker::MessagesToDeliver&>(::tunnelbroker::_MessagesToDeliver_default_instance_); } inline const ::tunnelbroker::MessagesToDeliver& MessageToClient::messagestodeliver() const { @@ -5532,8 +5448,8 @@ // @@protoc_insertion_point(field_unsafe_arena_release:tunnelbroker.MessageToClient.messagesToDeliver) if (_internal_has_messagestodeliver()) { clear_has_data(); - ::tunnelbroker::MessagesToDeliver* temp = data_.messagestodeliver_; - data_.messagestodeliver_ = nullptr; + ::tunnelbroker::MessagesToDeliver* temp = _impl_.data_.messagestodeliver_; + _impl_.data_.messagestodeliver_ = nullptr; return temp; } else { return nullptr; @@ -5543,7 +5459,7 @@ clear_data(); if (messagestodeliver) { set_has_messagestodeliver(); - data_.messagestodeliver_ = messagestodeliver; + _impl_.data_.messagestodeliver_ = messagestodeliver; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tunnelbroker.MessageToClient.messagesToDeliver) } @@ -5551,13 +5467,14 @@ if (!_internal_has_messagestodeliver()) { clear_data(); set_has_messagestodeliver(); - data_.messagestodeliver_ = CreateMaybeMessage< ::tunnelbroker::MessagesToDeliver >(GetArena()); + _impl_.data_.messagestodeliver_ = CreateMaybeMessage< ::tunnelbroker::MessagesToDeliver >(GetArenaForAllocation()); } - return data_.messagestodeliver_; + return _impl_.data_.messagestodeliver_; } inline ::tunnelbroker::MessagesToDeliver* MessageToClient::mutable_messagestodeliver() { + ::tunnelbroker::MessagesToDeliver* _msg = _internal_mutable_messagestodeliver(); // @@protoc_insertion_point(field_mutable:tunnelbroker.MessageToClient.messagesToDeliver) - return _internal_mutable_messagestodeliver(); + return _msg; } // .tunnelbroker.ProcessedMessages processedMessages = 2; @@ -5568,12 +5485,12 @@ return _internal_has_processedmessages(); } inline void MessageToClient::set_has_processedmessages() { - _oneof_case_[0] = kProcessedMessages; + _impl_._oneof_case_[0] = kProcessedMessages; } inline void MessageToClient::clear_processedmessages() { if (_internal_has_processedmessages()) { - if (GetArena() == nullptr) { - delete data_.processedmessages_; + if (GetArenaForAllocation() == nullptr) { + delete _impl_.data_.processedmessages_; } clear_has_data(); } @@ -5582,11 +5499,11 @@ // @@protoc_insertion_point(field_release:tunnelbroker.MessageToClient.processedMessages) if (_internal_has_processedmessages()) { clear_has_data(); - ::tunnelbroker::ProcessedMessages* temp = data_.processedmessages_; - if (GetArena() != nullptr) { + ::tunnelbroker::ProcessedMessages* temp = _impl_.data_.processedmessages_; + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - data_.processedmessages_ = nullptr; + _impl_.data_.processedmessages_ = nullptr; return temp; } else { return nullptr; @@ -5594,7 +5511,7 @@ } inline const ::tunnelbroker::ProcessedMessages& MessageToClient::_internal_processedmessages() const { return _internal_has_processedmessages() - ? *data_.processedmessages_ + ? *_impl_.data_.processedmessages_ : reinterpret_cast< ::tunnelbroker::ProcessedMessages&>(::tunnelbroker::_ProcessedMessages_default_instance_); } inline const ::tunnelbroker::ProcessedMessages& MessageToClient::processedmessages() const { @@ -5605,8 +5522,8 @@ // @@protoc_insertion_point(field_unsafe_arena_release:tunnelbroker.MessageToClient.processedMessages) if (_internal_has_processedmessages()) { clear_has_data(); - ::tunnelbroker::ProcessedMessages* temp = data_.processedmessages_; - data_.processedmessages_ = nullptr; + ::tunnelbroker::ProcessedMessages* temp = _impl_.data_.processedmessages_; + _impl_.data_.processedmessages_ = nullptr; return temp; } else { return nullptr; @@ -5616,7 +5533,7 @@ clear_data(); if (processedmessages) { set_has_processedmessages(); - data_.processedmessages_ = processedmessages; + _impl_.data_.processedmessages_ = processedmessages; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tunnelbroker.MessageToClient.processedMessages) } @@ -5624,23 +5541,24 @@ if (!_internal_has_processedmessages()) { clear_data(); set_has_processedmessages(); - data_.processedmessages_ = CreateMaybeMessage< ::tunnelbroker::ProcessedMessages >(GetArena()); + _impl_.data_.processedmessages_ = CreateMaybeMessage< ::tunnelbroker::ProcessedMessages >(GetArenaForAllocation()); } - return data_.processedmessages_; + return _impl_.data_.processedmessages_; } inline ::tunnelbroker::ProcessedMessages* MessageToClient::mutable_processedmessages() { + ::tunnelbroker::ProcessedMessages* _msg = _internal_mutable_processedmessages(); // @@protoc_insertion_point(field_mutable:tunnelbroker.MessageToClient.processedMessages) - return _internal_mutable_processedmessages(); + return _msg; } inline bool MessageToClient::has_data() const { return data_case() != DATA_NOT_SET; } inline void MessageToClient::clear_has_data() { - _oneof_case_[0] = DATA_NOT_SET; + _impl_._oneof_case_[0] = DATA_NOT_SET; } inline MessageToClient::DataCase MessageToClient::data_case() const { - return MessageToClient::DataCase(_oneof_case_[0]); + return MessageToClient::DataCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- @@ -5648,53 +5566,38 @@ // string userId = 1; inline void CheckRequest::clear_userid() { - userid_.ClearToEmpty(); + _impl_.userid_.ClearToEmpty(); } inline const std::string& CheckRequest::userid() const { // @@protoc_insertion_point(field_get:tunnelbroker.CheckRequest.userId) return _internal_userid(); } -inline void CheckRequest::set_userid(const std::string& value) { - _internal_set_userid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void CheckRequest::set_userid(ArgT0&& arg0, ArgT... args) { + + _impl_.userid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.CheckRequest.userId) } inline std::string* CheckRequest::mutable_userid() { + std::string* _s = _internal_mutable_userid(); // @@protoc_insertion_point(field_mutable:tunnelbroker.CheckRequest.userId) - return _internal_mutable_userid(); + return _s; } inline const std::string& CheckRequest::_internal_userid() const { - return userid_.Get(); + return _impl_.userid_.Get(); } inline void CheckRequest::_internal_set_userid(const std::string& value) { - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void CheckRequest::set_userid(std::string&& value) { - - userid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.CheckRequest.userId) -} -inline void CheckRequest::set_userid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.CheckRequest.userId) -} -inline void CheckRequest::set_userid(const char* value, - size_t size) { - - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.CheckRequest.userId) + _impl_.userid_.Set(value, GetArenaForAllocation()); } inline std::string* CheckRequest::_internal_mutable_userid() { - return userid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.userid_.Mutable(GetArenaForAllocation()); } inline std::string* CheckRequest::release_userid() { // @@protoc_insertion_point(field_release:tunnelbroker.CheckRequest.userId) - return userid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.userid_.Release(); } inline void CheckRequest::set_allocated_userid(std::string* userid) { if (userid != nullptr) { @@ -5702,60 +5605,49 @@ } else { } - userid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), userid, - GetArena()); + _impl_.userid_.SetAllocated(userid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.userid_.IsDefault()) { + _impl_.userid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.CheckRequest.userId) } // string deviceToken = 2; inline void CheckRequest::clear_devicetoken() { - devicetoken_.ClearToEmpty(); + _impl_.devicetoken_.ClearToEmpty(); } inline const std::string& CheckRequest::devicetoken() const { // @@protoc_insertion_point(field_get:tunnelbroker.CheckRequest.deviceToken) return _internal_devicetoken(); } -inline void CheckRequest::set_devicetoken(const std::string& value) { - _internal_set_devicetoken(value); +template +inline PROTOBUF_ALWAYS_INLINE +void CheckRequest::set_devicetoken(ArgT0&& arg0, ArgT... args) { + + _impl_.devicetoken_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.CheckRequest.deviceToken) } inline std::string* CheckRequest::mutable_devicetoken() { + std::string* _s = _internal_mutable_devicetoken(); // @@protoc_insertion_point(field_mutable:tunnelbroker.CheckRequest.deviceToken) - return _internal_mutable_devicetoken(); + return _s; } inline const std::string& CheckRequest::_internal_devicetoken() const { - return devicetoken_.Get(); + return _impl_.devicetoken_.Get(); } inline void CheckRequest::_internal_set_devicetoken(const std::string& value) { - devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void CheckRequest::set_devicetoken(std::string&& value) { - - devicetoken_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.CheckRequest.deviceToken) -} -inline void CheckRequest::set_devicetoken(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.CheckRequest.deviceToken) -} -inline void CheckRequest::set_devicetoken(const char* value, - size_t size) { - - devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.CheckRequest.deviceToken) + _impl_.devicetoken_.Set(value, GetArenaForAllocation()); } inline std::string* CheckRequest::_internal_mutable_devicetoken() { - return devicetoken_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.devicetoken_.Mutable(GetArenaForAllocation()); } inline std::string* CheckRequest::release_devicetoken() { // @@protoc_insertion_point(field_release:tunnelbroker.CheckRequest.deviceToken) - return devicetoken_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.devicetoken_.Release(); } inline void CheckRequest::set_allocated_devicetoken(std::string* devicetoken) { if (devicetoken != nullptr) { @@ -5763,8 +5655,12 @@ } else { } - devicetoken_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), devicetoken, - GetArena()); + _impl_.devicetoken_.SetAllocated(devicetoken, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.devicetoken_.IsDefault()) { + _impl_.devicetoken_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.CheckRequest.deviceToken) } @@ -5774,10 +5670,10 @@ // .tunnelbroker.CheckResponseType checkResponseType = 1; inline void CheckResponse::clear_checkresponsetype() { - checkresponsetype_ = 0; + _impl_.checkresponsetype_ = 0; } inline ::tunnelbroker::CheckResponseType CheckResponse::_internal_checkresponsetype() const { - return static_cast< ::tunnelbroker::CheckResponseType >(checkresponsetype_); + return static_cast< ::tunnelbroker::CheckResponseType >(_impl_.checkresponsetype_); } inline ::tunnelbroker::CheckResponseType CheckResponse::checkresponsetype() const { // @@protoc_insertion_point(field_get:tunnelbroker.CheckResponse.checkResponseType) @@ -5785,7 +5681,7 @@ } inline void CheckResponse::_internal_set_checkresponsetype(::tunnelbroker::CheckResponseType value) { - checkresponsetype_ = value; + _impl_.checkresponsetype_ = value; } inline void CheckResponse::set_checkresponsetype(::tunnelbroker::CheckResponseType value) { _internal_set_checkresponsetype(value); @@ -5798,53 +5694,38 @@ // string userId = 1; inline void NewPrimaryRequest::clear_userid() { - userid_.ClearToEmpty(); + _impl_.userid_.ClearToEmpty(); } inline const std::string& NewPrimaryRequest::userid() const { // @@protoc_insertion_point(field_get:tunnelbroker.NewPrimaryRequest.userId) return _internal_userid(); } -inline void NewPrimaryRequest::set_userid(const std::string& value) { - _internal_set_userid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void NewPrimaryRequest::set_userid(ArgT0&& arg0, ArgT... args) { + + _impl_.userid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.NewPrimaryRequest.userId) } inline std::string* NewPrimaryRequest::mutable_userid() { + std::string* _s = _internal_mutable_userid(); // @@protoc_insertion_point(field_mutable:tunnelbroker.NewPrimaryRequest.userId) - return _internal_mutable_userid(); + return _s; } inline const std::string& NewPrimaryRequest::_internal_userid() const { - return userid_.Get(); + return _impl_.userid_.Get(); } inline void NewPrimaryRequest::_internal_set_userid(const std::string& value) { - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void NewPrimaryRequest::set_userid(std::string&& value) { - - userid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewPrimaryRequest.userId) -} -inline void NewPrimaryRequest::set_userid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.NewPrimaryRequest.userId) -} -inline void NewPrimaryRequest::set_userid(const char* value, - size_t size) { - - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewPrimaryRequest.userId) + _impl_.userid_.Set(value, GetArenaForAllocation()); } inline std::string* NewPrimaryRequest::_internal_mutable_userid() { - return userid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.userid_.Mutable(GetArenaForAllocation()); } inline std::string* NewPrimaryRequest::release_userid() { // @@protoc_insertion_point(field_release:tunnelbroker.NewPrimaryRequest.userId) - return userid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.userid_.Release(); } inline void NewPrimaryRequest::set_allocated_userid(std::string* userid) { if (userid != nullptr) { @@ -5852,60 +5733,49 @@ } else { } - userid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), userid, - GetArena()); + _impl_.userid_.SetAllocated(userid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.userid_.IsDefault()) { + _impl_.userid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewPrimaryRequest.userId) } // string deviceToken = 2; inline void NewPrimaryRequest::clear_devicetoken() { - devicetoken_.ClearToEmpty(); + _impl_.devicetoken_.ClearToEmpty(); } inline const std::string& NewPrimaryRequest::devicetoken() const { // @@protoc_insertion_point(field_get:tunnelbroker.NewPrimaryRequest.deviceToken) return _internal_devicetoken(); } -inline void NewPrimaryRequest::set_devicetoken(const std::string& value) { - _internal_set_devicetoken(value); +template +inline PROTOBUF_ALWAYS_INLINE +void NewPrimaryRequest::set_devicetoken(ArgT0&& arg0, ArgT... args) { + + _impl_.devicetoken_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.NewPrimaryRequest.deviceToken) } inline std::string* NewPrimaryRequest::mutable_devicetoken() { + std::string* _s = _internal_mutable_devicetoken(); // @@protoc_insertion_point(field_mutable:tunnelbroker.NewPrimaryRequest.deviceToken) - return _internal_mutable_devicetoken(); + return _s; } inline const std::string& NewPrimaryRequest::_internal_devicetoken() const { - return devicetoken_.Get(); + return _impl_.devicetoken_.Get(); } inline void NewPrimaryRequest::_internal_set_devicetoken(const std::string& value) { - devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void NewPrimaryRequest::set_devicetoken(std::string&& value) { - - devicetoken_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.NewPrimaryRequest.deviceToken) -} -inline void NewPrimaryRequest::set_devicetoken(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.NewPrimaryRequest.deviceToken) -} -inline void NewPrimaryRequest::set_devicetoken(const char* value, - size_t size) { - - devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.NewPrimaryRequest.deviceToken) + _impl_.devicetoken_.Set(value, GetArenaForAllocation()); } inline std::string* NewPrimaryRequest::_internal_mutable_devicetoken() { - return devicetoken_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.devicetoken_.Mutable(GetArenaForAllocation()); } inline std::string* NewPrimaryRequest::release_devicetoken() { // @@protoc_insertion_point(field_release:tunnelbroker.NewPrimaryRequest.deviceToken) - return devicetoken_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.devicetoken_.Release(); } inline void NewPrimaryRequest::set_allocated_devicetoken(std::string* devicetoken) { if (devicetoken != nullptr) { @@ -5913,8 +5783,12 @@ } else { } - devicetoken_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), devicetoken, - GetArena()); + _impl_.devicetoken_.SetAllocated(devicetoken, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.devicetoken_.IsDefault()) { + _impl_.devicetoken_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.NewPrimaryRequest.deviceToken) } @@ -5924,10 +5798,10 @@ // bool success = 1; inline void NewPrimaryResponse::clear_success() { - success_ = false; + _impl_.success_ = false; } inline bool NewPrimaryResponse::_internal_success() const { - return success_; + return _impl_.success_; } inline bool NewPrimaryResponse::success() const { // @@protoc_insertion_point(field_get:tunnelbroker.NewPrimaryResponse.success) @@ -5935,7 +5809,7 @@ } inline void NewPrimaryResponse::_internal_set_success(bool value) { - success_ = value; + _impl_.success_ = value; } inline void NewPrimaryResponse::set_success(bool value) { _internal_set_success(value); @@ -5948,53 +5822,38 @@ // string userId = 1; inline void PongRequest::clear_userid() { - userid_.ClearToEmpty(); + _impl_.userid_.ClearToEmpty(); } inline const std::string& PongRequest::userid() const { // @@protoc_insertion_point(field_get:tunnelbroker.PongRequest.userId) return _internal_userid(); } -inline void PongRequest::set_userid(const std::string& value) { - _internal_set_userid(value); +template +inline PROTOBUF_ALWAYS_INLINE +void PongRequest::set_userid(ArgT0&& arg0, ArgT... args) { + + _impl_.userid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.PongRequest.userId) } inline std::string* PongRequest::mutable_userid() { + std::string* _s = _internal_mutable_userid(); // @@protoc_insertion_point(field_mutable:tunnelbroker.PongRequest.userId) - return _internal_mutable_userid(); + return _s; } inline const std::string& PongRequest::_internal_userid() const { - return userid_.Get(); + return _impl_.userid_.Get(); } inline void PongRequest::_internal_set_userid(const std::string& value) { - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PongRequest::set_userid(std::string&& value) { - - userid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.PongRequest.userId) -} -inline void PongRequest::set_userid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.PongRequest.userId) -} -inline void PongRequest::set_userid(const char* value, - size_t size) { - - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.PongRequest.userId) + _impl_.userid_.Set(value, GetArenaForAllocation()); } inline std::string* PongRequest::_internal_mutable_userid() { - return userid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.userid_.Mutable(GetArenaForAllocation()); } inline std::string* PongRequest::release_userid() { // @@protoc_insertion_point(field_release:tunnelbroker.PongRequest.userId) - return userid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.userid_.Release(); } inline void PongRequest::set_allocated_userid(std::string* userid) { if (userid != nullptr) { @@ -6002,60 +5861,49 @@ } else { } - userid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), userid, - GetArena()); + _impl_.userid_.SetAllocated(userid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.userid_.IsDefault()) { + _impl_.userid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.PongRequest.userId) } // string deviceToken = 2; inline void PongRequest::clear_devicetoken() { - devicetoken_.ClearToEmpty(); + _impl_.devicetoken_.ClearToEmpty(); } inline const std::string& PongRequest::devicetoken() const { // @@protoc_insertion_point(field_get:tunnelbroker.PongRequest.deviceToken) return _internal_devicetoken(); } -inline void PongRequest::set_devicetoken(const std::string& value) { - _internal_set_devicetoken(value); +template +inline PROTOBUF_ALWAYS_INLINE +void PongRequest::set_devicetoken(ArgT0&& arg0, ArgT... args) { + + _impl_.devicetoken_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:tunnelbroker.PongRequest.deviceToken) } inline std::string* PongRequest::mutable_devicetoken() { + std::string* _s = _internal_mutable_devicetoken(); // @@protoc_insertion_point(field_mutable:tunnelbroker.PongRequest.deviceToken) - return _internal_mutable_devicetoken(); + return _s; } inline const std::string& PongRequest::_internal_devicetoken() const { - return devicetoken_.Get(); + return _impl_.devicetoken_.Get(); } inline void PongRequest::_internal_set_devicetoken(const std::string& value) { - devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PongRequest::set_devicetoken(std::string&& value) { - - devicetoken_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:tunnelbroker.PongRequest.deviceToken) -} -inline void PongRequest::set_devicetoken(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:tunnelbroker.PongRequest.deviceToken) -} -inline void PongRequest::set_devicetoken(const char* value, - size_t size) { - - devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:tunnelbroker.PongRequest.deviceToken) + _impl_.devicetoken_.Set(value, GetArenaForAllocation()); } inline std::string* PongRequest::_internal_mutable_devicetoken() { - return devicetoken_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return _impl_.devicetoken_.Mutable(GetArenaForAllocation()); } inline std::string* PongRequest::release_devicetoken() { // @@protoc_insertion_point(field_release:tunnelbroker.PongRequest.deviceToken) - return devicetoken_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.devicetoken_.Release(); } inline void PongRequest::set_allocated_devicetoken(std::string* devicetoken) { if (devicetoken != nullptr) { @@ -6063,8 +5911,12 @@ } else { } - devicetoken_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), devicetoken, - GetArena()); + _impl_.devicetoken_.SetAllocated(devicetoken, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.devicetoken_.IsDefault()) { + _impl_.devicetoken_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:tunnelbroker.PongRequest.deviceToken) } diff --git a/native/cpp/CommonCpp/grpc/_generated/tunnelbroker.pb.cc b/native/cpp/CommonCpp/grpc/_generated/tunnelbroker.pb.cc --- a/native/cpp/CommonCpp/grpc/_generated/tunnelbroker.pb.cc +++ b/native/cpp/CommonCpp/grpc/_generated/tunnelbroker.pb.cc @@ -16,288 +16,315 @@ #include PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace tunnelbroker { -constexpr SessionSignatureRequest::SessionSignatureRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : deviceid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_CONSTEXPR SessionSignatureRequest::SessionSignatureRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.deviceid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct SessionSignatureRequestDefaultTypeInternal { - constexpr SessionSignatureRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SessionSignatureRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~SessionSignatureRequestDefaultTypeInternal() {} union { SessionSignatureRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SessionSignatureRequestDefaultTypeInternal _SessionSignatureRequest_default_instance_; -constexpr SessionSignatureResponse::SessionSignatureResponse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : tosign_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SessionSignatureRequestDefaultTypeInternal _SessionSignatureRequest_default_instance_; +PROTOBUF_CONSTEXPR SessionSignatureResponse::SessionSignatureResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.tosign_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct SessionSignatureResponseDefaultTypeInternal { - constexpr SessionSignatureResponseDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SessionSignatureResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~SessionSignatureResponseDefaultTypeInternal() {} union { SessionSignatureResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SessionSignatureResponseDefaultTypeInternal _SessionSignatureResponse_default_instance_; -constexpr NewSessionRequest::NewSessionRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : deviceid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , publickey_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , signature_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , notifytoken_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , deviceappversion_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , deviceos_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , devicetype_(0) -{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SessionSignatureResponseDefaultTypeInternal _SessionSignatureResponse_default_instance_; +PROTOBUF_CONSTEXPR NewSessionRequest::NewSessionRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.deviceid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.publickey_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.signature_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.notifytoken_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.deviceappversion_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.deviceos_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.devicetype_)*/0} {} struct NewSessionRequestDefaultTypeInternal { - constexpr NewSessionRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR NewSessionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~NewSessionRequestDefaultTypeInternal() {} union { NewSessionRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NewSessionRequestDefaultTypeInternal _NewSessionRequest_default_instance_; -constexpr NewSessionResponse::NewSessionResponse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : sessionid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewSessionRequestDefaultTypeInternal _NewSessionRequest_default_instance_; +PROTOBUF_CONSTEXPR NewSessionResponse::NewSessionResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.sessionid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct NewSessionResponseDefaultTypeInternal { - constexpr NewSessionResponseDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR NewSessionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~NewSessionResponseDefaultTypeInternal() {} union { NewSessionResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NewSessionResponseDefaultTypeInternal _NewSessionResponse_default_instance_; -constexpr SendRequest::SendRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : blobhashes_() - , sessionid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , todeviceid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , payload_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewSessionResponseDefaultTypeInternal _NewSessionResponse_default_instance_; +PROTOBUF_CONSTEXPR SendRequest::SendRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.blobhashes_)*/{} + , /*decltype(_impl_.sessionid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.todeviceid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.payload_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct SendRequestDefaultTypeInternal { - constexpr SendRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SendRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~SendRequestDefaultTypeInternal() {} union { SendRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SendRequestDefaultTypeInternal _SendRequest_default_instance_; -constexpr GetRequest::GetRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : sessionid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendRequestDefaultTypeInternal _SendRequest_default_instance_; +PROTOBUF_CONSTEXPR GetRequest::GetRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.sessionid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct GetRequestDefaultTypeInternal { - constexpr GetRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetRequestDefaultTypeInternal() {} union { GetRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetRequestDefaultTypeInternal _GetRequest_default_instance_; -constexpr GetResponse::GetResponse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : blobhashes_() - , fromdeviceid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , payload_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRequestDefaultTypeInternal _GetRequest_default_instance_; +PROTOBUF_CONSTEXPR GetResponse::GetResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.blobhashes_)*/{} + , /*decltype(_impl_.fromdeviceid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.payload_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct GetResponseDefaultTypeInternal { - constexpr GetResponseDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetResponseDefaultTypeInternal() {} union { GetResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetResponseDefaultTypeInternal _GetResponse_default_instance_; -constexpr ProcessedMessages::ProcessedMessages( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : messageid_(){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetResponseDefaultTypeInternal _GetResponse_default_instance_; +PROTOBUF_CONSTEXPR ProcessedMessages::ProcessedMessages( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.messageid_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} struct ProcessedMessagesDefaultTypeInternal { - constexpr ProcessedMessagesDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ProcessedMessagesDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ProcessedMessagesDefaultTypeInternal() {} union { ProcessedMessages _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ProcessedMessagesDefaultTypeInternal _ProcessedMessages_default_instance_; -constexpr MessageToTunnelbrokerStruct::MessageToTunnelbrokerStruct( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : blobhashes_() - , messageid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , todeviceid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , payload_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProcessedMessagesDefaultTypeInternal _ProcessedMessages_default_instance_; +PROTOBUF_CONSTEXPR MessageToTunnelbrokerStruct::MessageToTunnelbrokerStruct( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.blobhashes_)*/{} + , /*decltype(_impl_.messageid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.todeviceid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.payload_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct MessageToTunnelbrokerStructDefaultTypeInternal { - constexpr MessageToTunnelbrokerStructDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MessageToTunnelbrokerStructDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~MessageToTunnelbrokerStructDefaultTypeInternal() {} union { MessageToTunnelbrokerStruct _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageToTunnelbrokerStructDefaultTypeInternal _MessageToTunnelbrokerStruct_default_instance_; -constexpr MessagesToSend::MessagesToSend( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : messages_(){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageToTunnelbrokerStructDefaultTypeInternal _MessageToTunnelbrokerStruct_default_instance_; +PROTOBUF_CONSTEXPR MessagesToSend::MessagesToSend( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.messages_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} struct MessagesToSendDefaultTypeInternal { - constexpr MessagesToSendDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MessagesToSendDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~MessagesToSendDefaultTypeInternal() {} union { MessagesToSend _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessagesToSendDefaultTypeInternal _MessagesToSend_default_instance_; -constexpr MessageToTunnelbroker::MessageToTunnelbroker( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : sessionid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , _oneof_case_{}{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessagesToSendDefaultTypeInternal _MessagesToSend_default_instance_; +PROTOBUF_CONSTEXPR MessageToTunnelbroker::MessageToTunnelbroker( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.sessionid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.data_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} struct MessageToTunnelbrokerDefaultTypeInternal { - constexpr MessageToTunnelbrokerDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MessageToTunnelbrokerDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~MessageToTunnelbrokerDefaultTypeInternal() {} union { MessageToTunnelbroker _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageToTunnelbrokerDefaultTypeInternal _MessageToTunnelbroker_default_instance_; -constexpr MessageToClientStruct::MessageToClientStruct( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : blobhashes_() - , messageid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , fromdeviceid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , payload_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageToTunnelbrokerDefaultTypeInternal _MessageToTunnelbroker_default_instance_; +PROTOBUF_CONSTEXPR MessageToClientStruct::MessageToClientStruct( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.blobhashes_)*/{} + , /*decltype(_impl_.messageid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.fromdeviceid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.payload_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct MessageToClientStructDefaultTypeInternal { - constexpr MessageToClientStructDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MessageToClientStructDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~MessageToClientStructDefaultTypeInternal() {} union { MessageToClientStruct _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageToClientStructDefaultTypeInternal _MessageToClientStruct_default_instance_; -constexpr MessagesToDeliver::MessagesToDeliver( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : messages_(){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageToClientStructDefaultTypeInternal _MessageToClientStruct_default_instance_; +PROTOBUF_CONSTEXPR MessagesToDeliver::MessagesToDeliver( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.messages_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} struct MessagesToDeliverDefaultTypeInternal { - constexpr MessagesToDeliverDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MessagesToDeliverDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~MessagesToDeliverDefaultTypeInternal() {} union { MessagesToDeliver _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessagesToDeliverDefaultTypeInternal _MessagesToDeliver_default_instance_; -constexpr MessageToClient::MessageToClient( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : _oneof_case_{}{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessagesToDeliverDefaultTypeInternal _MessagesToDeliver_default_instance_; +PROTOBUF_CONSTEXPR MessageToClient::MessageToClient( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.data_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} struct MessageToClientDefaultTypeInternal { - constexpr MessageToClientDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MessageToClientDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~MessageToClientDefaultTypeInternal() {} union { MessageToClient _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageToClientDefaultTypeInternal _MessageToClient_default_instance_; -constexpr CheckRequest::CheckRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : userid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , devicetoken_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageToClientDefaultTypeInternal _MessageToClient_default_instance_; +PROTOBUF_CONSTEXPR CheckRequest::CheckRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.userid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.devicetoken_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct CheckRequestDefaultTypeInternal { - constexpr CheckRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CheckRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~CheckRequestDefaultTypeInternal() {} union { CheckRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CheckRequestDefaultTypeInternal _CheckRequest_default_instance_; -constexpr CheckResponse::CheckResponse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : checkresponsetype_(0) -{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckRequestDefaultTypeInternal _CheckRequest_default_instance_; +PROTOBUF_CONSTEXPR CheckResponse::CheckResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.checkresponsetype_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} struct CheckResponseDefaultTypeInternal { - constexpr CheckResponseDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CheckResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~CheckResponseDefaultTypeInternal() {} union { CheckResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CheckResponseDefaultTypeInternal _CheckResponse_default_instance_; -constexpr NewPrimaryRequest::NewPrimaryRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : userid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , devicetoken_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckResponseDefaultTypeInternal _CheckResponse_default_instance_; +PROTOBUF_CONSTEXPR NewPrimaryRequest::NewPrimaryRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.userid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.devicetoken_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct NewPrimaryRequestDefaultTypeInternal { - constexpr NewPrimaryRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR NewPrimaryRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~NewPrimaryRequestDefaultTypeInternal() {} union { NewPrimaryRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NewPrimaryRequestDefaultTypeInternal _NewPrimaryRequest_default_instance_; -constexpr NewPrimaryResponse::NewPrimaryResponse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : success_(false){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewPrimaryRequestDefaultTypeInternal _NewPrimaryRequest_default_instance_; +PROTOBUF_CONSTEXPR NewPrimaryResponse::NewPrimaryResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.success_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} struct NewPrimaryResponseDefaultTypeInternal { - constexpr NewPrimaryResponseDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR NewPrimaryResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~NewPrimaryResponseDefaultTypeInternal() {} union { NewPrimaryResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NewPrimaryResponseDefaultTypeInternal _NewPrimaryResponse_default_instance_; -constexpr PongRequest::PongRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : userid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , devicetoken_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewPrimaryResponseDefaultTypeInternal _NewPrimaryResponse_default_instance_; +PROTOBUF_CONSTEXPR PongRequest::PongRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.userid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.devicetoken_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} struct PongRequestDefaultTypeInternal { - constexpr PongRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PongRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~PongRequestDefaultTypeInternal() {} union { PongRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PongRequestDefaultTypeInternal _PongRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PongRequestDefaultTypeInternal _PongRequest_default_instance_; } // namespace tunnelbroker -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tunnelbroker_2eproto[19]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_tunnelbroker_2eproto[2]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tunnelbroker_2eproto = nullptr; +static ::_pb::Metadata file_level_metadata_tunnelbroker_2eproto[19]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_tunnelbroker_2eproto[2]; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_tunnelbroker_2eproto = nullptr; -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tunnelbroker_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const uint32_t TableStruct_tunnelbroker_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::tunnelbroker::SessionSignatureRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::SessionSignatureRequest, deviceid_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::tunnelbroker::SessionSignatureRequest, _impl_.deviceid_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::tunnelbroker::SessionSignatureResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::SessionSignatureResponse, tosign_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionRequest, _has_bits_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::tunnelbroker::SessionSignatureResponse, _impl_.tosign_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionRequest, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionRequest, deviceid_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionRequest, publickey_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionRequest, signature_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionRequest, notifytoken_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionRequest, devicetype_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionRequest, deviceappversion_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionRequest, deviceos_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionRequest, _impl_.deviceid_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionRequest, _impl_.publickey_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionRequest, _impl_.signature_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionRequest, _impl_.notifytoken_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionRequest, _impl_.devicetype_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionRequest, _impl_.deviceappversion_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionRequest, _impl_.deviceos_), ~0u, ~0u, ~0u, @@ -310,159 +337,175 @@ ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionResponse, sessionid_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewSessionResponse, _impl_.sessionid_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::tunnelbroker::SendRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::SendRequest, sessionid_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::SendRequest, todeviceid_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::SendRequest, payload_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::SendRequest, blobhashes_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::tunnelbroker::SendRequest, _impl_.sessionid_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::SendRequest, _impl_.todeviceid_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::SendRequest, _impl_.payload_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::SendRequest, _impl_.blobhashes_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetRequest, sessionid_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetRequest, _impl_.sessionid_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetResponse, fromdeviceid_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetResponse, payload_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetResponse, blobhashes_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetResponse, _impl_.fromdeviceid_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetResponse, _impl_.payload_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::GetResponse, _impl_.blobhashes_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::tunnelbroker::ProcessedMessages, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::ProcessedMessages, messageid_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::tunnelbroker::ProcessedMessages, _impl_.messageid_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToTunnelbrokerStruct, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToTunnelbrokerStruct, messageid_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToTunnelbrokerStruct, todeviceid_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToTunnelbrokerStruct, payload_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToTunnelbrokerStruct, blobhashes_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToTunnelbrokerStruct, _impl_.messageid_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToTunnelbrokerStruct, _impl_.todeviceid_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToTunnelbrokerStruct, _impl_.payload_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToTunnelbrokerStruct, _impl_.blobhashes_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessagesToSend, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessagesToSend, messages_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessagesToSend, _impl_.messages_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToTunnelbroker, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToTunnelbroker, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToTunnelbroker, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToTunnelbroker, sessionid_), - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToTunnelbroker, data_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToTunnelbroker, _impl_.sessionid_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToTunnelbroker, _impl_.data_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToClientStruct, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToClientStruct, messageid_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToClientStruct, fromdeviceid_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToClientStruct, payload_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToClientStruct, blobhashes_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToClientStruct, _impl_.messageid_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToClientStruct, _impl_.fromdeviceid_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToClientStruct, _impl_.payload_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToClientStruct, _impl_.blobhashes_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessagesToDeliver, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessagesToDeliver, messages_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessagesToDeliver, _impl_.messages_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToClient, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToClient, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToClient, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToClient, data_), + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::tunnelbroker::MessageToClient, _impl_.data_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::tunnelbroker::CheckRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::CheckRequest, userid_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::CheckRequest, devicetoken_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::tunnelbroker::CheckRequest, _impl_.userid_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::CheckRequest, _impl_.devicetoken_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::tunnelbroker::CheckResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::CheckResponse, checkresponsetype_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::tunnelbroker::CheckResponse, _impl_.checkresponsetype_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewPrimaryRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewPrimaryRequest, userid_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewPrimaryRequest, devicetoken_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewPrimaryRequest, _impl_.userid_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewPrimaryRequest, _impl_.devicetoken_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewPrimaryResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewPrimaryResponse, success_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::tunnelbroker::NewPrimaryResponse, _impl_.success_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::tunnelbroker::PongRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::tunnelbroker::PongRequest, userid_), - PROTOBUF_FIELD_OFFSET(::tunnelbroker::PongRequest, devicetoken_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::tunnelbroker::PongRequest, _impl_.userid_), + PROTOBUF_FIELD_OFFSET(::tunnelbroker::PongRequest, _impl_.devicetoken_), }; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::tunnelbroker::SessionSignatureRequest)}, - { 6, -1, sizeof(::tunnelbroker::SessionSignatureResponse)}, - { 12, 24, sizeof(::tunnelbroker::NewSessionRequest)}, - { 31, -1, sizeof(::tunnelbroker::NewSessionResponse)}, - { 37, -1, sizeof(::tunnelbroker::SendRequest)}, - { 46, -1, sizeof(::tunnelbroker::GetRequest)}, - { 52, -1, sizeof(::tunnelbroker::GetResponse)}, - { 60, -1, sizeof(::tunnelbroker::ProcessedMessages)}, - { 66, -1, sizeof(::tunnelbroker::MessageToTunnelbrokerStruct)}, - { 75, -1, sizeof(::tunnelbroker::MessagesToSend)}, - { 81, -1, sizeof(::tunnelbroker::MessageToTunnelbroker)}, - { 90, -1, sizeof(::tunnelbroker::MessageToClientStruct)}, - { 99, -1, sizeof(::tunnelbroker::MessagesToDeliver)}, - { 105, -1, sizeof(::tunnelbroker::MessageToClient)}, - { 113, -1, sizeof(::tunnelbroker::CheckRequest)}, - { 120, -1, sizeof(::tunnelbroker::CheckResponse)}, - { 126, -1, sizeof(::tunnelbroker::NewPrimaryRequest)}, - { 133, -1, sizeof(::tunnelbroker::NewPrimaryResponse)}, - { 139, -1, sizeof(::tunnelbroker::PongRequest)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::tunnelbroker::SessionSignatureRequest)}, + { 7, -1, -1, sizeof(::tunnelbroker::SessionSignatureResponse)}, + { 14, 27, -1, sizeof(::tunnelbroker::NewSessionRequest)}, + { 34, -1, -1, sizeof(::tunnelbroker::NewSessionResponse)}, + { 41, -1, -1, sizeof(::tunnelbroker::SendRequest)}, + { 51, -1, -1, sizeof(::tunnelbroker::GetRequest)}, + { 58, -1, -1, sizeof(::tunnelbroker::GetResponse)}, + { 67, -1, -1, sizeof(::tunnelbroker::ProcessedMessages)}, + { 74, -1, -1, sizeof(::tunnelbroker::MessageToTunnelbrokerStruct)}, + { 84, -1, -1, sizeof(::tunnelbroker::MessagesToSend)}, + { 91, -1, -1, sizeof(::tunnelbroker::MessageToTunnelbroker)}, + { 101, -1, -1, sizeof(::tunnelbroker::MessageToClientStruct)}, + { 111, -1, -1, sizeof(::tunnelbroker::MessagesToDeliver)}, + { 118, -1, -1, sizeof(::tunnelbroker::MessageToClient)}, + { 127, -1, -1, sizeof(::tunnelbroker::CheckRequest)}, + { 135, -1, -1, sizeof(::tunnelbroker::CheckResponse)}, + { 142, -1, -1, sizeof(::tunnelbroker::NewPrimaryRequest)}, + { 150, -1, -1, sizeof(::tunnelbroker::NewPrimaryResponse)}, + { 157, -1, -1, sizeof(::tunnelbroker::PongRequest)}, }; -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::tunnelbroker::_SessionSignatureRequest_default_instance_), - reinterpret_cast(&::tunnelbroker::_SessionSignatureResponse_default_instance_), - reinterpret_cast(&::tunnelbroker::_NewSessionRequest_default_instance_), - reinterpret_cast(&::tunnelbroker::_NewSessionResponse_default_instance_), - reinterpret_cast(&::tunnelbroker::_SendRequest_default_instance_), - reinterpret_cast(&::tunnelbroker::_GetRequest_default_instance_), - reinterpret_cast(&::tunnelbroker::_GetResponse_default_instance_), - reinterpret_cast(&::tunnelbroker::_ProcessedMessages_default_instance_), - reinterpret_cast(&::tunnelbroker::_MessageToTunnelbrokerStruct_default_instance_), - reinterpret_cast(&::tunnelbroker::_MessagesToSend_default_instance_), - reinterpret_cast(&::tunnelbroker::_MessageToTunnelbroker_default_instance_), - reinterpret_cast(&::tunnelbroker::_MessageToClientStruct_default_instance_), - reinterpret_cast(&::tunnelbroker::_MessagesToDeliver_default_instance_), - reinterpret_cast(&::tunnelbroker::_MessageToClient_default_instance_), - reinterpret_cast(&::tunnelbroker::_CheckRequest_default_instance_), - reinterpret_cast(&::tunnelbroker::_CheckResponse_default_instance_), - reinterpret_cast(&::tunnelbroker::_NewPrimaryRequest_default_instance_), - reinterpret_cast(&::tunnelbroker::_NewPrimaryResponse_default_instance_), - reinterpret_cast(&::tunnelbroker::_PongRequest_default_instance_), +static const ::_pb::Message* const file_default_instances[] = { + &::tunnelbroker::_SessionSignatureRequest_default_instance_._instance, + &::tunnelbroker::_SessionSignatureResponse_default_instance_._instance, + &::tunnelbroker::_NewSessionRequest_default_instance_._instance, + &::tunnelbroker::_NewSessionResponse_default_instance_._instance, + &::tunnelbroker::_SendRequest_default_instance_._instance, + &::tunnelbroker::_GetRequest_default_instance_._instance, + &::tunnelbroker::_GetResponse_default_instance_._instance, + &::tunnelbroker::_ProcessedMessages_default_instance_._instance, + &::tunnelbroker::_MessageToTunnelbrokerStruct_default_instance_._instance, + &::tunnelbroker::_MessagesToSend_default_instance_._instance, + &::tunnelbroker::_MessageToTunnelbroker_default_instance_._instance, + &::tunnelbroker::_MessageToClientStruct_default_instance_._instance, + &::tunnelbroker::_MessagesToDeliver_default_instance_._instance, + &::tunnelbroker::_MessageToClient_default_instance_._instance, + &::tunnelbroker::_CheckRequest_default_instance_._instance, + &::tunnelbroker::_CheckResponse_default_instance_._instance, + &::tunnelbroker::_NewPrimaryRequest_default_instance_._instance, + &::tunnelbroker::_NewPrimaryResponse_default_instance_._instance, + &::tunnelbroker::_PongRequest_default_instance_._instance, }; const char descriptor_table_protodef_tunnelbroker_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -529,24 +572,24 @@ "roker.MessageToTunnelbroker\032\035.tunnelbrok" "er.MessageToClient\"\000(\0010\001b\006proto3" ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tunnelbroker_2eproto_deps[1] = { +static const ::_pbi::DescriptorTable* const descriptor_table_tunnelbroker_2eproto_deps[1] = { &::descriptor_table_google_2fprotobuf_2fempty_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tunnelbroker_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tunnelbroker_2eproto = { - false, false, 2472, descriptor_table_protodef_tunnelbroker_2eproto, "tunnelbroker.proto", - &descriptor_table_tunnelbroker_2eproto_once, descriptor_table_tunnelbroker_2eproto_deps, 1, 19, - schemas, file_default_instances, TableStruct_tunnelbroker_2eproto::offsets, - file_level_metadata_tunnelbroker_2eproto, file_level_enum_descriptors_tunnelbroker_2eproto, file_level_service_descriptors_tunnelbroker_2eproto, +static ::_pbi::once_flag descriptor_table_tunnelbroker_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_tunnelbroker_2eproto = { + false, false, 2472, descriptor_table_protodef_tunnelbroker_2eproto, + "tunnelbroker.proto", + &descriptor_table_tunnelbroker_2eproto_once, descriptor_table_tunnelbroker_2eproto_deps, 1, 19, + schemas, file_default_instances, TableStruct_tunnelbroker_2eproto::offsets, + file_level_metadata_tunnelbroker_2eproto, file_level_enum_descriptors_tunnelbroker_2eproto, + file_level_service_descriptors_tunnelbroker_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::Metadata -descriptor_table_tunnelbroker_2eproto_metadata_getter(int index) { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_tunnelbroker_2eproto); - return descriptor_table_tunnelbroker_2eproto.file_level_metadata[index]; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_tunnelbroker_2eproto_getter() { + return &descriptor_table_tunnelbroker_2eproto; } // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_tunnelbroker_2eproto(&descriptor_table_tunnelbroker_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_tunnelbroker_2eproto(&descriptor_table_tunnelbroker_2eproto); namespace tunnelbroker { const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* NewSessionRequest_DeviceTypes_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_tunnelbroker_2eproto); @@ -563,14 +606,14 @@ } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr NewSessionRequest_DeviceTypes NewSessionRequest::MOBILE; constexpr NewSessionRequest_DeviceTypes NewSessionRequest::WEB; constexpr NewSessionRequest_DeviceTypes NewSessionRequest::KEYSERVER; constexpr NewSessionRequest_DeviceTypes NewSessionRequest::DeviceTypes_MIN; constexpr NewSessionRequest_DeviceTypes NewSessionRequest::DeviceTypes_MAX; constexpr int NewSessionRequest::DeviceTypes_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CheckResponseType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_tunnelbroker_2eproto); return file_level_enum_descriptors_tunnelbroker_2eproto[1]; @@ -594,104 +637,120 @@ public: }; -SessionSignatureRequest::SessionSignatureRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +SessionSignatureRequest::SessionSignatureRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:tunnelbroker.SessionSignatureRequest) } SessionSignatureRequest::SessionSignatureRequest(const SessionSignatureRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SessionSignatureRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.deviceid_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - deviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.deviceid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.deviceid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_deviceid().empty()) { - deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_deviceid(), - GetArena()); + _this->_impl_.deviceid_.Set(from._internal_deviceid(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:tunnelbroker.SessionSignatureRequest) } -void SessionSignatureRequest::SharedCtor() { -deviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void SessionSignatureRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.deviceid_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.deviceid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.deviceid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } SessionSignatureRequest::~SessionSignatureRequest() { // @@protoc_insertion_point(destructor:tunnelbroker.SessionSignatureRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void SessionSignatureRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - deviceid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void SessionSignatureRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.deviceid_.Destroy(); } -void SessionSignatureRequest::ArenaDtor(void* object) { - SessionSignatureRequest* _this = reinterpret_cast< SessionSignatureRequest* >(object); - (void)_this; -} -void SessionSignatureRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void SessionSignatureRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SessionSignatureRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tunnelbroker.SessionSignatureRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - deviceid_.ClearToEmpty(); + _impl_.deviceid_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* SessionSignatureRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* SessionSignatureRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string deviceID = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_deviceid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.SessionSignatureRequest.deviceID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.SessionSignatureRequest.deviceID")); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* SessionSignatureRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* SessionSignatureRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.SessionSignatureRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string deviceID = 1; - if (this->deviceid().size() > 0) { + if (!this->_internal_deviceid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_deviceid().data(), static_cast(this->_internal_deviceid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -701,7 +760,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.SessionSignatureRequest) @@ -712,58 +771,39 @@ // @@protoc_insertion_point(message_byte_size_start:tunnelbroker.SessionSignatureRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string deviceID = 1; - if (this->deviceid().size() > 0) { + if (!this->_internal_deviceid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_deviceid()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void SessionSignatureRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.SessionSignatureRequest) - GOOGLE_DCHECK_NE(&from, this); - const SessionSignatureRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.SessionSignatureRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.SessionSignatureRequest) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SessionSignatureRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SessionSignatureRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SessionSignatureRequest::GetClassData() const { return &_class_data_; } -void SessionSignatureRequest::MergeFrom(const SessionSignatureRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.SessionSignatureRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void SessionSignatureRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.SessionSignatureRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.deviceid().size() > 0) { - _internal_set_deviceid(from._internal_deviceid()); + if (!from._internal_deviceid().empty()) { + _this->_internal_set_deviceid(from._internal_deviceid()); } -} - -void SessionSignatureRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.SessionSignatureRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SessionSignatureRequest::CopyFrom(const SessionSignatureRequest& from) { @@ -779,119 +819,141 @@ void SessionSignatureRequest::InternalSwap(SessionSignatureRequest* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - deviceid_.Swap(&other->deviceid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.deviceid_, lhs_arena, + &other->_impl_.deviceid_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata SessionSignatureRequest::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_tunnelbroker_2eproto_getter, &descriptor_table_tunnelbroker_2eproto_once, + file_level_metadata_tunnelbroker_2eproto[0]); } - // =================================================================== class SessionSignatureResponse::_Internal { public: }; -SessionSignatureResponse::SessionSignatureResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +SessionSignatureResponse::SessionSignatureResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:tunnelbroker.SessionSignatureResponse) } SessionSignatureResponse::SessionSignatureResponse(const SessionSignatureResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SessionSignatureResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.tosign_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - tosign_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.tosign_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.tosign_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_tosign().empty()) { - tosign_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_tosign(), - GetArena()); + _this->_impl_.tosign_.Set(from._internal_tosign(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:tunnelbroker.SessionSignatureResponse) } -void SessionSignatureResponse::SharedCtor() { -tosign_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void SessionSignatureResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.tosign_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.tosign_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.tosign_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } SessionSignatureResponse::~SessionSignatureResponse() { // @@protoc_insertion_point(destructor:tunnelbroker.SessionSignatureResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void SessionSignatureResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - tosign_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void SessionSignatureResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.tosign_.Destroy(); } -void SessionSignatureResponse::ArenaDtor(void* object) { - SessionSignatureResponse* _this = reinterpret_cast< SessionSignatureResponse* >(object); - (void)_this; -} -void SessionSignatureResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void SessionSignatureResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SessionSignatureResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tunnelbroker.SessionSignatureResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - tosign_.ClearToEmpty(); + _impl_.tosign_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* SessionSignatureResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* SessionSignatureResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string toSign = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_tosign(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.SessionSignatureResponse.toSign")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.SessionSignatureResponse.toSign")); + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* SessionSignatureResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* SessionSignatureResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.SessionSignatureResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string toSign = 1; - if (this->tosign().size() > 0) { + if (!this->_internal_tosign().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_tosign().data(), static_cast(this->_internal_tosign().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -901,7 +963,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.SessionSignatureResponse) @@ -912,58 +974,39 @@ // @@protoc_insertion_point(message_byte_size_start:tunnelbroker.SessionSignatureResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string toSign = 1; - if (this->tosign().size() > 0) { + if (!this->_internal_tosign().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_tosign()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void SessionSignatureResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.SessionSignatureResponse) - GOOGLE_DCHECK_NE(&from, this); - const SessionSignatureResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.SessionSignatureResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.SessionSignatureResponse) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SessionSignatureResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SessionSignatureResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SessionSignatureResponse::GetClassData() const { return &_class_data_; } -void SessionSignatureResponse::MergeFrom(const SessionSignatureResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.SessionSignatureResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void SessionSignatureResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.SessionSignatureResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.tosign().size() > 0) { - _internal_set_tosign(from._internal_tosign()); + if (!from._internal_tosign().empty()) { + _this->_internal_set_tosign(from._internal_tosign()); } -} - -void SessionSignatureResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.SessionSignatureResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SessionSignatureResponse::CopyFrom(const SessionSignatureResponse& from) { @@ -979,226 +1022,296 @@ void SessionSignatureResponse::InternalSwap(SessionSignatureResponse* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - tosign_.Swap(&other->tosign_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.tosign_, lhs_arena, + &other->_impl_.tosign_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata SessionSignatureResponse::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_tunnelbroker_2eproto_getter, &descriptor_table_tunnelbroker_2eproto_once, + file_level_metadata_tunnelbroker_2eproto[1]); } - // =================================================================== class NewSessionRequest::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); + using HasBits = decltype(std::declval()._impl_._has_bits_); static void set_has_notifytoken(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -NewSessionRequest::NewSessionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +NewSessionRequest::NewSessionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:tunnelbroker.NewSessionRequest) } NewSessionRequest::NewSessionRequest(const NewSessionRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + NewSessionRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.deviceid_){} + , decltype(_impl_.publickey_){} + , decltype(_impl_.signature_){} + , decltype(_impl_.notifytoken_){} + , decltype(_impl_.deviceappversion_){} + , decltype(_impl_.deviceos_){} + , decltype(_impl_.devicetype_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - deviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.deviceid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.deviceid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_deviceid().empty()) { - deviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_deviceid(), - GetArena()); + _this->_impl_.deviceid_.Set(from._internal_deviceid(), + _this->GetArenaForAllocation()); } - publickey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.publickey_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.publickey_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_publickey().empty()) { - publickey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_publickey(), - GetArena()); + _this->_impl_.publickey_.Set(from._internal_publickey(), + _this->GetArenaForAllocation()); } - signature_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.signature_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.signature_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_signature().empty()) { - signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_signature(), - GetArena()); + _this->_impl_.signature_.Set(from._internal_signature(), + _this->GetArenaForAllocation()); } - notifytoken_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.notifytoken_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.notifytoken_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_notifytoken()) { - notifytoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_notifytoken(), - GetArena()); + _this->_impl_.notifytoken_.Set(from._internal_notifytoken(), + _this->GetArenaForAllocation()); } - deviceappversion_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.deviceappversion_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.deviceappversion_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_deviceappversion().empty()) { - deviceappversion_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_deviceappversion(), - GetArena()); + _this->_impl_.deviceappversion_.Set(from._internal_deviceappversion(), + _this->GetArenaForAllocation()); } - deviceos_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.deviceos_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.deviceos_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_deviceos().empty()) { - deviceos_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_deviceos(), - GetArena()); + _this->_impl_.deviceos_.Set(from._internal_deviceos(), + _this->GetArenaForAllocation()); } - devicetype_ = from.devicetype_; + _this->_impl_.devicetype_ = from._impl_.devicetype_; // @@protoc_insertion_point(copy_constructor:tunnelbroker.NewSessionRequest) } -void NewSessionRequest::SharedCtor() { -deviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -publickey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -signature_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -notifytoken_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -deviceappversion_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -deviceos_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -devicetype_ = 0; +inline void NewSessionRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.deviceid_){} + , decltype(_impl_.publickey_){} + , decltype(_impl_.signature_){} + , decltype(_impl_.notifytoken_){} + , decltype(_impl_.deviceappversion_){} + , decltype(_impl_.deviceos_){} + , decltype(_impl_.devicetype_){0} + }; + _impl_.deviceid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.deviceid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.publickey_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.publickey_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.signature_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.signature_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.notifytoken_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.notifytoken_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.deviceappversion_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.deviceappversion_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.deviceos_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.deviceos_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } NewSessionRequest::~NewSessionRequest() { // @@protoc_insertion_point(destructor:tunnelbroker.NewSessionRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void NewSessionRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - deviceid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - publickey_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - signature_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - notifytoken_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - deviceappversion_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - deviceos_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void NewSessionRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.deviceid_.Destroy(); + _impl_.publickey_.Destroy(); + _impl_.signature_.Destroy(); + _impl_.notifytoken_.Destroy(); + _impl_.deviceappversion_.Destroy(); + _impl_.deviceos_.Destroy(); } -void NewSessionRequest::ArenaDtor(void* object) { - NewSessionRequest* _this = reinterpret_cast< NewSessionRequest* >(object); - (void)_this; -} -void NewSessionRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void NewSessionRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void NewSessionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tunnelbroker.NewSessionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - deviceid_.ClearToEmpty(); - publickey_.ClearToEmpty(); - signature_.ClearToEmpty(); - cached_has_bits = _has_bits_[0]; + _impl_.deviceid_.ClearToEmpty(); + _impl_.publickey_.ClearToEmpty(); + _impl_.signature_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - notifytoken_.ClearNonDefaultToEmpty(); + _impl_.notifytoken_.ClearNonDefaultToEmpty(); } - deviceappversion_.ClearToEmpty(); - deviceos_.ClearToEmpty(); - devicetype_ = 0; - _has_bits_.Clear(); + _impl_.deviceappversion_.ClearToEmpty(); + _impl_.deviceos_.ClearToEmpty(); + _impl_.devicetype_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* NewSessionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* NewSessionRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string deviceID = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_deviceid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.NewSessionRequest.deviceID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.NewSessionRequest.deviceID")); + } else + goto handle_unusual; continue; // string publicKey = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_publickey(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.NewSessionRequest.publicKey")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.NewSessionRequest.publicKey")); + } else + goto handle_unusual; continue; // string signature = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_signature(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.NewSessionRequest.signature")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.NewSessionRequest.signature")); + } else + goto handle_unusual; continue; - // string notifyToken = 4; + // optional string notifyToken = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { auto str = _internal_mutable_notifytoken(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.NewSessionRequest.notifyToken")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.NewSessionRequest.notifyToken")); + } else + goto handle_unusual; continue; // .tunnelbroker.NewSessionRequest.DeviceTypes deviceType = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); _internal_set_devicetype(static_cast<::tunnelbroker::NewSessionRequest_DeviceTypes>(val)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // string deviceAppVersion = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { auto str = _internal_mutable_deviceappversion(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.NewSessionRequest.deviceAppVersion")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.NewSessionRequest.deviceAppVersion")); + } else + goto handle_unusual; continue; // string deviceOS = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { auto str = _internal_mutable_deviceos(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.NewSessionRequest.deviceOS")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.NewSessionRequest.deviceOS")); + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: - _has_bits_.Or(has_bits); +message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* NewSessionRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* NewSessionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.NewSessionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string deviceID = 1; - if (this->deviceid().size() > 0) { + if (!this->_internal_deviceid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_deviceid().data(), static_cast(this->_internal_deviceid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1208,7 +1321,7 @@ } // string publicKey = 2; - if (this->publickey().size() > 0) { + if (!this->_internal_publickey().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_publickey().data(), static_cast(this->_internal_publickey().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1218,7 +1331,7 @@ } // string signature = 3; - if (this->signature().size() > 0) { + if (!this->_internal_signature().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_signature().data(), static_cast(this->_internal_signature().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1227,7 +1340,7 @@ 3, this->_internal_signature(), target); } - // string notifyToken = 4; + // optional string notifyToken = 4; if (_internal_has_notifytoken()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_notifytoken().data(), static_cast(this->_internal_notifytoken().length()), @@ -1238,14 +1351,14 @@ } // .tunnelbroker.NewSessionRequest.DeviceTypes deviceType = 5; - if (this->devicetype() != 0) { + if (this->_internal_devicetype() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 5, this->_internal_devicetype(), target); } // string deviceAppVersion = 6; - if (this->deviceappversion().size() > 0) { + if (!this->_internal_deviceappversion().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_deviceappversion().data(), static_cast(this->_internal_deviceappversion().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1255,7 +1368,7 @@ } // string deviceOS = 7; - if (this->deviceos().size() > 0) { + if (!this->_internal_deviceos().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_deviceos().data(), static_cast(this->_internal_deviceos().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1265,7 +1378,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.NewSessionRequest) @@ -1276,33 +1389,33 @@ // @@protoc_insertion_point(message_byte_size_start:tunnelbroker.NewSessionRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string deviceID = 1; - if (this->deviceid().size() > 0) { + if (!this->_internal_deviceid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_deviceid()); } // string publicKey = 2; - if (this->publickey().size() > 0) { + if (!this->_internal_publickey().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_publickey()); } // string signature = 3; - if (this->signature().size() > 0) { + if (!this->_internal_signature().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_signature()); } - // string notifyToken = 4; - cached_has_bits = _has_bits_[0]; + // optional string notifyToken = 4; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( @@ -1310,84 +1423,65 @@ } // string deviceAppVersion = 6; - if (this->deviceappversion().size() > 0) { + if (!this->_internal_deviceappversion().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_deviceappversion()); } // string deviceOS = 7; - if (this->deviceos().size() > 0) { + if (!this->_internal_deviceos().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_deviceos()); } // .tunnelbroker.NewSessionRequest.DeviceTypes deviceType = 5; - if (this->devicetype() != 0) { + if (this->_internal_devicetype() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_devicetype()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_devicetype()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void NewSessionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.NewSessionRequest) - GOOGLE_DCHECK_NE(&from, this); - const NewSessionRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.NewSessionRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.NewSessionRequest) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NewSessionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + NewSessionRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NewSessionRequest::GetClassData() const { return &_class_data_; } -void NewSessionRequest::MergeFrom(const NewSessionRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.NewSessionRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void NewSessionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.NewSessionRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.deviceid().size() > 0) { - _internal_set_deviceid(from._internal_deviceid()); + if (!from._internal_deviceid().empty()) { + _this->_internal_set_deviceid(from._internal_deviceid()); } - if (from.publickey().size() > 0) { - _internal_set_publickey(from._internal_publickey()); + if (!from._internal_publickey().empty()) { + _this->_internal_set_publickey(from._internal_publickey()); } - if (from.signature().size() > 0) { - _internal_set_signature(from._internal_signature()); + if (!from._internal_signature().empty()) { + _this->_internal_set_signature(from._internal_signature()); } if (from._internal_has_notifytoken()) { - _internal_set_notifytoken(from._internal_notifytoken()); + _this->_internal_set_notifytoken(from._internal_notifytoken()); } - if (from.deviceappversion().size() > 0) { - _internal_set_deviceappversion(from._internal_deviceappversion()); + if (!from._internal_deviceappversion().empty()) { + _this->_internal_set_deviceappversion(from._internal_deviceappversion()); } - if (from.deviceos().size() > 0) { - _internal_set_deviceos(from._internal_deviceos()); + if (!from._internal_deviceos().empty()) { + _this->_internal_set_deviceos(from._internal_deviceos()); } - if (from.devicetype() != 0) { - _internal_set_devicetype(from._internal_devicetype()); + if (from._internal_devicetype() != 0) { + _this->_internal_set_devicetype(from._internal_devicetype()); } -} - -void NewSessionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.NewSessionRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void NewSessionRequest::CopyFrom(const NewSessionRequest& from) { @@ -1403,126 +1497,163 @@ void NewSessionRequest::InternalSwap(NewSessionRequest* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - deviceid_.Swap(&other->deviceid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - publickey_.Swap(&other->publickey_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - signature_.Swap(&other->signature_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - notifytoken_.Swap(&other->notifytoken_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - deviceappversion_.Swap(&other->deviceappversion_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - deviceos_.Swap(&other->deviceos_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(devicetype_, other->devicetype_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.deviceid_, lhs_arena, + &other->_impl_.deviceid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.publickey_, lhs_arena, + &other->_impl_.publickey_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.signature_, lhs_arena, + &other->_impl_.signature_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.notifytoken_, lhs_arena, + &other->_impl_.notifytoken_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.deviceappversion_, lhs_arena, + &other->_impl_.deviceappversion_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.deviceos_, lhs_arena, + &other->_impl_.deviceos_, rhs_arena + ); + swap(_impl_.devicetype_, other->_impl_.devicetype_); } ::PROTOBUF_NAMESPACE_ID::Metadata NewSessionRequest::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_tunnelbroker_2eproto_getter, &descriptor_table_tunnelbroker_2eproto_once, + file_level_metadata_tunnelbroker_2eproto[2]); } - // =================================================================== class NewSessionResponse::_Internal { public: }; -NewSessionResponse::NewSessionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +NewSessionResponse::NewSessionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:tunnelbroker.NewSessionResponse) } NewSessionResponse::NewSessionResponse(const NewSessionResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + NewSessionResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.sessionid_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - sessionid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.sessionid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sessionid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_sessionid().empty()) { - sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sessionid(), - GetArena()); + _this->_impl_.sessionid_.Set(from._internal_sessionid(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:tunnelbroker.NewSessionResponse) } -void NewSessionResponse::SharedCtor() { -sessionid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void NewSessionResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.sessionid_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.sessionid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sessionid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } NewSessionResponse::~NewSessionResponse() { // @@protoc_insertion_point(destructor:tunnelbroker.NewSessionResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void NewSessionResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - sessionid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void NewSessionResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.sessionid_.Destroy(); } -void NewSessionResponse::ArenaDtor(void* object) { - NewSessionResponse* _this = reinterpret_cast< NewSessionResponse* >(object); - (void)_this; -} -void NewSessionResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void NewSessionResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void NewSessionResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tunnelbroker.NewSessionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - sessionid_.ClearToEmpty(); + _impl_.sessionid_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* NewSessionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* NewSessionResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string sessionID = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_sessionid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.NewSessionResponse.sessionID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.NewSessionResponse.sessionID")); + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* NewSessionResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* NewSessionResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.NewSessionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string sessionID = 1; - if (this->sessionid().size() > 0) { + if (!this->_internal_sessionid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_sessionid().data(), static_cast(this->_internal_sessionid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1532,7 +1663,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.NewSessionResponse) @@ -1543,58 +1674,39 @@ // @@protoc_insertion_point(message_byte_size_start:tunnelbroker.NewSessionResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string sessionID = 1; - if (this->sessionid().size() > 0) { + if (!this->_internal_sessionid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_sessionid()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void NewSessionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.NewSessionResponse) - GOOGLE_DCHECK_NE(&from, this); - const NewSessionResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.NewSessionResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.NewSessionResponse) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NewSessionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + NewSessionResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NewSessionResponse::GetClassData() const { return &_class_data_; } -void NewSessionResponse::MergeFrom(const NewSessionResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.NewSessionResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void NewSessionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.NewSessionResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.sessionid().size() > 0) { - _internal_set_sessionid(from._internal_sessionid()); + if (!from._internal_sessionid().empty()) { + _this->_internal_set_sessionid(from._internal_sessionid()); } -} - -void NewSessionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.NewSessionResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void NewSessionResponse::CopyFrom(const NewSessionResponse& from) { @@ -1610,169 +1722,211 @@ void NewSessionResponse::InternalSwap(NewSessionResponse* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - sessionid_.Swap(&other->sessionid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.sessionid_, lhs_arena, + &other->_impl_.sessionid_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata NewSessionResponse::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_tunnelbroker_2eproto_getter, &descriptor_table_tunnelbroker_2eproto_once, + file_level_metadata_tunnelbroker_2eproto[3]); } - // =================================================================== class SendRequest::_Internal { public: }; -SendRequest::SendRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - blobhashes_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +SendRequest::SendRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:tunnelbroker.SendRequest) } SendRequest::SendRequest(const SendRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - blobhashes_(from.blobhashes_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + SendRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.blobhashes_){from._impl_.blobhashes_} + , decltype(_impl_.sessionid_){} + , decltype(_impl_.todeviceid_){} + , decltype(_impl_.payload_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - sessionid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.sessionid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sessionid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_sessionid().empty()) { - sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sessionid(), - GetArena()); + _this->_impl_.sessionid_.Set(from._internal_sessionid(), + _this->GetArenaForAllocation()); } - todeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.todeviceid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.todeviceid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_todeviceid().empty()) { - todeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_todeviceid(), - GetArena()); + _this->_impl_.todeviceid_.Set(from._internal_todeviceid(), + _this->GetArenaForAllocation()); } - payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.payload_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.payload_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_payload().empty()) { - payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_payload(), - GetArena()); + _this->_impl_.payload_.Set(from._internal_payload(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:tunnelbroker.SendRequest) } -void SendRequest::SharedCtor() { -sessionid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -todeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void SendRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.blobhashes_){arena} + , decltype(_impl_.sessionid_){} + , decltype(_impl_.todeviceid_){} + , decltype(_impl_.payload_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.sessionid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sessionid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.todeviceid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.todeviceid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.payload_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.payload_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } SendRequest::~SendRequest() { // @@protoc_insertion_point(destructor:tunnelbroker.SendRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void SendRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - sessionid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - todeviceid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - payload_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void SendRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.blobhashes_.~RepeatedPtrField(); + _impl_.sessionid_.Destroy(); + _impl_.todeviceid_.Destroy(); + _impl_.payload_.Destroy(); } -void SendRequest::ArenaDtor(void* object) { - SendRequest* _this = reinterpret_cast< SendRequest* >(object); - (void)_this; -} -void SendRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void SendRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SendRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tunnelbroker.SendRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - blobhashes_.Clear(); - sessionid_.ClearToEmpty(); - todeviceid_.ClearToEmpty(); - payload_.ClearToEmpty(); + _impl_.blobhashes_.Clear(); + _impl_.sessionid_.ClearToEmpty(); + _impl_.todeviceid_.ClearToEmpty(); + _impl_.payload_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* SendRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* SendRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string sessionID = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_sessionid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.SendRequest.sessionID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.SendRequest.sessionID")); + } else + goto handle_unusual; continue; // string toDeviceID = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_todeviceid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.SendRequest.toDeviceID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.SendRequest.toDeviceID")); + } else + goto handle_unusual; continue; // bytes payload = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_payload(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated string blobHashes = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { ptr -= 1; do { ptr += 1; auto str = _internal_add_blobhashes(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.SendRequest.blobHashes")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.SendRequest.blobHashes")); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* SendRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* SendRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.SendRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string sessionID = 1; - if (this->sessionid().size() > 0) { + if (!this->_internal_sessionid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_sessionid().data(), static_cast(this->_internal_sessionid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1782,7 +1936,7 @@ } // string toDeviceID = 2; - if (this->todeviceid().size() > 0) { + if (!this->_internal_todeviceid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_todeviceid().data(), static_cast(this->_internal_todeviceid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1792,7 +1946,7 @@ } // bytes payload = 3; - if (this->payload().size() > 0) { + if (!this->_internal_payload().empty()) { target = stream->WriteBytesMaybeAliased( 3, this->_internal_payload(), target); } @@ -1808,7 +1962,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.SendRequest) @@ -1819,87 +1973,68 @@ // @@protoc_insertion_point(message_byte_size_start:tunnelbroker.SendRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string blobHashes = 4; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(blobhashes_.size()); - for (int i = 0, n = blobhashes_.size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.blobhashes_.size()); + for (int i = 0, n = _impl_.blobhashes_.size(); i < n; i++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - blobhashes_.Get(i)); + _impl_.blobhashes_.Get(i)); } // string sessionID = 1; - if (this->sessionid().size() > 0) { + if (!this->_internal_sessionid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_sessionid()); } // string toDeviceID = 2; - if (this->todeviceid().size() > 0) { + if (!this->_internal_todeviceid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_todeviceid()); } // bytes payload = 3; - if (this->payload().size() > 0) { + if (!this->_internal_payload().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_payload()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void SendRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.SendRequest) - GOOGLE_DCHECK_NE(&from, this); - const SendRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.SendRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.SendRequest) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SendRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SendRequest::GetClassData() const { return &_class_data_; } -void SendRequest::MergeFrom(const SendRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.SendRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void SendRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.SendRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - blobhashes_.MergeFrom(from.blobhashes_); - if (from.sessionid().size() > 0) { - _internal_set_sessionid(from._internal_sessionid()); + _this->_impl_.blobhashes_.MergeFrom(from._impl_.blobhashes_); + if (!from._internal_sessionid().empty()) { + _this->_internal_set_sessionid(from._internal_sessionid()); } - if (from.todeviceid().size() > 0) { - _internal_set_todeviceid(from._internal_todeviceid()); + if (!from._internal_todeviceid().empty()) { + _this->_internal_set_todeviceid(from._internal_todeviceid()); } - if (from.payload().size() > 0) { - _internal_set_payload(from._internal_payload()); + if (!from._internal_payload().empty()) { + _this->_internal_set_payload(from._internal_payload()); } -} - -void SendRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.SendRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SendRequest::CopyFrom(const SendRequest& from) { @@ -1915,122 +2050,150 @@ void SendRequest::InternalSwap(SendRequest* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - blobhashes_.InternalSwap(&other->blobhashes_); - sessionid_.Swap(&other->sessionid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - todeviceid_.Swap(&other->todeviceid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - payload_.Swap(&other->payload_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.blobhashes_.InternalSwap(&other->_impl_.blobhashes_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.sessionid_, lhs_arena, + &other->_impl_.sessionid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.todeviceid_, lhs_arena, + &other->_impl_.todeviceid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.payload_, lhs_arena, + &other->_impl_.payload_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata SendRequest::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_tunnelbroker_2eproto_getter, &descriptor_table_tunnelbroker_2eproto_once, + file_level_metadata_tunnelbroker_2eproto[4]); } - // =================================================================== class GetRequest::_Internal { public: }; -GetRequest::GetRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +GetRequest::GetRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:tunnelbroker.GetRequest) } GetRequest::GetRequest(const GetRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + GetRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.sessionid_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - sessionid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.sessionid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sessionid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_sessionid().empty()) { - sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sessionid(), - GetArena()); + _this->_impl_.sessionid_.Set(from._internal_sessionid(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:tunnelbroker.GetRequest) } -void GetRequest::SharedCtor() { -sessionid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GetRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.sessionid_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.sessionid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sessionid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } GetRequest::~GetRequest() { // @@protoc_insertion_point(destructor:tunnelbroker.GetRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void GetRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - sessionid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GetRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.sessionid_.Destroy(); } -void GetRequest::ArenaDtor(void* object) { - GetRequest* _this = reinterpret_cast< GetRequest* >(object); - (void)_this; -} -void GetRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void GetRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void GetRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tunnelbroker.GetRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - sessionid_.ClearToEmpty(); + _impl_.sessionid_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* GetRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* GetRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string sessionID = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_sessionid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.GetRequest.sessionID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.GetRequest.sessionID")); + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* GetRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.GetRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string sessionID = 1; - if (this->sessionid().size() > 0) { + if (!this->_internal_sessionid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_sessionid().data(), static_cast(this->_internal_sessionid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -2040,7 +2203,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.GetRequest) @@ -2051,58 +2214,39 @@ // @@protoc_insertion_point(message_byte_size_start:tunnelbroker.GetRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string sessionID = 1; - if (this->sessionid().size() > 0) { + if (!this->_internal_sessionid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_sessionid()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void GetRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.GetRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.GetRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.GetRequest) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRequest::GetClassData() const { return &_class_data_; } -void GetRequest::MergeFrom(const GetRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.GetRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void GetRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.GetRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.sessionid().size() > 0) { - _internal_set_sessionid(from._internal_sessionid()); + if (!from._internal_sessionid().empty()) { + _this->_internal_set_sessionid(from._internal_sessionid()); } -} - -void GetRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.GetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetRequest::CopyFrom(const GetRequest& from) { @@ -2118,152 +2262,185 @@ void GetRequest::InternalSwap(GetRequest* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - sessionid_.Swap(&other->sessionid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.sessionid_, lhs_arena, + &other->_impl_.sessionid_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata GetRequest::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_tunnelbroker_2eproto_getter, &descriptor_table_tunnelbroker_2eproto_once, + file_level_metadata_tunnelbroker_2eproto[5]); } - // =================================================================== class GetResponse::_Internal { public: }; -GetResponse::GetResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - blobhashes_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +GetResponse::GetResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:tunnelbroker.GetResponse) } GetResponse::GetResponse(const GetResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - blobhashes_(from.blobhashes_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + GetResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.blobhashes_){from._impl_.blobhashes_} + , decltype(_impl_.fromdeviceid_){} + , decltype(_impl_.payload_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - fromdeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.fromdeviceid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fromdeviceid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_fromdeviceid().empty()) { - fromdeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fromdeviceid(), - GetArena()); + _this->_impl_.fromdeviceid_.Set(from._internal_fromdeviceid(), + _this->GetArenaForAllocation()); } - payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.payload_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.payload_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_payload().empty()) { - payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_payload(), - GetArena()); + _this->_impl_.payload_.Set(from._internal_payload(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:tunnelbroker.GetResponse) } -void GetResponse::SharedCtor() { -fromdeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GetResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.blobhashes_){arena} + , decltype(_impl_.fromdeviceid_){} + , decltype(_impl_.payload_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.fromdeviceid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fromdeviceid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.payload_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.payload_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } GetResponse::~GetResponse() { // @@protoc_insertion_point(destructor:tunnelbroker.GetResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void GetResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - fromdeviceid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - payload_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void GetResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.blobhashes_.~RepeatedPtrField(); + _impl_.fromdeviceid_.Destroy(); + _impl_.payload_.Destroy(); } -void GetResponse::ArenaDtor(void* object) { - GetResponse* _this = reinterpret_cast< GetResponse* >(object); - (void)_this; -} -void GetResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void GetResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void GetResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tunnelbroker.GetResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - blobhashes_.Clear(); - fromdeviceid_.ClearToEmpty(); - payload_.ClearToEmpty(); + _impl_.blobhashes_.Clear(); + _impl_.fromdeviceid_.ClearToEmpty(); + _impl_.payload_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* GetResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* GetResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string fromDeviceID = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_fromdeviceid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.GetResponse.fromDeviceID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.GetResponse.fromDeviceID")); + } else + goto handle_unusual; continue; // bytes payload = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_payload(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated string blobHashes = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { ptr -= 1; do { ptr += 1; auto str = _internal_add_blobhashes(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.GetResponse.blobHashes")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.GetResponse.blobHashes")); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* GetResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.GetResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string fromDeviceID = 1; - if (this->fromdeviceid().size() > 0) { + if (!this->_internal_fromdeviceid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_fromdeviceid().data(), static_cast(this->_internal_fromdeviceid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -2273,7 +2450,7 @@ } // bytes payload = 2; - if (this->payload().size() > 0) { + if (!this->_internal_payload().empty()) { target = stream->WriteBytesMaybeAliased( 2, this->_internal_payload(), target); } @@ -2289,7 +2466,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.GetResponse) @@ -2300,77 +2477,58 @@ // @@protoc_insertion_point(message_byte_size_start:tunnelbroker.GetResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string blobHashes = 3; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(blobhashes_.size()); - for (int i = 0, n = blobhashes_.size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.blobhashes_.size()); + for (int i = 0, n = _impl_.blobhashes_.size(); i < n; i++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - blobhashes_.Get(i)); + _impl_.blobhashes_.Get(i)); } // string fromDeviceID = 1; - if (this->fromdeviceid().size() > 0) { + if (!this->_internal_fromdeviceid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_fromdeviceid()); } // bytes payload = 2; - if (this->payload().size() > 0) { + if (!this->_internal_payload().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_payload()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void GetResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.GetResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.GetResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.GetResponse) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GetResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetResponse::GetClassData() const { return &_class_data_; } -void GetResponse::MergeFrom(const GetResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.GetResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void GetResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.GetResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - blobhashes_.MergeFrom(from.blobhashes_); - if (from.fromdeviceid().size() > 0) { - _internal_set_fromdeviceid(from._internal_fromdeviceid()); + _this->_impl_.blobhashes_.MergeFrom(from._impl_.blobhashes_); + if (!from._internal_fromdeviceid().empty()) { + _this->_internal_set_fromdeviceid(from._internal_fromdeviceid()); } - if (from.payload().size() > 0) { - _internal_set_payload(from._internal_payload()); + if (!from._internal_payload().empty()) { + _this->_internal_set_payload(from._internal_payload()); } -} - -void GetResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.GetResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetResponse::CopyFrom(const GetResponse& from) { @@ -2386,117 +2544,135 @@ void GetResponse::InternalSwap(GetResponse* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - blobhashes_.InternalSwap(&other->blobhashes_); - fromdeviceid_.Swap(&other->fromdeviceid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - payload_.Swap(&other->payload_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.blobhashes_.InternalSwap(&other->_impl_.blobhashes_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.fromdeviceid_, lhs_arena, + &other->_impl_.fromdeviceid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.payload_, lhs_arena, + &other->_impl_.payload_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata GetResponse::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_tunnelbroker_2eproto_getter, &descriptor_table_tunnelbroker_2eproto_once, + file_level_metadata_tunnelbroker_2eproto[6]); } - // =================================================================== class ProcessedMessages::_Internal { public: }; -ProcessedMessages::ProcessedMessages(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - messageid_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +ProcessedMessages::ProcessedMessages(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:tunnelbroker.ProcessedMessages) } ProcessedMessages::ProcessedMessages(const ProcessedMessages& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - messageid_(from.messageid_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + ProcessedMessages* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.messageid_){from._impl_.messageid_} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:tunnelbroker.ProcessedMessages) } -void ProcessedMessages::SharedCtor() { +inline void ProcessedMessages::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.messageid_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; } ProcessedMessages::~ProcessedMessages() { // @@protoc_insertion_point(destructor:tunnelbroker.ProcessedMessages) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void ProcessedMessages::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void ProcessedMessages::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.messageid_.~RepeatedPtrField(); } -void ProcessedMessages::ArenaDtor(void* object) { - ProcessedMessages* _this = reinterpret_cast< ProcessedMessages* >(object); - (void)_this; -} -void ProcessedMessages::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void ProcessedMessages::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ProcessedMessages::Clear() { // @@protoc_insertion_point(message_clear_start:tunnelbroker.ProcessedMessages) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - messageid_.Clear(); + _impl_.messageid_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ProcessedMessages::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ProcessedMessages::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated string messageID = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr -= 1; do { ptr += 1; auto str = _internal_add_messageid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.ProcessedMessages.messageID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.ProcessedMessages.messageID")); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ProcessedMessages::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* ProcessedMessages::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.ProcessedMessages) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // repeated string messageID = 1; @@ -2510,7 +2686,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.ProcessedMessages) @@ -2521,57 +2697,38 @@ // @@protoc_insertion_point(message_byte_size_start:tunnelbroker.ProcessedMessages) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string messageID = 1; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(messageid_.size()); - for (int i = 0, n = messageid_.size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.messageid_.size()); + for (int i = 0, n = _impl_.messageid_.size(); i < n; i++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - messageid_.Get(i)); + _impl_.messageid_.Get(i)); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void ProcessedMessages::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.ProcessedMessages) - GOOGLE_DCHECK_NE(&from, this); - const ProcessedMessages* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.ProcessedMessages) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.ProcessedMessages) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProcessedMessages::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ProcessedMessages::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProcessedMessages::GetClassData() const { return &_class_data_; } -void ProcessedMessages::MergeFrom(const ProcessedMessages& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.ProcessedMessages) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void ProcessedMessages::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.ProcessedMessages) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - messageid_.MergeFrom(from.messageid_); -} - -void ProcessedMessages::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.ProcessedMessages) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_impl_.messageid_.MergeFrom(from._impl_.messageid_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ProcessedMessages::CopyFrom(const ProcessedMessages& from) { @@ -2587,170 +2744,207 @@ void ProcessedMessages::InternalSwap(ProcessedMessages* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - messageid_.InternalSwap(&other->messageid_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.messageid_.InternalSwap(&other->_impl_.messageid_); } ::PROTOBUF_NAMESPACE_ID::Metadata ProcessedMessages::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_tunnelbroker_2eproto_getter, &descriptor_table_tunnelbroker_2eproto_once, + file_level_metadata_tunnelbroker_2eproto[7]); } - // =================================================================== class MessageToTunnelbrokerStruct::_Internal { public: }; -MessageToTunnelbrokerStruct::MessageToTunnelbrokerStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - blobhashes_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +MessageToTunnelbrokerStruct::MessageToTunnelbrokerStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:tunnelbroker.MessageToTunnelbrokerStruct) } MessageToTunnelbrokerStruct::MessageToTunnelbrokerStruct(const MessageToTunnelbrokerStruct& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - blobhashes_(from.blobhashes_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + MessageToTunnelbrokerStruct* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.blobhashes_){from._impl_.blobhashes_} + , decltype(_impl_.messageid_){} + , decltype(_impl_.todeviceid_){} + , decltype(_impl_.payload_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - messageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.messageid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.messageid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_messageid().empty()) { - messageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_messageid(), - GetArena()); + _this->_impl_.messageid_.Set(from._internal_messageid(), + _this->GetArenaForAllocation()); } - todeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.todeviceid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.todeviceid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_todeviceid().empty()) { - todeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_todeviceid(), - GetArena()); + _this->_impl_.todeviceid_.Set(from._internal_todeviceid(), + _this->GetArenaForAllocation()); } - payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.payload_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.payload_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_payload().empty()) { - payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_payload(), - GetArena()); + _this->_impl_.payload_.Set(from._internal_payload(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:tunnelbroker.MessageToTunnelbrokerStruct) } -void MessageToTunnelbrokerStruct::SharedCtor() { -messageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -todeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void MessageToTunnelbrokerStruct::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.blobhashes_){arena} + , decltype(_impl_.messageid_){} + , decltype(_impl_.todeviceid_){} + , decltype(_impl_.payload_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.messageid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.messageid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.todeviceid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.todeviceid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.payload_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.payload_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } MessageToTunnelbrokerStruct::~MessageToTunnelbrokerStruct() { // @@protoc_insertion_point(destructor:tunnelbroker.MessageToTunnelbrokerStruct) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void MessageToTunnelbrokerStruct::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - messageid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - todeviceid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - payload_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void MessageToTunnelbrokerStruct::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.blobhashes_.~RepeatedPtrField(); + _impl_.messageid_.Destroy(); + _impl_.todeviceid_.Destroy(); + _impl_.payload_.Destroy(); } -void MessageToTunnelbrokerStruct::ArenaDtor(void* object) { - MessageToTunnelbrokerStruct* _this = reinterpret_cast< MessageToTunnelbrokerStruct* >(object); - (void)_this; -} -void MessageToTunnelbrokerStruct::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void MessageToTunnelbrokerStruct::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageToTunnelbrokerStruct::Clear() { // @@protoc_insertion_point(message_clear_start:tunnelbroker.MessageToTunnelbrokerStruct) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - blobhashes_.Clear(); - messageid_.ClearToEmpty(); - todeviceid_.ClearToEmpty(); - payload_.ClearToEmpty(); + _impl_.blobhashes_.Clear(); + _impl_.messageid_.ClearToEmpty(); + _impl_.todeviceid_.ClearToEmpty(); + _impl_.payload_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* MessageToTunnelbrokerStruct::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* MessageToTunnelbrokerStruct::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string messageID = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_messageid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbrokerStruct.messageID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbrokerStruct.messageID")); + } else + goto handle_unusual; continue; // string toDeviceID = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_todeviceid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbrokerStruct.toDeviceID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbrokerStruct.toDeviceID")); + } else + goto handle_unusual; continue; // string payload = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_payload(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbrokerStruct.payload")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbrokerStruct.payload")); + } else + goto handle_unusual; continue; // repeated string blobHashes = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { ptr -= 1; do { ptr += 1; auto str = _internal_add_blobhashes(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbrokerStruct.blobHashes")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbrokerStruct.blobHashes")); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* MessageToTunnelbrokerStruct::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* MessageToTunnelbrokerStruct::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.MessageToTunnelbrokerStruct) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string messageID = 1; - if (this->messageid().size() > 0) { + if (!this->_internal_messageid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_messageid().data(), static_cast(this->_internal_messageid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -2760,7 +2954,7 @@ } // string toDeviceID = 2; - if (this->todeviceid().size() > 0) { + if (!this->_internal_todeviceid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_todeviceid().data(), static_cast(this->_internal_todeviceid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -2770,7 +2964,7 @@ } // string payload = 3; - if (this->payload().size() > 0) { + if (!this->_internal_payload().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_payload().data(), static_cast(this->_internal_payload().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -2790,7 +2984,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.MessageToTunnelbrokerStruct) @@ -2801,87 +2995,68 @@ // @@protoc_insertion_point(message_byte_size_start:tunnelbroker.MessageToTunnelbrokerStruct) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string blobHashes = 4; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(blobhashes_.size()); - for (int i = 0, n = blobhashes_.size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.blobhashes_.size()); + for (int i = 0, n = _impl_.blobhashes_.size(); i < n; i++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - blobhashes_.Get(i)); + _impl_.blobhashes_.Get(i)); } // string messageID = 1; - if (this->messageid().size() > 0) { + if (!this->_internal_messageid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_messageid()); } // string toDeviceID = 2; - if (this->todeviceid().size() > 0) { + if (!this->_internal_todeviceid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_todeviceid()); } // string payload = 3; - if (this->payload().size() > 0) { + if (!this->_internal_payload().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_payload()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void MessageToTunnelbrokerStruct::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.MessageToTunnelbrokerStruct) - GOOGLE_DCHECK_NE(&from, this); - const MessageToTunnelbrokerStruct* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.MessageToTunnelbrokerStruct) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.MessageToTunnelbrokerStruct) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageToTunnelbrokerStruct::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageToTunnelbrokerStruct::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MessageToTunnelbrokerStruct::GetClassData() const { return &_class_data_; } -void MessageToTunnelbrokerStruct::MergeFrom(const MessageToTunnelbrokerStruct& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessageToTunnelbrokerStruct) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void MessageToTunnelbrokerStruct::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessageToTunnelbrokerStruct) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - blobhashes_.MergeFrom(from.blobhashes_); - if (from.messageid().size() > 0) { - _internal_set_messageid(from._internal_messageid()); + _this->_impl_.blobhashes_.MergeFrom(from._impl_.blobhashes_); + if (!from._internal_messageid().empty()) { + _this->_internal_set_messageid(from._internal_messageid()); } - if (from.todeviceid().size() > 0) { - _internal_set_todeviceid(from._internal_todeviceid()); + if (!from._internal_todeviceid().empty()) { + _this->_internal_set_todeviceid(from._internal_todeviceid()); } - if (from.payload().size() > 0) { - _internal_set_payload(from._internal_payload()); + if (!from._internal_payload().empty()) { + _this->_internal_set_payload(from._internal_payload()); } -} - -void MessageToTunnelbrokerStruct::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.MessageToTunnelbrokerStruct) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageToTunnelbrokerStruct::CopyFrom(const MessageToTunnelbrokerStruct& from) { @@ -2897,81 +3072,100 @@ void MessageToTunnelbrokerStruct::InternalSwap(MessageToTunnelbrokerStruct* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - blobhashes_.InternalSwap(&other->blobhashes_); - messageid_.Swap(&other->messageid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - todeviceid_.Swap(&other->todeviceid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - payload_.Swap(&other->payload_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.blobhashes_.InternalSwap(&other->_impl_.blobhashes_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.messageid_, lhs_arena, + &other->_impl_.messageid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.todeviceid_, lhs_arena, + &other->_impl_.todeviceid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.payload_, lhs_arena, + &other->_impl_.payload_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageToTunnelbrokerStruct::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_tunnelbroker_2eproto_getter, &descriptor_table_tunnelbroker_2eproto_once, + file_level_metadata_tunnelbroker_2eproto[8]); } - // =================================================================== class MessagesToSend::_Internal { public: }; -MessagesToSend::MessagesToSend(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - messages_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +MessagesToSend::MessagesToSend(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:tunnelbroker.MessagesToSend) } MessagesToSend::MessagesToSend(const MessagesToSend& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - messages_(from.messages_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + MessagesToSend* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.messages_){from._impl_.messages_} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:tunnelbroker.MessagesToSend) } -void MessagesToSend::SharedCtor() { +inline void MessagesToSend::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.messages_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; } MessagesToSend::~MessagesToSend() { // @@protoc_insertion_point(destructor:tunnelbroker.MessagesToSend) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void MessagesToSend::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void MessagesToSend::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.messages_.~RepeatedPtrField(); } -void MessagesToSend::ArenaDtor(void* object) { - MessagesToSend* _this = reinterpret_cast< MessagesToSend* >(object); - (void)_this; -} -void MessagesToSend::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void MessagesToSend::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessagesToSend::Clear() { // @@protoc_insertion_point(message_clear_start:tunnelbroker.MessagesToSend) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - messages_.Clear(); + _impl_.messages_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* MessagesToSend::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* MessagesToSend::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated .tunnelbroker.MessageToTunnelbrokerStruct messages = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr -= 1; do { ptr += 1; @@ -2979,46 +3173,48 @@ CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* MessagesToSend::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* MessagesToSend::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.MessagesToSend) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // repeated .tunnelbroker.MessageToTunnelbrokerStruct messages = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_messages_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast(this->_internal_messages_size()); i < n; i++) { + const auto& repfield = this->_internal_messages(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_messages(i), target, stream); + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.MessagesToSend) @@ -3029,56 +3225,37 @@ // @@protoc_insertion_point(message_byte_size_start:tunnelbroker.MessagesToSend) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .tunnelbroker.MessageToTunnelbrokerStruct messages = 1; total_size += 1UL * this->_internal_messages_size(); - for (const auto& msg : this->messages_) { + for (const auto& msg : this->_impl_.messages_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void MessagesToSend::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.MessagesToSend) - GOOGLE_DCHECK_NE(&from, this); - const MessagesToSend* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.MessagesToSend) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.MessagesToSend) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessagesToSend::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessagesToSend::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MessagesToSend::GetClassData() const { return &_class_data_; } -void MessagesToSend::MergeFrom(const MessagesToSend& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessagesToSend) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void MessagesToSend::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessagesToSend) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - messages_.MergeFrom(from.messages_); -} - -void MessagesToSend::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.MessagesToSend) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_impl_.messages_.MergeFrom(from._impl_.messages_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessagesToSend::CopyFrom(const MessagesToSend& from) { @@ -3094,15 +3271,16 @@ void MessagesToSend::InternalSwap(MessagesToSend* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - messages_.InternalSwap(&other->messages_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.messages_.InternalSwap(&other->_impl_.messages_); } ::PROTOBUF_NAMESPACE_ID::Metadata MessagesToSend::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_tunnelbroker_2eproto_getter, &descriptor_table_tunnelbroker_2eproto_once, + file_level_metadata_tunnelbroker_2eproto[9]); } - // =================================================================== class MessageToTunnelbroker::_Internal { @@ -3113,64 +3291,76 @@ const ::tunnelbroker::MessagesToSend& MessageToTunnelbroker::_Internal::messagestosend(const MessageToTunnelbroker* msg) { - return *msg->data_.messagestosend_; + return *msg->_impl_.data_.messagestosend_; } const ::tunnelbroker::ProcessedMessages& MessageToTunnelbroker::_Internal::processedmessages(const MessageToTunnelbroker* msg) { - return *msg->data_.processedmessages_; + return *msg->_impl_.data_.processedmessages_; } void MessageToTunnelbroker::set_allocated_messagestosend(::tunnelbroker::MessagesToSend* messagestosend) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_data(); if (messagestosend) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(messagestosend); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(messagestosend); if (message_arena != submessage_arena) { messagestosend = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, messagestosend, submessage_arena); } set_has_messagestosend(); - data_.messagestosend_ = messagestosend; + _impl_.data_.messagestosend_ = messagestosend; } // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToTunnelbroker.messagesToSend) } void MessageToTunnelbroker::set_allocated_processedmessages(::tunnelbroker::ProcessedMessages* processedmessages) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_data(); if (processedmessages) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(processedmessages); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(processedmessages); if (message_arena != submessage_arena) { processedmessages = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, processedmessages, submessage_arena); } set_has_processedmessages(); - data_.processedmessages_ = processedmessages; + _impl_.data_.processedmessages_ = processedmessages; } // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToTunnelbroker.processedMessages) } -MessageToTunnelbroker::MessageToTunnelbroker(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +MessageToTunnelbroker::MessageToTunnelbroker(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:tunnelbroker.MessageToTunnelbroker) } MessageToTunnelbroker::MessageToTunnelbroker(const MessageToTunnelbroker& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + MessageToTunnelbroker* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.sessionid_){} + , decltype(_impl_.data_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - sessionid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.sessionid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sessionid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_sessionid().empty()) { - sessionid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sessionid(), - GetArena()); + _this->_impl_.sessionid_.Set(from._internal_sessionid(), + _this->GetArenaForAllocation()); } clear_has_data(); switch (from.data_case()) { case kMessagesToSend: { - _internal_mutable_messagestosend()->::tunnelbroker::MessagesToSend::MergeFrom(from._internal_messagestosend()); + _this->_internal_mutable_messagestosend()->::tunnelbroker::MessagesToSend::MergeFrom( + from._internal_messagestosend()); break; } case kProcessedMessages: { - _internal_mutable_processedmessages()->::tunnelbroker::ProcessedMessages::MergeFrom(from._internal_processedmessages()); + _this->_internal_mutable_processedmessages()->::tunnelbroker::ProcessedMessages::MergeFrom( + from._internal_processedmessages()); break; } case DATA_NOT_SET: { @@ -3180,47 +3370,56 @@ // @@protoc_insertion_point(copy_constructor:tunnelbroker.MessageToTunnelbroker) } -void MessageToTunnelbroker::SharedCtor() { -sessionid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -clear_has_data(); +inline void MessageToTunnelbroker::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.sessionid_){} + , decltype(_impl_.data_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + _impl_.sessionid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sessionid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + clear_has_data(); } MessageToTunnelbroker::~MessageToTunnelbroker() { // @@protoc_insertion_point(destructor:tunnelbroker.MessageToTunnelbroker) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void MessageToTunnelbroker::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - sessionid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void MessageToTunnelbroker::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.sessionid_.Destroy(); if (has_data()) { clear_data(); } } -void MessageToTunnelbroker::ArenaDtor(void* object) { - MessageToTunnelbroker* _this = reinterpret_cast< MessageToTunnelbroker* >(object); - (void)_this; -} -void MessageToTunnelbroker::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void MessageToTunnelbroker::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageToTunnelbroker::clear_data() { // @@protoc_insertion_point(one_of_clear_start:tunnelbroker.MessageToTunnelbroker) switch (data_case()) { case kMessagesToSend: { - if (GetArena() == nullptr) { - delete data_.messagestosend_; + if (GetArenaForAllocation() == nullptr) { + delete _impl_.data_.messagestosend_; } break; } case kProcessedMessages: { - if (GetArena() == nullptr) { - delete data_.processedmessages_; + if (GetArenaForAllocation() == nullptr) { + delete _impl_.data_.processedmessages_; } break; } @@ -3228,81 +3427,84 @@ break; } } - _oneof_case_[0] = DATA_NOT_SET; + _impl_._oneof_case_[0] = DATA_NOT_SET; } void MessageToTunnelbroker::Clear() { // @@protoc_insertion_point(message_clear_start:tunnelbroker.MessageToTunnelbroker) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - sessionid_.ClearToEmpty(); + _impl_.sessionid_.ClearToEmpty(); clear_data(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* MessageToTunnelbroker::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* MessageToTunnelbroker::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string sessionID = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_sessionid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbroker.sessionID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.MessageToTunnelbroker.sessionID")); + } else + goto handle_unusual; continue; // .tunnelbroker.MessagesToSend messagesToSend = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_messagestosend(), ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // .tunnelbroker.ProcessedMessages processedMessages = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_processedmessages(), ptr); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* MessageToTunnelbroker::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* MessageToTunnelbroker::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.MessageToTunnelbroker) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string sessionID = 1; - if (this->sessionid().size() > 0) { + if (!this->_internal_sessionid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_sessionid().data(), static_cast(this->_internal_sessionid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -3313,22 +3515,20 @@ // .tunnelbroker.MessagesToSend messagesToSend = 2; if (_internal_has_messagestosend()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::messagestosend(this), target, stream); + InternalWriteMessage(2, _Internal::messagestosend(this), + _Internal::messagestosend(this).GetCachedSize(), target, stream); } // .tunnelbroker.ProcessedMessages processedMessages = 3; if (_internal_has_processedmessages()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::processedmessages(this), target, stream); + InternalWriteMessage(3, _Internal::processedmessages(this), + _Internal::processedmessages(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.MessageToTunnelbroker) @@ -3339,12 +3539,12 @@ // @@protoc_insertion_point(message_byte_size_start:tunnelbroker.MessageToTunnelbroker) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string sessionID = 1; - if (this->sessionid().size() > 0) { + if (!this->_internal_sessionid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_sessionid()); @@ -3355,74 +3555,57 @@ case kMessagesToSend: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *data_.messagestosend_); + *_impl_.data_.messagestosend_); break; } // .tunnelbroker.ProcessedMessages processedMessages = 3; case kProcessedMessages: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *data_.processedmessages_); + *_impl_.data_.processedmessages_); break; } case DATA_NOT_SET: { break; } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void MessageToTunnelbroker::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.MessageToTunnelbroker) - GOOGLE_DCHECK_NE(&from, this); - const MessageToTunnelbroker* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.MessageToTunnelbroker) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.MessageToTunnelbroker) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageToTunnelbroker::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageToTunnelbroker::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MessageToTunnelbroker::GetClassData() const { return &_class_data_; } -void MessageToTunnelbroker::MergeFrom(const MessageToTunnelbroker& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessageToTunnelbroker) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void MessageToTunnelbroker::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessageToTunnelbroker) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.sessionid().size() > 0) { - _internal_set_sessionid(from._internal_sessionid()); + if (!from._internal_sessionid().empty()) { + _this->_internal_set_sessionid(from._internal_sessionid()); } switch (from.data_case()) { case kMessagesToSend: { - _internal_mutable_messagestosend()->::tunnelbroker::MessagesToSend::MergeFrom(from._internal_messagestosend()); + _this->_internal_mutable_messagestosend()->::tunnelbroker::MessagesToSend::MergeFrom( + from._internal_messagestosend()); break; } case kProcessedMessages: { - _internal_mutable_processedmessages()->::tunnelbroker::ProcessedMessages::MergeFrom(from._internal_processedmessages()); + _this->_internal_mutable_processedmessages()->::tunnelbroker::ProcessedMessages::MergeFrom( + from._internal_processedmessages()); break; } case DATA_NOT_SET: { break; } } -} - -void MessageToTunnelbroker::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.MessageToTunnelbroker) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageToTunnelbroker::CopyFrom(const MessageToTunnelbroker& from) { @@ -3438,172 +3621,214 @@ void MessageToTunnelbroker::InternalSwap(MessageToTunnelbroker* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - sessionid_.Swap(&other->sessionid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(data_, other->data_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.sessionid_, lhs_arena, + &other->_impl_.sessionid_, rhs_arena + ); + swap(_impl_.data_, other->_impl_.data_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageToTunnelbroker::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_tunnelbroker_2eproto_getter, &descriptor_table_tunnelbroker_2eproto_once, + file_level_metadata_tunnelbroker_2eproto[10]); } - // =================================================================== class MessageToClientStruct::_Internal { public: }; -MessageToClientStruct::MessageToClientStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - blobhashes_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +MessageToClientStruct::MessageToClientStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:tunnelbroker.MessageToClientStruct) } MessageToClientStruct::MessageToClientStruct(const MessageToClientStruct& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - blobhashes_(from.blobhashes_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + MessageToClientStruct* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.blobhashes_){from._impl_.blobhashes_} + , decltype(_impl_.messageid_){} + , decltype(_impl_.fromdeviceid_){} + , decltype(_impl_.payload_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - messageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.messageid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.messageid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_messageid().empty()) { - messageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_messageid(), - GetArena()); + _this->_impl_.messageid_.Set(from._internal_messageid(), + _this->GetArenaForAllocation()); } - fromdeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.fromdeviceid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fromdeviceid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_fromdeviceid().empty()) { - fromdeviceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fromdeviceid(), - GetArena()); + _this->_impl_.fromdeviceid_.Set(from._internal_fromdeviceid(), + _this->GetArenaForAllocation()); } - payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.payload_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.payload_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_payload().empty()) { - payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_payload(), - GetArena()); + _this->_impl_.payload_.Set(from._internal_payload(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:tunnelbroker.MessageToClientStruct) } -void MessageToClientStruct::SharedCtor() { -messageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -fromdeviceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -payload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void MessageToClientStruct::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.blobhashes_){arena} + , decltype(_impl_.messageid_){} + , decltype(_impl_.fromdeviceid_){} + , decltype(_impl_.payload_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.messageid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.messageid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fromdeviceid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fromdeviceid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.payload_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.payload_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } MessageToClientStruct::~MessageToClientStruct() { // @@protoc_insertion_point(destructor:tunnelbroker.MessageToClientStruct) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void MessageToClientStruct::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - messageid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - fromdeviceid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - payload_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void MessageToClientStruct::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.blobhashes_.~RepeatedPtrField(); + _impl_.messageid_.Destroy(); + _impl_.fromdeviceid_.Destroy(); + _impl_.payload_.Destroy(); } -void MessageToClientStruct::ArenaDtor(void* object) { - MessageToClientStruct* _this = reinterpret_cast< MessageToClientStruct* >(object); - (void)_this; -} -void MessageToClientStruct::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void MessageToClientStruct::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageToClientStruct::Clear() { // @@protoc_insertion_point(message_clear_start:tunnelbroker.MessageToClientStruct) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - blobhashes_.Clear(); - messageid_.ClearToEmpty(); - fromdeviceid_.ClearToEmpty(); - payload_.ClearToEmpty(); + _impl_.blobhashes_.Clear(); + _impl_.messageid_.ClearToEmpty(); + _impl_.fromdeviceid_.ClearToEmpty(); + _impl_.payload_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* MessageToClientStruct::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* MessageToClientStruct::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string messageID = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_messageid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToClientStruct.messageID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.MessageToClientStruct.messageID")); + } else + goto handle_unusual; continue; // string fromDeviceID = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_fromdeviceid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToClientStruct.fromDeviceID")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.MessageToClientStruct.fromDeviceID")); + } else + goto handle_unusual; continue; // string payload = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_payload(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToClientStruct.payload")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.MessageToClientStruct.payload")); + } else + goto handle_unusual; continue; // repeated string blobHashes = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { ptr -= 1; do { ptr += 1; auto str = _internal_add_blobhashes(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.MessageToClientStruct.blobHashes")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.MessageToClientStruct.blobHashes")); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* MessageToClientStruct::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* MessageToClientStruct::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.MessageToClientStruct) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string messageID = 1; - if (this->messageid().size() > 0) { + if (!this->_internal_messageid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_messageid().data(), static_cast(this->_internal_messageid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -3613,7 +3838,7 @@ } // string fromDeviceID = 2; - if (this->fromdeviceid().size() > 0) { + if (!this->_internal_fromdeviceid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_fromdeviceid().data(), static_cast(this->_internal_fromdeviceid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -3623,7 +3848,7 @@ } // string payload = 3; - if (this->payload().size() > 0) { + if (!this->_internal_payload().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_payload().data(), static_cast(this->_internal_payload().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -3643,7 +3868,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.MessageToClientStruct) @@ -3654,87 +3879,68 @@ // @@protoc_insertion_point(message_byte_size_start:tunnelbroker.MessageToClientStruct) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string blobHashes = 4; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(blobhashes_.size()); - for (int i = 0, n = blobhashes_.size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.blobhashes_.size()); + for (int i = 0, n = _impl_.blobhashes_.size(); i < n; i++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - blobhashes_.Get(i)); + _impl_.blobhashes_.Get(i)); } // string messageID = 1; - if (this->messageid().size() > 0) { + if (!this->_internal_messageid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_messageid()); } // string fromDeviceID = 2; - if (this->fromdeviceid().size() > 0) { + if (!this->_internal_fromdeviceid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_fromdeviceid()); } // string payload = 3; - if (this->payload().size() > 0) { + if (!this->_internal_payload().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_payload()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void MessageToClientStruct::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.MessageToClientStruct) - GOOGLE_DCHECK_NE(&from, this); - const MessageToClientStruct* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.MessageToClientStruct) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.MessageToClientStruct) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageToClientStruct::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageToClientStruct::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MessageToClientStruct::GetClassData() const { return &_class_data_; } -void MessageToClientStruct::MergeFrom(const MessageToClientStruct& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessageToClientStruct) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void MessageToClientStruct::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessageToClientStruct) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - blobhashes_.MergeFrom(from.blobhashes_); - if (from.messageid().size() > 0) { - _internal_set_messageid(from._internal_messageid()); + _this->_impl_.blobhashes_.MergeFrom(from._impl_.blobhashes_); + if (!from._internal_messageid().empty()) { + _this->_internal_set_messageid(from._internal_messageid()); } - if (from.fromdeviceid().size() > 0) { - _internal_set_fromdeviceid(from._internal_fromdeviceid()); + if (!from._internal_fromdeviceid().empty()) { + _this->_internal_set_fromdeviceid(from._internal_fromdeviceid()); } - if (from.payload().size() > 0) { - _internal_set_payload(from._internal_payload()); + if (!from._internal_payload().empty()) { + _this->_internal_set_payload(from._internal_payload()); } -} - -void MessageToClientStruct::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.MessageToClientStruct) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageToClientStruct::CopyFrom(const MessageToClientStruct& from) { @@ -3750,81 +3956,100 @@ void MessageToClientStruct::InternalSwap(MessageToClientStruct* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - blobhashes_.InternalSwap(&other->blobhashes_); - messageid_.Swap(&other->messageid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - fromdeviceid_.Swap(&other->fromdeviceid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - payload_.Swap(&other->payload_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.blobhashes_.InternalSwap(&other->_impl_.blobhashes_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.messageid_, lhs_arena, + &other->_impl_.messageid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.fromdeviceid_, lhs_arena, + &other->_impl_.fromdeviceid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.payload_, lhs_arena, + &other->_impl_.payload_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageToClientStruct::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_tunnelbroker_2eproto_getter, &descriptor_table_tunnelbroker_2eproto_once, + file_level_metadata_tunnelbroker_2eproto[11]); } - // =================================================================== class MessagesToDeliver::_Internal { public: }; -MessagesToDeliver::MessagesToDeliver(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - messages_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +MessagesToDeliver::MessagesToDeliver(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:tunnelbroker.MessagesToDeliver) } MessagesToDeliver::MessagesToDeliver(const MessagesToDeliver& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - messages_(from.messages_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + MessagesToDeliver* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.messages_){from._impl_.messages_} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:tunnelbroker.MessagesToDeliver) } -void MessagesToDeliver::SharedCtor() { +inline void MessagesToDeliver::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.messages_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; } MessagesToDeliver::~MessagesToDeliver() { // @@protoc_insertion_point(destructor:tunnelbroker.MessagesToDeliver) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void MessagesToDeliver::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void MessagesToDeliver::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.messages_.~RepeatedPtrField(); } -void MessagesToDeliver::ArenaDtor(void* object) { - MessagesToDeliver* _this = reinterpret_cast< MessagesToDeliver* >(object); - (void)_this; -} -void MessagesToDeliver::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void MessagesToDeliver::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessagesToDeliver::Clear() { // @@protoc_insertion_point(message_clear_start:tunnelbroker.MessagesToDeliver) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - messages_.Clear(); + _impl_.messages_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* MessagesToDeliver::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* MessagesToDeliver::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated .tunnelbroker.MessageToClientStruct messages = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr -= 1; do { ptr += 1; @@ -3832,46 +4057,48 @@ CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* MessagesToDeliver::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* MessagesToDeliver::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.MessagesToDeliver) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // repeated .tunnelbroker.MessageToClientStruct messages = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_messages_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast(this->_internal_messages_size()); i < n; i++) { + const auto& repfield = this->_internal_messages(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_messages(i), target, stream); + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.MessagesToDeliver) @@ -3882,56 +4109,37 @@ // @@protoc_insertion_point(message_byte_size_start:tunnelbroker.MessagesToDeliver) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .tunnelbroker.MessageToClientStruct messages = 1; total_size += 1UL * this->_internal_messages_size(); - for (const auto& msg : this->messages_) { + for (const auto& msg : this->_impl_.messages_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void MessagesToDeliver::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.MessagesToDeliver) - GOOGLE_DCHECK_NE(&from, this); - const MessagesToDeliver* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.MessagesToDeliver) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.MessagesToDeliver) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessagesToDeliver::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessagesToDeliver::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MessagesToDeliver::GetClassData() const { return &_class_data_; } -void MessagesToDeliver::MergeFrom(const MessagesToDeliver& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessagesToDeliver) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void MessagesToDeliver::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessagesToDeliver) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - messages_.MergeFrom(from.messages_); -} - -void MessagesToDeliver::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.MessagesToDeliver) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_impl_.messages_.MergeFrom(from._impl_.messages_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessagesToDeliver::CopyFrom(const MessagesToDeliver& from) { @@ -3947,15 +4155,16 @@ void MessagesToDeliver::InternalSwap(MessagesToDeliver* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - messages_.InternalSwap(&other->messages_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.messages_.InternalSwap(&other->_impl_.messages_); } ::PROTOBUF_NAMESPACE_ID::Metadata MessagesToDeliver::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_tunnelbroker_2eproto_getter, &descriptor_table_tunnelbroker_2eproto_once, + file_level_metadata_tunnelbroker_2eproto[12]); } - // =================================================================== class MessageToClient::_Internal { @@ -3966,59 +4175,67 @@ const ::tunnelbroker::MessagesToDeliver& MessageToClient::_Internal::messagestodeliver(const MessageToClient* msg) { - return *msg->data_.messagestodeliver_; + return *msg->_impl_.data_.messagestodeliver_; } const ::tunnelbroker::ProcessedMessages& MessageToClient::_Internal::processedmessages(const MessageToClient* msg) { - return *msg->data_.processedmessages_; + return *msg->_impl_.data_.processedmessages_; } void MessageToClient::set_allocated_messagestodeliver(::tunnelbroker::MessagesToDeliver* messagestodeliver) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_data(); if (messagestodeliver) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(messagestodeliver); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(messagestodeliver); if (message_arena != submessage_arena) { messagestodeliver = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, messagestodeliver, submessage_arena); } set_has_messagestodeliver(); - data_.messagestodeliver_ = messagestodeliver; + _impl_.data_.messagestodeliver_ = messagestodeliver; } // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToClient.messagesToDeliver) } void MessageToClient::set_allocated_processedmessages(::tunnelbroker::ProcessedMessages* processedmessages) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_data(); if (processedmessages) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(processedmessages); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(processedmessages); if (message_arena != submessage_arena) { processedmessages = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, processedmessages, submessage_arena); } set_has_processedmessages(); - data_.processedmessages_ = processedmessages; + _impl_.data_.processedmessages_ = processedmessages; } // @@protoc_insertion_point(field_set_allocated:tunnelbroker.MessageToClient.processedMessages) } -MessageToClient::MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +MessageToClient::MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:tunnelbroker.MessageToClient) } MessageToClient::MessageToClient(const MessageToClient& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + MessageToClient* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.data_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); clear_has_data(); switch (from.data_case()) { case kMessagesToDeliver: { - _internal_mutable_messagestodeliver()->::tunnelbroker::MessagesToDeliver::MergeFrom(from._internal_messagestodeliver()); + _this->_internal_mutable_messagestodeliver()->::tunnelbroker::MessagesToDeliver::MergeFrom( + from._internal_messagestodeliver()); break; } case kProcessedMessages: { - _internal_mutable_processedmessages()->::tunnelbroker::ProcessedMessages::MergeFrom(from._internal_processedmessages()); + _this->_internal_mutable_processedmessages()->::tunnelbroker::ProcessedMessages::MergeFrom( + from._internal_processedmessages()); break; } case DATA_NOT_SET: { @@ -4028,45 +4245,50 @@ // @@protoc_insertion_point(copy_constructor:tunnelbroker.MessageToClient) } -void MessageToClient::SharedCtor() { -clear_has_data(); +inline void MessageToClient::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.data_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_data(); } MessageToClient::~MessageToClient() { // @@protoc_insertion_point(destructor:tunnelbroker.MessageToClient) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void MessageToClient::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void MessageToClient::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_data()) { clear_data(); } } -void MessageToClient::ArenaDtor(void* object) { - MessageToClient* _this = reinterpret_cast< MessageToClient* >(object); - (void)_this; -} -void MessageToClient::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void MessageToClient::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageToClient::clear_data() { // @@protoc_insertion_point(one_of_clear_start:tunnelbroker.MessageToClient) switch (data_case()) { case kMessagesToDeliver: { - if (GetArena() == nullptr) { - delete data_.messagestodeliver_; + if (GetArenaForAllocation() == nullptr) { + delete _impl_.data_.messagestodeliver_; } break; } case kProcessedMessages: { - if (GetArena() == nullptr) { - delete data_.processedmessages_; + if (GetArenaForAllocation() == nullptr) { + delete _impl_.data_.processedmessages_; } break; } @@ -4074,13 +4296,13 @@ break; } } - _oneof_case_[0] = DATA_NOT_SET; + _impl_._oneof_case_[0] = DATA_NOT_SET; } void MessageToClient::Clear() { // @@protoc_insertion_point(message_clear_start:tunnelbroker.MessageToClient) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -4088,73 +4310,73 @@ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* MessageToClient::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* MessageToClient::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .tunnelbroker.MessagesToDeliver messagesToDeliver = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_messagestodeliver(), ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // .tunnelbroker.ProcessedMessages processedMessages = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_processedmessages(), ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* MessageToClient::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* MessageToClient::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.MessageToClient) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // .tunnelbroker.MessagesToDeliver messagesToDeliver = 1; if (_internal_has_messagestodeliver()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::messagestodeliver(this), target, stream); + InternalWriteMessage(1, _Internal::messagestodeliver(this), + _Internal::messagestodeliver(this).GetCachedSize(), target, stream); } // .tunnelbroker.ProcessedMessages processedMessages = 2; if (_internal_has_processedmessages()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::processedmessages(this), target, stream); + InternalWriteMessage(2, _Internal::processedmessages(this), + _Internal::processedmessages(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.MessageToClient) @@ -4165,7 +4387,7 @@ // @@protoc_insertion_point(message_byte_size_start:tunnelbroker.MessageToClient) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -4174,71 +4396,54 @@ case kMessagesToDeliver: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *data_.messagestodeliver_); + *_impl_.data_.messagestodeliver_); break; } // .tunnelbroker.ProcessedMessages processedMessages = 2; case kProcessedMessages: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *data_.processedmessages_); + *_impl_.data_.processedmessages_); break; } case DATA_NOT_SET: { break; } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void MessageToClient::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.MessageToClient) - GOOGLE_DCHECK_NE(&from, this); - const MessageToClient* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.MessageToClient) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.MessageToClient) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageToClient::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MessageToClient::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MessageToClient::GetClassData() const { return &_class_data_; } -void MessageToClient::MergeFrom(const MessageToClient& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessageToClient) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void MessageToClient::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.MessageToClient) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.data_case()) { case kMessagesToDeliver: { - _internal_mutable_messagestodeliver()->::tunnelbroker::MessagesToDeliver::MergeFrom(from._internal_messagestodeliver()); + _this->_internal_mutable_messagestodeliver()->::tunnelbroker::MessagesToDeliver::MergeFrom( + from._internal_messagestodeliver()); break; } case kProcessedMessages: { - _internal_mutable_processedmessages()->::tunnelbroker::ProcessedMessages::MergeFrom(from._internal_processedmessages()); + _this->_internal_mutable_processedmessages()->::tunnelbroker::ProcessedMessages::MergeFrom( + from._internal_processedmessages()); break; } case DATA_NOT_SET: { break; } } -} - -void MessageToClient::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.MessageToClient) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageToClient::CopyFrom(const MessageToClient& from) { @@ -4254,137 +4459,163 @@ void MessageToClient::InternalSwap(MessageToClient* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(data_, other->data_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.data_, other->_impl_.data_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageToClient::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_tunnelbroker_2eproto_getter, &descriptor_table_tunnelbroker_2eproto_once, + file_level_metadata_tunnelbroker_2eproto[13]); } - // =================================================================== class CheckRequest::_Internal { public: }; -CheckRequest::CheckRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +CheckRequest::CheckRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:tunnelbroker.CheckRequest) } CheckRequest::CheckRequest(const CheckRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + CheckRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.userid_){} + , decltype(_impl_.devicetoken_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.userid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.userid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_userid().empty()) { - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_userid(), - GetArena()); + _this->_impl_.userid_.Set(from._internal_userid(), + _this->GetArenaForAllocation()); } - devicetoken_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.devicetoken_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.devicetoken_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_devicetoken().empty()) { - devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_devicetoken(), - GetArena()); + _this->_impl_.devicetoken_.Set(from._internal_devicetoken(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:tunnelbroker.CheckRequest) } -void CheckRequest::SharedCtor() { -userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -devicetoken_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void CheckRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.userid_){} + , decltype(_impl_.devicetoken_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.userid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.userid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.devicetoken_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.devicetoken_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } CheckRequest::~CheckRequest() { // @@protoc_insertion_point(destructor:tunnelbroker.CheckRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void CheckRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - userid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - devicetoken_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void CheckRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.userid_.Destroy(); + _impl_.devicetoken_.Destroy(); } -void CheckRequest::ArenaDtor(void* object) { - CheckRequest* _this = reinterpret_cast< CheckRequest* >(object); - (void)_this; -} -void CheckRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void CheckRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void CheckRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tunnelbroker.CheckRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - userid_.ClearToEmpty(); - devicetoken_.ClearToEmpty(); + _impl_.userid_.ClearToEmpty(); + _impl_.devicetoken_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* CheckRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* CheckRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string userId = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_userid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.CheckRequest.userId")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.CheckRequest.userId")); + } else + goto handle_unusual; continue; // string deviceToken = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_devicetoken(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.CheckRequest.deviceToken")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.CheckRequest.deviceToken")); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* CheckRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* CheckRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.CheckRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string userId = 1; - if (this->userid().size() > 0) { + if (!this->_internal_userid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_userid().data(), static_cast(this->_internal_userid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -4394,7 +4625,7 @@ } // string deviceToken = 2; - if (this->devicetoken().size() > 0) { + if (!this->_internal_devicetoken().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_devicetoken().data(), static_cast(this->_internal_devicetoken().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -4404,7 +4635,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.CheckRequest) @@ -4415,68 +4646,49 @@ // @@protoc_insertion_point(message_byte_size_start:tunnelbroker.CheckRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string userId = 1; - if (this->userid().size() > 0) { + if (!this->_internal_userid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_userid()); } // string deviceToken = 2; - if (this->devicetoken().size() > 0) { + if (!this->_internal_devicetoken().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_devicetoken()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void CheckRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.CheckRequest) - GOOGLE_DCHECK_NE(&from, this); - const CheckRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.CheckRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.CheckRequest) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CheckRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CheckRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CheckRequest::GetClassData() const { return &_class_data_; } -void CheckRequest::MergeFrom(const CheckRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.CheckRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void CheckRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.CheckRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.userid().size() > 0) { - _internal_set_userid(from._internal_userid()); + if (!from._internal_userid().empty()) { + _this->_internal_set_userid(from._internal_userid()); } - if (from.devicetoken().size() > 0) { - _internal_set_devicetoken(from._internal_devicetoken()); + if (!from._internal_devicetoken().empty()) { + _this->_internal_set_devicetoken(from._internal_devicetoken()); } -} - -void CheckRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.CheckRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CheckRequest::CopyFrom(const CheckRequest& from) { @@ -4492,121 +4704,139 @@ void CheckRequest::InternalSwap(CheckRequest* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - userid_.Swap(&other->userid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - devicetoken_.Swap(&other->devicetoken_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.userid_, lhs_arena, + &other->_impl_.userid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.devicetoken_, lhs_arena, + &other->_impl_.devicetoken_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata CheckRequest::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_tunnelbroker_2eproto_getter, &descriptor_table_tunnelbroker_2eproto_once, + file_level_metadata_tunnelbroker_2eproto[14]); } - // =================================================================== class CheckResponse::_Internal { public: }; -CheckResponse::CheckResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +CheckResponse::CheckResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:tunnelbroker.CheckResponse) } CheckResponse::CheckResponse(const CheckResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + CheckResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.checkresponsetype_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - checkresponsetype_ = from.checkresponsetype_; + _this->_impl_.checkresponsetype_ = from._impl_.checkresponsetype_; // @@protoc_insertion_point(copy_constructor:tunnelbroker.CheckResponse) } -void CheckResponse::SharedCtor() { -checkresponsetype_ = 0; +inline void CheckResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.checkresponsetype_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; } CheckResponse::~CheckResponse() { // @@protoc_insertion_point(destructor:tunnelbroker.CheckResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void CheckResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void CheckResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -void CheckResponse::ArenaDtor(void* object) { - CheckResponse* _this = reinterpret_cast< CheckResponse* >(object); - (void)_this; -} -void CheckResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void CheckResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void CheckResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tunnelbroker.CheckResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - checkresponsetype_ = 0; + _impl_.checkresponsetype_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* CheckResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* CheckResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .tunnelbroker.CheckResponseType checkResponseType = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); _internal_set_checkresponsetype(static_cast<::tunnelbroker::CheckResponseType>(val)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* CheckResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* CheckResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.CheckResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // .tunnelbroker.CheckResponseType checkResponseType = 1; - if (this->checkresponsetype() != 0) { + if (this->_internal_checkresponsetype() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 1, this->_internal_checkresponsetype(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.CheckResponse) @@ -4617,57 +4847,38 @@ // @@protoc_insertion_point(message_byte_size_start:tunnelbroker.CheckResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .tunnelbroker.CheckResponseType checkResponseType = 1; - if (this->checkresponsetype() != 0) { + if (this->_internal_checkresponsetype() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_checkresponsetype()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_checkresponsetype()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void CheckResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.CheckResponse) - GOOGLE_DCHECK_NE(&from, this); - const CheckResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.CheckResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.CheckResponse) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CheckResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CheckResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CheckResponse::GetClassData() const { return &_class_data_; } -void CheckResponse::MergeFrom(const CheckResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.CheckResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void CheckResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.CheckResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.checkresponsetype() != 0) { - _internal_set_checkresponsetype(from._internal_checkresponsetype()); + if (from._internal_checkresponsetype() != 0) { + _this->_internal_set_checkresponsetype(from._internal_checkresponsetype()); } -} - -void CheckResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.CheckResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CheckResponse::CopyFrom(const CheckResponse& from) { @@ -4683,136 +4894,162 @@ void CheckResponse::InternalSwap(CheckResponse* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(checkresponsetype_, other->checkresponsetype_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.checkresponsetype_, other->_impl_.checkresponsetype_); } ::PROTOBUF_NAMESPACE_ID::Metadata CheckResponse::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_tunnelbroker_2eproto_getter, &descriptor_table_tunnelbroker_2eproto_once, + file_level_metadata_tunnelbroker_2eproto[15]); } - // =================================================================== class NewPrimaryRequest::_Internal { public: }; -NewPrimaryRequest::NewPrimaryRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +NewPrimaryRequest::NewPrimaryRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:tunnelbroker.NewPrimaryRequest) } NewPrimaryRequest::NewPrimaryRequest(const NewPrimaryRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + NewPrimaryRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.userid_){} + , decltype(_impl_.devicetoken_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.userid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.userid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_userid().empty()) { - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_userid(), - GetArena()); + _this->_impl_.userid_.Set(from._internal_userid(), + _this->GetArenaForAllocation()); } - devicetoken_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.devicetoken_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.devicetoken_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_devicetoken().empty()) { - devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_devicetoken(), - GetArena()); + _this->_impl_.devicetoken_.Set(from._internal_devicetoken(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:tunnelbroker.NewPrimaryRequest) } -void NewPrimaryRequest::SharedCtor() { -userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -devicetoken_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void NewPrimaryRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.userid_){} + , decltype(_impl_.devicetoken_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.userid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.userid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.devicetoken_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.devicetoken_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } NewPrimaryRequest::~NewPrimaryRequest() { // @@protoc_insertion_point(destructor:tunnelbroker.NewPrimaryRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void NewPrimaryRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - userid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - devicetoken_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void NewPrimaryRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.userid_.Destroy(); + _impl_.devicetoken_.Destroy(); } -void NewPrimaryRequest::ArenaDtor(void* object) { - NewPrimaryRequest* _this = reinterpret_cast< NewPrimaryRequest* >(object); - (void)_this; -} -void NewPrimaryRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void NewPrimaryRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void NewPrimaryRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tunnelbroker.NewPrimaryRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - userid_.ClearToEmpty(); - devicetoken_.ClearToEmpty(); + _impl_.userid_.ClearToEmpty(); + _impl_.devicetoken_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* NewPrimaryRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* NewPrimaryRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string userId = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_userid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.NewPrimaryRequest.userId")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.NewPrimaryRequest.userId")); + } else + goto handle_unusual; continue; // string deviceToken = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_devicetoken(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.NewPrimaryRequest.deviceToken")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.NewPrimaryRequest.deviceToken")); + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* NewPrimaryRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* NewPrimaryRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.NewPrimaryRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string userId = 1; - if (this->userid().size() > 0) { + if (!this->_internal_userid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_userid().data(), static_cast(this->_internal_userid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -4822,7 +5059,7 @@ } // string deviceToken = 2; - if (this->devicetoken().size() > 0) { + if (!this->_internal_devicetoken().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_devicetoken().data(), static_cast(this->_internal_devicetoken().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -4832,7 +5069,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.NewPrimaryRequest) @@ -4843,68 +5080,49 @@ // @@protoc_insertion_point(message_byte_size_start:tunnelbroker.NewPrimaryRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string userId = 1; - if (this->userid().size() > 0) { + if (!this->_internal_userid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_userid()); } // string deviceToken = 2; - if (this->devicetoken().size() > 0) { + if (!this->_internal_devicetoken().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_devicetoken()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void NewPrimaryRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.NewPrimaryRequest) - GOOGLE_DCHECK_NE(&from, this); - const NewPrimaryRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.NewPrimaryRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.NewPrimaryRequest) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NewPrimaryRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + NewPrimaryRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NewPrimaryRequest::GetClassData() const { return &_class_data_; } -void NewPrimaryRequest::MergeFrom(const NewPrimaryRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.NewPrimaryRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void NewPrimaryRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.NewPrimaryRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.userid().size() > 0) { - _internal_set_userid(from._internal_userid()); + if (!from._internal_userid().empty()) { + _this->_internal_set_userid(from._internal_userid()); } - if (from.devicetoken().size() > 0) { - _internal_set_devicetoken(from._internal_devicetoken()); + if (!from._internal_devicetoken().empty()) { + _this->_internal_set_devicetoken(from._internal_devicetoken()); } -} - -void NewPrimaryRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.NewPrimaryRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void NewPrimaryRequest::CopyFrom(const NewPrimaryRequest& from) { @@ -4920,119 +5138,137 @@ void NewPrimaryRequest::InternalSwap(NewPrimaryRequest* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - userid_.Swap(&other->userid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - devicetoken_.Swap(&other->devicetoken_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.userid_, lhs_arena, + &other->_impl_.userid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.devicetoken_, lhs_arena, + &other->_impl_.devicetoken_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata NewPrimaryRequest::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_tunnelbroker_2eproto_getter, &descriptor_table_tunnelbroker_2eproto_once, + file_level_metadata_tunnelbroker_2eproto[16]); } - // =================================================================== class NewPrimaryResponse::_Internal { public: }; -NewPrimaryResponse::NewPrimaryResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +NewPrimaryResponse::NewPrimaryResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:tunnelbroker.NewPrimaryResponse) } NewPrimaryResponse::NewPrimaryResponse(const NewPrimaryResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + NewPrimaryResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.success_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - success_ = from.success_; + _this->_impl_.success_ = from._impl_.success_; // @@protoc_insertion_point(copy_constructor:tunnelbroker.NewPrimaryResponse) } -void NewPrimaryResponse::SharedCtor() { -success_ = false; +inline void NewPrimaryResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.success_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; } NewPrimaryResponse::~NewPrimaryResponse() { // @@protoc_insertion_point(destructor:tunnelbroker.NewPrimaryResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void NewPrimaryResponse::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void NewPrimaryResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -void NewPrimaryResponse::ArenaDtor(void* object) { - NewPrimaryResponse* _this = reinterpret_cast< NewPrimaryResponse* >(object); - (void)_this; -} -void NewPrimaryResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void NewPrimaryResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void NewPrimaryResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tunnelbroker.NewPrimaryResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - success_ = false; + _impl_.success_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* NewPrimaryResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* NewPrimaryResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // bool success = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* NewPrimaryResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* NewPrimaryResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.NewPrimaryResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // bool success = 1; - if (this->success() != 0) { + if (this->_internal_success() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.NewPrimaryResponse) @@ -5043,56 +5279,37 @@ // @@protoc_insertion_point(message_byte_size_start:tunnelbroker.NewPrimaryResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool success = 1; - if (this->success() != 0) { + if (this->_internal_success() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void NewPrimaryResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.NewPrimaryResponse) - GOOGLE_DCHECK_NE(&from, this); - const NewPrimaryResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.NewPrimaryResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.NewPrimaryResponse) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NewPrimaryResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + NewPrimaryResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NewPrimaryResponse::GetClassData() const { return &_class_data_; } -void NewPrimaryResponse::MergeFrom(const NewPrimaryResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.NewPrimaryResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void NewPrimaryResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.NewPrimaryResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.success() != 0) { - _internal_set_success(from._internal_success()); + if (from._internal_success() != 0) { + _this->_internal_set_success(from._internal_success()); } -} - -void NewPrimaryResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.NewPrimaryResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void NewPrimaryResponse::CopyFrom(const NewPrimaryResponse& from) { @@ -5108,136 +5325,162 @@ void NewPrimaryResponse::InternalSwap(NewPrimaryResponse* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(success_, other->success_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.success_, other->_impl_.success_); } ::PROTOBUF_NAMESPACE_ID::Metadata NewPrimaryResponse::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_tunnelbroker_2eproto_getter, &descriptor_table_tunnelbroker_2eproto_once, + file_level_metadata_tunnelbroker_2eproto[17]); } - // =================================================================== class PongRequest::_Internal { public: }; -PongRequest::PongRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +PongRequest::PongRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:tunnelbroker.PongRequest) } PongRequest::PongRequest(const PongRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + PongRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.userid_){} + , decltype(_impl_.devicetoken_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.userid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.userid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_userid().empty()) { - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_userid(), - GetArena()); + _this->_impl_.userid_.Set(from._internal_userid(), + _this->GetArenaForAllocation()); } - devicetoken_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.devicetoken_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.devicetoken_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_devicetoken().empty()) { - devicetoken_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_devicetoken(), - GetArena()); + _this->_impl_.devicetoken_.Set(from._internal_devicetoken(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:tunnelbroker.PongRequest) } -void PongRequest::SharedCtor() { -userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -devicetoken_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void PongRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.userid_){} + , decltype(_impl_.devicetoken_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.userid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.userid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.devicetoken_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.devicetoken_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } PongRequest::~PongRequest() { // @@protoc_insertion_point(destructor:tunnelbroker.PongRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void PongRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - userid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - devicetoken_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void PongRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.userid_.Destroy(); + _impl_.devicetoken_.Destroy(); } -void PongRequest::ArenaDtor(void* object) { - PongRequest* _this = reinterpret_cast< PongRequest* >(object); - (void)_this; -} -void PongRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void PongRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void PongRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tunnelbroker.PongRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - userid_.ClearToEmpty(); - devicetoken_.ClearToEmpty(); + _impl_.userid_.ClearToEmpty(); + _impl_.devicetoken_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* PongRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* PongRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string userId = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_userid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.PongRequest.userId")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.PongRequest.userId")); + } else + goto handle_unusual; continue; // string deviceToken = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_devicetoken(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "tunnelbroker.PongRequest.deviceToken")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "tunnelbroker.PongRequest.deviceToken")); + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* PongRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* PongRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:tunnelbroker.PongRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string userId = 1; - if (this->userid().size() > 0) { + if (!this->_internal_userid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_userid().data(), static_cast(this->_internal_userid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -5247,7 +5490,7 @@ } // string deviceToken = 2; - if (this->devicetoken().size() > 0) { + if (!this->_internal_devicetoken().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_devicetoken().data(), static_cast(this->_internal_devicetoken().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -5257,7 +5500,7 @@ } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tunnelbroker.PongRequest) @@ -5268,68 +5511,49 @@ // @@protoc_insertion_point(message_byte_size_start:tunnelbroker.PongRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string userId = 1; - if (this->userid().size() > 0) { + if (!this->_internal_userid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_userid()); } // string deviceToken = 2; - if (this->devicetoken().size() > 0) { + if (!this->_internal_devicetoken().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_devicetoken()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void PongRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:tunnelbroker.PongRequest) - GOOGLE_DCHECK_NE(&from, this); - const PongRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:tunnelbroker.PongRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:tunnelbroker.PongRequest) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PongRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PongRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PongRequest::GetClassData() const { return &_class_data_; } -void PongRequest::MergeFrom(const PongRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.PongRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void PongRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:tunnelbroker.PongRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.userid().size() > 0) { - _internal_set_userid(from._internal_userid()); + if (!from._internal_userid().empty()) { + _this->_internal_set_userid(from._internal_userid()); } - if (from.devicetoken().size() > 0) { - _internal_set_devicetoken(from._internal_devicetoken()); + if (!from._internal_devicetoken().empty()) { + _this->_internal_set_devicetoken(from._internal_devicetoken()); } -} - -void PongRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:tunnelbroker.PongRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PongRequest::CopyFrom(const PongRequest& from) { @@ -5345,74 +5569,102 @@ void PongRequest::InternalSwap(PongRequest* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - userid_.Swap(&other->userid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - devicetoken_.Swap(&other->devicetoken_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.userid_, lhs_arena, + &other->_impl_.userid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.devicetoken_, lhs_arena, + &other->_impl_.devicetoken_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata PongRequest::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_tunnelbroker_2eproto_getter, &descriptor_table_tunnelbroker_2eproto_once, + file_level_metadata_tunnelbroker_2eproto[18]); } - // @@protoc_insertion_point(namespace_scope) } // namespace tunnelbroker PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::tunnelbroker::SessionSignatureRequest* Arena::CreateMaybeMessage< ::tunnelbroker::SessionSignatureRequest >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::tunnelbroker::SessionSignatureRequest* +Arena::CreateMaybeMessage< ::tunnelbroker::SessionSignatureRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::tunnelbroker::SessionSignatureRequest >(arena); } -template<> PROTOBUF_NOINLINE ::tunnelbroker::SessionSignatureResponse* Arena::CreateMaybeMessage< ::tunnelbroker::SessionSignatureResponse >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::tunnelbroker::SessionSignatureResponse* +Arena::CreateMaybeMessage< ::tunnelbroker::SessionSignatureResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::tunnelbroker::SessionSignatureResponse >(arena); } -template<> PROTOBUF_NOINLINE ::tunnelbroker::NewSessionRequest* Arena::CreateMaybeMessage< ::tunnelbroker::NewSessionRequest >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::tunnelbroker::NewSessionRequest* +Arena::CreateMaybeMessage< ::tunnelbroker::NewSessionRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::tunnelbroker::NewSessionRequest >(arena); } -template<> PROTOBUF_NOINLINE ::tunnelbroker::NewSessionResponse* Arena::CreateMaybeMessage< ::tunnelbroker::NewSessionResponse >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::tunnelbroker::NewSessionResponse* +Arena::CreateMaybeMessage< ::tunnelbroker::NewSessionResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::tunnelbroker::NewSessionResponse >(arena); } -template<> PROTOBUF_NOINLINE ::tunnelbroker::SendRequest* Arena::CreateMaybeMessage< ::tunnelbroker::SendRequest >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::tunnelbroker::SendRequest* +Arena::CreateMaybeMessage< ::tunnelbroker::SendRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::tunnelbroker::SendRequest >(arena); } -template<> PROTOBUF_NOINLINE ::tunnelbroker::GetRequest* Arena::CreateMaybeMessage< ::tunnelbroker::GetRequest >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::tunnelbroker::GetRequest* +Arena::CreateMaybeMessage< ::tunnelbroker::GetRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::tunnelbroker::GetRequest >(arena); } -template<> PROTOBUF_NOINLINE ::tunnelbroker::GetResponse* Arena::CreateMaybeMessage< ::tunnelbroker::GetResponse >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::tunnelbroker::GetResponse* +Arena::CreateMaybeMessage< ::tunnelbroker::GetResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::tunnelbroker::GetResponse >(arena); } -template<> PROTOBUF_NOINLINE ::tunnelbroker::ProcessedMessages* Arena::CreateMaybeMessage< ::tunnelbroker::ProcessedMessages >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::tunnelbroker::ProcessedMessages* +Arena::CreateMaybeMessage< ::tunnelbroker::ProcessedMessages >(Arena* arena) { return Arena::CreateMessageInternal< ::tunnelbroker::ProcessedMessages >(arena); } -template<> PROTOBUF_NOINLINE ::tunnelbroker::MessageToTunnelbrokerStruct* Arena::CreateMaybeMessage< ::tunnelbroker::MessageToTunnelbrokerStruct >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::tunnelbroker::MessageToTunnelbrokerStruct* +Arena::CreateMaybeMessage< ::tunnelbroker::MessageToTunnelbrokerStruct >(Arena* arena) { return Arena::CreateMessageInternal< ::tunnelbroker::MessageToTunnelbrokerStruct >(arena); } -template<> PROTOBUF_NOINLINE ::tunnelbroker::MessagesToSend* Arena::CreateMaybeMessage< ::tunnelbroker::MessagesToSend >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::tunnelbroker::MessagesToSend* +Arena::CreateMaybeMessage< ::tunnelbroker::MessagesToSend >(Arena* arena) { return Arena::CreateMessageInternal< ::tunnelbroker::MessagesToSend >(arena); } -template<> PROTOBUF_NOINLINE ::tunnelbroker::MessageToTunnelbroker* Arena::CreateMaybeMessage< ::tunnelbroker::MessageToTunnelbroker >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::tunnelbroker::MessageToTunnelbroker* +Arena::CreateMaybeMessage< ::tunnelbroker::MessageToTunnelbroker >(Arena* arena) { return Arena::CreateMessageInternal< ::tunnelbroker::MessageToTunnelbroker >(arena); } -template<> PROTOBUF_NOINLINE ::tunnelbroker::MessageToClientStruct* Arena::CreateMaybeMessage< ::tunnelbroker::MessageToClientStruct >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::tunnelbroker::MessageToClientStruct* +Arena::CreateMaybeMessage< ::tunnelbroker::MessageToClientStruct >(Arena* arena) { return Arena::CreateMessageInternal< ::tunnelbroker::MessageToClientStruct >(arena); } -template<> PROTOBUF_NOINLINE ::tunnelbroker::MessagesToDeliver* Arena::CreateMaybeMessage< ::tunnelbroker::MessagesToDeliver >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::tunnelbroker::MessagesToDeliver* +Arena::CreateMaybeMessage< ::tunnelbroker::MessagesToDeliver >(Arena* arena) { return Arena::CreateMessageInternal< ::tunnelbroker::MessagesToDeliver >(arena); } -template<> PROTOBUF_NOINLINE ::tunnelbroker::MessageToClient* Arena::CreateMaybeMessage< ::tunnelbroker::MessageToClient >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::tunnelbroker::MessageToClient* +Arena::CreateMaybeMessage< ::tunnelbroker::MessageToClient >(Arena* arena) { return Arena::CreateMessageInternal< ::tunnelbroker::MessageToClient >(arena); } -template<> PROTOBUF_NOINLINE ::tunnelbroker::CheckRequest* Arena::CreateMaybeMessage< ::tunnelbroker::CheckRequest >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::tunnelbroker::CheckRequest* +Arena::CreateMaybeMessage< ::tunnelbroker::CheckRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::tunnelbroker::CheckRequest >(arena); } -template<> PROTOBUF_NOINLINE ::tunnelbroker::CheckResponse* Arena::CreateMaybeMessage< ::tunnelbroker::CheckResponse >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::tunnelbroker::CheckResponse* +Arena::CreateMaybeMessage< ::tunnelbroker::CheckResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::tunnelbroker::CheckResponse >(arena); } -template<> PROTOBUF_NOINLINE ::tunnelbroker::NewPrimaryRequest* Arena::CreateMaybeMessage< ::tunnelbroker::NewPrimaryRequest >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::tunnelbroker::NewPrimaryRequest* +Arena::CreateMaybeMessage< ::tunnelbroker::NewPrimaryRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::tunnelbroker::NewPrimaryRequest >(arena); } -template<> PROTOBUF_NOINLINE ::tunnelbroker::NewPrimaryResponse* Arena::CreateMaybeMessage< ::tunnelbroker::NewPrimaryResponse >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::tunnelbroker::NewPrimaryResponse* +Arena::CreateMaybeMessage< ::tunnelbroker::NewPrimaryResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::tunnelbroker::NewPrimaryResponse >(arena); } -template<> PROTOBUF_NOINLINE ::tunnelbroker::PongRequest* Arena::CreateMaybeMessage< ::tunnelbroker::PongRequest >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::tunnelbroker::PongRequest* +Arena::CreateMaybeMessage< ::tunnelbroker::PongRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::tunnelbroker::PongRequest >(arena); } PROTOBUF_NAMESPACE_CLOSE