diff --git a/native/cpp/CommonCpp/grpc/_generated/backup.grpc.pb.h b/native/cpp/CommonCpp/grpc/_generated/backup.grpc.pb.h --- a/native/cpp/CommonCpp/grpc/_generated/backup.grpc.pb.h +++ b/native/cpp/CommonCpp/grpc/_generated/backup.grpc.pb.h @@ -32,7 +32,7 @@ // CreateNewBackup - This method is called when we want to create a new backup. // We send a new backup key encrypted with the user's password and also the // new compaction. New logs that will be sent from now on will be assigned to -// this the compaction of this backup. +// this backup. // SendLog - User sends a new log to the backup service. The log is being // assigned to the latest(or desired) backup's compaction item. // RecoverBackupKey - Pulls data necessary for regenerating the backup key 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 @@ -47,7 +47,7 @@ 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[16] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[7] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -56,30 +56,12 @@ 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 BackupKeyEntropy; -struct BackupKeyEntropyDefaultTypeInternal; -extern BackupKeyEntropyDefaultTypeInternal _BackupKeyEntropy_default_instance_; class CreateNewBackupRequest; struct CreateNewBackupRequestDefaultTypeInternal; extern CreateNewBackupRequestDefaultTypeInternal _CreateNewBackupRequest_default_instance_; class CreateNewBackupResponse; struct CreateNewBackupResponseDefaultTypeInternal; extern CreateNewBackupResponseDefaultTypeInternal _CreateNewBackupResponse_default_instance_; -class FullAuthenticationRequestData; -struct FullAuthenticationRequestDataDefaultTypeInternal; -extern FullAuthenticationRequestDataDefaultTypeInternal _FullAuthenticationRequestData_default_instance_; -class FullAuthenticationResponseData; -struct FullAuthenticationResponseDataDefaultTypeInternal; -extern FullAuthenticationResponseDataDefaultTypeInternal _FullAuthenticationResponseData_default_instance_; -class PakeAuthenticationRequestData; -struct PakeAuthenticationRequestDataDefaultTypeInternal; -extern PakeAuthenticationRequestDataDefaultTypeInternal _PakeAuthenticationRequestData_default_instance_; -class PakeAuthenticationResponseData; -struct PakeAuthenticationResponseDataDefaultTypeInternal; -extern PakeAuthenticationResponseDataDefaultTypeInternal _PakeAuthenticationResponseData_default_instance_; -class PakeRegistrationRequestAndUserID; -struct PakeRegistrationRequestAndUserIDDefaultTypeInternal; -extern PakeRegistrationRequestAndUserIDDefaultTypeInternal _PakeRegistrationRequestAndUserID_default_instance_; class PullBackupRequest; struct PullBackupRequestDefaultTypeInternal; extern PullBackupRequestDefaultTypeInternal _PullBackupRequest_default_instance_; @@ -95,56 +77,38 @@ class SendLogRequest; struct SendLogRequestDefaultTypeInternal; extern SendLogRequestDefaultTypeInternal _SendLogRequest_default_instance_; -class SimpleAuthenticationRequestData; -struct SimpleAuthenticationRequestDataDefaultTypeInternal; -extern SimpleAuthenticationRequestDataDefaultTypeInternal _SimpleAuthenticationRequestData_default_instance_; -class WalletAuthenticationRequestData; -struct WalletAuthenticationRequestDataDefaultTypeInternal; -extern WalletAuthenticationRequestDataDefaultTypeInternal _WalletAuthenticationRequestData_default_instance_; -class WalletAuthenticationResponseData; -struct WalletAuthenticationResponseDataDefaultTypeInternal; -extern WalletAuthenticationResponseDataDefaultTypeInternal _WalletAuthenticationResponseData_default_instance_; } // namespace backup PROTOBUF_NAMESPACE_OPEN -template<> ::backup::BackupKeyEntropy* Arena::CreateMaybeMessage<::backup::BackupKeyEntropy>(Arena*); template<> ::backup::CreateNewBackupRequest* Arena::CreateMaybeMessage<::backup::CreateNewBackupRequest>(Arena*); template<> ::backup::CreateNewBackupResponse* Arena::CreateMaybeMessage<::backup::CreateNewBackupResponse>(Arena*); -template<> ::backup::FullAuthenticationRequestData* Arena::CreateMaybeMessage<::backup::FullAuthenticationRequestData>(Arena*); -template<> ::backup::FullAuthenticationResponseData* Arena::CreateMaybeMessage<::backup::FullAuthenticationResponseData>(Arena*); -template<> ::backup::PakeAuthenticationRequestData* Arena::CreateMaybeMessage<::backup::PakeAuthenticationRequestData>(Arena*); -template<> ::backup::PakeAuthenticationResponseData* Arena::CreateMaybeMessage<::backup::PakeAuthenticationResponseData>(Arena*); -template<> ::backup::PakeRegistrationRequestAndUserID* Arena::CreateMaybeMessage<::backup::PakeRegistrationRequestAndUserID>(Arena*); template<> ::backup::PullBackupRequest* Arena::CreateMaybeMessage<::backup::PullBackupRequest>(Arena*); template<> ::backup::PullBackupResponse* Arena::CreateMaybeMessage<::backup::PullBackupResponse>(Arena*); template<> ::backup::RecoverBackupKeyRequest* Arena::CreateMaybeMessage<::backup::RecoverBackupKeyRequest>(Arena*); template<> ::backup::RecoverBackupKeyResponse* Arena::CreateMaybeMessage<::backup::RecoverBackupKeyResponse>(Arena*); template<> ::backup::SendLogRequest* Arena::CreateMaybeMessage<::backup::SendLogRequest>(Arena*); -template<> ::backup::SimpleAuthenticationRequestData* Arena::CreateMaybeMessage<::backup::SimpleAuthenticationRequestData>(Arena*); -template<> ::backup::WalletAuthenticationRequestData* Arena::CreateMaybeMessage<::backup::WalletAuthenticationRequestData>(Arena*); -template<> ::backup::WalletAuthenticationResponseData* Arena::CreateMaybeMessage<::backup::WalletAuthenticationResponseData>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace backup { // =================================================================== -class PakeRegistrationRequestAndUserID PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.PakeRegistrationRequestAndUserID) */ { +class CreateNewBackupRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.CreateNewBackupRequest) */ { public: - inline PakeRegistrationRequestAndUserID() : PakeRegistrationRequestAndUserID(nullptr) {} - virtual ~PakeRegistrationRequestAndUserID(); - explicit constexpr PakeRegistrationRequestAndUserID(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline CreateNewBackupRequest() : CreateNewBackupRequest(nullptr) {} + virtual ~CreateNewBackupRequest(); + explicit constexpr CreateNewBackupRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - PakeRegistrationRequestAndUserID(const PakeRegistrationRequestAndUserID& from); - PakeRegistrationRequestAndUserID(PakeRegistrationRequestAndUserID&& from) noexcept - : PakeRegistrationRequestAndUserID() { + CreateNewBackupRequest(const CreateNewBackupRequest& from); + CreateNewBackupRequest(CreateNewBackupRequest&& from) noexcept + : CreateNewBackupRequest() { *this = ::std::move(from); } - inline PakeRegistrationRequestAndUserID& operator=(const PakeRegistrationRequestAndUserID& from) { + inline CreateNewBackupRequest& operator=(const CreateNewBackupRequest& from) { CopyFrom(from); return *this; } - inline PakeRegistrationRequestAndUserID& operator=(PakeRegistrationRequestAndUserID&& from) noexcept { + inline CreateNewBackupRequest& operator=(CreateNewBackupRequest&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -162,20 +126,28 @@ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const PakeRegistrationRequestAndUserID& default_instance() { + static const CreateNewBackupRequest& default_instance() { return *internal_default_instance(); } - static inline const PakeRegistrationRequestAndUserID* internal_default_instance() { - return reinterpret_cast( - &_PakeRegistrationRequestAndUserID_default_instance_); + enum DataCase { + kUserID = 1, + kKeyEntropy = 2, + kNewCompactionHash = 3, + kNewCompactionChunk = 4, + DATA_NOT_SET = 0, + }; + + static inline const CreateNewBackupRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateNewBackupRequest_default_instance_); } static constexpr int kIndexInFileMessages = 0; - friend void swap(PakeRegistrationRequestAndUserID& a, PakeRegistrationRequestAndUserID& b) { + friend void swap(CreateNewBackupRequest& a, CreateNewBackupRequest& b) { a.Swap(&b); } - inline void Swap(PakeRegistrationRequestAndUserID* other) { + inline void Swap(CreateNewBackupRequest* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -183,7 +155,7 @@ ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PakeRegistrationRequestAndUserID* other) { + void UnsafeArenaSwap(CreateNewBackupRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -191,17 +163,17 @@ // implements Message ---------------------------------------------- - inline PakeRegistrationRequestAndUserID* New() const final { - return CreateMaybeMessage(nullptr); + inline CreateNewBackupRequest* New() const final { + return CreateMaybeMessage(nullptr); } - PakeRegistrationRequestAndUserID* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + CreateNewBackupRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PakeRegistrationRequestAndUserID& from); - void MergeFrom(const PakeRegistrationRequestAndUserID& from); + void CopyFrom(const CreateNewBackupRequest& from); + void MergeFrom(const CreateNewBackupRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -215,13 +187,13 @@ inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(PakeRegistrationRequestAndUserID* other); + void InternalSwap(CreateNewBackupRequest* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "backup.PakeRegistrationRequestAndUserID"; + return "backup.CreateNewBackupRequest"; } protected: - explicit PakeRegistrationRequestAndUserID(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit CreateNewBackupRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -241,9 +213,15 @@ enum : int { kUserIDFieldNumber = 1, - kPakeRegistrationRequestFieldNumber = 2, + kKeyEntropyFieldNumber = 2, + kNewCompactionHashFieldNumber = 3, + kNewCompactionChunkFieldNumber = 4, }; // string userID = 1; + bool has_userid() const; + private: + bool _internal_has_userid() const; + public: void clear_userid(); const std::string& userid() const; void set_userid(const std::string& value); @@ -259,54 +237,115 @@ std::string* _internal_mutable_userid(); public: - // bytes pakeRegistrationRequest = 2; - void clear_pakeregistrationrequest(); - const std::string& pakeregistrationrequest() const; - void set_pakeregistrationrequest(const std::string& value); - void set_pakeregistrationrequest(std::string&& value); - void set_pakeregistrationrequest(const char* value); - void set_pakeregistrationrequest(const void* value, size_t size); - std::string* mutable_pakeregistrationrequest(); - std::string* release_pakeregistrationrequest(); - void set_allocated_pakeregistrationrequest(std::string* pakeregistrationrequest); + // bytes keyEntropy = 2; + bool has_keyentropy() const; + private: + bool _internal_has_keyentropy() const; + 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); + std::string* mutable_keyentropy(); + 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); + std::string* _internal_mutable_keyentropy(); + public: + + // bytes newCompactionHash = 3; + bool has_newcompactionhash() const; + private: + bool _internal_has_newcompactionhash() const; + 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); + std::string* mutable_newcompactionhash(); + 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); + std::string* _internal_mutable_newcompactionhash(); + public: + + // bytes newCompactionChunk = 4; + bool has_newcompactionchunk() const; + private: + bool _internal_has_newcompactionchunk() const; + 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); + std::string* mutable_newcompactionchunk(); + std::string* release_newcompactionchunk(); + void set_allocated_newcompactionchunk(std::string* newcompactionchunk); private: - const std::string& _internal_pakeregistrationrequest() const; - void _internal_set_pakeregistrationrequest(const std::string& value); - std::string* _internal_mutable_pakeregistrationrequest(); + const std::string& _internal_newcompactionchunk() const; + void _internal_set_newcompactionchunk(const std::string& value); + std::string* _internal_mutable_newcompactionchunk(); public: - // @@protoc_insertion_point(class_scope:backup.PakeRegistrationRequestAndUserID) + void clear_data(); + DataCase data_case() const; + // @@protoc_insertion_point(class_scope:backup.CreateNewBackupRequest) private: class _Internal; + void set_has_userid(); + void set_has_keyentropy(); + void set_has_newcompactionhash(); + void set_has_newcompactionchunk(); + + inline bool has_data() const; + inline void clear_has_data(); 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 pakeregistrationrequest_; + union DataUnion { + constexpr DataUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; + ::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]; + friend struct ::TableStruct_backup_2eproto; }; // ------------------------------------------------------------------- -class PakeAuthenticationRequestData PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.PakeAuthenticationRequestData) */ { +class CreateNewBackupResponse PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.CreateNewBackupResponse) */ { public: - inline PakeAuthenticationRequestData() : PakeAuthenticationRequestData(nullptr) {} - virtual ~PakeAuthenticationRequestData(); - explicit constexpr PakeAuthenticationRequestData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline CreateNewBackupResponse() : CreateNewBackupResponse(nullptr) {} + virtual ~CreateNewBackupResponse(); + explicit constexpr CreateNewBackupResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - PakeAuthenticationRequestData(const PakeAuthenticationRequestData& from); - PakeAuthenticationRequestData(PakeAuthenticationRequestData&& from) noexcept - : PakeAuthenticationRequestData() { + CreateNewBackupResponse(const CreateNewBackupResponse& from); + CreateNewBackupResponse(CreateNewBackupResponse&& from) noexcept + : CreateNewBackupResponse() { *this = ::std::move(from); } - inline PakeAuthenticationRequestData& operator=(const PakeAuthenticationRequestData& from) { + inline CreateNewBackupResponse& operator=(const CreateNewBackupResponse& from) { CopyFrom(from); return *this; } - inline PakeAuthenticationRequestData& operator=(PakeAuthenticationRequestData&& from) noexcept { + inline CreateNewBackupResponse& operator=(CreateNewBackupResponse&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -324,29 +363,20 @@ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const PakeAuthenticationRequestData& default_instance() { + static const CreateNewBackupResponse& default_instance() { return *internal_default_instance(); } - enum DataCase { - kPakeRegistrationRequestAndUserID = 1, - kPakeRegistrationUpload = 2, - kPakeCredentialRequest = 3, - kPakeCredentialFinalization = 4, - kPakeClientMAC = 5, - DATA_NOT_SET = 0, - }; - - static inline const PakeAuthenticationRequestData* internal_default_instance() { - return reinterpret_cast( - &_PakeAuthenticationRequestData_default_instance_); + static inline const CreateNewBackupResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateNewBackupResponse_default_instance_); } static constexpr int kIndexInFileMessages = 1; - friend void swap(PakeAuthenticationRequestData& a, PakeAuthenticationRequestData& b) { + friend void swap(CreateNewBackupResponse& a, CreateNewBackupResponse& b) { a.Swap(&b); } - inline void Swap(PakeAuthenticationRequestData* other) { + inline void Swap(CreateNewBackupResponse* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -354,7 +384,7 @@ ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PakeAuthenticationRequestData* other) { + void UnsafeArenaSwap(CreateNewBackupResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -362,17 +392,17 @@ // implements Message ---------------------------------------------- - inline PakeAuthenticationRequestData* New() const final { - return CreateMaybeMessage(nullptr); + inline CreateNewBackupResponse* New() const final { + return CreateMaybeMessage(nullptr); } - PakeAuthenticationRequestData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + CreateNewBackupResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PakeAuthenticationRequestData& from); - void MergeFrom(const PakeAuthenticationRequestData& from); + void CopyFrom(const CreateNewBackupResponse& from); + void MergeFrom(const CreateNewBackupResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -386,13 +416,13 @@ inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(PakeAuthenticationRequestData* other); + void InternalSwap(CreateNewBackupResponse* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "backup.PakeAuthenticationRequestData"; + return "backup.CreateNewBackupResponse"; } protected: - explicit PakeAuthenticationRequestData(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit CreateNewBackupResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -411,161 +441,55 @@ // accessors ------------------------------------------------------- enum : int { - kPakeRegistrationRequestAndUserIDFieldNumber = 1, - kPakeRegistrationUploadFieldNumber = 2, - kPakeCredentialRequestFieldNumber = 3, - kPakeCredentialFinalizationFieldNumber = 4, - kPakeClientMACFieldNumber = 5, + kBackupIDFieldNumber = 1, }; - // .backup.PakeRegistrationRequestAndUserID pakeRegistrationRequestAndUserID = 1; - bool has_pakeregistrationrequestanduserid() const; - private: - bool _internal_has_pakeregistrationrequestanduserid() const; - public: - void clear_pakeregistrationrequestanduserid(); - const ::backup::PakeRegistrationRequestAndUserID& pakeregistrationrequestanduserid() const; - ::backup::PakeRegistrationRequestAndUserID* release_pakeregistrationrequestanduserid(); - ::backup::PakeRegistrationRequestAndUserID* mutable_pakeregistrationrequestanduserid(); - void set_allocated_pakeregistrationrequestanduserid(::backup::PakeRegistrationRequestAndUserID* pakeregistrationrequestanduserid); - private: - const ::backup::PakeRegistrationRequestAndUserID& _internal_pakeregistrationrequestanduserid() const; - ::backup::PakeRegistrationRequestAndUserID* _internal_mutable_pakeregistrationrequestanduserid(); - public: - void unsafe_arena_set_allocated_pakeregistrationrequestanduserid( - ::backup::PakeRegistrationRequestAndUserID* pakeregistrationrequestanduserid); - ::backup::PakeRegistrationRequestAndUserID* unsafe_arena_release_pakeregistrationrequestanduserid(); - - // bytes pakeRegistrationUpload = 2; - bool has_pakeregistrationupload() const; - private: - bool _internal_has_pakeregistrationupload() const; - public: - void clear_pakeregistrationupload(); - const std::string& pakeregistrationupload() const; - void set_pakeregistrationupload(const std::string& value); - void set_pakeregistrationupload(std::string&& value); - void set_pakeregistrationupload(const char* value); - void set_pakeregistrationupload(const void* value, size_t size); - std::string* mutable_pakeregistrationupload(); - std::string* release_pakeregistrationupload(); - void set_allocated_pakeregistrationupload(std::string* pakeregistrationupload); - private: - const std::string& _internal_pakeregistrationupload() const; - void _internal_set_pakeregistrationupload(const std::string& value); - std::string* _internal_mutable_pakeregistrationupload(); - public: - - // bytes pakeCredentialRequest = 3; - bool has_pakecredentialrequest() const; - private: - bool _internal_has_pakecredentialrequest() const; - public: - void clear_pakecredentialrequest(); - const std::string& pakecredentialrequest() const; - void set_pakecredentialrequest(const std::string& value); - void set_pakecredentialrequest(std::string&& value); - void set_pakecredentialrequest(const char* value); - void set_pakecredentialrequest(const void* value, size_t size); - std::string* mutable_pakecredentialrequest(); - std::string* release_pakecredentialrequest(); - void set_allocated_pakecredentialrequest(std::string* pakecredentialrequest); - private: - const std::string& _internal_pakecredentialrequest() const; - void _internal_set_pakecredentialrequest(const std::string& value); - std::string* _internal_mutable_pakecredentialrequest(); - public: - - // bytes pakeCredentialFinalization = 4; - bool has_pakecredentialfinalization() const; - private: - bool _internal_has_pakecredentialfinalization() const; - public: - void clear_pakecredentialfinalization(); - const std::string& pakecredentialfinalization() const; - void set_pakecredentialfinalization(const std::string& value); - void set_pakecredentialfinalization(std::string&& value); - void set_pakecredentialfinalization(const char* value); - void set_pakecredentialfinalization(const void* value, size_t size); - std::string* mutable_pakecredentialfinalization(); - std::string* release_pakecredentialfinalization(); - void set_allocated_pakecredentialfinalization(std::string* pakecredentialfinalization); - private: - const std::string& _internal_pakecredentialfinalization() const; - void _internal_set_pakecredentialfinalization(const std::string& value); - std::string* _internal_mutable_pakecredentialfinalization(); - public: - - // bytes pakeClientMAC = 5; - bool has_pakeclientmac() const; - private: - bool _internal_has_pakeclientmac() const; - public: - void clear_pakeclientmac(); - const std::string& pakeclientmac() const; - void set_pakeclientmac(const std::string& value); - void set_pakeclientmac(std::string&& value); - void set_pakeclientmac(const char* value); - void set_pakeclientmac(const void* value, size_t size); - std::string* mutable_pakeclientmac(); - std::string* release_pakeclientmac(); - void set_allocated_pakeclientmac(std::string* pakeclientmac); + // 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); + std::string* mutable_backupid(); + std::string* release_backupid(); + void set_allocated_backupid(std::string* backupid); private: - const std::string& _internal_pakeclientmac() const; - void _internal_set_pakeclientmac(const std::string& value); - std::string* _internal_mutable_pakeclientmac(); + const std::string& _internal_backupid() const; + void _internal_set_backupid(const std::string& value); + std::string* _internal_mutable_backupid(); public: - void clear_data(); - DataCase data_case() const; - // @@protoc_insertion_point(class_scope:backup.PakeAuthenticationRequestData) + // @@protoc_insertion_point(class_scope:backup.CreateNewBackupResponse) private: class _Internal; - void set_has_pakeregistrationrequestanduserid(); - void set_has_pakeregistrationupload(); - void set_has_pakecredentialrequest(); - void set_has_pakecredentialfinalization(); - void set_has_pakeclientmac(); - - inline bool has_data() const; - inline void clear_has_data(); 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_; - ::backup::PakeRegistrationRequestAndUserID* pakeregistrationrequestanduserid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pakeregistrationupload_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pakecredentialrequest_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pakecredentialfinalization_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pakeclientmac_; - } data_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr backupid_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - friend struct ::TableStruct_backup_2eproto; }; // ------------------------------------------------------------------- -class WalletAuthenticationRequestData PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.WalletAuthenticationRequestData) */ { +class SendLogRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.SendLogRequest) */ { public: - inline WalletAuthenticationRequestData() : WalletAuthenticationRequestData(nullptr) {} - virtual ~WalletAuthenticationRequestData(); - explicit constexpr WalletAuthenticationRequestData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SendLogRequest() : SendLogRequest(nullptr) {} + virtual ~SendLogRequest(); + explicit constexpr SendLogRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - WalletAuthenticationRequestData(const WalletAuthenticationRequestData& from); - WalletAuthenticationRequestData(WalletAuthenticationRequestData&& from) noexcept - : WalletAuthenticationRequestData() { + SendLogRequest(const SendLogRequest& from); + SendLogRequest(SendLogRequest&& from) noexcept + : SendLogRequest() { *this = ::std::move(from); } - inline WalletAuthenticationRequestData& operator=(const WalletAuthenticationRequestData& from) { + inline SendLogRequest& operator=(const SendLogRequest& from) { CopyFrom(from); return *this; } - inline WalletAuthenticationRequestData& operator=(WalletAuthenticationRequestData&& from) noexcept { + inline SendLogRequest& operator=(SendLogRequest&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -583,20 +507,28 @@ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const WalletAuthenticationRequestData& default_instance() { + static const SendLogRequest& default_instance() { return *internal_default_instance(); } - static inline const WalletAuthenticationRequestData* internal_default_instance() { - return reinterpret_cast( - &_WalletAuthenticationRequestData_default_instance_); + enum DataCase { + kUserID = 1, + kBackupID = 2, + kLogHash = 3, + kLogData = 4, + DATA_NOT_SET = 0, + }; + + static inline const SendLogRequest* internal_default_instance() { + return reinterpret_cast( + &_SendLogRequest_default_instance_); } static constexpr int kIndexInFileMessages = 2; - friend void swap(WalletAuthenticationRequestData& a, WalletAuthenticationRequestData& b) { + friend void swap(SendLogRequest& a, SendLogRequest& b) { a.Swap(&b); } - inline void Swap(WalletAuthenticationRequestData* other) { + inline void Swap(SendLogRequest* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -604,7 +536,7 @@ ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(WalletAuthenticationRequestData* other) { + void UnsafeArenaSwap(SendLogRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -612,17 +544,17 @@ // implements Message ---------------------------------------------- - inline WalletAuthenticationRequestData* New() const final { - return CreateMaybeMessage(nullptr); + inline SendLogRequest* New() const final { + return CreateMaybeMessage(nullptr); } - WalletAuthenticationRequestData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + SendLogRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const WalletAuthenticationRequestData& from); - void MergeFrom(const WalletAuthenticationRequestData& from); + void CopyFrom(const SendLogRequest& from); + void MergeFrom(const SendLogRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -636,13 +568,13 @@ inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(WalletAuthenticationRequestData* other); + void InternalSwap(SendLogRequest* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "backup.WalletAuthenticationRequestData"; + return "backup.SendLogRequest"; } protected: - explicit WalletAuthenticationRequestData(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SendLogRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -662,10 +594,15 @@ enum : int { kUserIDFieldNumber = 1, - kWalletAddressFieldNumber = 2, - kSignedMessageFieldNumber = 3, + kBackupIDFieldNumber = 2, + kLogHashFieldNumber = 3, + kLogDataFieldNumber = 4, }; // string userID = 1; + bool has_userid() const; + private: + bool _internal_has_userid() const; + public: void clear_userid(); const std::string& userid() const; void set_userid(const std::string& value); @@ -681,71 +618,115 @@ std::string* _internal_mutable_userid(); public: - // string walletAddress = 2; - void clear_walletaddress(); - const std::string& walletaddress() const; - void set_walletaddress(const std::string& value); - void set_walletaddress(std::string&& value); - void set_walletaddress(const char* value); - void set_walletaddress(const char* value, size_t size); - std::string* mutable_walletaddress(); - std::string* release_walletaddress(); - void set_allocated_walletaddress(std::string* walletaddress); + // string backupID = 2; + bool has_backupid() const; + private: + bool _internal_has_backupid() const; + 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); + std::string* mutable_backupid(); + 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); + std::string* _internal_mutable_backupid(); + public: + + // bytes logHash = 3; + bool has_loghash() const; + private: + bool _internal_has_loghash() const; + 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); + std::string* mutable_loghash(); + std::string* release_loghash(); + void set_allocated_loghash(std::string* loghash); private: - const std::string& _internal_walletaddress() const; - void _internal_set_walletaddress(const std::string& value); - std::string* _internal_mutable_walletaddress(); + const std::string& _internal_loghash() const; + void _internal_set_loghash(const std::string& value); + std::string* _internal_mutable_loghash(); public: - // bytes signedMessage = 3; - void clear_signedmessage(); - const std::string& signedmessage() const; - void set_signedmessage(const std::string& value); - void set_signedmessage(std::string&& value); - void set_signedmessage(const char* value); - void set_signedmessage(const void* value, size_t size); - std::string* mutable_signedmessage(); - std::string* release_signedmessage(); - void set_allocated_signedmessage(std::string* signedmessage); + // bytes logData = 4; + bool has_logdata() const; + private: + bool _internal_has_logdata() const; + 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); + std::string* mutable_logdata(); + std::string* release_logdata(); + void set_allocated_logdata(std::string* logdata); private: - const std::string& _internal_signedmessage() const; - void _internal_set_signedmessage(const std::string& value); - std::string* _internal_mutable_signedmessage(); + const std::string& _internal_logdata() const; + void _internal_set_logdata(const std::string& value); + std::string* _internal_mutable_logdata(); public: - // @@protoc_insertion_point(class_scope:backup.WalletAuthenticationRequestData) + void clear_data(); + DataCase data_case() const; + // @@protoc_insertion_point(class_scope:backup.SendLogRequest) private: class _Internal; + void set_has_userid(); + void set_has_backupid(); + void set_has_loghash(); + void set_has_logdata(); + + inline bool has_data() const; + inline void clear_has_data(); 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 walletaddress_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr signedmessage_; + 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]; + friend struct ::TableStruct_backup_2eproto; }; // ------------------------------------------------------------------- -class FullAuthenticationRequestData PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.FullAuthenticationRequestData) */ { +class RecoverBackupKeyRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.RecoverBackupKeyRequest) */ { public: - inline FullAuthenticationRequestData() : FullAuthenticationRequestData(nullptr) {} - virtual ~FullAuthenticationRequestData(); - explicit constexpr FullAuthenticationRequestData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline RecoverBackupKeyRequest() : RecoverBackupKeyRequest(nullptr) {} + virtual ~RecoverBackupKeyRequest(); + explicit constexpr RecoverBackupKeyRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - FullAuthenticationRequestData(const FullAuthenticationRequestData& from); - FullAuthenticationRequestData(FullAuthenticationRequestData&& from) noexcept - : FullAuthenticationRequestData() { + RecoverBackupKeyRequest(const RecoverBackupKeyRequest& from); + RecoverBackupKeyRequest(RecoverBackupKeyRequest&& from) noexcept + : RecoverBackupKeyRequest() { *this = ::std::move(from); } - inline FullAuthenticationRequestData& operator=(const FullAuthenticationRequestData& from) { + inline RecoverBackupKeyRequest& operator=(const RecoverBackupKeyRequest& from) { CopyFrom(from); return *this; } - inline FullAuthenticationRequestData& operator=(FullAuthenticationRequestData&& from) noexcept { + inline RecoverBackupKeyRequest& operator=(RecoverBackupKeyRequest&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -763,26 +744,20 @@ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const FullAuthenticationRequestData& default_instance() { + static const RecoverBackupKeyRequest& default_instance() { return *internal_default_instance(); } - enum DataCase { - kPakeAuthenticationRequestData = 1, - kWalletAuthenticationRequestData = 2, - DATA_NOT_SET = 0, - }; - - static inline const FullAuthenticationRequestData* internal_default_instance() { - return reinterpret_cast( - &_FullAuthenticationRequestData_default_instance_); + static inline const RecoverBackupKeyRequest* internal_default_instance() { + return reinterpret_cast( + &_RecoverBackupKeyRequest_default_instance_); } static constexpr int kIndexInFileMessages = 3; - friend void swap(FullAuthenticationRequestData& a, FullAuthenticationRequestData& b) { + friend void swap(RecoverBackupKeyRequest& a, RecoverBackupKeyRequest& b) { a.Swap(&b); } - inline void Swap(FullAuthenticationRequestData* other) { + inline void Swap(RecoverBackupKeyRequest* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -790,7 +765,7 @@ ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FullAuthenticationRequestData* other) { + void UnsafeArenaSwap(RecoverBackupKeyRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -798,17 +773,17 @@ // implements Message ---------------------------------------------- - inline FullAuthenticationRequestData* New() const final { - return CreateMaybeMessage(nullptr); + inline RecoverBackupKeyRequest* New() const final { + return CreateMaybeMessage(nullptr); } - FullAuthenticationRequestData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + RecoverBackupKeyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const FullAuthenticationRequestData& from); - void MergeFrom(const FullAuthenticationRequestData& from); + void CopyFrom(const RecoverBackupKeyRequest& from); + void MergeFrom(const RecoverBackupKeyRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -822,13 +797,13 @@ inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(FullAuthenticationRequestData* other); + void InternalSwap(RecoverBackupKeyRequest* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "backup.FullAuthenticationRequestData"; + return "backup.RecoverBackupKeyRequest"; } protected: - explicit FullAuthenticationRequestData(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit RecoverBackupKeyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -847,90 +822,55 @@ // accessors ------------------------------------------------------- enum : int { - kPakeAuthenticationRequestDataFieldNumber = 1, - kWalletAuthenticationRequestDataFieldNumber = 2, + kUserIDFieldNumber = 1, }; - // .backup.PakeAuthenticationRequestData pakeAuthenticationRequestData = 1; - bool has_pakeauthenticationrequestdata() const; - private: - bool _internal_has_pakeauthenticationrequestdata() const; - public: - void clear_pakeauthenticationrequestdata(); - const ::backup::PakeAuthenticationRequestData& pakeauthenticationrequestdata() const; - ::backup::PakeAuthenticationRequestData* release_pakeauthenticationrequestdata(); - ::backup::PakeAuthenticationRequestData* mutable_pakeauthenticationrequestdata(); - void set_allocated_pakeauthenticationrequestdata(::backup::PakeAuthenticationRequestData* pakeauthenticationrequestdata); - private: - const ::backup::PakeAuthenticationRequestData& _internal_pakeauthenticationrequestdata() const; - ::backup::PakeAuthenticationRequestData* _internal_mutable_pakeauthenticationrequestdata(); - public: - void unsafe_arena_set_allocated_pakeauthenticationrequestdata( - ::backup::PakeAuthenticationRequestData* pakeauthenticationrequestdata); - ::backup::PakeAuthenticationRequestData* unsafe_arena_release_pakeauthenticationrequestdata(); - - // .backup.WalletAuthenticationRequestData walletAuthenticationRequestData = 2; - bool has_walletauthenticationrequestdata() const; - private: - bool _internal_has_walletauthenticationrequestdata() const; - public: - void clear_walletauthenticationrequestdata(); - const ::backup::WalletAuthenticationRequestData& walletauthenticationrequestdata() const; - ::backup::WalletAuthenticationRequestData* release_walletauthenticationrequestdata(); - ::backup::WalletAuthenticationRequestData* mutable_walletauthenticationrequestdata(); - void set_allocated_walletauthenticationrequestdata(::backup::WalletAuthenticationRequestData* walletauthenticationrequestdata); + // 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); + std::string* mutable_userid(); + std::string* release_userid(); + void set_allocated_userid(std::string* userid); private: - const ::backup::WalletAuthenticationRequestData& _internal_walletauthenticationrequestdata() const; - ::backup::WalletAuthenticationRequestData* _internal_mutable_walletauthenticationrequestdata(); + const std::string& _internal_userid() const; + void _internal_set_userid(const std::string& value); + std::string* _internal_mutable_userid(); public: - void unsafe_arena_set_allocated_walletauthenticationrequestdata( - ::backup::WalletAuthenticationRequestData* walletauthenticationrequestdata); - ::backup::WalletAuthenticationRequestData* unsafe_arena_release_walletauthenticationrequestdata(); - void clear_data(); - DataCase data_case() const; - // @@protoc_insertion_point(class_scope:backup.FullAuthenticationRequestData) + // @@protoc_insertion_point(class_scope:backup.RecoverBackupKeyRequest) private: class _Internal; - void set_has_pakeauthenticationrequestdata(); - void set_has_walletauthenticationrequestdata(); - - inline bool has_data() const; - inline void clear_has_data(); 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_; - ::backup::PakeAuthenticationRequestData* pakeauthenticationrequestdata_; - ::backup::WalletAuthenticationRequestData* walletauthenticationrequestdata_; - } data_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - friend struct ::TableStruct_backup_2eproto; }; // ------------------------------------------------------------------- -class WalletAuthenticationResponseData PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.WalletAuthenticationResponseData) */ { +class RecoverBackupKeyResponse PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.RecoverBackupKeyResponse) */ { public: - inline WalletAuthenticationResponseData() : WalletAuthenticationResponseData(nullptr) {} - virtual ~WalletAuthenticationResponseData(); - explicit constexpr WalletAuthenticationResponseData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline RecoverBackupKeyResponse() : RecoverBackupKeyResponse(nullptr) {} + virtual ~RecoverBackupKeyResponse(); + explicit constexpr RecoverBackupKeyResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - WalletAuthenticationResponseData(const WalletAuthenticationResponseData& from); - WalletAuthenticationResponseData(WalletAuthenticationResponseData&& from) noexcept - : WalletAuthenticationResponseData() { + RecoverBackupKeyResponse(const RecoverBackupKeyResponse& from); + RecoverBackupKeyResponse(RecoverBackupKeyResponse&& from) noexcept + : RecoverBackupKeyResponse() { *this = ::std::move(from); } - inline WalletAuthenticationResponseData& operator=(const WalletAuthenticationResponseData& from) { + inline RecoverBackupKeyResponse& operator=(const RecoverBackupKeyResponse& from) { CopyFrom(from); return *this; } - inline WalletAuthenticationResponseData& operator=(WalletAuthenticationResponseData&& from) noexcept { + inline RecoverBackupKeyResponse& operator=(RecoverBackupKeyResponse&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -948,20 +888,25 @@ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const WalletAuthenticationResponseData& default_instance() { + static const RecoverBackupKeyResponse& default_instance() { return *internal_default_instance(); } - static inline const WalletAuthenticationResponseData* internal_default_instance() { - return reinterpret_cast( - &_WalletAuthenticationResponseData_default_instance_); + enum DataCase { + kBackupID = 4, + DATA_NOT_SET = 0, + }; + + static inline const RecoverBackupKeyResponse* internal_default_instance() { + return reinterpret_cast( + &_RecoverBackupKeyResponse_default_instance_); } static constexpr int kIndexInFileMessages = 4; - friend void swap(WalletAuthenticationResponseData& a, WalletAuthenticationResponseData& b) { + friend void swap(RecoverBackupKeyResponse& a, RecoverBackupKeyResponse& b) { a.Swap(&b); } - inline void Swap(WalletAuthenticationResponseData* other) { + inline void Swap(RecoverBackupKeyResponse* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -969,7 +914,7 @@ ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(WalletAuthenticationResponseData* other) { + void UnsafeArenaSwap(RecoverBackupKeyResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -977,17 +922,17 @@ // implements Message ---------------------------------------------- - inline WalletAuthenticationResponseData* New() const final { - return CreateMaybeMessage(nullptr); + inline RecoverBackupKeyResponse* New() const final { + return CreateMaybeMessage(nullptr); } - WalletAuthenticationResponseData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + RecoverBackupKeyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const WalletAuthenticationResponseData& from); - void MergeFrom(const WalletAuthenticationResponseData& from); + void CopyFrom(const RecoverBackupKeyResponse& from); + void MergeFrom(const RecoverBackupKeyResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1001,13 +946,13 @@ inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(WalletAuthenticationResponseData* other); + void InternalSwap(RecoverBackupKeyResponse* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "backup.WalletAuthenticationResponseData"; + return "backup.RecoverBackupKeyResponse"; } protected: - explicit WalletAuthenticationResponseData(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit RecoverBackupKeyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -1026,48 +971,71 @@ // accessors ------------------------------------------------------- enum : int { - kSuccessFieldNumber = 1, + kBackupIDFieldNumber = 4, }; - // bool success = 1; - void clear_success(); - bool success() const; - void set_success(bool value); + // string backupID = 4; + bool has_backupid() const; + private: + bool _internal_has_backupid() const; + 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); + std::string* mutable_backupid(); + std::string* release_backupid(); + void set_allocated_backupid(std::string* backupid); private: - bool _internal_success() const; - void _internal_set_success(bool value); + const std::string& _internal_backupid() const; + void _internal_set_backupid(const std::string& value); + std::string* _internal_mutable_backupid(); public: - // @@protoc_insertion_point(class_scope:backup.WalletAuthenticationResponseData) + void clear_data(); + DataCase data_case() const; + // @@protoc_insertion_point(class_scope:backup.RecoverBackupKeyResponse) private: class _Internal; + void set_has_backupid(); + + inline bool has_data() const; + inline void clear_has_data(); template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - bool success_; + union DataUnion { + constexpr DataUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr backupid_; + } data_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + friend struct ::TableStruct_backup_2eproto; }; // ------------------------------------------------------------------- -class PakeAuthenticationResponseData PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.PakeAuthenticationResponseData) */ { +class PullBackupRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.PullBackupRequest) */ { public: - inline PakeAuthenticationResponseData() : PakeAuthenticationResponseData(nullptr) {} - virtual ~PakeAuthenticationResponseData(); - explicit constexpr PakeAuthenticationResponseData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PullBackupRequest() : PullBackupRequest(nullptr) {} + virtual ~PullBackupRequest(); + explicit constexpr PullBackupRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - PakeAuthenticationResponseData(const PakeAuthenticationResponseData& from); - PakeAuthenticationResponseData(PakeAuthenticationResponseData&& from) noexcept - : PakeAuthenticationResponseData() { + PullBackupRequest(const PullBackupRequest& from); + PullBackupRequest(PullBackupRequest&& from) noexcept + : PullBackupRequest() { *this = ::std::move(from); } - inline PakeAuthenticationResponseData& operator=(const PakeAuthenticationResponseData& from) { + inline PullBackupRequest& operator=(const PullBackupRequest& from) { CopyFrom(from); return *this; } - inline PakeAuthenticationResponseData& operator=(PakeAuthenticationResponseData&& from) noexcept { + inline PullBackupRequest& operator=(PullBackupRequest&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -1085,28 +1053,20 @@ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const PakeAuthenticationResponseData& default_instance() { + static const PullBackupRequest& default_instance() { return *internal_default_instance(); } - enum DataCase { - kPakeRegistrationResponse = 1, - kPakeRegistrationSuccess = 2, - kPakeCredentialResponse = 3, - kPakeServerMAC = 4, - DATA_NOT_SET = 0, - }; - - static inline const PakeAuthenticationResponseData* internal_default_instance() { - return reinterpret_cast( - &_PakeAuthenticationResponseData_default_instance_); + static inline const PullBackupRequest* internal_default_instance() { + return reinterpret_cast( + &_PullBackupRequest_default_instance_); } static constexpr int kIndexInFileMessages = 5; - friend void swap(PakeAuthenticationResponseData& a, PakeAuthenticationResponseData& b) { + friend void swap(PullBackupRequest& a, PullBackupRequest& b) { a.Swap(&b); } - inline void Swap(PakeAuthenticationResponseData* other) { + inline void Swap(PullBackupRequest* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -1114,7 +1074,7 @@ ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PakeAuthenticationResponseData* other) { + void UnsafeArenaSwap(PullBackupRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1122,17 +1082,17 @@ // implements Message ---------------------------------------------- - inline PakeAuthenticationResponseData* New() const final { - return CreateMaybeMessage(nullptr); + inline PullBackupRequest* New() const final { + return CreateMaybeMessage(nullptr); } - PakeAuthenticationResponseData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + PullBackupRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PakeAuthenticationResponseData& from); - void MergeFrom(const PakeAuthenticationResponseData& from); + void CopyFrom(const PullBackupRequest& from); + void MergeFrom(const PullBackupRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1146,13 +1106,13 @@ inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(PakeAuthenticationResponseData* other); + void InternalSwap(PullBackupRequest* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "backup.PakeAuthenticationResponseData"; + return "backup.PullBackupRequest"; } protected: - explicit PakeAuthenticationResponseData(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit PullBackupRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -1171,133 +1131,55 @@ // accessors ------------------------------------------------------- enum : int { - kPakeRegistrationResponseFieldNumber = 1, - kPakeRegistrationSuccessFieldNumber = 2, - kPakeCredentialResponseFieldNumber = 3, - kPakeServerMACFieldNumber = 4, + kUserIDFieldNumber = 1, }; - // bytes pakeRegistrationResponse = 1; - bool has_pakeregistrationresponse() const; - private: - bool _internal_has_pakeregistrationresponse() const; - public: - void clear_pakeregistrationresponse(); - const std::string& pakeregistrationresponse() const; - void set_pakeregistrationresponse(const std::string& value); - void set_pakeregistrationresponse(std::string&& value); - void set_pakeregistrationresponse(const char* value); - void set_pakeregistrationresponse(const void* value, size_t size); - std::string* mutable_pakeregistrationresponse(); - std::string* release_pakeregistrationresponse(); - void set_allocated_pakeregistrationresponse(std::string* pakeregistrationresponse); - private: - const std::string& _internal_pakeregistrationresponse() const; - void _internal_set_pakeregistrationresponse(const std::string& value); - std::string* _internal_mutable_pakeregistrationresponse(); - public: - - // bool pakeRegistrationSuccess = 2; - bool has_pakeregistrationsuccess() const; - private: - bool _internal_has_pakeregistrationsuccess() const; - public: - void clear_pakeregistrationsuccess(); - bool pakeregistrationsuccess() const; - void set_pakeregistrationsuccess(bool value); - private: - bool _internal_pakeregistrationsuccess() const; - void _internal_set_pakeregistrationsuccess(bool value); - public: - - // bytes pakeCredentialResponse = 3; - bool has_pakecredentialresponse() const; - private: - bool _internal_has_pakecredentialresponse() const; - public: - void clear_pakecredentialresponse(); - const std::string& pakecredentialresponse() const; - void set_pakecredentialresponse(const std::string& value); - void set_pakecredentialresponse(std::string&& value); - void set_pakecredentialresponse(const char* value); - void set_pakecredentialresponse(const void* value, size_t size); - std::string* mutable_pakecredentialresponse(); - std::string* release_pakecredentialresponse(); - void set_allocated_pakecredentialresponse(std::string* pakecredentialresponse); - private: - const std::string& _internal_pakecredentialresponse() const; - void _internal_set_pakecredentialresponse(const std::string& value); - std::string* _internal_mutable_pakecredentialresponse(); - public: - - // bytes pakeServerMAC = 4; - bool has_pakeservermac() const; - private: - bool _internal_has_pakeservermac() const; - public: - void clear_pakeservermac(); - const std::string& pakeservermac() const; - void set_pakeservermac(const std::string& value); - void set_pakeservermac(std::string&& value); - void set_pakeservermac(const char* value); - void set_pakeservermac(const void* value, size_t size); - std::string* mutable_pakeservermac(); - std::string* release_pakeservermac(); - void set_allocated_pakeservermac(std::string* pakeservermac); + // 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); + std::string* mutable_userid(); + std::string* release_userid(); + void set_allocated_userid(std::string* userid); private: - const std::string& _internal_pakeservermac() const; - void _internal_set_pakeservermac(const std::string& value); - std::string* _internal_mutable_pakeservermac(); + const std::string& _internal_userid() const; + void _internal_set_userid(const std::string& value); + std::string* _internal_mutable_userid(); public: - void clear_data(); - DataCase data_case() const; - // @@protoc_insertion_point(class_scope:backup.PakeAuthenticationResponseData) + // @@protoc_insertion_point(class_scope:backup.PullBackupRequest) private: class _Internal; - void set_has_pakeregistrationresponse(); - void set_has_pakeregistrationsuccess(); - void set_has_pakecredentialresponse(); - void set_has_pakeservermac(); - - inline bool has_data() const; - inline void clear_has_data(); 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 pakeregistrationresponse_; - bool pakeregistrationsuccess_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pakecredentialresponse_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pakeservermac_; - } data_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - friend struct ::TableStruct_backup_2eproto; }; // ------------------------------------------------------------------- -class FullAuthenticationResponseData PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.FullAuthenticationResponseData) */ { +class PullBackupResponse PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.PullBackupResponse) */ { public: - inline FullAuthenticationResponseData() : FullAuthenticationResponseData(nullptr) {} - virtual ~FullAuthenticationResponseData(); - explicit constexpr FullAuthenticationResponseData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PullBackupResponse() : PullBackupResponse(nullptr) {} + virtual ~PullBackupResponse(); + explicit constexpr PullBackupResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - FullAuthenticationResponseData(const FullAuthenticationResponseData& from); - FullAuthenticationResponseData(FullAuthenticationResponseData&& from) noexcept - : FullAuthenticationResponseData() { + PullBackupResponse(const PullBackupResponse& from); + PullBackupResponse(PullBackupResponse&& from) noexcept + : PullBackupResponse() { *this = ::std::move(from); } - inline FullAuthenticationResponseData& operator=(const FullAuthenticationResponseData& from) { + inline PullBackupResponse& operator=(const PullBackupResponse& from) { CopyFrom(from); return *this; } - inline FullAuthenticationResponseData& operator=(FullAuthenticationResponseData&& from) noexcept { + inline PullBackupResponse& operator=(PullBackupResponse&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -1315,26 +1197,26 @@ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const FullAuthenticationResponseData& default_instance() { + static const PullBackupResponse& default_instance() { return *internal_default_instance(); } enum DataCase { - kPakeAuthenticationResponseData = 1, - kWalletAuthenticationResponseData = 2, + kCompactionChunk = 1, + kLogChunk = 2, DATA_NOT_SET = 0, }; - static inline const FullAuthenticationResponseData* internal_default_instance() { - return reinterpret_cast( - &_FullAuthenticationResponseData_default_instance_); + static inline const PullBackupResponse* internal_default_instance() { + return reinterpret_cast( + &_PullBackupResponse_default_instance_); } static constexpr int kIndexInFileMessages = 6; - friend void swap(FullAuthenticationResponseData& a, FullAuthenticationResponseData& b) { + friend void swap(PullBackupResponse& a, PullBackupResponse& b) { a.Swap(&b); } - inline void Swap(FullAuthenticationResponseData* other) { + inline void Swap(PullBackupResponse* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -1342,7 +1224,7 @@ ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FullAuthenticationResponseData* other) { + void UnsafeArenaSwap(PullBackupResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1350,17 +1232,17 @@ // implements Message ---------------------------------------------- - inline FullAuthenticationResponseData* New() const final { - return CreateMaybeMessage(nullptr); + inline PullBackupResponse* New() const final { + return CreateMaybeMessage(nullptr); } - FullAuthenticationResponseData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + PullBackupResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const FullAuthenticationResponseData& from); - void MergeFrom(const FullAuthenticationResponseData& from); + void CopyFrom(const PullBackupResponse& from); + void MergeFrom(const PullBackupResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1374,13 +1256,13 @@ inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(FullAuthenticationResponseData* other); + void InternalSwap(PullBackupResponse* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "backup.FullAuthenticationResponseData"; + return "backup.PullBackupResponse"; } protected: - explicit FullAuthenticationResponseData(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit PullBackupResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -1392,3795 +1274,310 @@ return ::descriptor_table_backup_2eproto_metadata_getter(kIndexInFileMessages); } - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPakeAuthenticationResponseDataFieldNumber = 1, - kWalletAuthenticationResponseDataFieldNumber = 2, - }; - // .backup.PakeAuthenticationResponseData pakeAuthenticationResponseData = 1; - bool has_pakeauthenticationresponsedata() const; - private: - bool _internal_has_pakeauthenticationresponsedata() const; - public: - void clear_pakeauthenticationresponsedata(); - const ::backup::PakeAuthenticationResponseData& pakeauthenticationresponsedata() const; - ::backup::PakeAuthenticationResponseData* release_pakeauthenticationresponsedata(); - ::backup::PakeAuthenticationResponseData* mutable_pakeauthenticationresponsedata(); - void set_allocated_pakeauthenticationresponsedata(::backup::PakeAuthenticationResponseData* pakeauthenticationresponsedata); - private: - const ::backup::PakeAuthenticationResponseData& _internal_pakeauthenticationresponsedata() const; - ::backup::PakeAuthenticationResponseData* _internal_mutable_pakeauthenticationresponsedata(); - public: - void unsafe_arena_set_allocated_pakeauthenticationresponsedata( - ::backup::PakeAuthenticationResponseData* pakeauthenticationresponsedata); - ::backup::PakeAuthenticationResponseData* unsafe_arena_release_pakeauthenticationresponsedata(); - - // .backup.WalletAuthenticationResponseData walletAuthenticationResponseData = 2; - bool has_walletauthenticationresponsedata() const; - private: - bool _internal_has_walletauthenticationresponsedata() const; - public: - void clear_walletauthenticationresponsedata(); - const ::backup::WalletAuthenticationResponseData& walletauthenticationresponsedata() const; - ::backup::WalletAuthenticationResponseData* release_walletauthenticationresponsedata(); - ::backup::WalletAuthenticationResponseData* mutable_walletauthenticationresponsedata(); - void set_allocated_walletauthenticationresponsedata(::backup::WalletAuthenticationResponseData* walletauthenticationresponsedata); - private: - const ::backup::WalletAuthenticationResponseData& _internal_walletauthenticationresponsedata() const; - ::backup::WalletAuthenticationResponseData* _internal_mutable_walletauthenticationresponsedata(); - public: - void unsafe_arena_set_allocated_walletauthenticationresponsedata( - ::backup::WalletAuthenticationResponseData* walletauthenticationresponsedata); - ::backup::WalletAuthenticationResponseData* unsafe_arena_release_walletauthenticationresponsedata(); - - void clear_data(); - DataCase data_case() const; - // @@protoc_insertion_point(class_scope:backup.FullAuthenticationResponseData) - private: - class _Internal; - void set_has_pakeauthenticationresponsedata(); - void set_has_walletauthenticationresponsedata(); - - inline bool has_data() const; - inline void clear_has_data(); - - 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_; - ::backup::PakeAuthenticationResponseData* pakeauthenticationresponsedata_; - ::backup::WalletAuthenticationResponseData* walletauthenticationresponsedata_; - } data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_backup_2eproto; -}; -// ------------------------------------------------------------------- - -class SimpleAuthenticationRequestData PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.SimpleAuthenticationRequestData) */ { - public: - inline SimpleAuthenticationRequestData() : SimpleAuthenticationRequestData(nullptr) {} - virtual ~SimpleAuthenticationRequestData(); - explicit constexpr SimpleAuthenticationRequestData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SimpleAuthenticationRequestData(const SimpleAuthenticationRequestData& from); - SimpleAuthenticationRequestData(SimpleAuthenticationRequestData&& from) noexcept - : SimpleAuthenticationRequestData() { - *this = ::std::move(from); - } - - inline SimpleAuthenticationRequestData& operator=(const SimpleAuthenticationRequestData& from) { - CopyFrom(from); - return *this; - } - inline SimpleAuthenticationRequestData& operator=(SimpleAuthenticationRequestData&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const SimpleAuthenticationRequestData& default_instance() { - return *internal_default_instance(); - } - static inline const SimpleAuthenticationRequestData* internal_default_instance() { - return reinterpret_cast( - &_SimpleAuthenticationRequestData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(SimpleAuthenticationRequestData& a, SimpleAuthenticationRequestData& b) { - a.Swap(&b); - } - inline void Swap(SimpleAuthenticationRequestData* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SimpleAuthenticationRequestData* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline SimpleAuthenticationRequestData* New() const final { - return CreateMaybeMessage(nullptr); - } - - SimpleAuthenticationRequestData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const SimpleAuthenticationRequestData& from); - void MergeFrom(const SimpleAuthenticationRequestData& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::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(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SimpleAuthenticationRequestData* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "backup.SimpleAuthenticationRequestData"; - } - protected: - explicit SimpleAuthenticationRequestData(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_backup_2eproto_metadata_getter(kIndexInFileMessages); - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kBackupIDFieldNumber = 1, - kUserIDFieldNumber = 2, - }; - // 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); - std::string* mutable_backupid(); - 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); - std::string* _internal_mutable_backupid(); - public: - - // string userID = 2; - 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); - std::string* mutable_userid(); - 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); - std::string* _internal_mutable_userid(); - public: - - // @@protoc_insertion_point(class_scope:backup.SimpleAuthenticationRequestData) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr backupid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr userid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_backup_2eproto; -}; -// ------------------------------------------------------------------- - -class BackupKeyEntropy PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:backup.BackupKeyEntropy) */ { - public: - inline BackupKeyEntropy() : BackupKeyEntropy(nullptr) {} - virtual ~BackupKeyEntropy(); - explicit constexpr BackupKeyEntropy(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BackupKeyEntropy(const BackupKeyEntropy& from); - BackupKeyEntropy(BackupKeyEntropy&& from) noexcept - : BackupKeyEntropy() { - *this = ::std::move(from); - } - - inline BackupKeyEntropy& operator=(const BackupKeyEntropy& from) { - CopyFrom(from); - return *this; - } - inline BackupKeyEntropy& operator=(BackupKeyEntropy&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const BackupKeyEntropy& default_instance() { - return *internal_default_instance(); - } - enum DataCase { - kNonce = 1, - kRawMessage = 2, - DATA_NOT_SET = 0, - }; - - static inline const BackupKeyEntropy* internal_default_instance() { - return reinterpret_cast( - &_BackupKeyEntropy_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(BackupKeyEntropy& a, BackupKeyEntropy& b) { - a.Swap(&b); - } - inline void Swap(BackupKeyEntropy* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BackupKeyEntropy* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline BackupKeyEntropy* New() const final { - return CreateMaybeMessage(nullptr); - } - - BackupKeyEntropy* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const BackupKeyEntropy& from); - void MergeFrom(const BackupKeyEntropy& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::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(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(BackupKeyEntropy* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "backup.BackupKeyEntropy"; - } - protected: - explicit BackupKeyEntropy(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_backup_2eproto_metadata_getter(kIndexInFileMessages); - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNonceFieldNumber = 1, - kRawMessageFieldNumber = 2, - }; - // bytes nonce = 1; - bool has_nonce() const; - private: - bool _internal_has_nonce() const; - public: - void clear_nonce(); - const std::string& nonce() const; - void set_nonce(const std::string& value); - void set_nonce(std::string&& value); - void set_nonce(const char* value); - void set_nonce(const void* value, size_t size); - std::string* mutable_nonce(); - std::string* release_nonce(); - void set_allocated_nonce(std::string* nonce); - private: - const std::string& _internal_nonce() const; - void _internal_set_nonce(const std::string& value); - std::string* _internal_mutable_nonce(); - public: - - // bytes rawMessage = 2; - bool has_rawmessage() const; - private: - bool _internal_has_rawmessage() const; - public: - void clear_rawmessage(); - const std::string& rawmessage() const; - void set_rawmessage(const std::string& value); - void set_rawmessage(std::string&& value); - void set_rawmessage(const char* value); - void set_rawmessage(const void* value, size_t size); - std::string* mutable_rawmessage(); - std::string* release_rawmessage(); - void set_allocated_rawmessage(std::string* rawmessage); - private: - const std::string& _internal_rawmessage() const; - void _internal_set_rawmessage(const std::string& value); - std::string* _internal_mutable_rawmessage(); - public: - - void clear_data(); - DataCase data_case() const; - // @@protoc_insertion_point(class_scope:backup.BackupKeyEntropy) - private: - class _Internal; - void set_has_nonce(); - void set_has_rawmessage(); - - inline bool has_data() const; - inline void clear_has_data(); - - 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 nonce_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr rawmessage_; - } data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_backup_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateNewBackupRequest PROTOBUF_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(const CreateNewBackupRequest& from); - CreateNewBackupRequest(CreateNewBackupRequest&& from) noexcept - : CreateNewBackupRequest() { - *this = ::std::move(from); - } - - inline CreateNewBackupRequest& operator=(const CreateNewBackupRequest& from) { - CopyFrom(from); - return *this; - } - inline CreateNewBackupRequest& operator=(CreateNewBackupRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const CreateNewBackupRequest& default_instance() { - return *internal_default_instance(); - } - enum DataCase { - kAuthenticationRequestData = 1, - kBackupKeyEntropy = 2, - kNewCompactionHash = 3, - kNewCompactionChunk = 4, - DATA_NOT_SET = 0, - }; - - static inline const CreateNewBackupRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateNewBackupRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(CreateNewBackupRequest& a, CreateNewBackupRequest& b) { - a.Swap(&b); - } - inline void Swap(CreateNewBackupRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateNewBackupRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CreateNewBackupRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateNewBackupRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const CreateNewBackupRequest& from); - void MergeFrom(const CreateNewBackupRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::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(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateNewBackupRequest* other); - 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); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_backup_2eproto_metadata_getter(kIndexInFileMessages); - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAuthenticationRequestDataFieldNumber = 1, - kBackupKeyEntropyFieldNumber = 2, - kNewCompactionHashFieldNumber = 3, - kNewCompactionChunkFieldNumber = 4, - }; - // .backup.FullAuthenticationRequestData authenticationRequestData = 1; - bool has_authenticationrequestdata() const; - private: - bool _internal_has_authenticationrequestdata() const; - public: - void clear_authenticationrequestdata(); - const ::backup::FullAuthenticationRequestData& authenticationrequestdata() const; - ::backup::FullAuthenticationRequestData* release_authenticationrequestdata(); - ::backup::FullAuthenticationRequestData* mutable_authenticationrequestdata(); - void set_allocated_authenticationrequestdata(::backup::FullAuthenticationRequestData* authenticationrequestdata); - private: - const ::backup::FullAuthenticationRequestData& _internal_authenticationrequestdata() const; - ::backup::FullAuthenticationRequestData* _internal_mutable_authenticationrequestdata(); - public: - void unsafe_arena_set_allocated_authenticationrequestdata( - ::backup::FullAuthenticationRequestData* authenticationrequestdata); - ::backup::FullAuthenticationRequestData* unsafe_arena_release_authenticationrequestdata(); - - // .backup.BackupKeyEntropy backupKeyEntropy = 2; - bool has_backupkeyentropy() const; - private: - bool _internal_has_backupkeyentropy() const; - public: - void clear_backupkeyentropy(); - const ::backup::BackupKeyEntropy& backupkeyentropy() const; - ::backup::BackupKeyEntropy* release_backupkeyentropy(); - ::backup::BackupKeyEntropy* mutable_backupkeyentropy(); - void set_allocated_backupkeyentropy(::backup::BackupKeyEntropy* backupkeyentropy); - private: - const ::backup::BackupKeyEntropy& _internal_backupkeyentropy() const; - ::backup::BackupKeyEntropy* _internal_mutable_backupkeyentropy(); - public: - void unsafe_arena_set_allocated_backupkeyentropy( - ::backup::BackupKeyEntropy* backupkeyentropy); - ::backup::BackupKeyEntropy* unsafe_arena_release_backupkeyentropy(); - - // bytes newCompactionHash = 3; - bool has_newcompactionhash() const; - private: - bool _internal_has_newcompactionhash() const; - 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); - std::string* mutable_newcompactionhash(); - 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); - std::string* _internal_mutable_newcompactionhash(); - public: - - // bytes newCompactionChunk = 4; - bool has_newcompactionchunk() const; - private: - bool _internal_has_newcompactionchunk() const; - 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); - std::string* mutable_newcompactionchunk(); - 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); - std::string* _internal_mutable_newcompactionchunk(); - public: - - void clear_data(); - DataCase data_case() const; - // @@protoc_insertion_point(class_scope:backup.CreateNewBackupRequest) - private: - class _Internal; - void set_has_authenticationrequestdata(); - void set_has_backupkeyentropy(); - void set_has_newcompactionhash(); - void set_has_newcompactionchunk(); - - inline bool has_data() const; - inline void clear_has_data(); - - 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_; - ::backup::FullAuthenticationRequestData* authenticationrequestdata_; - ::backup::BackupKeyEntropy* backupkeyentropy_; - ::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]; - - friend struct ::TableStruct_backup_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateNewBackupResponse PROTOBUF_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(const CreateNewBackupResponse& from); - CreateNewBackupResponse(CreateNewBackupResponse&& from) noexcept - : CreateNewBackupResponse() { - *this = ::std::move(from); - } - - inline CreateNewBackupResponse& operator=(const CreateNewBackupResponse& from) { - CopyFrom(from); - return *this; - } - inline CreateNewBackupResponse& operator=(CreateNewBackupResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const CreateNewBackupResponse& default_instance() { - return *internal_default_instance(); - } - enum DataCase { - kAuthenticationResponseData = 1, - kEntropyValid = 2, - kBackupID = 3, - DATA_NOT_SET = 0, - }; - - static inline const CreateNewBackupResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateNewBackupResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(CreateNewBackupResponse& a, CreateNewBackupResponse& b) { - a.Swap(&b); - } - inline void Swap(CreateNewBackupResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateNewBackupResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CreateNewBackupResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateNewBackupResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const CreateNewBackupResponse& from); - void MergeFrom(const CreateNewBackupResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::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(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateNewBackupResponse* other); - 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); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_backup_2eproto_metadata_getter(kIndexInFileMessages); - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAuthenticationResponseDataFieldNumber = 1, - kEntropyValidFieldNumber = 2, - kBackupIDFieldNumber = 3, - }; - // .backup.FullAuthenticationResponseData authenticationResponseData = 1; - bool has_authenticationresponsedata() const; - private: - bool _internal_has_authenticationresponsedata() const; - public: - void clear_authenticationresponsedata(); - const ::backup::FullAuthenticationResponseData& authenticationresponsedata() const; - ::backup::FullAuthenticationResponseData* release_authenticationresponsedata(); - ::backup::FullAuthenticationResponseData* mutable_authenticationresponsedata(); - void set_allocated_authenticationresponsedata(::backup::FullAuthenticationResponseData* authenticationresponsedata); - private: - const ::backup::FullAuthenticationResponseData& _internal_authenticationresponsedata() const; - ::backup::FullAuthenticationResponseData* _internal_mutable_authenticationresponsedata(); - public: - void unsafe_arena_set_allocated_authenticationresponsedata( - ::backup::FullAuthenticationResponseData* authenticationresponsedata); - ::backup::FullAuthenticationResponseData* unsafe_arena_release_authenticationresponsedata(); - - // bool entropyValid = 2; - bool has_entropyvalid() const; - private: - bool _internal_has_entropyvalid() const; - public: - void clear_entropyvalid(); - bool entropyvalid() const; - void set_entropyvalid(bool value); - private: - bool _internal_entropyvalid() const; - void _internal_set_entropyvalid(bool value); - public: - - // string backupID = 3; - bool has_backupid() const; - private: - bool _internal_has_backupid() const; - 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); - std::string* mutable_backupid(); - 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); - std::string* _internal_mutable_backupid(); - public: - - void clear_data(); - DataCase data_case() const; - // @@protoc_insertion_point(class_scope:backup.CreateNewBackupResponse) - private: - class _Internal; - void set_has_authenticationresponsedata(); - void set_has_entropyvalid(); - void set_has_backupid(); - - inline bool has_data() const; - inline void clear_has_data(); - - 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_; - ::backup::FullAuthenticationResponseData* authenticationresponsedata_; - bool entropyvalid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr backupid_; - } data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_backup_2eproto; -}; -// ------------------------------------------------------------------- - -class SendLogRequest PROTOBUF_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(const SendLogRequest& from); - SendLogRequest(SendLogRequest&& from) noexcept - : SendLogRequest() { - *this = ::std::move(from); - } - - inline SendLogRequest& operator=(const SendLogRequest& from) { - CopyFrom(from); - return *this; - } - inline SendLogRequest& operator=(SendLogRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const SendLogRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SendLogRequest* internal_default_instance() { - return reinterpret_cast( - &_SendLogRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(SendLogRequest& a, SendLogRequest& b) { - a.Swap(&b); - } - inline void Swap(SendLogRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SendLogRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline SendLogRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - SendLogRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const SendLogRequest& from); - void MergeFrom(const SendLogRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::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(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SendLogRequest* other); - 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); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_backup_2eproto_metadata_getter(kIndexInFileMessages); - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kLogDataFieldNumber = 2, - kAuthenticationDataFieldNumber = 1, - }; - // bytes logData = 2; - 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); - std::string* mutable_logdata(); - 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); - std::string* _internal_mutable_logdata(); - public: - - // .backup.SimpleAuthenticationRequestData authenticationData = 1; - bool has_authenticationdata() const; - private: - bool _internal_has_authenticationdata() const; - public: - void clear_authenticationdata(); - const ::backup::SimpleAuthenticationRequestData& authenticationdata() const; - ::backup::SimpleAuthenticationRequestData* release_authenticationdata(); - ::backup::SimpleAuthenticationRequestData* mutable_authenticationdata(); - void set_allocated_authenticationdata(::backup::SimpleAuthenticationRequestData* authenticationdata); - private: - const ::backup::SimpleAuthenticationRequestData& _internal_authenticationdata() const; - ::backup::SimpleAuthenticationRequestData* _internal_mutable_authenticationdata(); - public: - void unsafe_arena_set_allocated_authenticationdata( - ::backup::SimpleAuthenticationRequestData* authenticationdata); - ::backup::SimpleAuthenticationRequestData* unsafe_arena_release_authenticationdata(); - - // @@protoc_insertion_point(class_scope:backup.SendLogRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logdata_; - ::backup::SimpleAuthenticationRequestData* authenticationdata_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_backup_2eproto; -}; -// ------------------------------------------------------------------- - -class RecoverBackupKeyRequest PROTOBUF_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(const RecoverBackupKeyRequest& from); - RecoverBackupKeyRequest(RecoverBackupKeyRequest&& from) noexcept - : RecoverBackupKeyRequest() { - *this = ::std::move(from); - } - - inline RecoverBackupKeyRequest& operator=(const RecoverBackupKeyRequest& from) { - CopyFrom(from); - return *this; - } - inline RecoverBackupKeyRequest& operator=(RecoverBackupKeyRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const RecoverBackupKeyRequest& default_instance() { - return *internal_default_instance(); - } - static inline const RecoverBackupKeyRequest* internal_default_instance() { - return reinterpret_cast( - &_RecoverBackupKeyRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(RecoverBackupKeyRequest& a, RecoverBackupKeyRequest& b) { - a.Swap(&b); - } - inline void Swap(RecoverBackupKeyRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RecoverBackupKeyRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline RecoverBackupKeyRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - RecoverBackupKeyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const RecoverBackupKeyRequest& from); - void MergeFrom(const RecoverBackupKeyRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::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(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RecoverBackupKeyRequest* other); - 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); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_backup_2eproto_metadata_getter(kIndexInFileMessages); - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAuthenticationDataFieldNumber = 1, - }; - // .backup.FullAuthenticationRequestData authenticationData = 1; - bool has_authenticationdata() const; - private: - bool _internal_has_authenticationdata() const; - public: - void clear_authenticationdata(); - const ::backup::FullAuthenticationRequestData& authenticationdata() const; - ::backup::FullAuthenticationRequestData* release_authenticationdata(); - ::backup::FullAuthenticationRequestData* mutable_authenticationdata(); - void set_allocated_authenticationdata(::backup::FullAuthenticationRequestData* authenticationdata); - private: - const ::backup::FullAuthenticationRequestData& _internal_authenticationdata() const; - ::backup::FullAuthenticationRequestData* _internal_mutable_authenticationdata(); - public: - void unsafe_arena_set_allocated_authenticationdata( - ::backup::FullAuthenticationRequestData* authenticationdata); - ::backup::FullAuthenticationRequestData* unsafe_arena_release_authenticationdata(); - - // @@protoc_insertion_point(class_scope:backup.RecoverBackupKeyRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::backup::FullAuthenticationRequestData* authenticationdata_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_backup_2eproto; -}; -// ------------------------------------------------------------------- - -class RecoverBackupKeyResponse PROTOBUF_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(const RecoverBackupKeyResponse& from); - RecoverBackupKeyResponse(RecoverBackupKeyResponse&& from) noexcept - : RecoverBackupKeyResponse() { - *this = ::std::move(from); - } - - inline RecoverBackupKeyResponse& operator=(const RecoverBackupKeyResponse& from) { - CopyFrom(from); - return *this; - } - inline RecoverBackupKeyResponse& operator=(RecoverBackupKeyResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const RecoverBackupKeyResponse& default_instance() { - return *internal_default_instance(); - } - enum DataCase { - kAuthenticationResponseData = 1, - kBackupKeyEntropy = 2, - kBackupID = 4, - DATA_NOT_SET = 0, - }; - - static inline const RecoverBackupKeyResponse* internal_default_instance() { - return reinterpret_cast( - &_RecoverBackupKeyResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(RecoverBackupKeyResponse& a, RecoverBackupKeyResponse& b) { - a.Swap(&b); - } - inline void Swap(RecoverBackupKeyResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RecoverBackupKeyResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline RecoverBackupKeyResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - RecoverBackupKeyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const RecoverBackupKeyResponse& from); - void MergeFrom(const RecoverBackupKeyResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::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(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RecoverBackupKeyResponse* other); - 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); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_backup_2eproto_metadata_getter(kIndexInFileMessages); - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAuthenticationResponseDataFieldNumber = 1, - kBackupKeyEntropyFieldNumber = 2, - kBackupIDFieldNumber = 4, - }; - // .backup.FullAuthenticationResponseData authenticationResponseData = 1; - bool has_authenticationresponsedata() const; - private: - bool _internal_has_authenticationresponsedata() const; - public: - void clear_authenticationresponsedata(); - const ::backup::FullAuthenticationResponseData& authenticationresponsedata() const; - ::backup::FullAuthenticationResponseData* release_authenticationresponsedata(); - ::backup::FullAuthenticationResponseData* mutable_authenticationresponsedata(); - void set_allocated_authenticationresponsedata(::backup::FullAuthenticationResponseData* authenticationresponsedata); - private: - const ::backup::FullAuthenticationResponseData& _internal_authenticationresponsedata() const; - ::backup::FullAuthenticationResponseData* _internal_mutable_authenticationresponsedata(); - public: - void unsafe_arena_set_allocated_authenticationresponsedata( - ::backup::FullAuthenticationResponseData* authenticationresponsedata); - ::backup::FullAuthenticationResponseData* unsafe_arena_release_authenticationresponsedata(); - - // .backup.BackupKeyEntropy backupKeyEntropy = 2; - bool has_backupkeyentropy() const; - private: - bool _internal_has_backupkeyentropy() const; - public: - void clear_backupkeyentropy(); - const ::backup::BackupKeyEntropy& backupkeyentropy() const; - ::backup::BackupKeyEntropy* release_backupkeyentropy(); - ::backup::BackupKeyEntropy* mutable_backupkeyentropy(); - void set_allocated_backupkeyentropy(::backup::BackupKeyEntropy* backupkeyentropy); - private: - const ::backup::BackupKeyEntropy& _internal_backupkeyentropy() const; - ::backup::BackupKeyEntropy* _internal_mutable_backupkeyentropy(); - public: - void unsafe_arena_set_allocated_backupkeyentropy( - ::backup::BackupKeyEntropy* backupkeyentropy); - ::backup::BackupKeyEntropy* unsafe_arena_release_backupkeyentropy(); - - // string backupID = 4; - bool has_backupid() const; - private: - bool _internal_has_backupid() const; - 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); - std::string* mutable_backupid(); - 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); - std::string* _internal_mutable_backupid(); - public: - - void clear_data(); - DataCase data_case() const; - // @@protoc_insertion_point(class_scope:backup.RecoverBackupKeyResponse) - private: - class _Internal; - void set_has_authenticationresponsedata(); - void set_has_backupkeyentropy(); - void set_has_backupid(); - - inline bool has_data() const; - inline void clear_has_data(); - - 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_; - ::backup::FullAuthenticationResponseData* authenticationresponsedata_; - ::backup::BackupKeyEntropy* backupkeyentropy_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr backupid_; - } data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_backup_2eproto; -}; -// ------------------------------------------------------------------- - -class PullBackupRequest PROTOBUF_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(const PullBackupRequest& from); - PullBackupRequest(PullBackupRequest&& from) noexcept - : PullBackupRequest() { - *this = ::std::move(from); - } - - inline PullBackupRequest& operator=(const PullBackupRequest& from) { - CopyFrom(from); - return *this; - } - inline PullBackupRequest& operator=(PullBackupRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PullBackupRequest& default_instance() { - return *internal_default_instance(); - } - static inline const PullBackupRequest* internal_default_instance() { - return reinterpret_cast( - &_PullBackupRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(PullBackupRequest& a, PullBackupRequest& b) { - a.Swap(&b); - } - inline void Swap(PullBackupRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PullBackupRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PullBackupRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - PullBackupRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PullBackupRequest& from); - void MergeFrom(const PullBackupRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::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(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PullBackupRequest* other); - 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); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_backup_2eproto_metadata_getter(kIndexInFileMessages); - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAuthenticationDataFieldNumber = 1, - }; - // .backup.SimpleAuthenticationRequestData authenticationData = 1; - bool has_authenticationdata() const; - private: - bool _internal_has_authenticationdata() const; - public: - void clear_authenticationdata(); - const ::backup::SimpleAuthenticationRequestData& authenticationdata() const; - ::backup::SimpleAuthenticationRequestData* release_authenticationdata(); - ::backup::SimpleAuthenticationRequestData* mutable_authenticationdata(); - void set_allocated_authenticationdata(::backup::SimpleAuthenticationRequestData* authenticationdata); - private: - const ::backup::SimpleAuthenticationRequestData& _internal_authenticationdata() const; - ::backup::SimpleAuthenticationRequestData* _internal_mutable_authenticationdata(); - public: - void unsafe_arena_set_allocated_authenticationdata( - ::backup::SimpleAuthenticationRequestData* authenticationdata); - ::backup::SimpleAuthenticationRequestData* unsafe_arena_release_authenticationdata(); - - // @@protoc_insertion_point(class_scope:backup.PullBackupRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::backup::SimpleAuthenticationRequestData* authenticationdata_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_backup_2eproto; -}; -// ------------------------------------------------------------------- - -class PullBackupResponse PROTOBUF_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(const PullBackupResponse& from); - PullBackupResponse(PullBackupResponse&& from) noexcept - : PullBackupResponse() { - *this = ::std::move(from); - } - - inline PullBackupResponse& operator=(const PullBackupResponse& from) { - CopyFrom(from); - return *this; - } - inline PullBackupResponse& operator=(PullBackupResponse&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PullBackupResponse& default_instance() { - return *internal_default_instance(); - } - enum DataCase { - kCompactionChunk = 1, - kLogChunk = 2, - DATA_NOT_SET = 0, - }; - - static inline const PullBackupResponse* internal_default_instance() { - return reinterpret_cast( - &_PullBackupResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(PullBackupResponse& a, PullBackupResponse& b) { - a.Swap(&b); - } - inline void Swap(PullBackupResponse* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PullBackupResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PullBackupResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - PullBackupResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PullBackupResponse& from); - void MergeFrom(const PullBackupResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::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(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PullBackupResponse* other); - 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); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_backup_2eproto_metadata_getter(kIndexInFileMessages); - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCompactionChunkFieldNumber = 1, - kLogChunkFieldNumber = 2, - }; - // bytes compactionChunk = 1; - bool has_compactionchunk() const; - private: - bool _internal_has_compactionchunk() const; - 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); - std::string* mutable_compactionchunk(); - 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); - std::string* _internal_mutable_compactionchunk(); - public: - - // bytes logChunk = 2; - bool has_logchunk() const; - private: - bool _internal_has_logchunk() const; - 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); - std::string* mutable_logchunk(); - 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); - std::string* _internal_mutable_logchunk(); - public: - - void clear_data(); - DataCase data_case() const; - // @@protoc_insertion_point(class_scope:backup.PullBackupResponse) - private: - class _Internal; - void set_has_compactionchunk(); - void set_has_logchunk(); - - inline bool has_data() const; - inline void clear_has_data(); - - 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 compactionchunk_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logchunk_; - } data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_backup_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// PakeRegistrationRequestAndUserID - -// string userID = 1; -inline void PakeRegistrationRequestAndUserID::clear_userid() { - userid_.ClearToEmpty(); -} -inline const std::string& PakeRegistrationRequestAndUserID::userid() const { - // @@protoc_insertion_point(field_get:backup.PakeRegistrationRequestAndUserID.userID) - return _internal_userid(); -} -inline void PakeRegistrationRequestAndUserID::set_userid(const std::string& value) { - _internal_set_userid(value); - // @@protoc_insertion_point(field_set:backup.PakeRegistrationRequestAndUserID.userID) -} -inline std::string* PakeRegistrationRequestAndUserID::mutable_userid() { - // @@protoc_insertion_point(field_mutable:backup.PakeRegistrationRequestAndUserID.userID) - return _internal_mutable_userid(); -} -inline const std::string& PakeRegistrationRequestAndUserID::_internal_userid() const { - return userid_.Get(); -} -inline void PakeRegistrationRequestAndUserID::_internal_set_userid(const std::string& value) { - - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PakeRegistrationRequestAndUserID::set_userid(std::string&& value) { - - userid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.PakeRegistrationRequestAndUserID.userID) -} -inline void PakeRegistrationRequestAndUserID::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.PakeRegistrationRequestAndUserID.userID) -} -inline void PakeRegistrationRequestAndUserID::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.PakeRegistrationRequestAndUserID.userID) -} -inline std::string* PakeRegistrationRequestAndUserID::_internal_mutable_userid() { - - return userid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PakeRegistrationRequestAndUserID::release_userid() { - // @@protoc_insertion_point(field_release:backup.PakeRegistrationRequestAndUserID.userID) - return userid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PakeRegistrationRequestAndUserID::set_allocated_userid(std::string* userid) { - if (userid != nullptr) { - - } else { - - } - userid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), userid, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:backup.PakeRegistrationRequestAndUserID.userID) -} - -// bytes pakeRegistrationRequest = 2; -inline void PakeRegistrationRequestAndUserID::clear_pakeregistrationrequest() { - pakeregistrationrequest_.ClearToEmpty(); -} -inline const std::string& PakeRegistrationRequestAndUserID::pakeregistrationrequest() const { - // @@protoc_insertion_point(field_get:backup.PakeRegistrationRequestAndUserID.pakeRegistrationRequest) - return _internal_pakeregistrationrequest(); -} -inline void PakeRegistrationRequestAndUserID::set_pakeregistrationrequest(const std::string& value) { - _internal_set_pakeregistrationrequest(value); - // @@protoc_insertion_point(field_set:backup.PakeRegistrationRequestAndUserID.pakeRegistrationRequest) -} -inline std::string* PakeRegistrationRequestAndUserID::mutable_pakeregistrationrequest() { - // @@protoc_insertion_point(field_mutable:backup.PakeRegistrationRequestAndUserID.pakeRegistrationRequest) - return _internal_mutable_pakeregistrationrequest(); -} -inline const std::string& PakeRegistrationRequestAndUserID::_internal_pakeregistrationrequest() const { - return pakeregistrationrequest_.Get(); -} -inline void PakeRegistrationRequestAndUserID::_internal_set_pakeregistrationrequest(const std::string& value) { - - pakeregistrationrequest_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PakeRegistrationRequestAndUserID::set_pakeregistrationrequest(std::string&& value) { - - pakeregistrationrequest_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.PakeRegistrationRequestAndUserID.pakeRegistrationRequest) -} -inline void PakeRegistrationRequestAndUserID::set_pakeregistrationrequest(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - pakeregistrationrequest_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.PakeRegistrationRequestAndUserID.pakeRegistrationRequest) -} -inline void PakeRegistrationRequestAndUserID::set_pakeregistrationrequest(const void* value, - size_t size) { - - pakeregistrationrequest_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.PakeRegistrationRequestAndUserID.pakeRegistrationRequest) -} -inline std::string* PakeRegistrationRequestAndUserID::_internal_mutable_pakeregistrationrequest() { - - return pakeregistrationrequest_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PakeRegistrationRequestAndUserID::release_pakeregistrationrequest() { - // @@protoc_insertion_point(field_release:backup.PakeRegistrationRequestAndUserID.pakeRegistrationRequest) - return pakeregistrationrequest_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void PakeRegistrationRequestAndUserID::set_allocated_pakeregistrationrequest(std::string* pakeregistrationrequest) { - if (pakeregistrationrequest != nullptr) { - - } else { - - } - pakeregistrationrequest_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), pakeregistrationrequest, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:backup.PakeRegistrationRequestAndUserID.pakeRegistrationRequest) -} - -// ------------------------------------------------------------------- - -// PakeAuthenticationRequestData - -// .backup.PakeRegistrationRequestAndUserID pakeRegistrationRequestAndUserID = 1; -inline bool PakeAuthenticationRequestData::_internal_has_pakeregistrationrequestanduserid() const { - return data_case() == kPakeRegistrationRequestAndUserID; -} -inline bool PakeAuthenticationRequestData::has_pakeregistrationrequestanduserid() const { - return _internal_has_pakeregistrationrequestanduserid(); -} -inline void PakeAuthenticationRequestData::set_has_pakeregistrationrequestanduserid() { - _oneof_case_[0] = kPakeRegistrationRequestAndUserID; -} -inline void PakeAuthenticationRequestData::clear_pakeregistrationrequestanduserid() { - if (_internal_has_pakeregistrationrequestanduserid()) { - if (GetArena() == nullptr) { - delete data_.pakeregistrationrequestanduserid_; - } - clear_has_data(); - } -} -inline ::backup::PakeRegistrationRequestAndUserID* PakeAuthenticationRequestData::release_pakeregistrationrequestanduserid() { - // @@protoc_insertion_point(field_release:backup.PakeAuthenticationRequestData.pakeRegistrationRequestAndUserID) - if (_internal_has_pakeregistrationrequestanduserid()) { - clear_has_data(); - ::backup::PakeRegistrationRequestAndUserID* temp = data_.pakeregistrationrequestanduserid_; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - data_.pakeregistrationrequestanduserid_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::backup::PakeRegistrationRequestAndUserID& PakeAuthenticationRequestData::_internal_pakeregistrationrequestanduserid() const { - return _internal_has_pakeregistrationrequestanduserid() - ? *data_.pakeregistrationrequestanduserid_ - : reinterpret_cast< ::backup::PakeRegistrationRequestAndUserID&>(::backup::_PakeRegistrationRequestAndUserID_default_instance_); -} -inline const ::backup::PakeRegistrationRequestAndUserID& PakeAuthenticationRequestData::pakeregistrationrequestanduserid() const { - // @@protoc_insertion_point(field_get:backup.PakeAuthenticationRequestData.pakeRegistrationRequestAndUserID) - return _internal_pakeregistrationrequestanduserid(); -} -inline ::backup::PakeRegistrationRequestAndUserID* PakeAuthenticationRequestData::unsafe_arena_release_pakeregistrationrequestanduserid() { - // @@protoc_insertion_point(field_unsafe_arena_release:backup.PakeAuthenticationRequestData.pakeRegistrationRequestAndUserID) - if (_internal_has_pakeregistrationrequestanduserid()) { - clear_has_data(); - ::backup::PakeRegistrationRequestAndUserID* temp = data_.pakeregistrationrequestanduserid_; - data_.pakeregistrationrequestanduserid_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void PakeAuthenticationRequestData::unsafe_arena_set_allocated_pakeregistrationrequestanduserid(::backup::PakeRegistrationRequestAndUserID* pakeregistrationrequestanduserid) { - clear_data(); - if (pakeregistrationrequestanduserid) { - set_has_pakeregistrationrequestanduserid(); - data_.pakeregistrationrequestanduserid_ = pakeregistrationrequestanduserid; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:backup.PakeAuthenticationRequestData.pakeRegistrationRequestAndUserID) -} -inline ::backup::PakeRegistrationRequestAndUserID* PakeAuthenticationRequestData::_internal_mutable_pakeregistrationrequestanduserid() { - if (!_internal_has_pakeregistrationrequestanduserid()) { - clear_data(); - set_has_pakeregistrationrequestanduserid(); - data_.pakeregistrationrequestanduserid_ = CreateMaybeMessage< ::backup::PakeRegistrationRequestAndUserID >(GetArena()); - } - return data_.pakeregistrationrequestanduserid_; -} -inline ::backup::PakeRegistrationRequestAndUserID* PakeAuthenticationRequestData::mutable_pakeregistrationrequestanduserid() { - // @@protoc_insertion_point(field_mutable:backup.PakeAuthenticationRequestData.pakeRegistrationRequestAndUserID) - return _internal_mutable_pakeregistrationrequestanduserid(); -} - -// bytes pakeRegistrationUpload = 2; -inline bool PakeAuthenticationRequestData::_internal_has_pakeregistrationupload() const { - return data_case() == kPakeRegistrationUpload; -} -inline bool PakeAuthenticationRequestData::has_pakeregistrationupload() const { - return _internal_has_pakeregistrationupload(); -} -inline void PakeAuthenticationRequestData::set_has_pakeregistrationupload() { - _oneof_case_[0] = kPakeRegistrationUpload; -} -inline void PakeAuthenticationRequestData::clear_pakeregistrationupload() { - if (_internal_has_pakeregistrationupload()) { - data_.pakeregistrationupload_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - clear_has_data(); - } -} -inline const std::string& PakeAuthenticationRequestData::pakeregistrationupload() const { - // @@protoc_insertion_point(field_get:backup.PakeAuthenticationRequestData.pakeRegistrationUpload) - return _internal_pakeregistrationupload(); -} -inline void PakeAuthenticationRequestData::set_pakeregistrationupload(const std::string& value) { - _internal_set_pakeregistrationupload(value); - // @@protoc_insertion_point(field_set:backup.PakeAuthenticationRequestData.pakeRegistrationUpload) -} -inline std::string* PakeAuthenticationRequestData::mutable_pakeregistrationupload() { - // @@protoc_insertion_point(field_mutable:backup.PakeAuthenticationRequestData.pakeRegistrationUpload) - return _internal_mutable_pakeregistrationupload(); -} -inline const std::string& PakeAuthenticationRequestData::_internal_pakeregistrationupload() const { - if (_internal_has_pakeregistrationupload()) { - return data_.pakeregistrationupload_.Get(); - } - return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); -} -inline void PakeAuthenticationRequestData::_internal_set_pakeregistrationupload(const std::string& value) { - if (!_internal_has_pakeregistrationupload()) { - clear_data(); - set_has_pakeregistrationupload(); - data_.pakeregistrationupload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakeregistrationupload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PakeAuthenticationRequestData::set_pakeregistrationupload(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.PakeAuthenticationRequestData.pakeRegistrationUpload) - if (!_internal_has_pakeregistrationupload()) { - clear_data(); - set_has_pakeregistrationupload(); - data_.pakeregistrationupload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakeregistrationupload_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.PakeAuthenticationRequestData.pakeRegistrationUpload) -} -inline void PakeAuthenticationRequestData::set_pakeregistrationupload(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_pakeregistrationupload()) { - clear_data(); - set_has_pakeregistrationupload(); - data_.pakeregistrationupload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakeregistrationupload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.PakeAuthenticationRequestData.pakeRegistrationUpload) -} -inline void PakeAuthenticationRequestData::set_pakeregistrationupload(const void* value, - size_t size) { - if (!_internal_has_pakeregistrationupload()) { - clear_data(); - set_has_pakeregistrationupload(); - data_.pakeregistrationupload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakeregistrationupload_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.PakeAuthenticationRequestData.pakeRegistrationUpload) -} -inline std::string* PakeAuthenticationRequestData::_internal_mutable_pakeregistrationupload() { - if (!_internal_has_pakeregistrationupload()) { - clear_data(); - set_has_pakeregistrationupload(); - data_.pakeregistrationupload_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - return data_.pakeregistrationupload_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PakeAuthenticationRequestData::release_pakeregistrationupload() { - // @@protoc_insertion_point(field_release:backup.PakeAuthenticationRequestData.pakeRegistrationUpload) - if (_internal_has_pakeregistrationupload()) { - clear_has_data(); - return data_.pakeregistrationupload_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - } else { - return nullptr; - } -} -inline void PakeAuthenticationRequestData::set_allocated_pakeregistrationupload(std::string* pakeregistrationupload) { - if (has_data()) { - clear_data(); - } - if (pakeregistrationupload != nullptr) { - set_has_pakeregistrationupload(); - data_.pakeregistrationupload_.UnsafeSetDefault(pakeregistrationupload); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(pakeregistrationupload); - } - } - // @@protoc_insertion_point(field_set_allocated:backup.PakeAuthenticationRequestData.pakeRegistrationUpload) -} - -// bytes pakeCredentialRequest = 3; -inline bool PakeAuthenticationRequestData::_internal_has_pakecredentialrequest() const { - return data_case() == kPakeCredentialRequest; -} -inline bool PakeAuthenticationRequestData::has_pakecredentialrequest() const { - return _internal_has_pakecredentialrequest(); -} -inline void PakeAuthenticationRequestData::set_has_pakecredentialrequest() { - _oneof_case_[0] = kPakeCredentialRequest; -} -inline void PakeAuthenticationRequestData::clear_pakecredentialrequest() { - if (_internal_has_pakecredentialrequest()) { - data_.pakecredentialrequest_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - clear_has_data(); - } -} -inline const std::string& PakeAuthenticationRequestData::pakecredentialrequest() const { - // @@protoc_insertion_point(field_get:backup.PakeAuthenticationRequestData.pakeCredentialRequest) - return _internal_pakecredentialrequest(); -} -inline void PakeAuthenticationRequestData::set_pakecredentialrequest(const std::string& value) { - _internal_set_pakecredentialrequest(value); - // @@protoc_insertion_point(field_set:backup.PakeAuthenticationRequestData.pakeCredentialRequest) -} -inline std::string* PakeAuthenticationRequestData::mutable_pakecredentialrequest() { - // @@protoc_insertion_point(field_mutable:backup.PakeAuthenticationRequestData.pakeCredentialRequest) - return _internal_mutable_pakecredentialrequest(); -} -inline const std::string& PakeAuthenticationRequestData::_internal_pakecredentialrequest() const { - if (_internal_has_pakecredentialrequest()) { - return data_.pakecredentialrequest_.Get(); - } - return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); -} -inline void PakeAuthenticationRequestData::_internal_set_pakecredentialrequest(const std::string& value) { - if (!_internal_has_pakecredentialrequest()) { - clear_data(); - set_has_pakecredentialrequest(); - data_.pakecredentialrequest_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakecredentialrequest_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PakeAuthenticationRequestData::set_pakecredentialrequest(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.PakeAuthenticationRequestData.pakeCredentialRequest) - if (!_internal_has_pakecredentialrequest()) { - clear_data(); - set_has_pakecredentialrequest(); - data_.pakecredentialrequest_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakecredentialrequest_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.PakeAuthenticationRequestData.pakeCredentialRequest) -} -inline void PakeAuthenticationRequestData::set_pakecredentialrequest(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_pakecredentialrequest()) { - clear_data(); - set_has_pakecredentialrequest(); - data_.pakecredentialrequest_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakecredentialrequest_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.PakeAuthenticationRequestData.pakeCredentialRequest) -} -inline void PakeAuthenticationRequestData::set_pakecredentialrequest(const void* value, - size_t size) { - if (!_internal_has_pakecredentialrequest()) { - clear_data(); - set_has_pakecredentialrequest(); - data_.pakecredentialrequest_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakecredentialrequest_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.PakeAuthenticationRequestData.pakeCredentialRequest) -} -inline std::string* PakeAuthenticationRequestData::_internal_mutable_pakecredentialrequest() { - if (!_internal_has_pakecredentialrequest()) { - clear_data(); - set_has_pakecredentialrequest(); - data_.pakecredentialrequest_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - return data_.pakecredentialrequest_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PakeAuthenticationRequestData::release_pakecredentialrequest() { - // @@protoc_insertion_point(field_release:backup.PakeAuthenticationRequestData.pakeCredentialRequest) - if (_internal_has_pakecredentialrequest()) { - clear_has_data(); - return data_.pakecredentialrequest_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - } else { - return nullptr; - } -} -inline void PakeAuthenticationRequestData::set_allocated_pakecredentialrequest(std::string* pakecredentialrequest) { - if (has_data()) { - clear_data(); - } - if (pakecredentialrequest != nullptr) { - set_has_pakecredentialrequest(); - data_.pakecredentialrequest_.UnsafeSetDefault(pakecredentialrequest); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(pakecredentialrequest); - } - } - // @@protoc_insertion_point(field_set_allocated:backup.PakeAuthenticationRequestData.pakeCredentialRequest) -} - -// bytes pakeCredentialFinalization = 4; -inline bool PakeAuthenticationRequestData::_internal_has_pakecredentialfinalization() const { - return data_case() == kPakeCredentialFinalization; -} -inline bool PakeAuthenticationRequestData::has_pakecredentialfinalization() const { - return _internal_has_pakecredentialfinalization(); -} -inline void PakeAuthenticationRequestData::set_has_pakecredentialfinalization() { - _oneof_case_[0] = kPakeCredentialFinalization; -} -inline void PakeAuthenticationRequestData::clear_pakecredentialfinalization() { - if (_internal_has_pakecredentialfinalization()) { - data_.pakecredentialfinalization_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - clear_has_data(); - } -} -inline const std::string& PakeAuthenticationRequestData::pakecredentialfinalization() const { - // @@protoc_insertion_point(field_get:backup.PakeAuthenticationRequestData.pakeCredentialFinalization) - return _internal_pakecredentialfinalization(); -} -inline void PakeAuthenticationRequestData::set_pakecredentialfinalization(const std::string& value) { - _internal_set_pakecredentialfinalization(value); - // @@protoc_insertion_point(field_set:backup.PakeAuthenticationRequestData.pakeCredentialFinalization) -} -inline std::string* PakeAuthenticationRequestData::mutable_pakecredentialfinalization() { - // @@protoc_insertion_point(field_mutable:backup.PakeAuthenticationRequestData.pakeCredentialFinalization) - return _internal_mutable_pakecredentialfinalization(); -} -inline const std::string& PakeAuthenticationRequestData::_internal_pakecredentialfinalization() const { - if (_internal_has_pakecredentialfinalization()) { - return data_.pakecredentialfinalization_.Get(); - } - return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); -} -inline void PakeAuthenticationRequestData::_internal_set_pakecredentialfinalization(const std::string& value) { - if (!_internal_has_pakecredentialfinalization()) { - clear_data(); - set_has_pakecredentialfinalization(); - data_.pakecredentialfinalization_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakecredentialfinalization_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PakeAuthenticationRequestData::set_pakecredentialfinalization(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.PakeAuthenticationRequestData.pakeCredentialFinalization) - if (!_internal_has_pakecredentialfinalization()) { - clear_data(); - set_has_pakecredentialfinalization(); - data_.pakecredentialfinalization_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakecredentialfinalization_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.PakeAuthenticationRequestData.pakeCredentialFinalization) -} -inline void PakeAuthenticationRequestData::set_pakecredentialfinalization(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_pakecredentialfinalization()) { - clear_data(); - set_has_pakecredentialfinalization(); - data_.pakecredentialfinalization_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakecredentialfinalization_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.PakeAuthenticationRequestData.pakeCredentialFinalization) -} -inline void PakeAuthenticationRequestData::set_pakecredentialfinalization(const void* value, - size_t size) { - if (!_internal_has_pakecredentialfinalization()) { - clear_data(); - set_has_pakecredentialfinalization(); - data_.pakecredentialfinalization_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakecredentialfinalization_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.PakeAuthenticationRequestData.pakeCredentialFinalization) -} -inline std::string* PakeAuthenticationRequestData::_internal_mutable_pakecredentialfinalization() { - if (!_internal_has_pakecredentialfinalization()) { - clear_data(); - set_has_pakecredentialfinalization(); - data_.pakecredentialfinalization_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - return data_.pakecredentialfinalization_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PakeAuthenticationRequestData::release_pakecredentialfinalization() { - // @@protoc_insertion_point(field_release:backup.PakeAuthenticationRequestData.pakeCredentialFinalization) - if (_internal_has_pakecredentialfinalization()) { - clear_has_data(); - return data_.pakecredentialfinalization_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - } else { - return nullptr; - } -} -inline void PakeAuthenticationRequestData::set_allocated_pakecredentialfinalization(std::string* pakecredentialfinalization) { - if (has_data()) { - clear_data(); - } - if (pakecredentialfinalization != nullptr) { - set_has_pakecredentialfinalization(); - data_.pakecredentialfinalization_.UnsafeSetDefault(pakecredentialfinalization); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(pakecredentialfinalization); - } - } - // @@protoc_insertion_point(field_set_allocated:backup.PakeAuthenticationRequestData.pakeCredentialFinalization) -} - -// bytes pakeClientMAC = 5; -inline bool PakeAuthenticationRequestData::_internal_has_pakeclientmac() const { - return data_case() == kPakeClientMAC; -} -inline bool PakeAuthenticationRequestData::has_pakeclientmac() const { - return _internal_has_pakeclientmac(); -} -inline void PakeAuthenticationRequestData::set_has_pakeclientmac() { - _oneof_case_[0] = kPakeClientMAC; -} -inline void PakeAuthenticationRequestData::clear_pakeclientmac() { - if (_internal_has_pakeclientmac()) { - data_.pakeclientmac_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - clear_has_data(); - } -} -inline const std::string& PakeAuthenticationRequestData::pakeclientmac() const { - // @@protoc_insertion_point(field_get:backup.PakeAuthenticationRequestData.pakeClientMAC) - return _internal_pakeclientmac(); -} -inline void PakeAuthenticationRequestData::set_pakeclientmac(const std::string& value) { - _internal_set_pakeclientmac(value); - // @@protoc_insertion_point(field_set:backup.PakeAuthenticationRequestData.pakeClientMAC) -} -inline std::string* PakeAuthenticationRequestData::mutable_pakeclientmac() { - // @@protoc_insertion_point(field_mutable:backup.PakeAuthenticationRequestData.pakeClientMAC) - return _internal_mutable_pakeclientmac(); -} -inline const std::string& PakeAuthenticationRequestData::_internal_pakeclientmac() const { - if (_internal_has_pakeclientmac()) { - return data_.pakeclientmac_.Get(); - } - return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); -} -inline void PakeAuthenticationRequestData::_internal_set_pakeclientmac(const std::string& value) { - if (!_internal_has_pakeclientmac()) { - clear_data(); - set_has_pakeclientmac(); - data_.pakeclientmac_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakeclientmac_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PakeAuthenticationRequestData::set_pakeclientmac(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.PakeAuthenticationRequestData.pakeClientMAC) - if (!_internal_has_pakeclientmac()) { - clear_data(); - set_has_pakeclientmac(); - data_.pakeclientmac_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakeclientmac_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.PakeAuthenticationRequestData.pakeClientMAC) -} -inline void PakeAuthenticationRequestData::set_pakeclientmac(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_pakeclientmac()) { - clear_data(); - set_has_pakeclientmac(); - data_.pakeclientmac_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakeclientmac_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.PakeAuthenticationRequestData.pakeClientMAC) -} -inline void PakeAuthenticationRequestData::set_pakeclientmac(const void* value, - size_t size) { - if (!_internal_has_pakeclientmac()) { - clear_data(); - set_has_pakeclientmac(); - data_.pakeclientmac_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakeclientmac_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.PakeAuthenticationRequestData.pakeClientMAC) -} -inline std::string* PakeAuthenticationRequestData::_internal_mutable_pakeclientmac() { - if (!_internal_has_pakeclientmac()) { - clear_data(); - set_has_pakeclientmac(); - data_.pakeclientmac_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - return data_.pakeclientmac_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PakeAuthenticationRequestData::release_pakeclientmac() { - // @@protoc_insertion_point(field_release:backup.PakeAuthenticationRequestData.pakeClientMAC) - if (_internal_has_pakeclientmac()) { - clear_has_data(); - return data_.pakeclientmac_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - } else { - return nullptr; - } -} -inline void PakeAuthenticationRequestData::set_allocated_pakeclientmac(std::string* pakeclientmac) { - if (has_data()) { - clear_data(); - } - if (pakeclientmac != nullptr) { - set_has_pakeclientmac(); - data_.pakeclientmac_.UnsafeSetDefault(pakeclientmac); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(pakeclientmac); - } - } - // @@protoc_insertion_point(field_set_allocated:backup.PakeAuthenticationRequestData.pakeClientMAC) -} - -inline bool PakeAuthenticationRequestData::has_data() const { - return data_case() != DATA_NOT_SET; -} -inline void PakeAuthenticationRequestData::clear_has_data() { - _oneof_case_[0] = DATA_NOT_SET; -} -inline PakeAuthenticationRequestData::DataCase PakeAuthenticationRequestData::data_case() const { - return PakeAuthenticationRequestData::DataCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// WalletAuthenticationRequestData - -// string userID = 1; -inline void WalletAuthenticationRequestData::clear_userid() { - userid_.ClearToEmpty(); -} -inline const std::string& WalletAuthenticationRequestData::userid() const { - // @@protoc_insertion_point(field_get:backup.WalletAuthenticationRequestData.userID) - return _internal_userid(); -} -inline void WalletAuthenticationRequestData::set_userid(const std::string& value) { - _internal_set_userid(value); - // @@protoc_insertion_point(field_set:backup.WalletAuthenticationRequestData.userID) -} -inline std::string* WalletAuthenticationRequestData::mutable_userid() { - // @@protoc_insertion_point(field_mutable:backup.WalletAuthenticationRequestData.userID) - return _internal_mutable_userid(); -} -inline const std::string& WalletAuthenticationRequestData::_internal_userid() const { - return userid_.Get(); -} -inline void WalletAuthenticationRequestData::_internal_set_userid(const std::string& value) { - - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void WalletAuthenticationRequestData::set_userid(std::string&& value) { - - userid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.WalletAuthenticationRequestData.userID) -} -inline void WalletAuthenticationRequestData::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.WalletAuthenticationRequestData.userID) -} -inline void WalletAuthenticationRequestData::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.WalletAuthenticationRequestData.userID) -} -inline std::string* WalletAuthenticationRequestData::_internal_mutable_userid() { - - return userid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* WalletAuthenticationRequestData::release_userid() { - // @@protoc_insertion_point(field_release:backup.WalletAuthenticationRequestData.userID) - return userid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void WalletAuthenticationRequestData::set_allocated_userid(std::string* userid) { - if (userid != nullptr) { - - } else { - - } - userid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), userid, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:backup.WalletAuthenticationRequestData.userID) -} - -// string walletAddress = 2; -inline void WalletAuthenticationRequestData::clear_walletaddress() { - walletaddress_.ClearToEmpty(); -} -inline const std::string& WalletAuthenticationRequestData::walletaddress() const { - // @@protoc_insertion_point(field_get:backup.WalletAuthenticationRequestData.walletAddress) - return _internal_walletaddress(); -} -inline void WalletAuthenticationRequestData::set_walletaddress(const std::string& value) { - _internal_set_walletaddress(value); - // @@protoc_insertion_point(field_set:backup.WalletAuthenticationRequestData.walletAddress) -} -inline std::string* WalletAuthenticationRequestData::mutable_walletaddress() { - // @@protoc_insertion_point(field_mutable:backup.WalletAuthenticationRequestData.walletAddress) - return _internal_mutable_walletaddress(); -} -inline const std::string& WalletAuthenticationRequestData::_internal_walletaddress() const { - return walletaddress_.Get(); -} -inline void WalletAuthenticationRequestData::_internal_set_walletaddress(const std::string& value) { - - walletaddress_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void WalletAuthenticationRequestData::set_walletaddress(std::string&& value) { - - walletaddress_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.WalletAuthenticationRequestData.walletAddress) -} -inline void WalletAuthenticationRequestData::set_walletaddress(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - walletaddress_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.WalletAuthenticationRequestData.walletAddress) -} -inline void WalletAuthenticationRequestData::set_walletaddress(const char* value, - size_t size) { - - walletaddress_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.WalletAuthenticationRequestData.walletAddress) -} -inline std::string* WalletAuthenticationRequestData::_internal_mutable_walletaddress() { - - return walletaddress_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* WalletAuthenticationRequestData::release_walletaddress() { - // @@protoc_insertion_point(field_release:backup.WalletAuthenticationRequestData.walletAddress) - return walletaddress_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void WalletAuthenticationRequestData::set_allocated_walletaddress(std::string* walletaddress) { - if (walletaddress != nullptr) { - - } else { - - } - walletaddress_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), walletaddress, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:backup.WalletAuthenticationRequestData.walletAddress) -} - -// bytes signedMessage = 3; -inline void WalletAuthenticationRequestData::clear_signedmessage() { - signedmessage_.ClearToEmpty(); -} -inline const std::string& WalletAuthenticationRequestData::signedmessage() const { - // @@protoc_insertion_point(field_get:backup.WalletAuthenticationRequestData.signedMessage) - return _internal_signedmessage(); -} -inline void WalletAuthenticationRequestData::set_signedmessage(const std::string& value) { - _internal_set_signedmessage(value); - // @@protoc_insertion_point(field_set:backup.WalletAuthenticationRequestData.signedMessage) -} -inline std::string* WalletAuthenticationRequestData::mutable_signedmessage() { - // @@protoc_insertion_point(field_mutable:backup.WalletAuthenticationRequestData.signedMessage) - return _internal_mutable_signedmessage(); -} -inline const std::string& WalletAuthenticationRequestData::_internal_signedmessage() const { - return signedmessage_.Get(); -} -inline void WalletAuthenticationRequestData::_internal_set_signedmessage(const std::string& value) { - - signedmessage_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void WalletAuthenticationRequestData::set_signedmessage(std::string&& value) { - - signedmessage_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.WalletAuthenticationRequestData.signedMessage) -} -inline void WalletAuthenticationRequestData::set_signedmessage(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - signedmessage_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.WalletAuthenticationRequestData.signedMessage) -} -inline void WalletAuthenticationRequestData::set_signedmessage(const void* value, - size_t size) { - - signedmessage_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.WalletAuthenticationRequestData.signedMessage) -} -inline std::string* WalletAuthenticationRequestData::_internal_mutable_signedmessage() { - - return signedmessage_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* WalletAuthenticationRequestData::release_signedmessage() { - // @@protoc_insertion_point(field_release:backup.WalletAuthenticationRequestData.signedMessage) - return signedmessage_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void WalletAuthenticationRequestData::set_allocated_signedmessage(std::string* signedmessage) { - if (signedmessage != nullptr) { - - } else { - - } - signedmessage_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), signedmessage, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:backup.WalletAuthenticationRequestData.signedMessage) -} - -// ------------------------------------------------------------------- - -// FullAuthenticationRequestData - -// .backup.PakeAuthenticationRequestData pakeAuthenticationRequestData = 1; -inline bool FullAuthenticationRequestData::_internal_has_pakeauthenticationrequestdata() const { - return data_case() == kPakeAuthenticationRequestData; -} -inline bool FullAuthenticationRequestData::has_pakeauthenticationrequestdata() const { - return _internal_has_pakeauthenticationrequestdata(); -} -inline void FullAuthenticationRequestData::set_has_pakeauthenticationrequestdata() { - _oneof_case_[0] = kPakeAuthenticationRequestData; -} -inline void FullAuthenticationRequestData::clear_pakeauthenticationrequestdata() { - if (_internal_has_pakeauthenticationrequestdata()) { - if (GetArena() == nullptr) { - delete data_.pakeauthenticationrequestdata_; - } - clear_has_data(); - } -} -inline ::backup::PakeAuthenticationRequestData* FullAuthenticationRequestData::release_pakeauthenticationrequestdata() { - // @@protoc_insertion_point(field_release:backup.FullAuthenticationRequestData.pakeAuthenticationRequestData) - if (_internal_has_pakeauthenticationrequestdata()) { - clear_has_data(); - ::backup::PakeAuthenticationRequestData* temp = data_.pakeauthenticationrequestdata_; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - data_.pakeauthenticationrequestdata_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::backup::PakeAuthenticationRequestData& FullAuthenticationRequestData::_internal_pakeauthenticationrequestdata() const { - return _internal_has_pakeauthenticationrequestdata() - ? *data_.pakeauthenticationrequestdata_ - : reinterpret_cast< ::backup::PakeAuthenticationRequestData&>(::backup::_PakeAuthenticationRequestData_default_instance_); -} -inline const ::backup::PakeAuthenticationRequestData& FullAuthenticationRequestData::pakeauthenticationrequestdata() const { - // @@protoc_insertion_point(field_get:backup.FullAuthenticationRequestData.pakeAuthenticationRequestData) - return _internal_pakeauthenticationrequestdata(); -} -inline ::backup::PakeAuthenticationRequestData* FullAuthenticationRequestData::unsafe_arena_release_pakeauthenticationrequestdata() { - // @@protoc_insertion_point(field_unsafe_arena_release:backup.FullAuthenticationRequestData.pakeAuthenticationRequestData) - if (_internal_has_pakeauthenticationrequestdata()) { - clear_has_data(); - ::backup::PakeAuthenticationRequestData* temp = data_.pakeauthenticationrequestdata_; - data_.pakeauthenticationrequestdata_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void FullAuthenticationRequestData::unsafe_arena_set_allocated_pakeauthenticationrequestdata(::backup::PakeAuthenticationRequestData* pakeauthenticationrequestdata) { - clear_data(); - if (pakeauthenticationrequestdata) { - set_has_pakeauthenticationrequestdata(); - data_.pakeauthenticationrequestdata_ = pakeauthenticationrequestdata; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:backup.FullAuthenticationRequestData.pakeAuthenticationRequestData) -} -inline ::backup::PakeAuthenticationRequestData* FullAuthenticationRequestData::_internal_mutable_pakeauthenticationrequestdata() { - if (!_internal_has_pakeauthenticationrequestdata()) { - clear_data(); - set_has_pakeauthenticationrequestdata(); - data_.pakeauthenticationrequestdata_ = CreateMaybeMessage< ::backup::PakeAuthenticationRequestData >(GetArena()); - } - return data_.pakeauthenticationrequestdata_; -} -inline ::backup::PakeAuthenticationRequestData* FullAuthenticationRequestData::mutable_pakeauthenticationrequestdata() { - // @@protoc_insertion_point(field_mutable:backup.FullAuthenticationRequestData.pakeAuthenticationRequestData) - return _internal_mutable_pakeauthenticationrequestdata(); -} - -// .backup.WalletAuthenticationRequestData walletAuthenticationRequestData = 2; -inline bool FullAuthenticationRequestData::_internal_has_walletauthenticationrequestdata() const { - return data_case() == kWalletAuthenticationRequestData; -} -inline bool FullAuthenticationRequestData::has_walletauthenticationrequestdata() const { - return _internal_has_walletauthenticationrequestdata(); -} -inline void FullAuthenticationRequestData::set_has_walletauthenticationrequestdata() { - _oneof_case_[0] = kWalletAuthenticationRequestData; -} -inline void FullAuthenticationRequestData::clear_walletauthenticationrequestdata() { - if (_internal_has_walletauthenticationrequestdata()) { - if (GetArena() == nullptr) { - delete data_.walletauthenticationrequestdata_; - } - clear_has_data(); - } -} -inline ::backup::WalletAuthenticationRequestData* FullAuthenticationRequestData::release_walletauthenticationrequestdata() { - // @@protoc_insertion_point(field_release:backup.FullAuthenticationRequestData.walletAuthenticationRequestData) - if (_internal_has_walletauthenticationrequestdata()) { - clear_has_data(); - ::backup::WalletAuthenticationRequestData* temp = data_.walletauthenticationrequestdata_; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - data_.walletauthenticationrequestdata_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::backup::WalletAuthenticationRequestData& FullAuthenticationRequestData::_internal_walletauthenticationrequestdata() const { - return _internal_has_walletauthenticationrequestdata() - ? *data_.walletauthenticationrequestdata_ - : reinterpret_cast< ::backup::WalletAuthenticationRequestData&>(::backup::_WalletAuthenticationRequestData_default_instance_); -} -inline const ::backup::WalletAuthenticationRequestData& FullAuthenticationRequestData::walletauthenticationrequestdata() const { - // @@protoc_insertion_point(field_get:backup.FullAuthenticationRequestData.walletAuthenticationRequestData) - return _internal_walletauthenticationrequestdata(); -} -inline ::backup::WalletAuthenticationRequestData* FullAuthenticationRequestData::unsafe_arena_release_walletauthenticationrequestdata() { - // @@protoc_insertion_point(field_unsafe_arena_release:backup.FullAuthenticationRequestData.walletAuthenticationRequestData) - if (_internal_has_walletauthenticationrequestdata()) { - clear_has_data(); - ::backup::WalletAuthenticationRequestData* temp = data_.walletauthenticationrequestdata_; - data_.walletauthenticationrequestdata_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void FullAuthenticationRequestData::unsafe_arena_set_allocated_walletauthenticationrequestdata(::backup::WalletAuthenticationRequestData* walletauthenticationrequestdata) { - clear_data(); - if (walletauthenticationrequestdata) { - set_has_walletauthenticationrequestdata(); - data_.walletauthenticationrequestdata_ = walletauthenticationrequestdata; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:backup.FullAuthenticationRequestData.walletAuthenticationRequestData) -} -inline ::backup::WalletAuthenticationRequestData* FullAuthenticationRequestData::_internal_mutable_walletauthenticationrequestdata() { - if (!_internal_has_walletauthenticationrequestdata()) { - clear_data(); - set_has_walletauthenticationrequestdata(); - data_.walletauthenticationrequestdata_ = CreateMaybeMessage< ::backup::WalletAuthenticationRequestData >(GetArena()); - } - return data_.walletauthenticationrequestdata_; -} -inline ::backup::WalletAuthenticationRequestData* FullAuthenticationRequestData::mutable_walletauthenticationrequestdata() { - // @@protoc_insertion_point(field_mutable:backup.FullAuthenticationRequestData.walletAuthenticationRequestData) - return _internal_mutable_walletauthenticationrequestdata(); -} - -inline bool FullAuthenticationRequestData::has_data() const { - return data_case() != DATA_NOT_SET; -} -inline void FullAuthenticationRequestData::clear_has_data() { - _oneof_case_[0] = DATA_NOT_SET; -} -inline FullAuthenticationRequestData::DataCase FullAuthenticationRequestData::data_case() const { - return FullAuthenticationRequestData::DataCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// WalletAuthenticationResponseData - -// bool success = 1; -inline void WalletAuthenticationResponseData::clear_success() { - success_ = false; -} -inline bool WalletAuthenticationResponseData::_internal_success() const { - return success_; -} -inline bool WalletAuthenticationResponseData::success() const { - // @@protoc_insertion_point(field_get:backup.WalletAuthenticationResponseData.success) - return _internal_success(); -} -inline void WalletAuthenticationResponseData::_internal_set_success(bool value) { - - success_ = value; -} -inline void WalletAuthenticationResponseData::set_success(bool value) { - _internal_set_success(value); - // @@protoc_insertion_point(field_set:backup.WalletAuthenticationResponseData.success) -} - -// ------------------------------------------------------------------- - -// PakeAuthenticationResponseData - -// bytes pakeRegistrationResponse = 1; -inline bool PakeAuthenticationResponseData::_internal_has_pakeregistrationresponse() const { - return data_case() == kPakeRegistrationResponse; -} -inline bool PakeAuthenticationResponseData::has_pakeregistrationresponse() const { - return _internal_has_pakeregistrationresponse(); -} -inline void PakeAuthenticationResponseData::set_has_pakeregistrationresponse() { - _oneof_case_[0] = kPakeRegistrationResponse; -} -inline void PakeAuthenticationResponseData::clear_pakeregistrationresponse() { - if (_internal_has_pakeregistrationresponse()) { - data_.pakeregistrationresponse_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - clear_has_data(); - } -} -inline const std::string& PakeAuthenticationResponseData::pakeregistrationresponse() const { - // @@protoc_insertion_point(field_get:backup.PakeAuthenticationResponseData.pakeRegistrationResponse) - return _internal_pakeregistrationresponse(); -} -inline void PakeAuthenticationResponseData::set_pakeregistrationresponse(const std::string& value) { - _internal_set_pakeregistrationresponse(value); - // @@protoc_insertion_point(field_set:backup.PakeAuthenticationResponseData.pakeRegistrationResponse) -} -inline std::string* PakeAuthenticationResponseData::mutable_pakeregistrationresponse() { - // @@protoc_insertion_point(field_mutable:backup.PakeAuthenticationResponseData.pakeRegistrationResponse) - return _internal_mutable_pakeregistrationresponse(); -} -inline const std::string& PakeAuthenticationResponseData::_internal_pakeregistrationresponse() const { - if (_internal_has_pakeregistrationresponse()) { - return data_.pakeregistrationresponse_.Get(); - } - return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); -} -inline void PakeAuthenticationResponseData::_internal_set_pakeregistrationresponse(const std::string& value) { - if (!_internal_has_pakeregistrationresponse()) { - clear_data(); - set_has_pakeregistrationresponse(); - data_.pakeregistrationresponse_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakeregistrationresponse_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PakeAuthenticationResponseData::set_pakeregistrationresponse(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.PakeAuthenticationResponseData.pakeRegistrationResponse) - if (!_internal_has_pakeregistrationresponse()) { - clear_data(); - set_has_pakeregistrationresponse(); - data_.pakeregistrationresponse_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakeregistrationresponse_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.PakeAuthenticationResponseData.pakeRegistrationResponse) -} -inline void PakeAuthenticationResponseData::set_pakeregistrationresponse(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_pakeregistrationresponse()) { - clear_data(); - set_has_pakeregistrationresponse(); - data_.pakeregistrationresponse_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakeregistrationresponse_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.PakeAuthenticationResponseData.pakeRegistrationResponse) -} -inline void PakeAuthenticationResponseData::set_pakeregistrationresponse(const void* value, - size_t size) { - if (!_internal_has_pakeregistrationresponse()) { - clear_data(); - set_has_pakeregistrationresponse(); - data_.pakeregistrationresponse_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakeregistrationresponse_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.PakeAuthenticationResponseData.pakeRegistrationResponse) -} -inline std::string* PakeAuthenticationResponseData::_internal_mutable_pakeregistrationresponse() { - if (!_internal_has_pakeregistrationresponse()) { - clear_data(); - set_has_pakeregistrationresponse(); - data_.pakeregistrationresponse_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - return data_.pakeregistrationresponse_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PakeAuthenticationResponseData::release_pakeregistrationresponse() { - // @@protoc_insertion_point(field_release:backup.PakeAuthenticationResponseData.pakeRegistrationResponse) - if (_internal_has_pakeregistrationresponse()) { - clear_has_data(); - return data_.pakeregistrationresponse_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - } else { - return nullptr; - } -} -inline void PakeAuthenticationResponseData::set_allocated_pakeregistrationresponse(std::string* pakeregistrationresponse) { - if (has_data()) { - clear_data(); - } - if (pakeregistrationresponse != nullptr) { - set_has_pakeregistrationresponse(); - data_.pakeregistrationresponse_.UnsafeSetDefault(pakeregistrationresponse); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(pakeregistrationresponse); - } - } - // @@protoc_insertion_point(field_set_allocated:backup.PakeAuthenticationResponseData.pakeRegistrationResponse) -} - -// bool pakeRegistrationSuccess = 2; -inline bool PakeAuthenticationResponseData::_internal_has_pakeregistrationsuccess() const { - return data_case() == kPakeRegistrationSuccess; -} -inline bool PakeAuthenticationResponseData::has_pakeregistrationsuccess() const { - return _internal_has_pakeregistrationsuccess(); -} -inline void PakeAuthenticationResponseData::set_has_pakeregistrationsuccess() { - _oneof_case_[0] = kPakeRegistrationSuccess; -} -inline void PakeAuthenticationResponseData::clear_pakeregistrationsuccess() { - if (_internal_has_pakeregistrationsuccess()) { - data_.pakeregistrationsuccess_ = false; - clear_has_data(); - } -} -inline bool PakeAuthenticationResponseData::_internal_pakeregistrationsuccess() const { - if (_internal_has_pakeregistrationsuccess()) { - return data_.pakeregistrationsuccess_; - } - return false; -} -inline void PakeAuthenticationResponseData::_internal_set_pakeregistrationsuccess(bool value) { - if (!_internal_has_pakeregistrationsuccess()) { - clear_data(); - set_has_pakeregistrationsuccess(); - } - data_.pakeregistrationsuccess_ = value; -} -inline bool PakeAuthenticationResponseData::pakeregistrationsuccess() const { - // @@protoc_insertion_point(field_get:backup.PakeAuthenticationResponseData.pakeRegistrationSuccess) - return _internal_pakeregistrationsuccess(); -} -inline void PakeAuthenticationResponseData::set_pakeregistrationsuccess(bool value) { - _internal_set_pakeregistrationsuccess(value); - // @@protoc_insertion_point(field_set:backup.PakeAuthenticationResponseData.pakeRegistrationSuccess) -} - -// bytes pakeCredentialResponse = 3; -inline bool PakeAuthenticationResponseData::_internal_has_pakecredentialresponse() const { - return data_case() == kPakeCredentialResponse; -} -inline bool PakeAuthenticationResponseData::has_pakecredentialresponse() const { - return _internal_has_pakecredentialresponse(); -} -inline void PakeAuthenticationResponseData::set_has_pakecredentialresponse() { - _oneof_case_[0] = kPakeCredentialResponse; -} -inline void PakeAuthenticationResponseData::clear_pakecredentialresponse() { - if (_internal_has_pakecredentialresponse()) { - data_.pakecredentialresponse_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - clear_has_data(); - } -} -inline const std::string& PakeAuthenticationResponseData::pakecredentialresponse() const { - // @@protoc_insertion_point(field_get:backup.PakeAuthenticationResponseData.pakeCredentialResponse) - return _internal_pakecredentialresponse(); -} -inline void PakeAuthenticationResponseData::set_pakecredentialresponse(const std::string& value) { - _internal_set_pakecredentialresponse(value); - // @@protoc_insertion_point(field_set:backup.PakeAuthenticationResponseData.pakeCredentialResponse) -} -inline std::string* PakeAuthenticationResponseData::mutable_pakecredentialresponse() { - // @@protoc_insertion_point(field_mutable:backup.PakeAuthenticationResponseData.pakeCredentialResponse) - return _internal_mutable_pakecredentialresponse(); -} -inline const std::string& PakeAuthenticationResponseData::_internal_pakecredentialresponse() const { - if (_internal_has_pakecredentialresponse()) { - return data_.pakecredentialresponse_.Get(); - } - return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); -} -inline void PakeAuthenticationResponseData::_internal_set_pakecredentialresponse(const std::string& value) { - if (!_internal_has_pakecredentialresponse()) { - clear_data(); - set_has_pakecredentialresponse(); - data_.pakecredentialresponse_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakecredentialresponse_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PakeAuthenticationResponseData::set_pakecredentialresponse(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.PakeAuthenticationResponseData.pakeCredentialResponse) - if (!_internal_has_pakecredentialresponse()) { - clear_data(); - set_has_pakecredentialresponse(); - data_.pakecredentialresponse_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakecredentialresponse_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.PakeAuthenticationResponseData.pakeCredentialResponse) -} -inline void PakeAuthenticationResponseData::set_pakecredentialresponse(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_pakecredentialresponse()) { - clear_data(); - set_has_pakecredentialresponse(); - data_.pakecredentialresponse_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakecredentialresponse_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.PakeAuthenticationResponseData.pakeCredentialResponse) -} -inline void PakeAuthenticationResponseData::set_pakecredentialresponse(const void* value, - size_t size) { - if (!_internal_has_pakecredentialresponse()) { - clear_data(); - set_has_pakecredentialresponse(); - data_.pakecredentialresponse_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakecredentialresponse_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.PakeAuthenticationResponseData.pakeCredentialResponse) -} -inline std::string* PakeAuthenticationResponseData::_internal_mutable_pakecredentialresponse() { - if (!_internal_has_pakecredentialresponse()) { - clear_data(); - set_has_pakecredentialresponse(); - data_.pakecredentialresponse_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - return data_.pakecredentialresponse_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PakeAuthenticationResponseData::release_pakecredentialresponse() { - // @@protoc_insertion_point(field_release:backup.PakeAuthenticationResponseData.pakeCredentialResponse) - if (_internal_has_pakecredentialresponse()) { - clear_has_data(); - return data_.pakecredentialresponse_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - } else { - return nullptr; - } -} -inline void PakeAuthenticationResponseData::set_allocated_pakecredentialresponse(std::string* pakecredentialresponse) { - if (has_data()) { - clear_data(); - } - if (pakecredentialresponse != nullptr) { - set_has_pakecredentialresponse(); - data_.pakecredentialresponse_.UnsafeSetDefault(pakecredentialresponse); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(pakecredentialresponse); - } - } - // @@protoc_insertion_point(field_set_allocated:backup.PakeAuthenticationResponseData.pakeCredentialResponse) -} - -// bytes pakeServerMAC = 4; -inline bool PakeAuthenticationResponseData::_internal_has_pakeservermac() const { - return data_case() == kPakeServerMAC; -} -inline bool PakeAuthenticationResponseData::has_pakeservermac() const { - return _internal_has_pakeservermac(); -} -inline void PakeAuthenticationResponseData::set_has_pakeservermac() { - _oneof_case_[0] = kPakeServerMAC; -} -inline void PakeAuthenticationResponseData::clear_pakeservermac() { - if (_internal_has_pakeservermac()) { - data_.pakeservermac_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - clear_has_data(); - } -} -inline const std::string& PakeAuthenticationResponseData::pakeservermac() const { - // @@protoc_insertion_point(field_get:backup.PakeAuthenticationResponseData.pakeServerMAC) - return _internal_pakeservermac(); -} -inline void PakeAuthenticationResponseData::set_pakeservermac(const std::string& value) { - _internal_set_pakeservermac(value); - // @@protoc_insertion_point(field_set:backup.PakeAuthenticationResponseData.pakeServerMAC) -} -inline std::string* PakeAuthenticationResponseData::mutable_pakeservermac() { - // @@protoc_insertion_point(field_mutable:backup.PakeAuthenticationResponseData.pakeServerMAC) - return _internal_mutable_pakeservermac(); -} -inline const std::string& PakeAuthenticationResponseData::_internal_pakeservermac() const { - if (_internal_has_pakeservermac()) { - return data_.pakeservermac_.Get(); - } - return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); -} -inline void PakeAuthenticationResponseData::_internal_set_pakeservermac(const std::string& value) { - if (!_internal_has_pakeservermac()) { - clear_data(); - set_has_pakeservermac(); - data_.pakeservermac_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakeservermac_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void PakeAuthenticationResponseData::set_pakeservermac(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.PakeAuthenticationResponseData.pakeServerMAC) - if (!_internal_has_pakeservermac()) { - clear_data(); - set_has_pakeservermac(); - data_.pakeservermac_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakeservermac_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.PakeAuthenticationResponseData.pakeServerMAC) -} -inline void PakeAuthenticationResponseData::set_pakeservermac(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_pakeservermac()) { - clear_data(); - set_has_pakeservermac(); - data_.pakeservermac_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakeservermac_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.PakeAuthenticationResponseData.pakeServerMAC) -} -inline void PakeAuthenticationResponseData::set_pakeservermac(const void* value, - size_t size) { - if (!_internal_has_pakeservermac()) { - clear_data(); - set_has_pakeservermac(); - data_.pakeservermac_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - data_.pakeservermac_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.PakeAuthenticationResponseData.pakeServerMAC) -} -inline std::string* PakeAuthenticationResponseData::_internal_mutable_pakeservermac() { - if (!_internal_has_pakeservermac()) { - clear_data(); - set_has_pakeservermac(); - data_.pakeservermac_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - return data_.pakeservermac_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* PakeAuthenticationResponseData::release_pakeservermac() { - // @@protoc_insertion_point(field_release:backup.PakeAuthenticationResponseData.pakeServerMAC) - if (_internal_has_pakeservermac()) { - clear_has_data(); - return data_.pakeservermac_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - } else { - return nullptr; - } -} -inline void PakeAuthenticationResponseData::set_allocated_pakeservermac(std::string* pakeservermac) { - if (has_data()) { - clear_data(); - } - if (pakeservermac != nullptr) { - set_has_pakeservermac(); - data_.pakeservermac_.UnsafeSetDefault(pakeservermac); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); - if (arena != nullptr) { - arena->Own(pakeservermac); - } - } - // @@protoc_insertion_point(field_set_allocated:backup.PakeAuthenticationResponseData.pakeServerMAC) -} - -inline bool PakeAuthenticationResponseData::has_data() const { - return data_case() != DATA_NOT_SET; -} -inline void PakeAuthenticationResponseData::clear_has_data() { - _oneof_case_[0] = DATA_NOT_SET; -} -inline PakeAuthenticationResponseData::DataCase PakeAuthenticationResponseData::data_case() const { - return PakeAuthenticationResponseData::DataCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// FullAuthenticationResponseData - -// .backup.PakeAuthenticationResponseData pakeAuthenticationResponseData = 1; -inline bool FullAuthenticationResponseData::_internal_has_pakeauthenticationresponsedata() const { - return data_case() == kPakeAuthenticationResponseData; -} -inline bool FullAuthenticationResponseData::has_pakeauthenticationresponsedata() const { - return _internal_has_pakeauthenticationresponsedata(); -} -inline void FullAuthenticationResponseData::set_has_pakeauthenticationresponsedata() { - _oneof_case_[0] = kPakeAuthenticationResponseData; -} -inline void FullAuthenticationResponseData::clear_pakeauthenticationresponsedata() { - if (_internal_has_pakeauthenticationresponsedata()) { - if (GetArena() == nullptr) { - delete data_.pakeauthenticationresponsedata_; - } - clear_has_data(); - } -} -inline ::backup::PakeAuthenticationResponseData* FullAuthenticationResponseData::release_pakeauthenticationresponsedata() { - // @@protoc_insertion_point(field_release:backup.FullAuthenticationResponseData.pakeAuthenticationResponseData) - if (_internal_has_pakeauthenticationresponsedata()) { - clear_has_data(); - ::backup::PakeAuthenticationResponseData* temp = data_.pakeauthenticationresponsedata_; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - data_.pakeauthenticationresponsedata_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::backup::PakeAuthenticationResponseData& FullAuthenticationResponseData::_internal_pakeauthenticationresponsedata() const { - return _internal_has_pakeauthenticationresponsedata() - ? *data_.pakeauthenticationresponsedata_ - : reinterpret_cast< ::backup::PakeAuthenticationResponseData&>(::backup::_PakeAuthenticationResponseData_default_instance_); -} -inline const ::backup::PakeAuthenticationResponseData& FullAuthenticationResponseData::pakeauthenticationresponsedata() const { - // @@protoc_insertion_point(field_get:backup.FullAuthenticationResponseData.pakeAuthenticationResponseData) - return _internal_pakeauthenticationresponsedata(); -} -inline ::backup::PakeAuthenticationResponseData* FullAuthenticationResponseData::unsafe_arena_release_pakeauthenticationresponsedata() { - // @@protoc_insertion_point(field_unsafe_arena_release:backup.FullAuthenticationResponseData.pakeAuthenticationResponseData) - if (_internal_has_pakeauthenticationresponsedata()) { - clear_has_data(); - ::backup::PakeAuthenticationResponseData* temp = data_.pakeauthenticationresponsedata_; - data_.pakeauthenticationresponsedata_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void FullAuthenticationResponseData::unsafe_arena_set_allocated_pakeauthenticationresponsedata(::backup::PakeAuthenticationResponseData* pakeauthenticationresponsedata) { - clear_data(); - if (pakeauthenticationresponsedata) { - set_has_pakeauthenticationresponsedata(); - data_.pakeauthenticationresponsedata_ = pakeauthenticationresponsedata; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:backup.FullAuthenticationResponseData.pakeAuthenticationResponseData) -} -inline ::backup::PakeAuthenticationResponseData* FullAuthenticationResponseData::_internal_mutable_pakeauthenticationresponsedata() { - if (!_internal_has_pakeauthenticationresponsedata()) { - clear_data(); - set_has_pakeauthenticationresponsedata(); - data_.pakeauthenticationresponsedata_ = CreateMaybeMessage< ::backup::PakeAuthenticationResponseData >(GetArena()); - } - return data_.pakeauthenticationresponsedata_; -} -inline ::backup::PakeAuthenticationResponseData* FullAuthenticationResponseData::mutable_pakeauthenticationresponsedata() { - // @@protoc_insertion_point(field_mutable:backup.FullAuthenticationResponseData.pakeAuthenticationResponseData) - return _internal_mutable_pakeauthenticationresponsedata(); -} - -// .backup.WalletAuthenticationResponseData walletAuthenticationResponseData = 2; -inline bool FullAuthenticationResponseData::_internal_has_walletauthenticationresponsedata() const { - return data_case() == kWalletAuthenticationResponseData; -} -inline bool FullAuthenticationResponseData::has_walletauthenticationresponsedata() const { - return _internal_has_walletauthenticationresponsedata(); -} -inline void FullAuthenticationResponseData::set_has_walletauthenticationresponsedata() { - _oneof_case_[0] = kWalletAuthenticationResponseData; -} -inline void FullAuthenticationResponseData::clear_walletauthenticationresponsedata() { - if (_internal_has_walletauthenticationresponsedata()) { - if (GetArena() == nullptr) { - delete data_.walletauthenticationresponsedata_; - } - clear_has_data(); - } -} -inline ::backup::WalletAuthenticationResponseData* FullAuthenticationResponseData::release_walletauthenticationresponsedata() { - // @@protoc_insertion_point(field_release:backup.FullAuthenticationResponseData.walletAuthenticationResponseData) - if (_internal_has_walletauthenticationresponsedata()) { - clear_has_data(); - ::backup::WalletAuthenticationResponseData* temp = data_.walletauthenticationresponsedata_; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - data_.walletauthenticationresponsedata_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::backup::WalletAuthenticationResponseData& FullAuthenticationResponseData::_internal_walletauthenticationresponsedata() const { - return _internal_has_walletauthenticationresponsedata() - ? *data_.walletauthenticationresponsedata_ - : reinterpret_cast< ::backup::WalletAuthenticationResponseData&>(::backup::_WalletAuthenticationResponseData_default_instance_); -} -inline const ::backup::WalletAuthenticationResponseData& FullAuthenticationResponseData::walletauthenticationresponsedata() const { - // @@protoc_insertion_point(field_get:backup.FullAuthenticationResponseData.walletAuthenticationResponseData) - return _internal_walletauthenticationresponsedata(); -} -inline ::backup::WalletAuthenticationResponseData* FullAuthenticationResponseData::unsafe_arena_release_walletauthenticationresponsedata() { - // @@protoc_insertion_point(field_unsafe_arena_release:backup.FullAuthenticationResponseData.walletAuthenticationResponseData) - if (_internal_has_walletauthenticationresponsedata()) { - clear_has_data(); - ::backup::WalletAuthenticationResponseData* temp = data_.walletauthenticationresponsedata_; - data_.walletauthenticationresponsedata_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void FullAuthenticationResponseData::unsafe_arena_set_allocated_walletauthenticationresponsedata(::backup::WalletAuthenticationResponseData* walletauthenticationresponsedata) { - clear_data(); - if (walletauthenticationresponsedata) { - set_has_walletauthenticationresponsedata(); - data_.walletauthenticationresponsedata_ = walletauthenticationresponsedata; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:backup.FullAuthenticationResponseData.walletAuthenticationResponseData) -} -inline ::backup::WalletAuthenticationResponseData* FullAuthenticationResponseData::_internal_mutable_walletauthenticationresponsedata() { - if (!_internal_has_walletauthenticationresponsedata()) { - clear_data(); - set_has_walletauthenticationresponsedata(); - data_.walletauthenticationresponsedata_ = CreateMaybeMessage< ::backup::WalletAuthenticationResponseData >(GetArena()); - } - return data_.walletauthenticationresponsedata_; -} -inline ::backup::WalletAuthenticationResponseData* FullAuthenticationResponseData::mutable_walletauthenticationresponsedata() { - // @@protoc_insertion_point(field_mutable:backup.FullAuthenticationResponseData.walletAuthenticationResponseData) - return _internal_mutable_walletauthenticationresponsedata(); -} - -inline bool FullAuthenticationResponseData::has_data() const { - return data_case() != DATA_NOT_SET; -} -inline void FullAuthenticationResponseData::clear_has_data() { - _oneof_case_[0] = DATA_NOT_SET; -} -inline FullAuthenticationResponseData::DataCase FullAuthenticationResponseData::data_case() const { - return FullAuthenticationResponseData::DataCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// SimpleAuthenticationRequestData - -// string backupID = 1; -inline void SimpleAuthenticationRequestData::clear_backupid() { - backupid_.ClearToEmpty(); -} -inline const std::string& SimpleAuthenticationRequestData::backupid() const { - // @@protoc_insertion_point(field_get:backup.SimpleAuthenticationRequestData.backupID) - return _internal_backupid(); -} -inline void SimpleAuthenticationRequestData::set_backupid(const std::string& value) { - _internal_set_backupid(value); - // @@protoc_insertion_point(field_set:backup.SimpleAuthenticationRequestData.backupID) -} -inline std::string* SimpleAuthenticationRequestData::mutable_backupid() { - // @@protoc_insertion_point(field_mutable:backup.SimpleAuthenticationRequestData.backupID) - return _internal_mutable_backupid(); -} -inline const std::string& SimpleAuthenticationRequestData::_internal_backupid() const { - return backupid_.Get(); -} -inline void SimpleAuthenticationRequestData::_internal_set_backupid(const std::string& value) { - - backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void SimpleAuthenticationRequestData::set_backupid(std::string&& value) { - - backupid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.SimpleAuthenticationRequestData.backupID) -} -inline void SimpleAuthenticationRequestData::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.SimpleAuthenticationRequestData.backupID) -} -inline void SimpleAuthenticationRequestData::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.SimpleAuthenticationRequestData.backupID) -} -inline std::string* SimpleAuthenticationRequestData::_internal_mutable_backupid() { - - return backupid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* SimpleAuthenticationRequestData::release_backupid() { - // @@protoc_insertion_point(field_release:backup.SimpleAuthenticationRequestData.backupID) - return backupid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void SimpleAuthenticationRequestData::set_allocated_backupid(std::string* backupid) { - if (backupid != nullptr) { - - } else { - - } - backupid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), backupid, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:backup.SimpleAuthenticationRequestData.backupID) -} - -// string userID = 2; -inline void SimpleAuthenticationRequestData::clear_userid() { - userid_.ClearToEmpty(); -} -inline const std::string& SimpleAuthenticationRequestData::userid() const { - // @@protoc_insertion_point(field_get:backup.SimpleAuthenticationRequestData.userID) - return _internal_userid(); -} -inline void SimpleAuthenticationRequestData::set_userid(const std::string& value) { - _internal_set_userid(value); - // @@protoc_insertion_point(field_set:backup.SimpleAuthenticationRequestData.userID) -} -inline std::string* SimpleAuthenticationRequestData::mutable_userid() { - // @@protoc_insertion_point(field_mutable:backup.SimpleAuthenticationRequestData.userID) - return _internal_mutable_userid(); -} -inline const std::string& SimpleAuthenticationRequestData::_internal_userid() const { - return userid_.Get(); -} -inline void SimpleAuthenticationRequestData::_internal_set_userid(const std::string& value) { - - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void SimpleAuthenticationRequestData::set_userid(std::string&& value) { - - userid_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.SimpleAuthenticationRequestData.userID) -} -inline void SimpleAuthenticationRequestData::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.SimpleAuthenticationRequestData.userID) -} -inline void SimpleAuthenticationRequestData::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.SimpleAuthenticationRequestData.userID) -} -inline std::string* SimpleAuthenticationRequestData::_internal_mutable_userid() { - - return userid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* SimpleAuthenticationRequestData::release_userid() { - // @@protoc_insertion_point(field_release:backup.SimpleAuthenticationRequestData.userID) - return userid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void SimpleAuthenticationRequestData::set_allocated_userid(std::string* userid) { - if (userid != nullptr) { - - } else { - - } - userid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), userid, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:backup.SimpleAuthenticationRequestData.userID) -} - -// ------------------------------------------------------------------- + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCompactionChunkFieldNumber = 1, + kLogChunkFieldNumber = 2, + }; + // bytes compactionChunk = 1; + bool has_compactionchunk() const; + private: + bool _internal_has_compactionchunk() const; + 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); + std::string* mutable_compactionchunk(); + 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); + std::string* _internal_mutable_compactionchunk(); + public: + + // bytes logChunk = 2; + bool has_logchunk() const; + private: + bool _internal_has_logchunk() const; + 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); + std::string* mutable_logchunk(); + 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); + std::string* _internal_mutable_logchunk(); + public: + + void clear_data(); + DataCase data_case() const; + // @@protoc_insertion_point(class_scope:backup.PullBackupResponse) + private: + class _Internal; + void set_has_compactionchunk(); + void set_has_logchunk(); + + inline bool has_data() const; + inline void clear_has_data(); + + 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 compactionchunk_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logchunk_; + } data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_backup_2eproto; +}; +// =================================================================== -// BackupKeyEntropy -// bytes nonce = 1; -inline bool BackupKeyEntropy::_internal_has_nonce() const { - return data_case() == kNonce; +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// CreateNewBackupRequest + +// string userID = 1; +inline bool CreateNewBackupRequest::_internal_has_userid() const { + return data_case() == kUserID; } -inline bool BackupKeyEntropy::has_nonce() const { - return _internal_has_nonce(); +inline bool CreateNewBackupRequest::has_userid() const { + return _internal_has_userid(); } -inline void BackupKeyEntropy::set_has_nonce() { - _oneof_case_[0] = kNonce; +inline void CreateNewBackupRequest::set_has_userid() { + _oneof_case_[0] = kUserID; } -inline void BackupKeyEntropy::clear_nonce() { - if (_internal_has_nonce()) { - data_.nonce_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +inline void CreateNewBackupRequest::clear_userid() { + if (_internal_has_userid()) { + data_.userid_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); clear_has_data(); } } -inline const std::string& BackupKeyEntropy::nonce() const { - // @@protoc_insertion_point(field_get:backup.BackupKeyEntropy.nonce) - return _internal_nonce(); +inline const std::string& CreateNewBackupRequest::userid() const { + // @@protoc_insertion_point(field_get:backup.CreateNewBackupRequest.userID) + return _internal_userid(); } -inline void BackupKeyEntropy::set_nonce(const std::string& value) { - _internal_set_nonce(value); - // @@protoc_insertion_point(field_set:backup.BackupKeyEntropy.nonce) +inline void CreateNewBackupRequest::set_userid(const std::string& value) { + _internal_set_userid(value); + // @@protoc_insertion_point(field_set:backup.CreateNewBackupRequest.userID) } -inline std::string* BackupKeyEntropy::mutable_nonce() { - // @@protoc_insertion_point(field_mutable:backup.BackupKeyEntropy.nonce) - return _internal_mutable_nonce(); +inline std::string* CreateNewBackupRequest::mutable_userid() { + // @@protoc_insertion_point(field_mutable:backup.CreateNewBackupRequest.userID) + return _internal_mutable_userid(); } -inline const std::string& BackupKeyEntropy::_internal_nonce() const { - if (_internal_has_nonce()) { - return data_.nonce_.Get(); +inline const std::string& CreateNewBackupRequest::_internal_userid() const { + if (_internal_has_userid()) { + return data_.userid_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } -inline void BackupKeyEntropy::_internal_set_nonce(const std::string& value) { - if (!_internal_has_nonce()) { +inline void CreateNewBackupRequest::_internal_set_userid(const std::string& value) { + if (!_internal_has_userid()) { clear_data(); - set_has_nonce(); - data_.nonce_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + set_has_userid(); + data_.userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - data_.nonce_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + data_.userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void BackupKeyEntropy::set_nonce(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.BackupKeyEntropy.nonce) - if (!_internal_has_nonce()) { +inline void CreateNewBackupRequest::set_userid(std::string&& value) { + // @@protoc_insertion_point(field_set:backup.CreateNewBackupRequest.userID) + if (!_internal_has_userid()) { clear_data(); - set_has_nonce(); - data_.nonce_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + set_has_userid(); + data_.userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - data_.nonce_.Set( + data_.userid_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.BackupKeyEntropy.nonce) + // @@protoc_insertion_point(field_set_rvalue:backup.CreateNewBackupRequest.userID) } -inline void BackupKeyEntropy::set_nonce(const char* value) { +inline void CreateNewBackupRequest::set_userid(const char* value) { GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_nonce()) { + if (!_internal_has_userid()) { clear_data(); - set_has_nonce(); - data_.nonce_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + set_has_userid(); + data_.userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - data_.nonce_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, + data_.userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.BackupKeyEntropy.nonce) + // @@protoc_insertion_point(field_set_char:backup.CreateNewBackupRequest.userID) } -inline void BackupKeyEntropy::set_nonce(const void* value, +inline void CreateNewBackupRequest::set_userid(const char* value, size_t size) { - if (!_internal_has_nonce()) { + if (!_internal_has_userid()) { clear_data(); - set_has_nonce(); - data_.nonce_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + set_has_userid(); + data_.userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - data_.nonce_.Set( + data_.userid_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.BackupKeyEntropy.nonce) + // @@protoc_insertion_point(field_set_pointer:backup.CreateNewBackupRequest.userID) } -inline std::string* BackupKeyEntropy::_internal_mutable_nonce() { - if (!_internal_has_nonce()) { +inline std::string* CreateNewBackupRequest::_internal_mutable_userid() { + if (!_internal_has_userid()) { clear_data(); - set_has_nonce(); - data_.nonce_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + set_has_userid(); + data_.userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - return data_.nonce_.Mutable( + return data_.userid_.Mutable( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* BackupKeyEntropy::release_nonce() { - // @@protoc_insertion_point(field_release:backup.BackupKeyEntropy.nonce) - if (_internal_has_nonce()) { +inline std::string* CreateNewBackupRequest::release_userid() { + // @@protoc_insertion_point(field_release:backup.CreateNewBackupRequest.userID) + if (_internal_has_userid()) { clear_has_data(); - return data_.nonce_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return data_.userid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } else { return nullptr; } } -inline void BackupKeyEntropy::set_allocated_nonce(std::string* nonce) { +inline void CreateNewBackupRequest::set_allocated_userid(std::string* userid) { if (has_data()) { clear_data(); } - if (nonce != nullptr) { - set_has_nonce(); - data_.nonce_.UnsafeSetDefault(nonce); + if (userid != nullptr) { + set_has_userid(); + data_.userid_.UnsafeSetDefault(userid); ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); if (arena != nullptr) { - arena->Own(nonce); + arena->Own(userid); } } - // @@protoc_insertion_point(field_set_allocated:backup.BackupKeyEntropy.nonce) + // @@protoc_insertion_point(field_set_allocated:backup.CreateNewBackupRequest.userID) } -// bytes rawMessage = 2; -inline bool BackupKeyEntropy::_internal_has_rawmessage() const { - return data_case() == kRawMessage; +// bytes keyEntropy = 2; +inline bool CreateNewBackupRequest::_internal_has_keyentropy() const { + return data_case() == kKeyEntropy; } -inline bool BackupKeyEntropy::has_rawmessage() const { - return _internal_has_rawmessage(); +inline bool CreateNewBackupRequest::has_keyentropy() const { + return _internal_has_keyentropy(); } -inline void BackupKeyEntropy::set_has_rawmessage() { - _oneof_case_[0] = kRawMessage; +inline void CreateNewBackupRequest::set_has_keyentropy() { + _oneof_case_[0] = kKeyEntropy; } -inline void BackupKeyEntropy::clear_rawmessage() { - if (_internal_has_rawmessage()) { - data_.rawmessage_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +inline void CreateNewBackupRequest::clear_keyentropy() { + if (_internal_has_keyentropy()) { + data_.keyentropy_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); clear_has_data(); } } -inline const std::string& BackupKeyEntropy::rawmessage() const { - // @@protoc_insertion_point(field_get:backup.BackupKeyEntropy.rawMessage) - return _internal_rawmessage(); +inline const std::string& CreateNewBackupRequest::keyentropy() const { + // @@protoc_insertion_point(field_get:backup.CreateNewBackupRequest.keyEntropy) + return _internal_keyentropy(); } -inline void BackupKeyEntropy::set_rawmessage(const std::string& value) { - _internal_set_rawmessage(value); - // @@protoc_insertion_point(field_set:backup.BackupKeyEntropy.rawMessage) +inline void CreateNewBackupRequest::set_keyentropy(const std::string& value) { + _internal_set_keyentropy(value); + // @@protoc_insertion_point(field_set:backup.CreateNewBackupRequest.keyEntropy) } -inline std::string* BackupKeyEntropy::mutable_rawmessage() { - // @@protoc_insertion_point(field_mutable:backup.BackupKeyEntropy.rawMessage) - return _internal_mutable_rawmessage(); +inline std::string* CreateNewBackupRequest::mutable_keyentropy() { + // @@protoc_insertion_point(field_mutable:backup.CreateNewBackupRequest.keyEntropy) + return _internal_mutable_keyentropy(); } -inline const std::string& BackupKeyEntropy::_internal_rawmessage() const { - if (_internal_has_rawmessage()) { - return data_.rawmessage_.Get(); +inline const std::string& CreateNewBackupRequest::_internal_keyentropy() const { + if (_internal_has_keyentropy()) { + return data_.keyentropy_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } -inline void BackupKeyEntropy::_internal_set_rawmessage(const std::string& value) { - if (!_internal_has_rawmessage()) { +inline void CreateNewBackupRequest::_internal_set_keyentropy(const std::string& value) { + if (!_internal_has_keyentropy()) { clear_data(); - set_has_rawmessage(); - data_.rawmessage_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + set_has_keyentropy(); + data_.keyentropy_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - data_.rawmessage_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + data_.keyentropy_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void BackupKeyEntropy::set_rawmessage(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.BackupKeyEntropy.rawMessage) - if (!_internal_has_rawmessage()) { +inline void CreateNewBackupRequest::set_keyentropy(std::string&& value) { + // @@protoc_insertion_point(field_set:backup.CreateNewBackupRequest.keyEntropy) + if (!_internal_has_keyentropy()) { clear_data(); - set_has_rawmessage(); - data_.rawmessage_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + set_has_keyentropy(); + data_.keyentropy_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - data_.rawmessage_.Set( + data_.keyentropy_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.BackupKeyEntropy.rawMessage) + // @@protoc_insertion_point(field_set_rvalue:backup.CreateNewBackupRequest.keyEntropy) } -inline void BackupKeyEntropy::set_rawmessage(const char* value) { +inline void CreateNewBackupRequest::set_keyentropy(const char* value) { GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_rawmessage()) { + if (!_internal_has_keyentropy()) { clear_data(); - set_has_rawmessage(); - data_.rawmessage_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + set_has_keyentropy(); + data_.keyentropy_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - data_.rawmessage_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, + data_.keyentropy_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.BackupKeyEntropy.rawMessage) + // @@protoc_insertion_point(field_set_char:backup.CreateNewBackupRequest.keyEntropy) } -inline void BackupKeyEntropy::set_rawmessage(const void* value, +inline void CreateNewBackupRequest::set_keyentropy(const void* value, size_t size) { - if (!_internal_has_rawmessage()) { + if (!_internal_has_keyentropy()) { clear_data(); - set_has_rawmessage(); - data_.rawmessage_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + set_has_keyentropy(); + data_.keyentropy_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - data_.rawmessage_.Set( + data_.keyentropy_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.BackupKeyEntropy.rawMessage) + // @@protoc_insertion_point(field_set_pointer:backup.CreateNewBackupRequest.keyEntropy) } -inline std::string* BackupKeyEntropy::_internal_mutable_rawmessage() { - if (!_internal_has_rawmessage()) { +inline std::string* CreateNewBackupRequest::_internal_mutable_keyentropy() { + if (!_internal_has_keyentropy()) { clear_data(); - set_has_rawmessage(); - data_.rawmessage_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + set_has_keyentropy(); + data_.keyentropy_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - return data_.rawmessage_.Mutable( + return data_.keyentropy_.Mutable( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* BackupKeyEntropy::release_rawmessage() { - // @@protoc_insertion_point(field_release:backup.BackupKeyEntropy.rawMessage) - if (_internal_has_rawmessage()) { +inline std::string* CreateNewBackupRequest::release_keyentropy() { + // @@protoc_insertion_point(field_release:backup.CreateNewBackupRequest.keyEntropy) + if (_internal_has_keyentropy()) { clear_has_data(); - return data_.rawmessage_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return data_.keyentropy_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } else { return nullptr; } } -inline void BackupKeyEntropy::set_allocated_rawmessage(std::string* rawmessage) { +inline void CreateNewBackupRequest::set_allocated_keyentropy(std::string* keyentropy) { if (has_data()) { clear_data(); } - if (rawmessage != nullptr) { - set_has_rawmessage(); - data_.rawmessage_.UnsafeSetDefault(rawmessage); + if (keyentropy != nullptr) { + set_has_keyentropy(); + data_.keyentropy_.UnsafeSetDefault(keyentropy); ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); if (arena != nullptr) { - arena->Own(rawmessage); - } - } - // @@protoc_insertion_point(field_set_allocated:backup.BackupKeyEntropy.rawMessage) -} - -inline bool BackupKeyEntropy::has_data() const { - return data_case() != DATA_NOT_SET; -} -inline void BackupKeyEntropy::clear_has_data() { - _oneof_case_[0] = DATA_NOT_SET; -} -inline BackupKeyEntropy::DataCase BackupKeyEntropy::data_case() const { - return BackupKeyEntropy::DataCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// CreateNewBackupRequest - -// .backup.FullAuthenticationRequestData authenticationRequestData = 1; -inline bool CreateNewBackupRequest::_internal_has_authenticationrequestdata() const { - return data_case() == kAuthenticationRequestData; -} -inline bool CreateNewBackupRequest::has_authenticationrequestdata() const { - return _internal_has_authenticationrequestdata(); -} -inline void CreateNewBackupRequest::set_has_authenticationrequestdata() { - _oneof_case_[0] = kAuthenticationRequestData; -} -inline void CreateNewBackupRequest::clear_authenticationrequestdata() { - if (_internal_has_authenticationrequestdata()) { - if (GetArena() == nullptr) { - delete data_.authenticationrequestdata_; - } - clear_has_data(); - } -} -inline ::backup::FullAuthenticationRequestData* CreateNewBackupRequest::release_authenticationrequestdata() { - // @@protoc_insertion_point(field_release:backup.CreateNewBackupRequest.authenticationRequestData) - if (_internal_has_authenticationrequestdata()) { - clear_has_data(); - ::backup::FullAuthenticationRequestData* temp = data_.authenticationrequestdata_; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - data_.authenticationrequestdata_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::backup::FullAuthenticationRequestData& CreateNewBackupRequest::_internal_authenticationrequestdata() const { - return _internal_has_authenticationrequestdata() - ? *data_.authenticationrequestdata_ - : reinterpret_cast< ::backup::FullAuthenticationRequestData&>(::backup::_FullAuthenticationRequestData_default_instance_); -} -inline const ::backup::FullAuthenticationRequestData& CreateNewBackupRequest::authenticationrequestdata() const { - // @@protoc_insertion_point(field_get:backup.CreateNewBackupRequest.authenticationRequestData) - return _internal_authenticationrequestdata(); -} -inline ::backup::FullAuthenticationRequestData* CreateNewBackupRequest::unsafe_arena_release_authenticationrequestdata() { - // @@protoc_insertion_point(field_unsafe_arena_release:backup.CreateNewBackupRequest.authenticationRequestData) - if (_internal_has_authenticationrequestdata()) { - clear_has_data(); - ::backup::FullAuthenticationRequestData* temp = data_.authenticationrequestdata_; - data_.authenticationrequestdata_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void CreateNewBackupRequest::unsafe_arena_set_allocated_authenticationrequestdata(::backup::FullAuthenticationRequestData* authenticationrequestdata) { - clear_data(); - if (authenticationrequestdata) { - set_has_authenticationrequestdata(); - data_.authenticationrequestdata_ = authenticationrequestdata; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:backup.CreateNewBackupRequest.authenticationRequestData) -} -inline ::backup::FullAuthenticationRequestData* CreateNewBackupRequest::_internal_mutable_authenticationrequestdata() { - if (!_internal_has_authenticationrequestdata()) { - clear_data(); - set_has_authenticationrequestdata(); - data_.authenticationrequestdata_ = CreateMaybeMessage< ::backup::FullAuthenticationRequestData >(GetArena()); - } - return data_.authenticationrequestdata_; -} -inline ::backup::FullAuthenticationRequestData* CreateNewBackupRequest::mutable_authenticationrequestdata() { - // @@protoc_insertion_point(field_mutable:backup.CreateNewBackupRequest.authenticationRequestData) - return _internal_mutable_authenticationrequestdata(); -} - -// .backup.BackupKeyEntropy backupKeyEntropy = 2; -inline bool CreateNewBackupRequest::_internal_has_backupkeyentropy() const { - return data_case() == kBackupKeyEntropy; -} -inline bool CreateNewBackupRequest::has_backupkeyentropy() const { - return _internal_has_backupkeyentropy(); -} -inline void CreateNewBackupRequest::set_has_backupkeyentropy() { - _oneof_case_[0] = kBackupKeyEntropy; -} -inline void CreateNewBackupRequest::clear_backupkeyentropy() { - if (_internal_has_backupkeyentropy()) { - if (GetArena() == nullptr) { - delete data_.backupkeyentropy_; + arena->Own(keyentropy); } - clear_has_data(); - } -} -inline ::backup::BackupKeyEntropy* CreateNewBackupRequest::release_backupkeyentropy() { - // @@protoc_insertion_point(field_release:backup.CreateNewBackupRequest.backupKeyEntropy) - if (_internal_has_backupkeyentropy()) { - clear_has_data(); - ::backup::BackupKeyEntropy* temp = data_.backupkeyentropy_; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - data_.backupkeyentropy_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::backup::BackupKeyEntropy& CreateNewBackupRequest::_internal_backupkeyentropy() const { - return _internal_has_backupkeyentropy() - ? *data_.backupkeyentropy_ - : reinterpret_cast< ::backup::BackupKeyEntropy&>(::backup::_BackupKeyEntropy_default_instance_); -} -inline const ::backup::BackupKeyEntropy& CreateNewBackupRequest::backupkeyentropy() const { - // @@protoc_insertion_point(field_get:backup.CreateNewBackupRequest.backupKeyEntropy) - return _internal_backupkeyentropy(); -} -inline ::backup::BackupKeyEntropy* CreateNewBackupRequest::unsafe_arena_release_backupkeyentropy() { - // @@protoc_insertion_point(field_unsafe_arena_release:backup.CreateNewBackupRequest.backupKeyEntropy) - if (_internal_has_backupkeyentropy()) { - clear_has_data(); - ::backup::BackupKeyEntropy* temp = data_.backupkeyentropy_; - data_.backupkeyentropy_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void CreateNewBackupRequest::unsafe_arena_set_allocated_backupkeyentropy(::backup::BackupKeyEntropy* backupkeyentropy) { - clear_data(); - if (backupkeyentropy) { - set_has_backupkeyentropy(); - data_.backupkeyentropy_ = backupkeyentropy; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:backup.CreateNewBackupRequest.backupKeyEntropy) -} -inline ::backup::BackupKeyEntropy* CreateNewBackupRequest::_internal_mutable_backupkeyentropy() { - if (!_internal_has_backupkeyentropy()) { - clear_data(); - set_has_backupkeyentropy(); - data_.backupkeyentropy_ = CreateMaybeMessage< ::backup::BackupKeyEntropy >(GetArena()); - } - return data_.backupkeyentropy_; -} -inline ::backup::BackupKeyEntropy* CreateNewBackupRequest::mutable_backupkeyentropy() { - // @@protoc_insertion_point(field_mutable:backup.CreateNewBackupRequest.backupKeyEntropy) - return _internal_mutable_backupkeyentropy(); + // @@protoc_insertion_point(field_set_allocated:backup.CreateNewBackupRequest.keyEntropy) } // bytes newCompactionHash = 3; @@ -5416,152 +1813,216 @@ // CreateNewBackupResponse -// .backup.FullAuthenticationResponseData authenticationResponseData = 1; -inline bool CreateNewBackupResponse::_internal_has_authenticationresponsedata() const { - return data_case() == kAuthenticationResponseData; +// string backupID = 1; +inline void CreateNewBackupResponse::clear_backupid() { + backupid_.ClearToEmpty(); +} +inline const std::string& CreateNewBackupResponse::backupid() const { + // @@protoc_insertion_point(field_get:backup.CreateNewBackupResponse.backupID) + return _internal_backupid(); } -inline bool CreateNewBackupResponse::has_authenticationresponsedata() const { - return _internal_has_authenticationresponsedata(); +inline void CreateNewBackupResponse::set_backupid(const std::string& value) { + _internal_set_backupid(value); + // @@protoc_insertion_point(field_set:backup.CreateNewBackupResponse.backupID) } -inline void CreateNewBackupResponse::set_has_authenticationresponsedata() { - _oneof_case_[0] = kAuthenticationResponseData; +inline std::string* CreateNewBackupResponse::mutable_backupid() { + // @@protoc_insertion_point(field_mutable:backup.CreateNewBackupResponse.backupID) + return _internal_mutable_backupid(); } -inline void CreateNewBackupResponse::clear_authenticationresponsedata() { - if (_internal_has_authenticationresponsedata()) { - if (GetArena() == nullptr) { - delete data_.authenticationresponsedata_; - } - clear_has_data(); - } +inline const std::string& CreateNewBackupResponse::_internal_backupid() const { + return backupid_.Get(); } -inline ::backup::FullAuthenticationResponseData* CreateNewBackupResponse::release_authenticationresponsedata() { - // @@protoc_insertion_point(field_release:backup.CreateNewBackupResponse.authenticationResponseData) - if (_internal_has_authenticationresponsedata()) { - clear_has_data(); - ::backup::FullAuthenticationResponseData* temp = data_.authenticationresponsedata_; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - data_.authenticationresponsedata_ = nullptr; - return temp; +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) +} +inline std::string* CreateNewBackupResponse::_internal_mutable_backupid() { + + return backupid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* CreateNewBackupResponse::release_backupid() { + // @@protoc_insertion_point(field_release:backup.CreateNewBackupResponse.backupID) + return backupid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void CreateNewBackupResponse::set_allocated_backupid(std::string* backupid) { + if (backupid != nullptr) { + } else { - return nullptr; + } + backupid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), backupid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:backup.CreateNewBackupResponse.backupID) +} + +// ------------------------------------------------------------------- + +// SendLogRequest + +// string userID = 1; +inline bool SendLogRequest::_internal_has_userid() const { + return data_case() == kUserID; } -inline const ::backup::FullAuthenticationResponseData& CreateNewBackupResponse::_internal_authenticationresponsedata() const { - return _internal_has_authenticationresponsedata() - ? *data_.authenticationresponsedata_ - : reinterpret_cast< ::backup::FullAuthenticationResponseData&>(::backup::_FullAuthenticationResponseData_default_instance_); +inline bool SendLogRequest::has_userid() const { + return _internal_has_userid(); } -inline const ::backup::FullAuthenticationResponseData& CreateNewBackupResponse::authenticationresponsedata() const { - // @@protoc_insertion_point(field_get:backup.CreateNewBackupResponse.authenticationResponseData) - return _internal_authenticationresponsedata(); +inline void SendLogRequest::set_has_userid() { + _oneof_case_[0] = kUserID; } -inline ::backup::FullAuthenticationResponseData* CreateNewBackupResponse::unsafe_arena_release_authenticationresponsedata() { - // @@protoc_insertion_point(field_unsafe_arena_release:backup.CreateNewBackupResponse.authenticationResponseData) - if (_internal_has_authenticationresponsedata()) { +inline void SendLogRequest::clear_userid() { + if (_internal_has_userid()) { + data_.userid_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); clear_has_data(); - ::backup::FullAuthenticationResponseData* temp = data_.authenticationresponsedata_; - data_.authenticationresponsedata_ = nullptr; - return temp; - } else { - return nullptr; } } -inline void CreateNewBackupResponse::unsafe_arena_set_allocated_authenticationresponsedata(::backup::FullAuthenticationResponseData* authenticationresponsedata) { - clear_data(); - if (authenticationresponsedata) { - set_has_authenticationresponsedata(); - data_.authenticationresponsedata_ = authenticationresponsedata; +inline const std::string& SendLogRequest::userid() const { + // @@protoc_insertion_point(field_get:backup.SendLogRequest.userID) + return _internal_userid(); +} +inline void SendLogRequest::set_userid(const std::string& value) { + _internal_set_userid(value); + // @@protoc_insertion_point(field_set:backup.SendLogRequest.userID) +} +inline std::string* SendLogRequest::mutable_userid() { + // @@protoc_insertion_point(field_mutable:backup.SendLogRequest.userID) + return _internal_mutable_userid(); +} +inline const std::string& SendLogRequest::_internal_userid() const { + if (_internal_has_userid()) { + return data_.userid_.Get(); } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:backup.CreateNewBackupResponse.authenticationResponseData) + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } -inline ::backup::FullAuthenticationResponseData* CreateNewBackupResponse::_internal_mutable_authenticationresponsedata() { - if (!_internal_has_authenticationresponsedata()) { +inline void SendLogRequest::_internal_set_userid(const std::string& value) { + if (!_internal_has_userid()) { clear_data(); - set_has_authenticationresponsedata(); - data_.authenticationresponsedata_ = CreateMaybeMessage< ::backup::FullAuthenticationResponseData >(GetArena()); + set_has_userid(); + data_.userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - return data_.authenticationresponsedata_; -} -inline ::backup::FullAuthenticationResponseData* CreateNewBackupResponse::mutable_authenticationresponsedata() { - // @@protoc_insertion_point(field_mutable:backup.CreateNewBackupResponse.authenticationResponseData) - return _internal_mutable_authenticationresponsedata(); + data_.userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } - -// bool entropyValid = 2; -inline bool CreateNewBackupResponse::_internal_has_entropyvalid() const { - return data_case() == kEntropyValid; +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 bool CreateNewBackupResponse::has_entropyvalid() const { - return _internal_has_entropyvalid(); +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 CreateNewBackupResponse::set_has_entropyvalid() { - _oneof_case_[0] = kEntropyValid; +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) } -inline void CreateNewBackupResponse::clear_entropyvalid() { - if (_internal_has_entropyvalid()) { - data_.entropyvalid_ = false; - clear_has_data(); +inline std::string* SendLogRequest::_internal_mutable_userid() { + if (!_internal_has_userid()) { + clear_data(); + set_has_userid(); + data_.userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } + return data_.userid_.Mutable( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline bool CreateNewBackupResponse::_internal_entropyvalid() const { - if (_internal_has_entropyvalid()) { - return data_.entropyvalid_; +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()); + } else { + return nullptr; } - return false; } -inline void CreateNewBackupResponse::_internal_set_entropyvalid(bool value) { - if (!_internal_has_entropyvalid()) { +inline void SendLogRequest::set_allocated_userid(std::string* userid) { + if (has_data()) { clear_data(); - set_has_entropyvalid(); } - data_.entropyvalid_ = value; -} -inline bool CreateNewBackupResponse::entropyvalid() const { - // @@protoc_insertion_point(field_get:backup.CreateNewBackupResponse.entropyValid) - return _internal_entropyvalid(); -} -inline void CreateNewBackupResponse::set_entropyvalid(bool value) { - _internal_set_entropyvalid(value); - // @@protoc_insertion_point(field_set:backup.CreateNewBackupResponse.entropyValid) + if (userid != nullptr) { + set_has_userid(); + data_.userid_.UnsafeSetDefault(userid); + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); + if (arena != nullptr) { + arena->Own(userid); + } + } + // @@protoc_insertion_point(field_set_allocated:backup.SendLogRequest.userID) } -// string backupID = 3; -inline bool CreateNewBackupResponse::_internal_has_backupid() const { +// string backupID = 2; +inline bool SendLogRequest::_internal_has_backupid() const { return data_case() == kBackupID; } -inline bool CreateNewBackupResponse::has_backupid() const { +inline bool SendLogRequest::has_backupid() const { return _internal_has_backupid(); } -inline void CreateNewBackupResponse::set_has_backupid() { +inline void SendLogRequest::set_has_backupid() { _oneof_case_[0] = kBackupID; } -inline void CreateNewBackupResponse::clear_backupid() { +inline void SendLogRequest::clear_backupid() { if (_internal_has_backupid()) { data_.backupid_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); clear_has_data(); } } -inline const std::string& CreateNewBackupResponse::backupid() const { - // @@protoc_insertion_point(field_get:backup.CreateNewBackupResponse.backupID) +inline const std::string& SendLogRequest::backupid() const { + // @@protoc_insertion_point(field_get:backup.SendLogRequest.backupID) return _internal_backupid(); } -inline void CreateNewBackupResponse::set_backupid(const std::string& value) { +inline void SendLogRequest::set_backupid(const std::string& value) { _internal_set_backupid(value); - // @@protoc_insertion_point(field_set:backup.CreateNewBackupResponse.backupID) + // @@protoc_insertion_point(field_set:backup.SendLogRequest.backupID) } -inline std::string* CreateNewBackupResponse::mutable_backupid() { - // @@protoc_insertion_point(field_mutable:backup.CreateNewBackupResponse.backupID) +inline std::string* SendLogRequest::mutable_backupid() { + // @@protoc_insertion_point(field_mutable:backup.SendLogRequest.backupID) return _internal_mutable_backupid(); } -inline const std::string& CreateNewBackupResponse::_internal_backupid() const { +inline const std::string& SendLogRequest::_internal_backupid() const { if (_internal_has_backupid()) { return data_.backupid_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } -inline void CreateNewBackupResponse::_internal_set_backupid(const std::string& value) { +inline void SendLogRequest::_internal_set_backupid(const std::string& value) { if (!_internal_has_backupid()) { clear_data(); set_has_backupid(); @@ -5569,8 +2030,8 @@ } data_.backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void CreateNewBackupResponse::set_backupid(std::string&& value) { - // @@protoc_insertion_point(field_set:backup.CreateNewBackupResponse.backupID) +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(); @@ -5578,9 +2039,9 @@ } data_.backupid_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:backup.CreateNewBackupResponse.backupID) + // @@protoc_insertion_point(field_set_rvalue:backup.SendLogRequest.backupID) } -inline void CreateNewBackupResponse::set_backupid(const char* value) { +inline void SendLogRequest::set_backupid(const char* value) { GOOGLE_DCHECK(value != nullptr); if (!_internal_has_backupid()) { clear_data(); @@ -5589,9 +2050,9 @@ } data_.backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:backup.CreateNewBackupResponse.backupID) + // @@protoc_insertion_point(field_set_char:backup.SendLogRequest.backupID) } -inline void CreateNewBackupResponse::set_backupid(const char* value, +inline void SendLogRequest::set_backupid(const char* value, size_t size) { if (!_internal_has_backupid()) { clear_data(); @@ -5602,9 +2063,9 @@ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:backup.CreateNewBackupResponse.backupID) + // @@protoc_insertion_point(field_set_pointer:backup.SendLogRequest.backupID) } -inline std::string* CreateNewBackupResponse::_internal_mutable_backupid() { +inline std::string* SendLogRequest::_internal_mutable_backupid() { if (!_internal_has_backupid()) { clear_data(); set_has_backupid(); @@ -5613,8 +2074,8 @@ return data_.backupid_.Mutable( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* CreateNewBackupResponse::release_backupid() { - // @@protoc_insertion_point(field_release:backup.CreateNewBackupResponse.backupID) +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()); @@ -5622,7 +2083,7 @@ return nullptr; } } -inline void CreateNewBackupResponse::set_allocated_backupid(std::string* backupid) { +inline void SendLogRequest::set_allocated_backupid(std::string* backupid) { if (has_data()) { clear_data(); } @@ -5634,108 +2095,134 @@ arena->Own(backupid); } } - // @@protoc_insertion_point(field_set_allocated:backup.CreateNewBackupResponse.backupID) + // @@protoc_insertion_point(field_set_allocated:backup.SendLogRequest.backupID) } -inline bool CreateNewBackupResponse::has_data() const { - return data_case() != DATA_NOT_SET; +// bytes logHash = 3; +inline bool SendLogRequest::_internal_has_loghash() const { + return data_case() == kLogHash; } -inline void CreateNewBackupResponse::clear_has_data() { - _oneof_case_[0] = DATA_NOT_SET; +inline bool SendLogRequest::has_loghash() const { + return _internal_has_loghash(); } -inline CreateNewBackupResponse::DataCase CreateNewBackupResponse::data_case() const { - return CreateNewBackupResponse::DataCase(_oneof_case_[0]); +inline void SendLogRequest::set_has_loghash() { + _oneof_case_[0] = kLogHash; } -// ------------------------------------------------------------------- - -// SendLogRequest - -// .backup.SimpleAuthenticationRequestData authenticationData = 1; -inline bool SendLogRequest::_internal_has_authenticationdata() const { - return this != internal_default_instance() && authenticationdata_ != nullptr; +inline void SendLogRequest::clear_loghash() { + if (_internal_has_loghash()) { + data_.loghash_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + clear_has_data(); + } +} +inline const std::string& SendLogRequest::loghash() const { + // @@protoc_insertion_point(field_get:backup.SendLogRequest.logHash) + return _internal_loghash(); } -inline bool SendLogRequest::has_authenticationdata() const { - return _internal_has_authenticationdata(); +inline void SendLogRequest::set_loghash(const std::string& value) { + _internal_set_loghash(value); + // @@protoc_insertion_point(field_set:backup.SendLogRequest.logHash) } -inline void SendLogRequest::clear_authenticationdata() { - if (GetArena() == nullptr && authenticationdata_ != nullptr) { - delete authenticationdata_; +inline std::string* SendLogRequest::mutable_loghash() { + // @@protoc_insertion_point(field_mutable:backup.SendLogRequest.logHash) + return _internal_mutable_loghash(); +} +inline const std::string& SendLogRequest::_internal_loghash() const { + if (_internal_has_loghash()) { + return data_.loghash_.Get(); } - authenticationdata_ = nullptr; + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } -inline const ::backup::SimpleAuthenticationRequestData& SendLogRequest::_internal_authenticationdata() const { - const ::backup::SimpleAuthenticationRequestData* p = authenticationdata_; - return p != nullptr ? *p : reinterpret_cast( - ::backup::_SimpleAuthenticationRequestData_default_instance_); +inline void SendLogRequest::_internal_set_loghash(const std::string& value) { + 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 const ::backup::SimpleAuthenticationRequestData& SendLogRequest::authenticationdata() const { - // @@protoc_insertion_point(field_get:backup.SendLogRequest.authenticationData) - return _internal_authenticationdata(); +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()); + } + 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::unsafe_arena_set_allocated_authenticationdata( - ::backup::SimpleAuthenticationRequestData* authenticationdata) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(authenticationdata_); +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()); } - authenticationdata_ = authenticationdata; - if (authenticationdata) { - - } else { - + 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()); } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:backup.SendLogRequest.authenticationData) + 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) } -inline ::backup::SimpleAuthenticationRequestData* SendLogRequest::release_authenticationdata() { - - ::backup::SimpleAuthenticationRequestData* temp = authenticationdata_; - authenticationdata_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); +inline std::string* SendLogRequest::_internal_mutable_loghash() { + if (!_internal_has_loghash()) { + clear_data(); + set_has_loghash(); + data_.loghash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - return temp; + return data_.loghash_.Mutable( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline ::backup::SimpleAuthenticationRequestData* SendLogRequest::unsafe_arena_release_authenticationdata() { - // @@protoc_insertion_point(field_release:backup.SendLogRequest.authenticationData) - - ::backup::SimpleAuthenticationRequestData* temp = authenticationdata_; - authenticationdata_ = nullptr; - return temp; +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()); + } else { + return nullptr; + } } -inline ::backup::SimpleAuthenticationRequestData* SendLogRequest::_internal_mutable_authenticationdata() { - - if (authenticationdata_ == nullptr) { - auto* p = CreateMaybeMessage<::backup::SimpleAuthenticationRequestData>(GetArena()); - authenticationdata_ = p; - } - return authenticationdata_; -} -inline ::backup::SimpleAuthenticationRequestData* SendLogRequest::mutable_authenticationdata() { - // @@protoc_insertion_point(field_mutable:backup.SendLogRequest.authenticationData) - return _internal_mutable_authenticationdata(); -} -inline void SendLogRequest::set_allocated_authenticationdata(::backup::SimpleAuthenticationRequestData* authenticationdata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete authenticationdata_; - } - if (authenticationdata) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(authenticationdata); - if (message_arena != submessage_arena) { - authenticationdata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, authenticationdata, submessage_arena); +inline void SendLogRequest::set_allocated_loghash(std::string* loghash) { + if (has_data()) { + clear_data(); + } + if (loghash != nullptr) { + set_has_loghash(); + data_.loghash_.UnsafeSetDefault(loghash); + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); + if (arena != nullptr) { + arena->Own(loghash); } - - } else { - } - authenticationdata_ = authenticationdata; - // @@protoc_insertion_point(field_set_allocated:backup.SendLogRequest.authenticationData) + // @@protoc_insertion_point(field_set_allocated:backup.SendLogRequest.logHash) } -// bytes logData = 2; +// bytes logData = 4; +inline bool SendLogRequest::_internal_has_logdata() const { + return data_case() == kLogData; +} +inline bool SendLogRequest::has_logdata() const { + return _internal_has_logdata(); +} +inline void SendLogRequest::set_has_logdata() { + _oneof_case_[0] = kLogData; +} inline void SendLogRequest::clear_logdata() { - logdata_.ClearToEmpty(); + if (_internal_has_logdata()) { + data_.logdata_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + clear_has_data(); + } } inline const std::string& SendLogRequest::logdata() const { // @@protoc_insertion_point(field_get:backup.SendLogRequest.logData) @@ -5750,287 +2237,165 @@ return _internal_mutable_logdata(); } inline const std::string& SendLogRequest::_internal_logdata() const { - return logdata_.Get(); + if (_internal_has_logdata()) { + return data_.logdata_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void SendLogRequest::_internal_set_logdata(const std::string& value) { - - logdata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + 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) { - - logdata_.Set( + // @@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); - - logdata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + 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) { - - logdata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); + size_t size) { + 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( + reinterpret_cast(value), size), + GetArena()); // @@protoc_insertion_point(field_set_pointer:backup.SendLogRequest.logData) } inline std::string* SendLogRequest::_internal_mutable_logdata() { - - return logdata_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + if (!_internal_has_logdata()) { + clear_data(); + set_has_logdata(); + data_.logdata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + return data_.logdata_.Mutable( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } inline std::string* SendLogRequest::release_logdata() { // @@protoc_insertion_point(field_release:backup.SendLogRequest.logData) - return logdata_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + if (_internal_has_logdata()) { + clear_has_data(); + return data_.logdata_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + } else { + return nullptr; + } } inline void SendLogRequest::set_allocated_logdata(std::string* logdata) { + if (has_data()) { + clear_data(); + } if (logdata != nullptr) { - - } else { - + set_has_logdata(); + data_.logdata_.UnsafeSetDefault(logdata); + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); + if (arena != nullptr) { + arena->Own(logdata); + } } - logdata_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), logdata, - GetArena()); // @@protoc_insertion_point(field_set_allocated:backup.SendLogRequest.logData) } +inline bool SendLogRequest::has_data() const { + return data_case() != DATA_NOT_SET; +} +inline void SendLogRequest::clear_has_data() { + _oneof_case_[0] = DATA_NOT_SET; +} +inline SendLogRequest::DataCase SendLogRequest::data_case() const { + return SendLogRequest::DataCase(_oneof_case_[0]); +} // ------------------------------------------------------------------- // RecoverBackupKeyRequest -// .backup.FullAuthenticationRequestData authenticationData = 1; -inline bool RecoverBackupKeyRequest::_internal_has_authenticationdata() const { - return this != internal_default_instance() && authenticationdata_ != nullptr; +// string userID = 1; +inline void RecoverBackupKeyRequest::clear_userid() { + userid_.ClearToEmpty(); } -inline bool RecoverBackupKeyRequest::has_authenticationdata() const { - return _internal_has_authenticationdata(); +inline const std::string& RecoverBackupKeyRequest::userid() const { + // @@protoc_insertion_point(field_get:backup.RecoverBackupKeyRequest.userID) + return _internal_userid(); } -inline void RecoverBackupKeyRequest::clear_authenticationdata() { - if (GetArena() == nullptr && authenticationdata_ != nullptr) { - delete authenticationdata_; - } - authenticationdata_ = nullptr; +inline void RecoverBackupKeyRequest::set_userid(const std::string& value) { + _internal_set_userid(value); + // @@protoc_insertion_point(field_set:backup.RecoverBackupKeyRequest.userID) } -inline const ::backup::FullAuthenticationRequestData& RecoverBackupKeyRequest::_internal_authenticationdata() const { - const ::backup::FullAuthenticationRequestData* p = authenticationdata_; - return p != nullptr ? *p : reinterpret_cast( - ::backup::_FullAuthenticationRequestData_default_instance_); +inline std::string* RecoverBackupKeyRequest::mutable_userid() { + // @@protoc_insertion_point(field_mutable:backup.RecoverBackupKeyRequest.userID) + return _internal_mutable_userid(); } -inline const ::backup::FullAuthenticationRequestData& RecoverBackupKeyRequest::authenticationdata() const { - // @@protoc_insertion_point(field_get:backup.RecoverBackupKeyRequest.authenticationData) - return _internal_authenticationdata(); +inline const std::string& RecoverBackupKeyRequest::_internal_userid() const { + return userid_.Get(); } -inline void RecoverBackupKeyRequest::unsafe_arena_set_allocated_authenticationdata( - ::backup::FullAuthenticationRequestData* authenticationdata) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(authenticationdata_); - } - authenticationdata_ = authenticationdata; - if (authenticationdata) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:backup.RecoverBackupKeyRequest.authenticationData) +inline void RecoverBackupKeyRequest::_internal_set_userid(const std::string& value) { + + userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline ::backup::FullAuthenticationRequestData* RecoverBackupKeyRequest::release_authenticationdata() { +inline void RecoverBackupKeyRequest::set_userid(std::string&& value) { - ::backup::FullAuthenticationRequestData* temp = authenticationdata_; - authenticationdata_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; + userid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:backup.RecoverBackupKeyRequest.userID) } -inline ::backup::FullAuthenticationRequestData* RecoverBackupKeyRequest::unsafe_arena_release_authenticationdata() { - // @@protoc_insertion_point(field_release:backup.RecoverBackupKeyRequest.authenticationData) +inline void RecoverBackupKeyRequest::set_userid(const char* value) { + GOOGLE_DCHECK(value != nullptr); - ::backup::FullAuthenticationRequestData* temp = authenticationdata_; - authenticationdata_ = nullptr; - return temp; + userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:backup.RecoverBackupKeyRequest.userID) } -inline ::backup::FullAuthenticationRequestData* RecoverBackupKeyRequest::_internal_mutable_authenticationdata() { +inline void RecoverBackupKeyRequest::set_userid(const char* value, + size_t size) { - if (authenticationdata_ == nullptr) { - auto* p = CreateMaybeMessage<::backup::FullAuthenticationRequestData>(GetArena()); - authenticationdata_ = p; - } - return authenticationdata_; -} -inline ::backup::FullAuthenticationRequestData* RecoverBackupKeyRequest::mutable_authenticationdata() { - // @@protoc_insertion_point(field_mutable:backup.RecoverBackupKeyRequest.authenticationData) - return _internal_mutable_authenticationdata(); -} -inline void RecoverBackupKeyRequest::set_allocated_authenticationdata(::backup::FullAuthenticationRequestData* authenticationdata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete authenticationdata_; - } - if (authenticationdata) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(authenticationdata); - if (message_arena != submessage_arena) { - authenticationdata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, authenticationdata, submessage_arena); - } + userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:backup.RecoverBackupKeyRequest.userID) +} +inline std::string* RecoverBackupKeyRequest::_internal_mutable_userid() { + + return userid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* RecoverBackupKeyRequest::release_userid() { + // @@protoc_insertion_point(field_release:backup.RecoverBackupKeyRequest.userID) + return userid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void RecoverBackupKeyRequest::set_allocated_userid(std::string* userid) { + if (userid != nullptr) { } else { } - authenticationdata_ = authenticationdata; - // @@protoc_insertion_point(field_set_allocated:backup.RecoverBackupKeyRequest.authenticationData) + userid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), userid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:backup.RecoverBackupKeyRequest.userID) } // ------------------------------------------------------------------- // RecoverBackupKeyResponse -// .backup.FullAuthenticationResponseData authenticationResponseData = 1; -inline bool RecoverBackupKeyResponse::_internal_has_authenticationresponsedata() const { - return data_case() == kAuthenticationResponseData; -} -inline bool RecoverBackupKeyResponse::has_authenticationresponsedata() const { - return _internal_has_authenticationresponsedata(); -} -inline void RecoverBackupKeyResponse::set_has_authenticationresponsedata() { - _oneof_case_[0] = kAuthenticationResponseData; -} -inline void RecoverBackupKeyResponse::clear_authenticationresponsedata() { - if (_internal_has_authenticationresponsedata()) { - if (GetArena() == nullptr) { - delete data_.authenticationresponsedata_; - } - clear_has_data(); - } -} -inline ::backup::FullAuthenticationResponseData* RecoverBackupKeyResponse::release_authenticationresponsedata() { - // @@protoc_insertion_point(field_release:backup.RecoverBackupKeyResponse.authenticationResponseData) - if (_internal_has_authenticationresponsedata()) { - clear_has_data(); - ::backup::FullAuthenticationResponseData* temp = data_.authenticationresponsedata_; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - data_.authenticationresponsedata_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::backup::FullAuthenticationResponseData& RecoverBackupKeyResponse::_internal_authenticationresponsedata() const { - return _internal_has_authenticationresponsedata() - ? *data_.authenticationresponsedata_ - : reinterpret_cast< ::backup::FullAuthenticationResponseData&>(::backup::_FullAuthenticationResponseData_default_instance_); -} -inline const ::backup::FullAuthenticationResponseData& RecoverBackupKeyResponse::authenticationresponsedata() const { - // @@protoc_insertion_point(field_get:backup.RecoverBackupKeyResponse.authenticationResponseData) - return _internal_authenticationresponsedata(); -} -inline ::backup::FullAuthenticationResponseData* RecoverBackupKeyResponse::unsafe_arena_release_authenticationresponsedata() { - // @@protoc_insertion_point(field_unsafe_arena_release:backup.RecoverBackupKeyResponse.authenticationResponseData) - if (_internal_has_authenticationresponsedata()) { - clear_has_data(); - ::backup::FullAuthenticationResponseData* temp = data_.authenticationresponsedata_; - data_.authenticationresponsedata_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void RecoverBackupKeyResponse::unsafe_arena_set_allocated_authenticationresponsedata(::backup::FullAuthenticationResponseData* authenticationresponsedata) { - clear_data(); - if (authenticationresponsedata) { - set_has_authenticationresponsedata(); - data_.authenticationresponsedata_ = authenticationresponsedata; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:backup.RecoverBackupKeyResponse.authenticationResponseData) -} -inline ::backup::FullAuthenticationResponseData* RecoverBackupKeyResponse::_internal_mutable_authenticationresponsedata() { - if (!_internal_has_authenticationresponsedata()) { - clear_data(); - set_has_authenticationresponsedata(); - data_.authenticationresponsedata_ = CreateMaybeMessage< ::backup::FullAuthenticationResponseData >(GetArena()); - } - return data_.authenticationresponsedata_; -} -inline ::backup::FullAuthenticationResponseData* RecoverBackupKeyResponse::mutable_authenticationresponsedata() { - // @@protoc_insertion_point(field_mutable:backup.RecoverBackupKeyResponse.authenticationResponseData) - return _internal_mutable_authenticationresponsedata(); -} - -// .backup.BackupKeyEntropy backupKeyEntropy = 2; -inline bool RecoverBackupKeyResponse::_internal_has_backupkeyentropy() const { - return data_case() == kBackupKeyEntropy; -} -inline bool RecoverBackupKeyResponse::has_backupkeyentropy() const { - return _internal_has_backupkeyentropy(); -} -inline void RecoverBackupKeyResponse::set_has_backupkeyentropy() { - _oneof_case_[0] = kBackupKeyEntropy; -} -inline void RecoverBackupKeyResponse::clear_backupkeyentropy() { - if (_internal_has_backupkeyentropy()) { - if (GetArena() == nullptr) { - delete data_.backupkeyentropy_; - } - clear_has_data(); - } -} -inline ::backup::BackupKeyEntropy* RecoverBackupKeyResponse::release_backupkeyentropy() { - // @@protoc_insertion_point(field_release:backup.RecoverBackupKeyResponse.backupKeyEntropy) - if (_internal_has_backupkeyentropy()) { - clear_has_data(); - ::backup::BackupKeyEntropy* temp = data_.backupkeyentropy_; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - data_.backupkeyentropy_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::backup::BackupKeyEntropy& RecoverBackupKeyResponse::_internal_backupkeyentropy() const { - return _internal_has_backupkeyentropy() - ? *data_.backupkeyentropy_ - : reinterpret_cast< ::backup::BackupKeyEntropy&>(::backup::_BackupKeyEntropy_default_instance_); -} -inline const ::backup::BackupKeyEntropy& RecoverBackupKeyResponse::backupkeyentropy() const { - // @@protoc_insertion_point(field_get:backup.RecoverBackupKeyResponse.backupKeyEntropy) - return _internal_backupkeyentropy(); -} -inline ::backup::BackupKeyEntropy* RecoverBackupKeyResponse::unsafe_arena_release_backupkeyentropy() { - // @@protoc_insertion_point(field_unsafe_arena_release:backup.RecoverBackupKeyResponse.backupKeyEntropy) - if (_internal_has_backupkeyentropy()) { - clear_has_data(); - ::backup::BackupKeyEntropy* temp = data_.backupkeyentropy_; - data_.backupkeyentropy_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void RecoverBackupKeyResponse::unsafe_arena_set_allocated_backupkeyentropy(::backup::BackupKeyEntropy* backupkeyentropy) { - clear_data(); - if (backupkeyentropy) { - set_has_backupkeyentropy(); - data_.backupkeyentropy_ = backupkeyentropy; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:backup.RecoverBackupKeyResponse.backupKeyEntropy) -} -inline ::backup::BackupKeyEntropy* RecoverBackupKeyResponse::_internal_mutable_backupkeyentropy() { - if (!_internal_has_backupkeyentropy()) { - clear_data(); - set_has_backupkeyentropy(); - data_.backupkeyentropy_ = CreateMaybeMessage< ::backup::BackupKeyEntropy >(GetArena()); - } - return data_.backupkeyentropy_; -} -inline ::backup::BackupKeyEntropy* RecoverBackupKeyResponse::mutable_backupkeyentropy() { - // @@protoc_insertion_point(field_mutable:backup.RecoverBackupKeyResponse.backupKeyEntropy) - return _internal_mutable_backupkeyentropy(); -} - // string backupID = 4; inline bool RecoverBackupKeyResponse::_internal_has_backupid() const { return data_case() == kBackupID; @@ -6154,87 +2519,65 @@ // PullBackupRequest -// .backup.SimpleAuthenticationRequestData authenticationData = 1; -inline bool PullBackupRequest::_internal_has_authenticationdata() const { - return this != internal_default_instance() && authenticationdata_ != nullptr; +// string userID = 1; +inline void PullBackupRequest::clear_userid() { + userid_.ClearToEmpty(); } -inline bool PullBackupRequest::has_authenticationdata() const { - return _internal_has_authenticationdata(); +inline const std::string& PullBackupRequest::userid() const { + // @@protoc_insertion_point(field_get:backup.PullBackupRequest.userID) + return _internal_userid(); } -inline void PullBackupRequest::clear_authenticationdata() { - if (GetArena() == nullptr && authenticationdata_ != nullptr) { - delete authenticationdata_; - } - authenticationdata_ = nullptr; +inline void PullBackupRequest::set_userid(const std::string& value) { + _internal_set_userid(value); + // @@protoc_insertion_point(field_set:backup.PullBackupRequest.userID) } -inline const ::backup::SimpleAuthenticationRequestData& PullBackupRequest::_internal_authenticationdata() const { - const ::backup::SimpleAuthenticationRequestData* p = authenticationdata_; - return p != nullptr ? *p : reinterpret_cast( - ::backup::_SimpleAuthenticationRequestData_default_instance_); +inline std::string* PullBackupRequest::mutable_userid() { + // @@protoc_insertion_point(field_mutable:backup.PullBackupRequest.userID) + return _internal_mutable_userid(); } -inline const ::backup::SimpleAuthenticationRequestData& PullBackupRequest::authenticationdata() const { - // @@protoc_insertion_point(field_get:backup.PullBackupRequest.authenticationData) - return _internal_authenticationdata(); +inline const std::string& PullBackupRequest::_internal_userid() const { + return userid_.Get(); } -inline void PullBackupRequest::unsafe_arena_set_allocated_authenticationdata( - ::backup::SimpleAuthenticationRequestData* authenticationdata) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(authenticationdata_); - } - authenticationdata_ = authenticationdata; - if (authenticationdata) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:backup.PullBackupRequest.authenticationData) +inline void PullBackupRequest::_internal_set_userid(const std::string& value) { + + userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline ::backup::SimpleAuthenticationRequestData* PullBackupRequest::release_authenticationdata() { +inline void PullBackupRequest::set_userid(std::string&& value) { - ::backup::SimpleAuthenticationRequestData* temp = authenticationdata_; - authenticationdata_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; + 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 ::backup::SimpleAuthenticationRequestData* PullBackupRequest::unsafe_arena_release_authenticationdata() { - // @@protoc_insertion_point(field_release:backup.PullBackupRequest.authenticationData) +inline void PullBackupRequest::set_userid(const char* value, + size_t size) { - ::backup::SimpleAuthenticationRequestData* temp = authenticationdata_; - authenticationdata_ = nullptr; - return temp; + userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:backup.PullBackupRequest.userID) } -inline ::backup::SimpleAuthenticationRequestData* PullBackupRequest::_internal_mutable_authenticationdata() { +inline std::string* PullBackupRequest::_internal_mutable_userid() { - if (authenticationdata_ == nullptr) { - auto* p = CreateMaybeMessage<::backup::SimpleAuthenticationRequestData>(GetArena()); - authenticationdata_ = p; - } - return authenticationdata_; -} -inline ::backup::SimpleAuthenticationRequestData* PullBackupRequest::mutable_authenticationdata() { - // @@protoc_insertion_point(field_mutable:backup.PullBackupRequest.authenticationData) - return _internal_mutable_authenticationdata(); -} -inline void PullBackupRequest::set_allocated_authenticationdata(::backup::SimpleAuthenticationRequestData* authenticationdata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete authenticationdata_; - } - if (authenticationdata) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(authenticationdata); - if (message_arena != submessage_arena) { - authenticationdata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, authenticationdata, submessage_arena); - } + return userid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* PullBackupRequest::release_userid() { + // @@protoc_insertion_point(field_release:backup.PullBackupRequest.userID) + return userid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void PullBackupRequest::set_allocated_userid(std::string* userid) { + if (userid != nullptr) { } else { } - authenticationdata_ = authenticationdata; - // @@protoc_insertion_point(field_set_allocated:backup.PullBackupRequest.authenticationData) + userid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), userid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:backup.PullBackupRequest.userID) } // ------------------------------------------------------------------- @@ -6485,24 +2828,6 @@ // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) 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 @@ -17,118 +17,6 @@ PROTOBUF_PRAGMA_INIT_SEG namespace backup { -constexpr PakeRegistrationRequestAndUserID::PakeRegistrationRequestAndUserID( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : userid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , pakeregistrationrequest_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct PakeRegistrationRequestAndUserIDDefaultTypeInternal { - constexpr PakeRegistrationRequestAndUserIDDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PakeRegistrationRequestAndUserIDDefaultTypeInternal() {} - union { - PakeRegistrationRequestAndUserID _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PakeRegistrationRequestAndUserIDDefaultTypeInternal _PakeRegistrationRequestAndUserID_default_instance_; -constexpr PakeAuthenticationRequestData::PakeAuthenticationRequestData( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : _oneof_case_{}{} -struct PakeAuthenticationRequestDataDefaultTypeInternal { - constexpr PakeAuthenticationRequestDataDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PakeAuthenticationRequestDataDefaultTypeInternal() {} - union { - PakeAuthenticationRequestData _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PakeAuthenticationRequestDataDefaultTypeInternal _PakeAuthenticationRequestData_default_instance_; -constexpr WalletAuthenticationRequestData::WalletAuthenticationRequestData( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : userid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , walletaddress_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , signedmessage_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct WalletAuthenticationRequestDataDefaultTypeInternal { - constexpr WalletAuthenticationRequestDataDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~WalletAuthenticationRequestDataDefaultTypeInternal() {} - union { - WalletAuthenticationRequestData _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WalletAuthenticationRequestDataDefaultTypeInternal _WalletAuthenticationRequestData_default_instance_; -constexpr FullAuthenticationRequestData::FullAuthenticationRequestData( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : _oneof_case_{}{} -struct FullAuthenticationRequestDataDefaultTypeInternal { - constexpr FullAuthenticationRequestDataDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~FullAuthenticationRequestDataDefaultTypeInternal() {} - union { - FullAuthenticationRequestData _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FullAuthenticationRequestDataDefaultTypeInternal _FullAuthenticationRequestData_default_instance_; -constexpr WalletAuthenticationResponseData::WalletAuthenticationResponseData( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : success_(false){} -struct WalletAuthenticationResponseDataDefaultTypeInternal { - constexpr WalletAuthenticationResponseDataDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~WalletAuthenticationResponseDataDefaultTypeInternal() {} - union { - WalletAuthenticationResponseData _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WalletAuthenticationResponseDataDefaultTypeInternal _WalletAuthenticationResponseData_default_instance_; -constexpr PakeAuthenticationResponseData::PakeAuthenticationResponseData( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : _oneof_case_{}{} -struct PakeAuthenticationResponseDataDefaultTypeInternal { - constexpr PakeAuthenticationResponseDataDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PakeAuthenticationResponseDataDefaultTypeInternal() {} - union { - PakeAuthenticationResponseData _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PakeAuthenticationResponseDataDefaultTypeInternal _PakeAuthenticationResponseData_default_instance_; -constexpr FullAuthenticationResponseData::FullAuthenticationResponseData( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : _oneof_case_{}{} -struct FullAuthenticationResponseDataDefaultTypeInternal { - constexpr FullAuthenticationResponseDataDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~FullAuthenticationResponseDataDefaultTypeInternal() {} - union { - FullAuthenticationResponseData _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FullAuthenticationResponseDataDefaultTypeInternal _FullAuthenticationResponseData_default_instance_; -constexpr SimpleAuthenticationRequestData::SimpleAuthenticationRequestData( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : backupid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , userid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct SimpleAuthenticationRequestDataDefaultTypeInternal { - constexpr SimpleAuthenticationRequestDataDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SimpleAuthenticationRequestDataDefaultTypeInternal() {} - union { - SimpleAuthenticationRequestData _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SimpleAuthenticationRequestDataDefaultTypeInternal _SimpleAuthenticationRequestData_default_instance_; -constexpr BackupKeyEntropy::BackupKeyEntropy( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : _oneof_case_{}{} -struct BackupKeyEntropyDefaultTypeInternal { - constexpr BackupKeyEntropyDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BackupKeyEntropyDefaultTypeInternal() {} - union { - BackupKeyEntropy _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BackupKeyEntropyDefaultTypeInternal _BackupKeyEntropy_default_instance_; constexpr CreateNewBackupRequest::CreateNewBackupRequest( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : _oneof_case_{}{} @@ -143,7 +31,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateNewBackupRequestDefaultTypeInternal _CreateNewBackupRequest_default_instance_; constexpr CreateNewBackupResponse::CreateNewBackupResponse( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : _oneof_case_{}{} + : backupid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} struct CreateNewBackupResponseDefaultTypeInternal { constexpr CreateNewBackupResponseDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -154,2887 +42,196 @@ }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateNewBackupResponseDefaultTypeInternal _CreateNewBackupResponse_default_instance_; constexpr SendLogRequest::SendLogRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : logdata_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , authenticationdata_(nullptr){} -struct SendLogRequestDefaultTypeInternal { - constexpr SendLogRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SendLogRequestDefaultTypeInternal() {} - union { - SendLogRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SendLogRequestDefaultTypeInternal _SendLogRequest_default_instance_; -constexpr RecoverBackupKeyRequest::RecoverBackupKeyRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : authenticationdata_(nullptr){} -struct RecoverBackupKeyRequestDefaultTypeInternal { - constexpr RecoverBackupKeyRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~RecoverBackupKeyRequestDefaultTypeInternal() {} - union { - RecoverBackupKeyRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RecoverBackupKeyRequestDefaultTypeInternal _RecoverBackupKeyRequest_default_instance_; -constexpr RecoverBackupKeyResponse::RecoverBackupKeyResponse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : _oneof_case_{}{} -struct RecoverBackupKeyResponseDefaultTypeInternal { - constexpr RecoverBackupKeyResponseDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~RecoverBackupKeyResponseDefaultTypeInternal() {} - union { - RecoverBackupKeyResponse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RecoverBackupKeyResponseDefaultTypeInternal _RecoverBackupKeyResponse_default_instance_; -constexpr PullBackupRequest::PullBackupRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : authenticationdata_(nullptr){} -struct PullBackupRequestDefaultTypeInternal { - constexpr PullBackupRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PullBackupRequestDefaultTypeInternal() {} - union { - PullBackupRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PullBackupRequestDefaultTypeInternal _PullBackupRequest_default_instance_; -constexpr PullBackupResponse::PullBackupResponse( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : _oneof_case_{}{} -struct PullBackupResponseDefaultTypeInternal { - constexpr PullBackupResponseDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PullBackupResponseDefaultTypeInternal() {} - union { - PullBackupResponse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PullBackupResponseDefaultTypeInternal _PullBackupResponse_default_instance_; -} // namespace backup -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_backup_2eproto[16]; -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; - -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_backup_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::backup::PakeRegistrationRequestAndUserID, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::backup::PakeRegistrationRequestAndUserID, userid_), - PROTOBUF_FIELD_OFFSET(::backup::PakeRegistrationRequestAndUserID, pakeregistrationrequest_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::backup::PakeAuthenticationRequestData, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::backup::PakeAuthenticationRequestData, _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::PakeAuthenticationRequestData, data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::backup::WalletAuthenticationRequestData, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::backup::WalletAuthenticationRequestData, userid_), - PROTOBUF_FIELD_OFFSET(::backup::WalletAuthenticationRequestData, walletaddress_), - PROTOBUF_FIELD_OFFSET(::backup::WalletAuthenticationRequestData, signedmessage_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::backup::FullAuthenticationRequestData, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::backup::FullAuthenticationRequestData, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::backup::FullAuthenticationRequestData, data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::backup::WalletAuthenticationResponseData, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::backup::WalletAuthenticationResponseData, success_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::backup::PakeAuthenticationResponseData, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::backup::PakeAuthenticationResponseData, _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::PakeAuthenticationResponseData, data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::backup::FullAuthenticationResponseData, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::backup::FullAuthenticationResponseData, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::backup::FullAuthenticationResponseData, data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::backup::SimpleAuthenticationRequestData, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::backup::SimpleAuthenticationRequestData, backupid_), - PROTOBUF_FIELD_OFFSET(::backup::SimpleAuthenticationRequestData, userid_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::backup::BackupKeyEntropy, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::backup::BackupKeyEntropy, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::backup::BackupKeyEntropy, data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::backup::CreateNewBackupRequest, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::backup::CreateNewBackupRequest, _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::CreateNewBackupRequest, data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::backup::CreateNewBackupResponse, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::backup::CreateNewBackupResponse, _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(::backup::CreateNewBackupResponse, data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::backup::SendLogRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::backup::SendLogRequest, authenticationdata_), - PROTOBUF_FIELD_OFFSET(::backup::SendLogRequest, logdata_), - ~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, authenticationdata_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::backup::RecoverBackupKeyResponse, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::backup::RecoverBackupKeyResponse, _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(::backup::RecoverBackupKeyResponse, data_), - ~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, authenticationdata_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::backup::PullBackupResponse, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::backup::PullBackupResponse, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::backup::PullBackupResponse, data_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::backup::PakeRegistrationRequestAndUserID)}, - { 7, -1, sizeof(::backup::PakeAuthenticationRequestData)}, - { 18, -1, sizeof(::backup::WalletAuthenticationRequestData)}, - { 26, -1, sizeof(::backup::FullAuthenticationRequestData)}, - { 34, -1, sizeof(::backup::WalletAuthenticationResponseData)}, - { 40, -1, sizeof(::backup::PakeAuthenticationResponseData)}, - { 50, -1, sizeof(::backup::FullAuthenticationResponseData)}, - { 58, -1, sizeof(::backup::SimpleAuthenticationRequestData)}, - { 65, -1, sizeof(::backup::BackupKeyEntropy)}, - { 73, -1, sizeof(::backup::CreateNewBackupRequest)}, - { 83, -1, sizeof(::backup::CreateNewBackupResponse)}, - { 92, -1, sizeof(::backup::SendLogRequest)}, - { 99, -1, sizeof(::backup::RecoverBackupKeyRequest)}, - { 105, -1, sizeof(::backup::RecoverBackupKeyResponse)}, - { 114, -1, sizeof(::backup::PullBackupRequest)}, - { 120, -1, sizeof(::backup::PullBackupResponse)}, -}; - -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::backup::_PakeRegistrationRequestAndUserID_default_instance_), - reinterpret_cast(&::backup::_PakeAuthenticationRequestData_default_instance_), - reinterpret_cast(&::backup::_WalletAuthenticationRequestData_default_instance_), - reinterpret_cast(&::backup::_FullAuthenticationRequestData_default_instance_), - reinterpret_cast(&::backup::_WalletAuthenticationResponseData_default_instance_), - reinterpret_cast(&::backup::_PakeAuthenticationResponseData_default_instance_), - reinterpret_cast(&::backup::_FullAuthenticationResponseData_default_instance_), - reinterpret_cast(&::backup::_SimpleAuthenticationRequestData_default_instance_), - reinterpret_cast(&::backup::_BackupKeyEntropy_default_instance_), - reinterpret_cast(&::backup::_CreateNewBackupRequest_default_instance_), - reinterpret_cast(&::backup::_CreateNewBackupResponse_default_instance_), - reinterpret_cast(&::backup::_SendLogRequest_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_), -}; - -const char descriptor_table_protodef_backup_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\014backup.proto\022\006backup\032\033google/protobuf/" - "empty.proto\"S\n PakeRegistrationRequestAn" - "dUserID\022\016\n\006userID\030\001 \001(\t\022\037\n\027pakeRegistrat" - "ionRequest\030\002 \001(\014\"\377\001\n\035PakeAuthenticationR" - "equestData\022T\n pakeRegistrationRequestAnd" - "UserID\030\001 \001(\0132(.backup.PakeRegistrationRe" - "questAndUserIDH\000\022 \n\026pakeRegistrationUplo" - "ad\030\002 \001(\014H\000\022\037\n\025pakeCredentialRequest\030\003 \001(" - "\014H\000\022$\n\032pakeCredentialFinalization\030\004 \001(\014H" - "\000\022\027\n\rpakeClientMAC\030\005 \001(\014H\000B\006\n\004data\"_\n\037Wa" - "lletAuthenticationRequestData\022\016\n\006userID\030" - "\001 \001(\t\022\025\n\rwalletAddress\030\002 \001(\t\022\025\n\rsignedMe" - "ssage\030\003 \001(\014\"\313\001\n\035FullAuthenticationReques" - "tData\022N\n\035pakeAuthenticationRequestData\030\001" - " \001(\0132%.backup.PakeAuthenticationRequestD" - "ataH\000\022R\n\037walletAuthenticationRequestData" - "\030\002 \001(\0132\'.backup.WalletAuthenticationRequ" - "estDataH\000B\006\n\004data\"3\n WalletAuthenticatio" - "nResponseData\022\017\n\007success\030\001 \001(\010\"\252\001\n\036PakeA" - "uthenticationResponseData\022\"\n\030pakeRegistr" - "ationResponse\030\001 \001(\014H\000\022!\n\027pakeRegistratio" - "nSuccess\030\002 \001(\010H\000\022 \n\026pakeCredentialRespon" - "se\030\003 \001(\014H\000\022\027\n\rpakeServerMAC\030\004 \001(\014H\000B\006\n\004d" - "ata\"\320\001\n\036FullAuthenticationResponseData\022P" - "\n\036pakeAuthenticationResponseData\030\001 \001(\0132&" - ".backup.PakeAuthenticationResponseDataH\000" - "\022T\n walletAuthenticationResponseData\030\002 \001" - "(\0132(.backup.WalletAuthenticationResponse" - "DataH\000B\006\n\004data\"C\n\037SimpleAuthenticationRe" - "questData\022\020\n\010backupID\030\001 \001(\t\022\016\n\006userID\030\002 " - "\001(\t\"A\n\020BackupKeyEntropy\022\017\n\005nonce\030\001 \001(\014H\000" - "\022\024\n\nrawMessage\030\002 \001(\014H\000B\006\n\004data\"\335\001\n\026Creat" - "eNewBackupRequest\022J\n\031authenticationReque" - "stData\030\001 \001(\0132%.backup.FullAuthentication" - "RequestDataH\000\0224\n\020backupKeyEntropy\030\002 \001(\0132" - "\030.backup.BackupKeyEntropyH\000\022\033\n\021newCompac" - "tionHash\030\003 \001(\014H\000\022\034\n\022newCompactionChunk\030\004" - " \001(\014H\000B\006\n\004data\"\233\001\n\027CreateNewBackupRespon" - "se\022L\n\032authenticationResponseData\030\001 \001(\0132&" - ".backup.FullAuthenticationResponseDataH\000" - "\022\026\n\014entropyValid\030\002 \001(\010H\000\022\022\n\010backupID\030\003 \001" - "(\tH\000B\006\n\004data\"f\n\016SendLogRequest\022C\n\022authen" - "ticationData\030\001 \001(\0132\'.backup.SimpleAuthen" - "ticationRequestData\022\017\n\007logData\030\002 \001(\014\"\\\n\027" - "RecoverBackupKeyRequest\022A\n\022authenticatio" - "nData\030\001 \001(\0132%.backup.FullAuthenticationR" - "equestData\"\272\001\n\030RecoverBackupKeyResponse\022" - "L\n\032authenticationResponseData\030\001 \001(\0132&.ba" - "ckup.FullAuthenticationResponseDataH\000\0224\n" - "\020backupKeyEntropy\030\002 \001(\0132\030.backup.BackupK" - "eyEntropyH\000\022\022\n\010backupID\030\004 \001(\tH\000B\006\n\004data\"" - "X\n\021PullBackupRequest\022C\n\022authenticationDa" - "ta\030\001 \001(\0132\'.backup.SimpleAuthenticationRe" - "questData\"K\n\022PullBackupResponse\022\031\n\017compa" - "ctionChunk\030\001 \001(\014H\000\022\022\n\010logChunk\030\002 \001(\014H\000B\006" - "\n\004data2\320\002\n\rBackupService\022X\n\017CreateNewBac" - "kup\022\036.backup.CreateNewBackupRequest\032\037.ba" - "ckup.CreateNewBackupResponse\"\000(\0010\001\022=\n\007Se" - "ndLog\022\026.backup.SendLogRequest\032\026.google.p" - "rotobuf.Empty\"\000(\001\022[\n\020RecoverBackupKey\022\037." - "backup.RecoverBackupKeyRequest\032 .backup." - "RecoverBackupKeyResponse\"\000(\0010\001\022I\n\nPullBa" - "ckup\022\031.backup.PullBackupRequest\032\032.backup" - ".PullBackupResponse\"\000(\0010\001b\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::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, 2553, descriptor_table_protodef_backup_2eproto, "backup.proto", - &descriptor_table_backup_2eproto_once, descriptor_table_backup_2eproto_deps, 1, 16, - 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]; -} - -// 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); -namespace backup { - -// =================================================================== - -class PakeRegistrationRequestAndUserID::_Internal { - public: -}; - -PakeRegistrationRequestAndUserID::PakeRegistrationRequestAndUserID(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:backup.PakeRegistrationRequestAndUserID) -} -PakeRegistrationRequestAndUserID::PakeRegistrationRequestAndUserID(const PakeRegistrationRequestAndUserID& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_userid().empty()) { - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_userid(), - GetArena()); - } - pakeregistrationrequest_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_pakeregistrationrequest().empty()) { - pakeregistrationrequest_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_pakeregistrationrequest(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:backup.PakeRegistrationRequestAndUserID) -} - -void PakeRegistrationRequestAndUserID::SharedCtor() { -userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -pakeregistrationrequest_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -PakeRegistrationRequestAndUserID::~PakeRegistrationRequestAndUserID() { - // @@protoc_insertion_point(destructor:backup.PakeRegistrationRequestAndUserID) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PakeRegistrationRequestAndUserID::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - userid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - pakeregistrationrequest_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void PakeRegistrationRequestAndUserID::ArenaDtor(void* object) { - PakeRegistrationRequestAndUserID* _this = reinterpret_cast< PakeRegistrationRequestAndUserID* >(object); - (void)_this; -} -void PakeRegistrationRequestAndUserID::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PakeRegistrationRequestAndUserID::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void PakeRegistrationRequestAndUserID::Clear() { -// @@protoc_insertion_point(message_clear_start:backup.PakeRegistrationRequestAndUserID) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - userid_.ClearToEmpty(); - pakeregistrationrequest_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PakeRegistrationRequestAndUserID::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::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); - switch (tag >> 3) { - // string userID = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_userid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.PakeRegistrationRequestAndUserID.userID")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bytes pakeRegistrationRequest = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_pakeregistrationrequest(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::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); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PakeRegistrationRequestAndUserID::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:backup.PakeRegistrationRequestAndUserID) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string userID = 1; - if (this->userid().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_userid().data(), static_cast(this->_internal_userid().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "backup.PakeRegistrationRequestAndUserID.userID"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_userid(), target); - } - - // bytes pakeRegistrationRequest = 2; - if (this->pakeregistrationrequest().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_pakeregistrationrequest(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::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.PakeRegistrationRequestAndUserID) - return target; -} - -size_t PakeRegistrationRequestAndUserID::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:backup.PakeRegistrationRequestAndUserID) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 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) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_userid()); - } - - // bytes pakeRegistrationRequest = 2; - if (this->pakeregistrationrequest().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_pakeregistrationrequest()); - } - - 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 PakeRegistrationRequestAndUserID::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:backup.PakeRegistrationRequestAndUserID) - GOOGLE_DCHECK_NE(&from, this); - const PakeRegistrationRequestAndUserID* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:backup.PakeRegistrationRequestAndUserID) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:backup.PakeRegistrationRequestAndUserID) - MergeFrom(*source); - } -} - -void PakeRegistrationRequestAndUserID::MergeFrom(const PakeRegistrationRequestAndUserID& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:backup.PakeRegistrationRequestAndUserID) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.userid().size() > 0) { - _internal_set_userid(from._internal_userid()); - } - if (from.pakeregistrationrequest().size() > 0) { - _internal_set_pakeregistrationrequest(from._internal_pakeregistrationrequest()); - } -} - -void PakeRegistrationRequestAndUserID::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:backup.PakeRegistrationRequestAndUserID) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PakeRegistrationRequestAndUserID::CopyFrom(const PakeRegistrationRequestAndUserID& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:backup.PakeRegistrationRequestAndUserID) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PakeRegistrationRequestAndUserID::IsInitialized() const { - return true; -} - -void PakeRegistrationRequestAndUserID::InternalSwap(PakeRegistrationRequestAndUserID* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - userid_.Swap(&other->userid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - pakeregistrationrequest_.Swap(&other->pakeregistrationrequest_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PakeRegistrationRequestAndUserID::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PakeAuthenticationRequestData::_Internal { - public: - static const ::backup::PakeRegistrationRequestAndUserID& pakeregistrationrequestanduserid(const PakeAuthenticationRequestData* msg); -}; - -const ::backup::PakeRegistrationRequestAndUserID& -PakeAuthenticationRequestData::_Internal::pakeregistrationrequestanduserid(const PakeAuthenticationRequestData* msg) { - return *msg->data_.pakeregistrationrequestanduserid_; -} -void PakeAuthenticationRequestData::set_allocated_pakeregistrationrequestanduserid(::backup::PakeRegistrationRequestAndUserID* pakeregistrationrequestanduserid) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - clear_data(); - if (pakeregistrationrequestanduserid) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(pakeregistrationrequestanduserid); - if (message_arena != submessage_arena) { - pakeregistrationrequestanduserid = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, pakeregistrationrequestanduserid, submessage_arena); - } - set_has_pakeregistrationrequestanduserid(); - data_.pakeregistrationrequestanduserid_ = pakeregistrationrequestanduserid; - } - // @@protoc_insertion_point(field_set_allocated:backup.PakeAuthenticationRequestData.pakeRegistrationRequestAndUserID) -} -PakeAuthenticationRequestData::PakeAuthenticationRequestData(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:backup.PakeAuthenticationRequestData) -} -PakeAuthenticationRequestData::PakeAuthenticationRequestData(const PakeAuthenticationRequestData& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - clear_has_data(); - switch (from.data_case()) { - case kPakeRegistrationRequestAndUserID: { - _internal_mutable_pakeregistrationrequestanduserid()->::backup::PakeRegistrationRequestAndUserID::MergeFrom(from._internal_pakeregistrationrequestanduserid()); - break; - } - case kPakeRegistrationUpload: { - _internal_set_pakeregistrationupload(from._internal_pakeregistrationupload()); - break; - } - case kPakeCredentialRequest: { - _internal_set_pakecredentialrequest(from._internal_pakecredentialrequest()); - break; - } - case kPakeCredentialFinalization: { - _internal_set_pakecredentialfinalization(from._internal_pakecredentialfinalization()); - break; - } - case kPakeClientMAC: { - _internal_set_pakeclientmac(from._internal_pakeclientmac()); - break; - } - case DATA_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:backup.PakeAuthenticationRequestData) -} - -void PakeAuthenticationRequestData::SharedCtor() { -clear_has_data(); -} - -PakeAuthenticationRequestData::~PakeAuthenticationRequestData() { - // @@protoc_insertion_point(destructor:backup.PakeAuthenticationRequestData) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PakeAuthenticationRequestData::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (has_data()) { - clear_data(); - } -} - -void PakeAuthenticationRequestData::ArenaDtor(void* object) { - PakeAuthenticationRequestData* _this = reinterpret_cast< PakeAuthenticationRequestData* >(object); - (void)_this; -} -void PakeAuthenticationRequestData::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PakeAuthenticationRequestData::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void PakeAuthenticationRequestData::clear_data() { -// @@protoc_insertion_point(one_of_clear_start:backup.PakeAuthenticationRequestData) - switch (data_case()) { - case kPakeRegistrationRequestAndUserID: { - if (GetArena() == nullptr) { - delete data_.pakeregistrationrequestanduserid_; - } - break; - } - case kPakeRegistrationUpload: { - data_.pakeregistrationupload_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - break; - } - case kPakeCredentialRequest: { - data_.pakecredentialrequest_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - break; - } - case kPakeCredentialFinalization: { - data_.pakecredentialfinalization_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - break; - } - case kPakeClientMAC: { - data_.pakeclientmac_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - break; - } - case DATA_NOT_SET: { - break; - } - } - _oneof_case_[0] = DATA_NOT_SET; -} - - -void PakeAuthenticationRequestData::Clear() { -// @@protoc_insertion_point(message_clear_start:backup.PakeAuthenticationRequestData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_data(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PakeAuthenticationRequestData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::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); - switch (tag >> 3) { - // .backup.PakeRegistrationRequestAndUserID pakeRegistrationRequestAndUserID = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_pakeregistrationrequestanduserid(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bytes pakeRegistrationUpload = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_pakeregistrationupload(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bytes pakeCredentialRequest = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_pakecredentialrequest(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bytes pakeCredentialFinalization = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - auto str = _internal_mutable_pakecredentialfinalization(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bytes pakeClientMAC = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - auto str = _internal_mutable_pakeclientmac(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::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); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PakeAuthenticationRequestData::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:backup.PakeAuthenticationRequestData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .backup.PakeRegistrationRequestAndUserID pakeRegistrationRequestAndUserID = 1; - if (_internal_has_pakeregistrationrequestanduserid()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::pakeregistrationrequestanduserid(this), target, stream); - } - - // bytes pakeRegistrationUpload = 2; - if (_internal_has_pakeregistrationupload()) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_pakeregistrationupload(), target); - } - - // bytes pakeCredentialRequest = 3; - if (_internal_has_pakecredentialrequest()) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_pakecredentialrequest(), target); - } - - // bytes pakeCredentialFinalization = 4; - if (_internal_has_pakecredentialfinalization()) { - target = stream->WriteBytesMaybeAliased( - 4, this->_internal_pakecredentialfinalization(), target); - } - - // bytes pakeClientMAC = 5; - if (_internal_has_pakeclientmac()) { - target = stream->WriteBytesMaybeAliased( - 5, this->_internal_pakeclientmac(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::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.PakeAuthenticationRequestData) - return target; -} - -size_t PakeAuthenticationRequestData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:backup.PakeAuthenticationRequestData) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (data_case()) { - // .backup.PakeRegistrationRequestAndUserID pakeRegistrationRequestAndUserID = 1; - case kPakeRegistrationRequestAndUserID: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *data_.pakeregistrationrequestanduserid_); - break; - } - // bytes pakeRegistrationUpload = 2; - case kPakeRegistrationUpload: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_pakeregistrationupload()); - break; - } - // bytes pakeCredentialRequest = 3; - case kPakeCredentialRequest: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_pakecredentialrequest()); - break; - } - // bytes pakeCredentialFinalization = 4; - case kPakeCredentialFinalization: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_pakecredentialfinalization()); - break; - } - // bytes pakeClientMAC = 5; - case kPakeClientMAC: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_pakeclientmac()); - 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; -} - -void PakeAuthenticationRequestData::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:backup.PakeAuthenticationRequestData) - GOOGLE_DCHECK_NE(&from, this); - const PakeAuthenticationRequestData* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:backup.PakeAuthenticationRequestData) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:backup.PakeAuthenticationRequestData) - MergeFrom(*source); - } -} - -void PakeAuthenticationRequestData::MergeFrom(const PakeAuthenticationRequestData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:backup.PakeAuthenticationRequestData) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.data_case()) { - case kPakeRegistrationRequestAndUserID: { - _internal_mutable_pakeregistrationrequestanduserid()->::backup::PakeRegistrationRequestAndUserID::MergeFrom(from._internal_pakeregistrationrequestanduserid()); - break; - } - case kPakeRegistrationUpload: { - _internal_set_pakeregistrationupload(from._internal_pakeregistrationupload()); - break; - } - case kPakeCredentialRequest: { - _internal_set_pakecredentialrequest(from._internal_pakecredentialrequest()); - break; - } - case kPakeCredentialFinalization: { - _internal_set_pakecredentialfinalization(from._internal_pakecredentialfinalization()); - break; - } - case kPakeClientMAC: { - _internal_set_pakeclientmac(from._internal_pakeclientmac()); - break; - } - case DATA_NOT_SET: { - break; - } - } -} - -void PakeAuthenticationRequestData::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:backup.PakeAuthenticationRequestData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PakeAuthenticationRequestData::CopyFrom(const PakeAuthenticationRequestData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:backup.PakeAuthenticationRequestData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PakeAuthenticationRequestData::IsInitialized() const { - return true; -} - -void PakeAuthenticationRequestData::InternalSwap(PakeAuthenticationRequestData* 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]); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PakeAuthenticationRequestData::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class WalletAuthenticationRequestData::_Internal { - public: -}; - -WalletAuthenticationRequestData::WalletAuthenticationRequestData(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:backup.WalletAuthenticationRequestData) -} -WalletAuthenticationRequestData::WalletAuthenticationRequestData(const WalletAuthenticationRequestData& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_userid().empty()) { - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_userid(), - GetArena()); - } - walletaddress_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_walletaddress().empty()) { - walletaddress_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_walletaddress(), - GetArena()); - } - signedmessage_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_signedmessage().empty()) { - signedmessage_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_signedmessage(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:backup.WalletAuthenticationRequestData) -} - -void WalletAuthenticationRequestData::SharedCtor() { -userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -walletaddress_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -signedmessage_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -WalletAuthenticationRequestData::~WalletAuthenticationRequestData() { - // @@protoc_insertion_point(destructor:backup.WalletAuthenticationRequestData) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void WalletAuthenticationRequestData::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - userid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - walletaddress_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - signedmessage_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void WalletAuthenticationRequestData::ArenaDtor(void* object) { - WalletAuthenticationRequestData* _this = reinterpret_cast< WalletAuthenticationRequestData* >(object); - (void)_this; -} -void WalletAuthenticationRequestData::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void WalletAuthenticationRequestData::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void WalletAuthenticationRequestData::Clear() { -// @@protoc_insertion_point(message_clear_start:backup.WalletAuthenticationRequestData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - userid_.ClearToEmpty(); - walletaddress_.ClearToEmpty(); - signedmessage_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* WalletAuthenticationRequestData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::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); - switch (tag >> 3) { - // string userID = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_userid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.WalletAuthenticationRequestData.userID")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string walletAddress = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_walletaddress(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.WalletAuthenticationRequestData.walletAddress")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bytes signedMessage = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_signedmessage(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::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); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* WalletAuthenticationRequestData::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:backup.WalletAuthenticationRequestData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string userID = 1; - if (this->userid().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_userid().data(), static_cast(this->_internal_userid().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "backup.WalletAuthenticationRequestData.userID"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_userid(), target); - } - - // string walletAddress = 2; - if (this->walletaddress().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_walletaddress().data(), static_cast(this->_internal_walletaddress().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "backup.WalletAuthenticationRequestData.walletAddress"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_walletaddress(), target); - } - - // bytes signedMessage = 3; - if (this->signedmessage().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_signedmessage(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::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.WalletAuthenticationRequestData) - return target; -} - -size_t WalletAuthenticationRequestData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:backup.WalletAuthenticationRequestData) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 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) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_userid()); - } - - // string walletAddress = 2; - if (this->walletaddress().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_walletaddress()); - } - - // bytes signedMessage = 3; - if (this->signedmessage().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_signedmessage()); - } - - 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 WalletAuthenticationRequestData::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:backup.WalletAuthenticationRequestData) - GOOGLE_DCHECK_NE(&from, this); - const WalletAuthenticationRequestData* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:backup.WalletAuthenticationRequestData) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:backup.WalletAuthenticationRequestData) - MergeFrom(*source); - } -} - -void WalletAuthenticationRequestData::MergeFrom(const WalletAuthenticationRequestData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:backup.WalletAuthenticationRequestData) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.userid().size() > 0) { - _internal_set_userid(from._internal_userid()); - } - if (from.walletaddress().size() > 0) { - _internal_set_walletaddress(from._internal_walletaddress()); - } - if (from.signedmessage().size() > 0) { - _internal_set_signedmessage(from._internal_signedmessage()); - } -} - -void WalletAuthenticationRequestData::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:backup.WalletAuthenticationRequestData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WalletAuthenticationRequestData::CopyFrom(const WalletAuthenticationRequestData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:backup.WalletAuthenticationRequestData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WalletAuthenticationRequestData::IsInitialized() const { - return true; -} - -void WalletAuthenticationRequestData::InternalSwap(WalletAuthenticationRequestData* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - userid_.Swap(&other->userid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - walletaddress_.Swap(&other->walletaddress_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - signedmessage_.Swap(&other->signedmessage_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata WalletAuthenticationRequestData::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class FullAuthenticationRequestData::_Internal { - public: - static const ::backup::PakeAuthenticationRequestData& pakeauthenticationrequestdata(const FullAuthenticationRequestData* msg); - static const ::backup::WalletAuthenticationRequestData& walletauthenticationrequestdata(const FullAuthenticationRequestData* msg); -}; - -const ::backup::PakeAuthenticationRequestData& -FullAuthenticationRequestData::_Internal::pakeauthenticationrequestdata(const FullAuthenticationRequestData* msg) { - return *msg->data_.pakeauthenticationrequestdata_; -} -const ::backup::WalletAuthenticationRequestData& -FullAuthenticationRequestData::_Internal::walletauthenticationrequestdata(const FullAuthenticationRequestData* msg) { - return *msg->data_.walletauthenticationrequestdata_; -} -void FullAuthenticationRequestData::set_allocated_pakeauthenticationrequestdata(::backup::PakeAuthenticationRequestData* pakeauthenticationrequestdata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - clear_data(); - if (pakeauthenticationrequestdata) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(pakeauthenticationrequestdata); - if (message_arena != submessage_arena) { - pakeauthenticationrequestdata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, pakeauthenticationrequestdata, submessage_arena); - } - set_has_pakeauthenticationrequestdata(); - data_.pakeauthenticationrequestdata_ = pakeauthenticationrequestdata; - } - // @@protoc_insertion_point(field_set_allocated:backup.FullAuthenticationRequestData.pakeAuthenticationRequestData) -} -void FullAuthenticationRequestData::set_allocated_walletauthenticationrequestdata(::backup::WalletAuthenticationRequestData* walletauthenticationrequestdata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - clear_data(); - if (walletauthenticationrequestdata) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(walletauthenticationrequestdata); - if (message_arena != submessage_arena) { - walletauthenticationrequestdata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, walletauthenticationrequestdata, submessage_arena); - } - set_has_walletauthenticationrequestdata(); - data_.walletauthenticationrequestdata_ = walletauthenticationrequestdata; - } - // @@protoc_insertion_point(field_set_allocated:backup.FullAuthenticationRequestData.walletAuthenticationRequestData) -} -FullAuthenticationRequestData::FullAuthenticationRequestData(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:backup.FullAuthenticationRequestData) -} -FullAuthenticationRequestData::FullAuthenticationRequestData(const FullAuthenticationRequestData& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - clear_has_data(); - switch (from.data_case()) { - case kPakeAuthenticationRequestData: { - _internal_mutable_pakeauthenticationrequestdata()->::backup::PakeAuthenticationRequestData::MergeFrom(from._internal_pakeauthenticationrequestdata()); - break; - } - case kWalletAuthenticationRequestData: { - _internal_mutable_walletauthenticationrequestdata()->::backup::WalletAuthenticationRequestData::MergeFrom(from._internal_walletauthenticationrequestdata()); - break; - } - case DATA_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:backup.FullAuthenticationRequestData) -} - -void FullAuthenticationRequestData::SharedCtor() { -clear_has_data(); -} - -FullAuthenticationRequestData::~FullAuthenticationRequestData() { - // @@protoc_insertion_point(destructor:backup.FullAuthenticationRequestData) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void FullAuthenticationRequestData::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (has_data()) { - clear_data(); - } -} - -void FullAuthenticationRequestData::ArenaDtor(void* object) { - FullAuthenticationRequestData* _this = reinterpret_cast< FullAuthenticationRequestData* >(object); - (void)_this; -} -void FullAuthenticationRequestData::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void FullAuthenticationRequestData::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void FullAuthenticationRequestData::clear_data() { -// @@protoc_insertion_point(one_of_clear_start:backup.FullAuthenticationRequestData) - switch (data_case()) { - case kPakeAuthenticationRequestData: { - if (GetArena() == nullptr) { - delete data_.pakeauthenticationrequestdata_; - } - break; - } - case kWalletAuthenticationRequestData: { - if (GetArena() == nullptr) { - delete data_.walletauthenticationrequestdata_; - } - break; - } - case DATA_NOT_SET: { - break; - } - } - _oneof_case_[0] = DATA_NOT_SET; -} - - -void FullAuthenticationRequestData::Clear() { -// @@protoc_insertion_point(message_clear_start:backup.FullAuthenticationRequestData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_data(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* FullAuthenticationRequestData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::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); - switch (tag >> 3) { - // .backup.PakeAuthenticationRequestData pakeAuthenticationRequestData = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_pakeauthenticationrequestdata(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .backup.WalletAuthenticationRequestData walletAuthenticationRequestData = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_walletauthenticationrequestdata(), 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); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* FullAuthenticationRequestData::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:backup.FullAuthenticationRequestData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .backup.PakeAuthenticationRequestData pakeAuthenticationRequestData = 1; - if (_internal_has_pakeauthenticationrequestdata()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::pakeauthenticationrequestdata(this), target, stream); - } - - // .backup.WalletAuthenticationRequestData walletAuthenticationRequestData = 2; - if (_internal_has_walletauthenticationrequestdata()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::walletauthenticationrequestdata(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::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.FullAuthenticationRequestData) - return target; -} - -size_t FullAuthenticationRequestData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:backup.FullAuthenticationRequestData) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (data_case()) { - // .backup.PakeAuthenticationRequestData pakeAuthenticationRequestData = 1; - case kPakeAuthenticationRequestData: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *data_.pakeauthenticationrequestdata_); - break; - } - // .backup.WalletAuthenticationRequestData walletAuthenticationRequestData = 2; - case kWalletAuthenticationRequestData: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *data_.walletauthenticationrequestdata_); - 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; -} - -void FullAuthenticationRequestData::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:backup.FullAuthenticationRequestData) - GOOGLE_DCHECK_NE(&from, this); - const FullAuthenticationRequestData* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:backup.FullAuthenticationRequestData) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:backup.FullAuthenticationRequestData) - MergeFrom(*source); - } -} - -void FullAuthenticationRequestData::MergeFrom(const FullAuthenticationRequestData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:backup.FullAuthenticationRequestData) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.data_case()) { - case kPakeAuthenticationRequestData: { - _internal_mutable_pakeauthenticationrequestdata()->::backup::PakeAuthenticationRequestData::MergeFrom(from._internal_pakeauthenticationrequestdata()); - break; - } - case kWalletAuthenticationRequestData: { - _internal_mutable_walletauthenticationrequestdata()->::backup::WalletAuthenticationRequestData::MergeFrom(from._internal_walletauthenticationrequestdata()); - break; - } - case DATA_NOT_SET: { - break; - } - } -} - -void FullAuthenticationRequestData::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:backup.FullAuthenticationRequestData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FullAuthenticationRequestData::CopyFrom(const FullAuthenticationRequestData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:backup.FullAuthenticationRequestData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FullAuthenticationRequestData::IsInitialized() const { - return true; -} - -void FullAuthenticationRequestData::InternalSwap(FullAuthenticationRequestData* 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]); -} - -::PROTOBUF_NAMESPACE_ID::Metadata FullAuthenticationRequestData::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class WalletAuthenticationResponseData::_Internal { - public: -}; - -WalletAuthenticationResponseData::WalletAuthenticationResponseData(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:backup.WalletAuthenticationResponseData) -} -WalletAuthenticationResponseData::WalletAuthenticationResponseData(const WalletAuthenticationResponseData& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - success_ = from.success_; - // @@protoc_insertion_point(copy_constructor:backup.WalletAuthenticationResponseData) -} - -void WalletAuthenticationResponseData::SharedCtor() { -success_ = false; -} - -WalletAuthenticationResponseData::~WalletAuthenticationResponseData() { - // @@protoc_insertion_point(destructor:backup.WalletAuthenticationResponseData) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void WalletAuthenticationResponseData::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void WalletAuthenticationResponseData::ArenaDtor(void* object) { - WalletAuthenticationResponseData* _this = reinterpret_cast< WalletAuthenticationResponseData* >(object); - (void)_this; -} -void WalletAuthenticationResponseData::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void WalletAuthenticationResponseData::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void WalletAuthenticationResponseData::Clear() { -// @@protoc_insertion_point(message_clear_start:backup.WalletAuthenticationResponseData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - success_ = false; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* WalletAuthenticationResponseData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::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); - 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); - 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); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* WalletAuthenticationResponseData::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:backup.WalletAuthenticationResponseData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bool success = 1; - if (this->success() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::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.WalletAuthenticationResponseData) - return target; -} - -size_t WalletAuthenticationResponseData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:backup.WalletAuthenticationResponseData) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bool success = 1; - if (this->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; -} - -void WalletAuthenticationResponseData::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:backup.WalletAuthenticationResponseData) - GOOGLE_DCHECK_NE(&from, this); - const WalletAuthenticationResponseData* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:backup.WalletAuthenticationResponseData) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:backup.WalletAuthenticationResponseData) - MergeFrom(*source); - } -} - -void WalletAuthenticationResponseData::MergeFrom(const WalletAuthenticationResponseData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:backup.WalletAuthenticationResponseData) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.success() != 0) { - _internal_set_success(from._internal_success()); - } -} - -void WalletAuthenticationResponseData::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:backup.WalletAuthenticationResponseData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WalletAuthenticationResponseData::CopyFrom(const WalletAuthenticationResponseData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:backup.WalletAuthenticationResponseData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WalletAuthenticationResponseData::IsInitialized() const { - return true; -} - -void WalletAuthenticationResponseData::InternalSwap(WalletAuthenticationResponseData* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(success_, other->success_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata WalletAuthenticationResponseData::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class PakeAuthenticationResponseData::_Internal { - public: -}; - -PakeAuthenticationResponseData::PakeAuthenticationResponseData(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:backup.PakeAuthenticationResponseData) -} -PakeAuthenticationResponseData::PakeAuthenticationResponseData(const PakeAuthenticationResponseData& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - clear_has_data(); - switch (from.data_case()) { - case kPakeRegistrationResponse: { - _internal_set_pakeregistrationresponse(from._internal_pakeregistrationresponse()); - break; - } - case kPakeRegistrationSuccess: { - _internal_set_pakeregistrationsuccess(from._internal_pakeregistrationsuccess()); - break; - } - case kPakeCredentialResponse: { - _internal_set_pakecredentialresponse(from._internal_pakecredentialresponse()); - break; - } - case kPakeServerMAC: { - _internal_set_pakeservermac(from._internal_pakeservermac()); - break; - } - case DATA_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:backup.PakeAuthenticationResponseData) -} - -void PakeAuthenticationResponseData::SharedCtor() { -clear_has_data(); -} - -PakeAuthenticationResponseData::~PakeAuthenticationResponseData() { - // @@protoc_insertion_point(destructor:backup.PakeAuthenticationResponseData) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PakeAuthenticationResponseData::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (has_data()) { - clear_data(); - } -} - -void PakeAuthenticationResponseData::ArenaDtor(void* object) { - PakeAuthenticationResponseData* _this = reinterpret_cast< PakeAuthenticationResponseData* >(object); - (void)_this; -} -void PakeAuthenticationResponseData::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PakeAuthenticationResponseData::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void PakeAuthenticationResponseData::clear_data() { -// @@protoc_insertion_point(one_of_clear_start:backup.PakeAuthenticationResponseData) - switch (data_case()) { - case kPakeRegistrationResponse: { - data_.pakeregistrationresponse_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - break; - } - case kPakeRegistrationSuccess: { - // No need to clear - break; - } - case kPakeCredentialResponse: { - data_.pakecredentialresponse_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - break; - } - case kPakeServerMAC: { - data_.pakeservermac_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - break; - } - case DATA_NOT_SET: { - break; - } - } - _oneof_case_[0] = DATA_NOT_SET; -} - - -void PakeAuthenticationResponseData::Clear() { -// @@protoc_insertion_point(message_clear_start:backup.PakeAuthenticationResponseData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_data(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PakeAuthenticationResponseData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::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); - switch (tag >> 3) { - // bytes pakeRegistrationResponse = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_pakeregistrationresponse(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bool pakeRegistrationSuccess = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - _internal_set_pakeregistrationsuccess(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bytes pakeCredentialResponse = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_pakecredentialresponse(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bytes pakeServerMAC = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - auto str = _internal_mutable_pakeservermac(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::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); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PakeAuthenticationResponseData::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:backup.PakeAuthenticationResponseData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bytes pakeRegistrationResponse = 1; - if (_internal_has_pakeregistrationresponse()) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_pakeregistrationresponse(), target); - } - - // bool pakeRegistrationSuccess = 2; - if (_internal_has_pakeregistrationsuccess()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_pakeregistrationsuccess(), target); - } - - // bytes pakeCredentialResponse = 3; - if (_internal_has_pakecredentialresponse()) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_pakecredentialresponse(), target); - } - - // bytes pakeServerMAC = 4; - if (_internal_has_pakeservermac()) { - target = stream->WriteBytesMaybeAliased( - 4, this->_internal_pakeservermac(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::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.PakeAuthenticationResponseData) - return target; -} - -size_t PakeAuthenticationResponseData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:backup.PakeAuthenticationResponseData) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (data_case()) { - // bytes pakeRegistrationResponse = 1; - case kPakeRegistrationResponse: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_pakeregistrationresponse()); - break; - } - // bool pakeRegistrationSuccess = 2; - case kPakeRegistrationSuccess: { - total_size += 1 + 1; - break; - } - // bytes pakeCredentialResponse = 3; - case kPakeCredentialResponse: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_pakecredentialresponse()); - break; - } - // bytes pakeServerMAC = 4; - case kPakeServerMAC: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_pakeservermac()); - 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; -} - -void PakeAuthenticationResponseData::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:backup.PakeAuthenticationResponseData) - GOOGLE_DCHECK_NE(&from, this); - const PakeAuthenticationResponseData* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:backup.PakeAuthenticationResponseData) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:backup.PakeAuthenticationResponseData) - MergeFrom(*source); - } -} - -void PakeAuthenticationResponseData::MergeFrom(const PakeAuthenticationResponseData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:backup.PakeAuthenticationResponseData) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.data_case()) { - case kPakeRegistrationResponse: { - _internal_set_pakeregistrationresponse(from._internal_pakeregistrationresponse()); - break; - } - case kPakeRegistrationSuccess: { - _internal_set_pakeregistrationsuccess(from._internal_pakeregistrationsuccess()); - break; - } - case kPakeCredentialResponse: { - _internal_set_pakecredentialresponse(from._internal_pakecredentialresponse()); - break; - } - case kPakeServerMAC: { - _internal_set_pakeservermac(from._internal_pakeservermac()); - break; - } - case DATA_NOT_SET: { - break; - } - } -} - -void PakeAuthenticationResponseData::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:backup.PakeAuthenticationResponseData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PakeAuthenticationResponseData::CopyFrom(const PakeAuthenticationResponseData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:backup.PakeAuthenticationResponseData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PakeAuthenticationResponseData::IsInitialized() const { - return true; -} - -void PakeAuthenticationResponseData::InternalSwap(PakeAuthenticationResponseData* 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]); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PakeAuthenticationResponseData::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class FullAuthenticationResponseData::_Internal { - public: - static const ::backup::PakeAuthenticationResponseData& pakeauthenticationresponsedata(const FullAuthenticationResponseData* msg); - static const ::backup::WalletAuthenticationResponseData& walletauthenticationresponsedata(const FullAuthenticationResponseData* msg); -}; - -const ::backup::PakeAuthenticationResponseData& -FullAuthenticationResponseData::_Internal::pakeauthenticationresponsedata(const FullAuthenticationResponseData* msg) { - return *msg->data_.pakeauthenticationresponsedata_; -} -const ::backup::WalletAuthenticationResponseData& -FullAuthenticationResponseData::_Internal::walletauthenticationresponsedata(const FullAuthenticationResponseData* msg) { - return *msg->data_.walletauthenticationresponsedata_; -} -void FullAuthenticationResponseData::set_allocated_pakeauthenticationresponsedata(::backup::PakeAuthenticationResponseData* pakeauthenticationresponsedata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - clear_data(); - if (pakeauthenticationresponsedata) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(pakeauthenticationresponsedata); - if (message_arena != submessage_arena) { - pakeauthenticationresponsedata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, pakeauthenticationresponsedata, submessage_arena); - } - set_has_pakeauthenticationresponsedata(); - data_.pakeauthenticationresponsedata_ = pakeauthenticationresponsedata; - } - // @@protoc_insertion_point(field_set_allocated:backup.FullAuthenticationResponseData.pakeAuthenticationResponseData) -} -void FullAuthenticationResponseData::set_allocated_walletauthenticationresponsedata(::backup::WalletAuthenticationResponseData* walletauthenticationresponsedata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - clear_data(); - if (walletauthenticationresponsedata) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(walletauthenticationresponsedata); - if (message_arena != submessage_arena) { - walletauthenticationresponsedata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, walletauthenticationresponsedata, submessage_arena); - } - set_has_walletauthenticationresponsedata(); - data_.walletauthenticationresponsedata_ = walletauthenticationresponsedata; - } - // @@protoc_insertion_point(field_set_allocated:backup.FullAuthenticationResponseData.walletAuthenticationResponseData) -} -FullAuthenticationResponseData::FullAuthenticationResponseData(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:backup.FullAuthenticationResponseData) -} -FullAuthenticationResponseData::FullAuthenticationResponseData(const FullAuthenticationResponseData& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - clear_has_data(); - switch (from.data_case()) { - case kPakeAuthenticationResponseData: { - _internal_mutable_pakeauthenticationresponsedata()->::backup::PakeAuthenticationResponseData::MergeFrom(from._internal_pakeauthenticationresponsedata()); - break; - } - case kWalletAuthenticationResponseData: { - _internal_mutable_walletauthenticationresponsedata()->::backup::WalletAuthenticationResponseData::MergeFrom(from._internal_walletauthenticationresponsedata()); - break; - } - case DATA_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:backup.FullAuthenticationResponseData) -} - -void FullAuthenticationResponseData::SharedCtor() { -clear_has_data(); -} - -FullAuthenticationResponseData::~FullAuthenticationResponseData() { - // @@protoc_insertion_point(destructor:backup.FullAuthenticationResponseData) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void FullAuthenticationResponseData::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (has_data()) { - clear_data(); - } -} - -void FullAuthenticationResponseData::ArenaDtor(void* object) { - FullAuthenticationResponseData* _this = reinterpret_cast< FullAuthenticationResponseData* >(object); - (void)_this; -} -void FullAuthenticationResponseData::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void FullAuthenticationResponseData::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void FullAuthenticationResponseData::clear_data() { -// @@protoc_insertion_point(one_of_clear_start:backup.FullAuthenticationResponseData) - switch (data_case()) { - case kPakeAuthenticationResponseData: { - if (GetArena() == nullptr) { - delete data_.pakeauthenticationresponsedata_; - } - break; - } - case kWalletAuthenticationResponseData: { - if (GetArena() == nullptr) { - delete data_.walletauthenticationresponsedata_; - } - break; - } - case DATA_NOT_SET: { - break; - } - } - _oneof_case_[0] = DATA_NOT_SET; -} - - -void FullAuthenticationResponseData::Clear() { -// @@protoc_insertion_point(message_clear_start:backup.FullAuthenticationResponseData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_data(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* FullAuthenticationResponseData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::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); - switch (tag >> 3) { - // .backup.PakeAuthenticationResponseData pakeAuthenticationResponseData = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_pakeauthenticationresponsedata(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .backup.WalletAuthenticationResponseData walletAuthenticationResponseData = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_walletauthenticationresponsedata(), 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); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* FullAuthenticationResponseData::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:backup.FullAuthenticationResponseData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .backup.PakeAuthenticationResponseData pakeAuthenticationResponseData = 1; - if (_internal_has_pakeauthenticationresponsedata()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::pakeauthenticationresponsedata(this), target, stream); - } - - // .backup.WalletAuthenticationResponseData walletAuthenticationResponseData = 2; - if (_internal_has_walletauthenticationresponsedata()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::walletauthenticationresponsedata(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::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.FullAuthenticationResponseData) - return target; -} - -size_t FullAuthenticationResponseData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:backup.FullAuthenticationResponseData) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (data_case()) { - // .backup.PakeAuthenticationResponseData pakeAuthenticationResponseData = 1; - case kPakeAuthenticationResponseData: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *data_.pakeauthenticationresponsedata_); - break; - } - // .backup.WalletAuthenticationResponseData walletAuthenticationResponseData = 2; - case kWalletAuthenticationResponseData: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *data_.walletauthenticationresponsedata_); - 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; -} - -void FullAuthenticationResponseData::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:backup.FullAuthenticationResponseData) - GOOGLE_DCHECK_NE(&from, this); - const FullAuthenticationResponseData* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:backup.FullAuthenticationResponseData) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:backup.FullAuthenticationResponseData) - MergeFrom(*source); - } -} - -void FullAuthenticationResponseData::MergeFrom(const FullAuthenticationResponseData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:backup.FullAuthenticationResponseData) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.data_case()) { - case kPakeAuthenticationResponseData: { - _internal_mutable_pakeauthenticationresponsedata()->::backup::PakeAuthenticationResponseData::MergeFrom(from._internal_pakeauthenticationresponsedata()); - break; - } - case kWalletAuthenticationResponseData: { - _internal_mutable_walletauthenticationresponsedata()->::backup::WalletAuthenticationResponseData::MergeFrom(from._internal_walletauthenticationresponsedata()); - break; - } - case DATA_NOT_SET: { - break; - } - } -} - -void FullAuthenticationResponseData::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:backup.FullAuthenticationResponseData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FullAuthenticationResponseData::CopyFrom(const FullAuthenticationResponseData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:backup.FullAuthenticationResponseData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FullAuthenticationResponseData::IsInitialized() const { - return true; -} - -void FullAuthenticationResponseData::InternalSwap(FullAuthenticationResponseData* 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]); -} - -::PROTOBUF_NAMESPACE_ID::Metadata FullAuthenticationResponseData::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class SimpleAuthenticationRequestData::_Internal { - public: -}; - -SimpleAuthenticationRequestData::SimpleAuthenticationRequestData(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:backup.SimpleAuthenticationRequestData) -} -SimpleAuthenticationRequestData::SimpleAuthenticationRequestData(const SimpleAuthenticationRequestData& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_backupid().empty()) { - backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_backupid(), - GetArena()); - } - userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_userid().empty()) { - userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_userid(), - GetArena()); - } - // @@protoc_insertion_point(copy_constructor:backup.SimpleAuthenticationRequestData) -} - -void SimpleAuthenticationRequestData::SharedCtor() { -backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -SimpleAuthenticationRequestData::~SimpleAuthenticationRequestData() { - // @@protoc_insertion_point(destructor:backup.SimpleAuthenticationRequestData) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void SimpleAuthenticationRequestData::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - backupid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - userid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void SimpleAuthenticationRequestData::ArenaDtor(void* object) { - SimpleAuthenticationRequestData* _this = reinterpret_cast< SimpleAuthenticationRequestData* >(object); - (void)_this; -} -void SimpleAuthenticationRequestData::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void SimpleAuthenticationRequestData::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void SimpleAuthenticationRequestData::Clear() { -// @@protoc_insertion_point(message_clear_start:backup.SimpleAuthenticationRequestData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - backupid_.ClearToEmpty(); - userid_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SimpleAuthenticationRequestData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::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); - switch (tag >> 3) { - // string backupID = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_backupid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.SimpleAuthenticationRequestData.backupID")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string userID = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_userid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.SimpleAuthenticationRequestData.userID")); - 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); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* SimpleAuthenticationRequestData::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:backup.SimpleAuthenticationRequestData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string backupID = 1; - if (this->backupid().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_backupid().data(), static_cast(this->_internal_backupid().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "backup.SimpleAuthenticationRequestData.backupID"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_backupid(), target); - } - - // string userID = 2; - if (this->userid().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_userid().data(), static_cast(this->_internal_userid().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "backup.SimpleAuthenticationRequestData.userID"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_userid(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::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.SimpleAuthenticationRequestData) - return target; -} - -size_t SimpleAuthenticationRequestData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:backup.SimpleAuthenticationRequestData) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 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) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_backupid()); - } - - // string userID = 2; - if (this->userid().size() > 0) { - 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; -} - -void SimpleAuthenticationRequestData::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:backup.SimpleAuthenticationRequestData) - GOOGLE_DCHECK_NE(&from, this); - const SimpleAuthenticationRequestData* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:backup.SimpleAuthenticationRequestData) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:backup.SimpleAuthenticationRequestData) - MergeFrom(*source); - } -} - -void SimpleAuthenticationRequestData::MergeFrom(const SimpleAuthenticationRequestData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:backup.SimpleAuthenticationRequestData) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.backupid().size() > 0) { - _internal_set_backupid(from._internal_backupid()); - } - if (from.userid().size() > 0) { - _internal_set_userid(from._internal_userid()); - } -} - -void SimpleAuthenticationRequestData::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:backup.SimpleAuthenticationRequestData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SimpleAuthenticationRequestData::CopyFrom(const SimpleAuthenticationRequestData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:backup.SimpleAuthenticationRequestData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SimpleAuthenticationRequestData::IsInitialized() const { - return true; -} - -void SimpleAuthenticationRequestData::InternalSwap(SimpleAuthenticationRequestData* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - backupid_.Swap(&other->backupid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - userid_.Swap(&other->userid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SimpleAuthenticationRequestData::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class BackupKeyEntropy::_Internal { - public: -}; - -BackupKeyEntropy::BackupKeyEntropy(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:backup.BackupKeyEntropy) -} -BackupKeyEntropy::BackupKeyEntropy(const BackupKeyEntropy& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - clear_has_data(); - switch (from.data_case()) { - case kNonce: { - _internal_set_nonce(from._internal_nonce()); - break; - } - case kRawMessage: { - _internal_set_rawmessage(from._internal_rawmessage()); - break; - } - case DATA_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:backup.BackupKeyEntropy) -} - -void BackupKeyEntropy::SharedCtor() { -clear_has_data(); -} - -BackupKeyEntropy::~BackupKeyEntropy() { - // @@protoc_insertion_point(destructor:backup.BackupKeyEntropy) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void BackupKeyEntropy::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (has_data()) { - clear_data(); - } -} - -void BackupKeyEntropy::ArenaDtor(void* object) { - BackupKeyEntropy* _this = reinterpret_cast< BackupKeyEntropy* >(object); - (void)_this; -} -void BackupKeyEntropy::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BackupKeyEntropy::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void BackupKeyEntropy::clear_data() { -// @@protoc_insertion_point(one_of_clear_start:backup.BackupKeyEntropy) - switch (data_case()) { - case kNonce: { - data_.nonce_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - break; - } - case kRawMessage: { - data_.rawmessage_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - break; - } - case DATA_NOT_SET: { - break; - } - } - _oneof_case_[0] = DATA_NOT_SET; -} - - -void BackupKeyEntropy::Clear() { -// @@protoc_insertion_point(message_clear_start:backup.BackupKeyEntropy) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_data(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* BackupKeyEntropy::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::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); - switch (tag >> 3) { - // bytes nonce = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_nonce(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bytes rawMessage = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_rawmessage(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::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); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* BackupKeyEntropy::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:backup.BackupKeyEntropy) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bytes nonce = 1; - if (_internal_has_nonce()) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_nonce(), target); - } - - // bytes rawMessage = 2; - if (_internal_has_rawmessage()) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_rawmessage(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::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.BackupKeyEntropy) - return target; -} - -size_t BackupKeyEntropy::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:backup.BackupKeyEntropy) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (data_case()) { - // bytes nonce = 1; - case kNonce: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_nonce()); - break; - } - // bytes rawMessage = 2; - case kRawMessage: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_rawmessage()); - 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; -} - -void BackupKeyEntropy::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:backup.BackupKeyEntropy) - GOOGLE_DCHECK_NE(&from, this); - const BackupKeyEntropy* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:backup.BackupKeyEntropy) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:backup.BackupKeyEntropy) - MergeFrom(*source); - } -} - -void BackupKeyEntropy::MergeFrom(const BackupKeyEntropy& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:backup.BackupKeyEntropy) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.data_case()) { - case kNonce: { - _internal_set_nonce(from._internal_nonce()); - break; - } - case kRawMessage: { - _internal_set_rawmessage(from._internal_rawmessage()); - break; - } - case DATA_NOT_SET: { - break; - } - } -} - -void BackupKeyEntropy::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:backup.BackupKeyEntropy) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BackupKeyEntropy::CopyFrom(const BackupKeyEntropy& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:backup.BackupKeyEntropy) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +struct SendLogRequestDefaultTypeInternal { + constexpr SendLogRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~SendLogRequestDefaultTypeInternal() {} + union { + SendLogRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SendLogRequestDefaultTypeInternal _SendLogRequest_default_instance_; +constexpr RecoverBackupKeyRequest::RecoverBackupKeyRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : userid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +struct RecoverBackupKeyRequestDefaultTypeInternal { + constexpr RecoverBackupKeyRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~RecoverBackupKeyRequestDefaultTypeInternal() {} + union { + RecoverBackupKeyRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RecoverBackupKeyRequestDefaultTypeInternal _RecoverBackupKeyRequest_default_instance_; +constexpr RecoverBackupKeyResponse::RecoverBackupKeyResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : _oneof_case_{}{} +struct RecoverBackupKeyResponseDefaultTypeInternal { + constexpr RecoverBackupKeyResponseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} +struct PullBackupRequestDefaultTypeInternal { + constexpr PullBackupRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~PullBackupRequestDefaultTypeInternal() {} + union { + PullBackupRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PullBackupRequestDefaultTypeInternal _PullBackupRequest_default_instance_; +constexpr PullBackupResponse::PullBackupResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : _oneof_case_{}{} +struct PullBackupResponseDefaultTypeInternal { + constexpr PullBackupResponseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~PullBackupResponseDefaultTypeInternal() {} + union { + PullBackupResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PullBackupResponseDefaultTypeInternal _PullBackupResponse_default_instance_; +} // namespace backup +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_backup_2eproto[7]; +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; -bool BackupKeyEntropy::IsInitialized() const { - return true; -} +const ::PROTOBUF_NAMESPACE_ID::uint32 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]), + ~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::CreateNewBackupRequest, 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 _has_bits_ + PROTOBUF_FIELD_OFFSET(::backup::SendLogRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::backup::SendLogRequest, _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 _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 _has_bits_ + PROTOBUF_FIELD_OFFSET(::backup::RecoverBackupKeyResponse, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::backup::RecoverBackupKeyResponse, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::backup::RecoverBackupKeyResponse, data_), + ~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_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::backup::PullBackupResponse, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::backup::PullBackupResponse, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::backup::PullBackupResponse, data_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::backup::CreateNewBackupRequest)}, + { 10, -1, sizeof(::backup::CreateNewBackupResponse)}, + { 16, -1, sizeof(::backup::SendLogRequest)}, + { 26, -1, sizeof(::backup::RecoverBackupKeyRequest)}, + { 32, -1, sizeof(::backup::RecoverBackupKeyResponse)}, + { 39, -1, sizeof(::backup::PullBackupRequest)}, + { 45, -1, sizeof(::backup::PullBackupResponse)}, +}; -void BackupKeyEntropy::InternalSwap(BackupKeyEntropy* 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]); -} +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::_RecoverBackupKeyRequest_default_instance_), + reinterpret_cast(&::backup::_RecoverBackupKeyResponse_default_instance_), + reinterpret_cast(&::backup::_PullBackupRequest_default_instance_), + reinterpret_cast(&::backup::_PullBackupResponse_default_instance_), +}; -::PROTOBUF_NAMESPACE_ID::Metadata BackupKeyEntropy::GetMetadata() const { - return GetMetadataStatic(); +const char descriptor_table_protodef_backup_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\014backup.proto\022\006backup\032\033google/protobuf/" + "empty.proto\"\203\001\n\026CreateNewBackupRequest\022\020" + "\n\006userID\030\001 \001(\tH\000\022\024\n\nkeyEntropy\030\002 \001(\014H\000\022\033" + "\n\021newCompactionHash\030\003 \001(\014H\000\022\034\n\022newCompac" + "tionChunk\030\004 \001(\014H\000B\006\n\004data\"+\n\027CreateNewBa" + "ckupResponse\022\020\n\010backupID\030\001 \001(\t\"d\n\016SendLo" + "gRequest\022\020\n\006userID\030\001 \001(\tH\000\022\022\n\010backupID\030\002" + " \001(\tH\000\022\021\n\007logHash\030\003 \001(\014H\000\022\021\n\007logData\030\004 \001" + "(\014H\000B\006\n\004data\")\n\027RecoverBackupKeyRequest\022" + "\016\n\006userID\030\001 \001(\t\"6\n\030RecoverBackupKeyRespo" + "nse\022\022\n\010backupID\030\004 \001(\tH\000B\006\n\004data\"#\n\021PullB" + "ackupRequest\022\016\n\006userID\030\001 \001(\t\"K\n\022PullBack" + "upResponse\022\031\n\017compactionChunk\030\001 \001(\014H\000\022\022\n" + "\010logChunk\030\002 \001(\014H\000B\006\n\004data2\320\002\n\rBackupServ" + "ice\022X\n\017CreateNewBackup\022\036.backup.CreateNe" + "wBackupRequest\032\037.backup.CreateNewBackupR" + "esponse\"\000(\0010\001\022=\n\007SendLog\022\026.backup.SendLo" + "gRequest\032\026.google.protobuf.Empty\"\000(\001\022[\n\020" + "RecoverBackupKey\022\037.backup.RecoverBackupK" + "eyRequest\032 .backup.RecoverBackupKeyRespo" + "nse\"\000(\0010\001\022I\n\nPullBackup\022\031.backup.PullBac" + "kupRequest\032\032.backup.PullBackupResponse\"\000" + "(\0010\001b\006proto3" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::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, 892, descriptor_table_protodef_backup_2eproto, "backup.proto", + &descriptor_table_backup_2eproto_once, descriptor_table_backup_2eproto_deps, 1, 7, + 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]; } +// 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); +namespace backup { // =================================================================== class CreateNewBackupRequest::_Internal { public: - static const ::backup::FullAuthenticationRequestData& authenticationrequestdata(const CreateNewBackupRequest* msg); - static const ::backup::BackupKeyEntropy& backupkeyentropy(const CreateNewBackupRequest* msg); }; -const ::backup::FullAuthenticationRequestData& -CreateNewBackupRequest::_Internal::authenticationrequestdata(const CreateNewBackupRequest* msg) { - return *msg->data_.authenticationrequestdata_; -} -const ::backup::BackupKeyEntropy& -CreateNewBackupRequest::_Internal::backupkeyentropy(const CreateNewBackupRequest* msg) { - return *msg->data_.backupkeyentropy_; -} -void CreateNewBackupRequest::set_allocated_authenticationrequestdata(::backup::FullAuthenticationRequestData* authenticationrequestdata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - clear_data(); - if (authenticationrequestdata) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(authenticationrequestdata); - if (message_arena != submessage_arena) { - authenticationrequestdata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, authenticationrequestdata, submessage_arena); - } - set_has_authenticationrequestdata(); - data_.authenticationrequestdata_ = authenticationrequestdata; - } - // @@protoc_insertion_point(field_set_allocated:backup.CreateNewBackupRequest.authenticationRequestData) -} -void CreateNewBackupRequest::set_allocated_backupkeyentropy(::backup::BackupKeyEntropy* backupkeyentropy) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - clear_data(); - if (backupkeyentropy) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(backupkeyentropy); - if (message_arena != submessage_arena) { - backupkeyentropy = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, backupkeyentropy, submessage_arena); - } - set_has_backupkeyentropy(); - data_.backupkeyentropy_ = backupkeyentropy; - } - // @@protoc_insertion_point(field_set_allocated:backup.CreateNewBackupRequest.backupKeyEntropy) -} CreateNewBackupRequest::CreateNewBackupRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); @@ -3046,12 +243,12 @@ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); clear_has_data(); switch (from.data_case()) { - case kAuthenticationRequestData: { - _internal_mutable_authenticationrequestdata()->::backup::FullAuthenticationRequestData::MergeFrom(from._internal_authenticationrequestdata()); + case kUserID: { + _internal_set_userid(from._internal_userid()); break; } - case kBackupKeyEntropy: { - _internal_mutable_backupkeyentropy()->::backup::BackupKeyEntropy::MergeFrom(from._internal_backupkeyentropy()); + case kKeyEntropy: { + _internal_set_keyentropy(from._internal_keyentropy()); break; } case kNewCompactionHash: { @@ -3099,16 +296,12 @@ void CreateNewBackupRequest::clear_data() { // @@protoc_insertion_point(one_of_clear_start:backup.CreateNewBackupRequest) switch (data_case()) { - case kAuthenticationRequestData: { - if (GetArena() == nullptr) { - delete data_.authenticationrequestdata_; - } + case kUserID: { + data_.userid_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); break; } - case kBackupKeyEntropy: { - if (GetArena() == nullptr) { - delete data_.backupkeyentropy_; - } + case kKeyEntropy: { + data_.keyentropy_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); break; } case kNewCompactionHash: { @@ -3144,17 +337,20 @@ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // .backup.FullAuthenticationRequestData authenticationRequestData = 1; + // string userID = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_authenticationrequestdata(), ptr); + auto str = _internal_mutable_userid(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.CreateNewBackupRequest.userID")); CHK_(ptr); } else goto handle_unusual; continue; - // .backup.BackupKeyEntropy backupKeyEntropy = 2; + // bytes keyEntropy = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_backupkeyentropy(), ptr); + auto str = _internal_mutable_keyentropy(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; @@ -3202,20 +398,20 @@ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .backup.FullAuthenticationRequestData authenticationRequestData = 1; - if (_internal_has_authenticationrequestdata()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::authenticationrequestdata(this), target, stream); + // string userID = 1; + if (_internal_has_userid()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_userid().data(), static_cast(this->_internal_userid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "backup.CreateNewBackupRequest.userID"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_userid(), target); } - // .backup.BackupKeyEntropy backupKeyEntropy = 2; - if (_internal_has_backupkeyentropy()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::backupkeyentropy(this), target, stream); + // bytes keyEntropy = 2; + if (_internal_has_keyentropy()) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_keyentropy(), target); } // bytes newCompactionHash = 3; @@ -3247,18 +443,18 @@ (void) cached_has_bits; switch (data_case()) { - // .backup.FullAuthenticationRequestData authenticationRequestData = 1; - case kAuthenticationRequestData: { + // string userID = 1; + case kUserID: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *data_.authenticationrequestdata_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_userid()); break; } - // .backup.BackupKeyEntropy backupKeyEntropy = 2; - case kBackupKeyEntropy: { + // bytes keyEntropy = 2; + case kKeyEntropy: { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *data_.backupkeyentropy_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_keyentropy()); break; } // bytes newCompactionHash = 3; @@ -3311,12 +507,12 @@ (void) cached_has_bits; switch (from.data_case()) { - case kAuthenticationRequestData: { - _internal_mutable_authenticationrequestdata()->::backup::FullAuthenticationRequestData::MergeFrom(from._internal_authenticationrequestdata()); + case kUserID: { + _internal_set_userid(from._internal_userid()); break; } - case kBackupKeyEntropy: { - _internal_mutable_backupkeyentropy()->::backup::BackupKeyEntropy::MergeFrom(from._internal_backupkeyentropy()); + case kKeyEntropy: { + _internal_set_keyentropy(from._internal_keyentropy()); break; } case kNewCompactionHash: { @@ -3367,28 +563,8 @@ class CreateNewBackupResponse::_Internal { public: - static const ::backup::FullAuthenticationResponseData& authenticationresponsedata(const CreateNewBackupResponse* msg); }; -const ::backup::FullAuthenticationResponseData& -CreateNewBackupResponse::_Internal::authenticationresponsedata(const CreateNewBackupResponse* msg) { - return *msg->data_.authenticationresponsedata_; -} -void CreateNewBackupResponse::set_allocated_authenticationresponsedata(::backup::FullAuthenticationResponseData* authenticationresponsedata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - clear_data(); - if (authenticationresponsedata) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(authenticationresponsedata); - if (message_arena != submessage_arena) { - authenticationresponsedata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, authenticationresponsedata, submessage_arena); - } - set_has_authenticationresponsedata(); - data_.authenticationresponsedata_ = authenticationresponsedata; - } - // @@protoc_insertion_point(field_set_allocated:backup.CreateNewBackupResponse.authenticationResponseData) -} CreateNewBackupResponse::CreateNewBackupResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); @@ -3398,29 +574,16 @@ CreateNewBackupResponse::CreateNewBackupResponse(const CreateNewBackupResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - clear_has_data(); - switch (from.data_case()) { - case kAuthenticationResponseData: { - _internal_mutable_authenticationresponsedata()->::backup::FullAuthenticationResponseData::MergeFrom(from._internal_authenticationresponsedata()); - break; - } - case kEntropyValid: { - _internal_set_entropyvalid(from._internal_entropyvalid()); - break; - } - case kBackupID: { - _internal_set_backupid(from._internal_backupid()); - break; - } - case DATA_NOT_SET: { - break; - } + backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_backupid().empty()) { + backupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_backupid(), + GetArena()); } // @@protoc_insertion_point(copy_constructor:backup.CreateNewBackupResponse) } void CreateNewBackupResponse::SharedCtor() { -clear_has_data(); +backupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } CreateNewBackupResponse::~CreateNewBackupResponse() { @@ -3431,9 +594,7 @@ void CreateNewBackupResponse::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - if (has_data()) { - clear_data(); - } + backupid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void CreateNewBackupResponse::ArenaDtor(void* object) { @@ -3446,38 +607,13 @@ _cached_size_.Set(size); } -void CreateNewBackupResponse::clear_data() { -// @@protoc_insertion_point(one_of_clear_start:backup.CreateNewBackupResponse) - switch (data_case()) { - case kAuthenticationResponseData: { - if (GetArena() == nullptr) { - delete data_.authenticationresponsedata_; - } - break; - } - case kEntropyValid: { - // No need to clear - break; - } - case kBackupID: { - data_.backupid_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); - break; - } - case DATA_NOT_SET: { - break; - } - } - _oneof_case_[0] = DATA_NOT_SET; -} - - void CreateNewBackupResponse::Clear() { // @@protoc_insertion_point(message_clear_start:backup.CreateNewBackupResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - clear_data(); + backupid_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -3488,23 +624,9 @@ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // .backup.FullAuthenticationResponseData authenticationResponseData = 1; + // string backupID = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_authenticationresponsedata(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bool entropyValid = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - _internal_set_entropyvalid(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string backupID = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { auto str = _internal_mutable_backupid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.CreateNewBackupResponse.backupID")); @@ -3539,28 +661,14 @@ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .backup.FullAuthenticationResponseData authenticationResponseData = 1; - if (_internal_has_authenticationresponsedata()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::authenticationresponsedata(this), target, stream); - } - - // bool entropyValid = 2; - if (_internal_has_entropyvalid()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_entropyvalid(), target); - } - - // string backupID = 3; - if (_internal_has_backupid()) { + // string backupID = 1; + if (this->backupid().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_backupid().data(), static_cast(this->_internal_backupid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "backup.CreateNewBackupResponse.backupID"); target = stream->WriteStringMaybeAliased( - 3, this->_internal_backupid(), target); + 1, this->_internal_backupid(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -3573,36 +681,19 @@ size_t CreateNewBackupResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:backup.CreateNewBackupResponse) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (data_case()) { - // .backup.FullAuthenticationResponseData authenticationResponseData = 1; - case kAuthenticationResponseData: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *data_.authenticationresponsedata_); - break; - } - // bool entropyValid = 2; - case kEntropyValid: { - total_size += 1 + 1; - break; - } - // string backupID = 3; - case kBackupID: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_backupid()); - break; - } - case DATA_NOT_SET: { - break; - } + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 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) { + 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_); @@ -3634,22 +725,8 @@ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - switch (from.data_case()) { - case kAuthenticationResponseData: { - _internal_mutable_authenticationresponsedata()->::backup::FullAuthenticationResponseData::MergeFrom(from._internal_authenticationresponsedata()); - break; - } - case kEntropyValid: { - _internal_set_entropyvalid(from._internal_entropyvalid()); - break; - } - case kBackupID: { - _internal_set_backupid(from._internal_backupid()); - break; - } - case DATA_NOT_SET: { - break; - } + if (from.backupid().size() > 0) { + _internal_set_backupid(from._internal_backupid()); } } @@ -3674,8 +751,7 @@ void CreateNewBackupResponse::InternalSwap(CreateNewBackupResponse* 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]); + backupid_.Swap(&other->backupid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata CreateNewBackupResponse::GetMetadata() const { @@ -3687,13 +763,8 @@ class SendLogRequest::_Internal { public: - static const ::backup::SimpleAuthenticationRequestData& authenticationdata(const SendLogRequest* msg); }; -const ::backup::SimpleAuthenticationRequestData& -SendLogRequest::_Internal::authenticationdata(const SendLogRequest* msg) { - return *msg->authenticationdata_; -} SendLogRequest::SendLogRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); @@ -3703,22 +774,33 @@ SendLogRequest::SendLogRequest(const SendLogRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - logdata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_logdata().empty()) { - logdata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_logdata(), - GetArena()); - } - if (from._internal_has_authenticationdata()) { - authenticationdata_ = new ::backup::SimpleAuthenticationRequestData(*from.authenticationdata_); - } else { - authenticationdata_ = nullptr; + clear_has_data(); + switch (from.data_case()) { + case kUserID: { + _internal_set_userid(from._internal_userid()); + break; + } + case kBackupID: { + _internal_set_backupid(from._internal_backupid()); + break; + } + case kLogHash: { + _internal_set_loghash(from._internal_loghash()); + break; + } + case kLogData: { + _internal_set_logdata(from._internal_logdata()); + break; + } + case DATA_NOT_SET: { + break; + } } // @@protoc_insertion_point(copy_constructor:backup.SendLogRequest) } void SendLogRequest::SharedCtor() { -logdata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -authenticationdata_ = nullptr; +clear_has_data(); } SendLogRequest::~SendLogRequest() { @@ -3729,8 +811,9 @@ void SendLogRequest::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - logdata_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete authenticationdata_; + if (has_data()) { + clear_data(); + } } void SendLogRequest::ArenaDtor(void* object) { @@ -3743,17 +826,40 @@ _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()); + break; + } + case kBackupID: { + data_.backupid_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + break; + } + case kLogHash: { + data_.loghash_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + break; + } + case kLogData: { + data_.logdata_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + break; + } + case DATA_NOT_SET: { + break; + } + } + _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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - logdata_.ClearToEmpty(); - if (GetArena() == nullptr && authenticationdata_ != nullptr) { - delete authenticationdata_; - } - authenticationdata_ = nullptr; + clear_data(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -3764,16 +870,35 @@ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // .backup.SimpleAuthenticationRequestData authenticationData = 1; + // string userID = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_authenticationdata(), ptr); + auto str = _internal_mutable_userid(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.SendLogRequest.userID")); CHK_(ptr); } else goto handle_unusual; continue; - // bytes logData = 2; + // string backupID = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(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")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bytes logHash = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_loghash(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bytes logData = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { auto str = _internal_mutable_logdata(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); @@ -3807,18 +932,36 @@ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .backup.SimpleAuthenticationRequestData authenticationData = 1; - if (this->has_authenticationdata()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::authenticationdata(this), target, stream); + // string userID = 1; + if (_internal_has_userid()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_userid().data(), static_cast(this->_internal_userid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "backup.SendLogRequest.userID"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_userid(), target); + } + + // string backupID = 2; + if (_internal_has_backupid()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_backupid().data(), static_cast(this->_internal_backupid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "backup.SendLogRequest.backupID"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_backupid(), target); + } + + // bytes logHash = 3; + if (_internal_has_loghash()) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_loghash(), target); } - // bytes logData = 2; - if (this->logdata().size() > 0) { + // bytes logData = 4; + if (_internal_has_logdata()) { target = stream->WriteBytesMaybeAliased( - 2, this->_internal_logdata(), target); + 4, this->_internal_logdata(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -3837,20 +980,39 @@ // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // bytes logData = 2; - if (this->logdata().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_logdata()); - } - - // .backup.SimpleAuthenticationRequestData authenticationData = 1; - if (this->has_authenticationdata()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *authenticationdata_); + switch (data_case()) { + // string userID = 1; + case kUserID: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_userid()); + break; + } + // string backupID = 2; + case kBackupID: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_backupid()); + break; + } + // bytes logHash = 3; + case kLogHash: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_loghash()); + break; + } + // bytes logData = 4; + case kLogData: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_logdata()); + 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_); @@ -3882,11 +1044,26 @@ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.logdata().size() > 0) { - _internal_set_logdata(from._internal_logdata()); - } - if (from.has_authenticationdata()) { - _internal_mutable_authenticationdata()->::backup::SimpleAuthenticationRequestData::MergeFrom(from._internal_authenticationdata()); + switch (from.data_case()) { + case kUserID: { + _internal_set_userid(from._internal_userid()); + break; + } + case kBackupID: { + _internal_set_backupid(from._internal_backupid()); + break; + } + case kLogHash: { + _internal_set_loghash(from._internal_loghash()); + break; + } + case kLogData: { + _internal_set_logdata(from._internal_logdata()); + break; + } + case DATA_NOT_SET: { + break; + } } } @@ -3911,8 +1088,8 @@ void SendLogRequest::InternalSwap(SendLogRequest* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - logdata_.Swap(&other->logdata_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(authenticationdata_, other->authenticationdata_); + swap(data_, other->data_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata SendLogRequest::GetMetadata() const { @@ -3924,13 +1101,8 @@ class RecoverBackupKeyRequest::_Internal { public: - static const ::backup::FullAuthenticationRequestData& authenticationdata(const RecoverBackupKeyRequest* msg); }; -const ::backup::FullAuthenticationRequestData& -RecoverBackupKeyRequest::_Internal::authenticationdata(const RecoverBackupKeyRequest* msg) { - return *msg->authenticationdata_; -} RecoverBackupKeyRequest::RecoverBackupKeyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); @@ -3940,16 +1112,16 @@ RecoverBackupKeyRequest::RecoverBackupKeyRequest(const RecoverBackupKeyRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_authenticationdata()) { - authenticationdata_ = new ::backup::FullAuthenticationRequestData(*from.authenticationdata_); - } else { - authenticationdata_ = nullptr; + userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_userid().empty()) { + userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_userid(), + GetArena()); } // @@protoc_insertion_point(copy_constructor:backup.RecoverBackupKeyRequest) } void RecoverBackupKeyRequest::SharedCtor() { -authenticationdata_ = nullptr; +userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } RecoverBackupKeyRequest::~RecoverBackupKeyRequest() { @@ -3960,7 +1132,7 @@ void RecoverBackupKeyRequest::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete authenticationdata_; + userid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void RecoverBackupKeyRequest::ArenaDtor(void* object) { @@ -3979,10 +1151,7 @@ // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArena() == nullptr && authenticationdata_ != nullptr) { - delete authenticationdata_; - } - authenticationdata_ = nullptr; + userid_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -3993,10 +1162,12 @@ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // .backup.FullAuthenticationRequestData authenticationData = 1; + // string userID = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_authenticationdata(), ptr); + auto str = _internal_mutable_userid(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.RecoverBackupKeyRequest.userID")); CHK_(ptr); } else goto handle_unusual; continue; @@ -4028,12 +1199,14 @@ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .backup.FullAuthenticationRequestData authenticationData = 1; - if (this->has_authenticationdata()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::authenticationdata(this), target, stream); + // string userID = 1; + if (this->userid().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_userid().data(), static_cast(this->_internal_userid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "backup.RecoverBackupKeyRequest.userID"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_userid(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -4052,11 +1225,11 @@ // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .backup.FullAuthenticationRequestData authenticationData = 1; - if (this->has_authenticationdata()) { + // string userID = 1; + if (this->userid().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *authenticationdata_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_userid()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -4090,8 +1263,8 @@ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.has_authenticationdata()) { - _internal_mutable_authenticationdata()->::backup::FullAuthenticationRequestData::MergeFrom(from._internal_authenticationdata()); + if (from.userid().size() > 0) { + _internal_set_userid(from._internal_userid()); } } @@ -4116,7 +1289,7 @@ void RecoverBackupKeyRequest::InternalSwap(RecoverBackupKeyRequest* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(authenticationdata_, other->authenticationdata_); + userid_.Swap(&other->userid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata RecoverBackupKeyRequest::GetMetadata() const { @@ -4128,48 +1301,8 @@ class RecoverBackupKeyResponse::_Internal { public: - static const ::backup::FullAuthenticationResponseData& authenticationresponsedata(const RecoverBackupKeyResponse* msg); - static const ::backup::BackupKeyEntropy& backupkeyentropy(const RecoverBackupKeyResponse* msg); }; -const ::backup::FullAuthenticationResponseData& -RecoverBackupKeyResponse::_Internal::authenticationresponsedata(const RecoverBackupKeyResponse* msg) { - return *msg->data_.authenticationresponsedata_; -} -const ::backup::BackupKeyEntropy& -RecoverBackupKeyResponse::_Internal::backupkeyentropy(const RecoverBackupKeyResponse* msg) { - return *msg->data_.backupkeyentropy_; -} -void RecoverBackupKeyResponse::set_allocated_authenticationresponsedata(::backup::FullAuthenticationResponseData* authenticationresponsedata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - clear_data(); - if (authenticationresponsedata) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(authenticationresponsedata); - if (message_arena != submessage_arena) { - authenticationresponsedata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, authenticationresponsedata, submessage_arena); - } - set_has_authenticationresponsedata(); - data_.authenticationresponsedata_ = authenticationresponsedata; - } - // @@protoc_insertion_point(field_set_allocated:backup.RecoverBackupKeyResponse.authenticationResponseData) -} -void RecoverBackupKeyResponse::set_allocated_backupkeyentropy(::backup::BackupKeyEntropy* backupkeyentropy) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - clear_data(); - if (backupkeyentropy) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(backupkeyentropy); - if (message_arena != submessage_arena) { - backupkeyentropy = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, backupkeyentropy, submessage_arena); - } - set_has_backupkeyentropy(); - data_.backupkeyentropy_ = backupkeyentropy; - } - // @@protoc_insertion_point(field_set_allocated:backup.RecoverBackupKeyResponse.backupKeyEntropy) -} RecoverBackupKeyResponse::RecoverBackupKeyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); @@ -4181,14 +1314,6 @@ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); clear_has_data(); switch (from.data_case()) { - case kAuthenticationResponseData: { - _internal_mutable_authenticationresponsedata()->::backup::FullAuthenticationResponseData::MergeFrom(from._internal_authenticationresponsedata()); - break; - } - case kBackupKeyEntropy: { - _internal_mutable_backupkeyentropy()->::backup::BackupKeyEntropy::MergeFrom(from._internal_backupkeyentropy()); - break; - } case kBackupID: { _internal_set_backupid(from._internal_backupid()); break; @@ -4230,18 +1355,6 @@ void RecoverBackupKeyResponse::clear_data() { // @@protoc_insertion_point(one_of_clear_start:backup.RecoverBackupKeyResponse) switch (data_case()) { - case kAuthenticationResponseData: { - if (GetArena() == nullptr) { - delete data_.authenticationresponsedata_; - } - break; - } - case kBackupKeyEntropy: { - if (GetArena() == nullptr) { - delete data_.backupkeyentropy_; - } - break; - } case kBackupID: { data_.backupid_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); break; @@ -4271,20 +1384,6 @@ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // .backup.FullAuthenticationResponseData authenticationResponseData = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_authenticationresponsedata(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .backup.BackupKeyEntropy backupKeyEntropy = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_backupkeyentropy(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; // string backupID = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { @@ -4322,22 +1421,6 @@ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .backup.FullAuthenticationResponseData authenticationResponseData = 1; - if (_internal_has_authenticationresponsedata()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::authenticationresponsedata(this), target, stream); - } - - // .backup.BackupKeyEntropy backupKeyEntropy = 2; - if (_internal_has_backupkeyentropy()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::backupkeyentropy(this), target, stream); - } - // string backupID = 4; if (_internal_has_backupid()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( @@ -4365,20 +1448,6 @@ (void) cached_has_bits; switch (data_case()) { - // .backup.FullAuthenticationResponseData authenticationResponseData = 1; - case kAuthenticationResponseData: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *data_.authenticationresponsedata_); - break; - } - // .backup.BackupKeyEntropy backupKeyEntropy = 2; - case kBackupKeyEntropy: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *data_.backupkeyentropy_); - break; - } // string backupID = 4; case kBackupID: { total_size += 1 + @@ -4422,14 +1491,6 @@ (void) cached_has_bits; switch (from.data_case()) { - case kAuthenticationResponseData: { - _internal_mutable_authenticationresponsedata()->::backup::FullAuthenticationResponseData::MergeFrom(from._internal_authenticationresponsedata()); - break; - } - case kBackupKeyEntropy: { - _internal_mutable_backupkeyentropy()->::backup::BackupKeyEntropy::MergeFrom(from._internal_backupkeyentropy()); - break; - } case kBackupID: { _internal_set_backupid(from._internal_backupid()); break; @@ -4474,13 +1535,8 @@ class PullBackupRequest::_Internal { public: - static const ::backup::SimpleAuthenticationRequestData& authenticationdata(const PullBackupRequest* msg); }; -const ::backup::SimpleAuthenticationRequestData& -PullBackupRequest::_Internal::authenticationdata(const PullBackupRequest* msg) { - return *msg->authenticationdata_; -} PullBackupRequest::PullBackupRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); @@ -4490,16 +1546,16 @@ PullBackupRequest::PullBackupRequest(const PullBackupRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_authenticationdata()) { - authenticationdata_ = new ::backup::SimpleAuthenticationRequestData(*from.authenticationdata_); - } else { - authenticationdata_ = nullptr; + userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_userid().empty()) { + userid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_userid(), + GetArena()); } // @@protoc_insertion_point(copy_constructor:backup.PullBackupRequest) } void PullBackupRequest::SharedCtor() { -authenticationdata_ = nullptr; +userid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } PullBackupRequest::~PullBackupRequest() { @@ -4510,7 +1566,7 @@ void PullBackupRequest::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete authenticationdata_; + userid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void PullBackupRequest::ArenaDtor(void* object) { @@ -4529,10 +1585,7 @@ // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArena() == nullptr && authenticationdata_ != nullptr) { - delete authenticationdata_; - } - authenticationdata_ = nullptr; + userid_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -4543,10 +1596,12 @@ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // .backup.SimpleAuthenticationRequestData authenticationData = 1; + // string userID = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_authenticationdata(), ptr); + auto str = _internal_mutable_userid(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "backup.PullBackupRequest.userID")); CHK_(ptr); } else goto handle_unusual; continue; @@ -4578,12 +1633,14 @@ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .backup.SimpleAuthenticationRequestData authenticationData = 1; - if (this->has_authenticationdata()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::authenticationdata(this), target, stream); + // string userID = 1; + if (this->userid().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_userid().data(), static_cast(this->_internal_userid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "backup.PullBackupRequest.userID"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_userid(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -4602,11 +1659,11 @@ // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .backup.SimpleAuthenticationRequestData authenticationData = 1; - if (this->has_authenticationdata()) { + // string userID = 1; + if (this->userid().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *authenticationdata_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_userid()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -4640,8 +1697,8 @@ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.has_authenticationdata()) { - _internal_mutable_authenticationdata()->::backup::SimpleAuthenticationRequestData::MergeFrom(from._internal_authenticationdata()); + if (from.userid().size() > 0) { + _internal_set_userid(from._internal_userid()); } } @@ -4666,7 +1723,7 @@ void PullBackupRequest::InternalSwap(PullBackupRequest* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(authenticationdata_, other->authenticationdata_); + userid_.Swap(&other->userid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata PullBackupRequest::GetMetadata() const { @@ -4939,33 +1996,6 @@ // @@protoc_insertion_point(namespace_scope) } // namespace backup PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::backup::PakeRegistrationRequestAndUserID* Arena::CreateMaybeMessage< ::backup::PakeRegistrationRequestAndUserID >(Arena* arena) { - return Arena::CreateMessageInternal< ::backup::PakeRegistrationRequestAndUserID >(arena); -} -template<> PROTOBUF_NOINLINE ::backup::PakeAuthenticationRequestData* Arena::CreateMaybeMessage< ::backup::PakeAuthenticationRequestData >(Arena* arena) { - return Arena::CreateMessageInternal< ::backup::PakeAuthenticationRequestData >(arena); -} -template<> PROTOBUF_NOINLINE ::backup::WalletAuthenticationRequestData* Arena::CreateMaybeMessage< ::backup::WalletAuthenticationRequestData >(Arena* arena) { - return Arena::CreateMessageInternal< ::backup::WalletAuthenticationRequestData >(arena); -} -template<> PROTOBUF_NOINLINE ::backup::FullAuthenticationRequestData* Arena::CreateMaybeMessage< ::backup::FullAuthenticationRequestData >(Arena* arena) { - return Arena::CreateMessageInternal< ::backup::FullAuthenticationRequestData >(arena); -} -template<> PROTOBUF_NOINLINE ::backup::WalletAuthenticationResponseData* Arena::CreateMaybeMessage< ::backup::WalletAuthenticationResponseData >(Arena* arena) { - return Arena::CreateMessageInternal< ::backup::WalletAuthenticationResponseData >(arena); -} -template<> PROTOBUF_NOINLINE ::backup::PakeAuthenticationResponseData* Arena::CreateMaybeMessage< ::backup::PakeAuthenticationResponseData >(Arena* arena) { - return Arena::CreateMessageInternal< ::backup::PakeAuthenticationResponseData >(arena); -} -template<> PROTOBUF_NOINLINE ::backup::FullAuthenticationResponseData* Arena::CreateMaybeMessage< ::backup::FullAuthenticationResponseData >(Arena* arena) { - return Arena::CreateMessageInternal< ::backup::FullAuthenticationResponseData >(arena); -} -template<> PROTOBUF_NOINLINE ::backup::SimpleAuthenticationRequestData* Arena::CreateMaybeMessage< ::backup::SimpleAuthenticationRequestData >(Arena* arena) { - return Arena::CreateMessageInternal< ::backup::SimpleAuthenticationRequestData >(arena); -} -template<> PROTOBUF_NOINLINE ::backup::BackupKeyEntropy* Arena::CreateMaybeMessage< ::backup::BackupKeyEntropy >(Arena* arena) { - return Arena::CreateMessageInternal< ::backup::BackupKeyEntropy >(arena); -} template<> PROTOBUF_NOINLINE ::backup::CreateNewBackupRequest* Arena::CreateMaybeMessage< ::backup::CreateNewBackupRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::backup::CreateNewBackupRequest >(arena); } diff --git a/native/cpp/CommonCpp/grpc/protos/backup.proto b/native/cpp/CommonCpp/grpc/protos/backup.proto --- a/native/cpp/CommonCpp/grpc/protos/backup.proto +++ b/native/cpp/CommonCpp/grpc/protos/backup.proto @@ -29,9 +29,10 @@ message CreateNewBackupRequest { oneof data { - bytes keyEntropy = 1; - bytes newCompactionHash = 2; - bytes newCompactionChunk = 3; + string userID = 1; + bytes keyEntropy = 2; + bytes newCompactionHash = 3; + bytes newCompactionChunk = 4; } } @@ -42,7 +43,12 @@ // SendLog message SendLogRequest { - bytes logData = 1; + oneof data { + string userID = 1; + string backupID = 2; + bytes logHash = 3; + bytes logData = 4; + } } // RecoverBackupKey