diff options
author | Shauren <shauren.trinity@gmail.com> | 2017-01-19 18:17:25 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2017-01-19 18:17:25 +0100 |
commit | 784b70d5f4b59ec9ca47c179205de4c96e93d272 (patch) | |
tree | 6dad756263ad2cb42462138ff383f808b27b5aef /src/server/proto | |
parent | cdbe140f91d62447c060744b5de58f4d010f93ce (diff) |
Core/Proto: Generate new protobuf files
CID 1354572 to 1354592, 1354597
Diffstat (limited to 'src/server/proto')
32 files changed, 21853 insertions, 6188 deletions
diff --git a/src/server/proto/Client/account_service.pb.cc b/src/server/proto/Client/account_service.pb.cc index 097d1caaaf7..0237fa685a7 100644 --- a/src/server/proto/Client/account_service.pb.cc +++ b/src/server/proto/Client/account_service.pb.cc @@ -40,6 +40,9 @@ const ::google::protobuf::internal::GeneratedMessageReflection* const ::google::protobuf::Descriptor* CreateGameAccountRequest_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* CreateGameAccountRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* CreateGameAccountResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CreateGameAccountResponse_reflection_ = NULL; const ::google::protobuf::Descriptor* CacheExpireRequest_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* CacheExpireRequest_reflection_ = NULL; @@ -115,6 +118,18 @@ const ::google::protobuf::internal::GeneratedMessageReflection* const ::google::protobuf::Descriptor* GetAuthorizedDataResponse_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* GetAuthorizedDataResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* UpdateParentalControlsAndCAISRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + UpdateParentalControlsAndCAISRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* QueueDeductRecordRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + QueueDeductRecordRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetGameAccountRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetGameAccountRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetGameAccountResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetGameAccountResponse_reflection_ = NULL; const ::google::protobuf::Descriptor* AccountStateNotification_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* AccountStateNotification_reflection_ = NULL; @@ -140,8 +155,9 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { "account_service.proto"); GOOGLE_CHECK(file != NULL); GetAccountRequest_descriptor_ = file->message_type(0); - static const int GetAccountRequest_offsets_[9] = { + static const int GetAccountRequest_offsets_[11] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountRequest, ref_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountRequest, reload_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountRequest, fetch_all_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountRequest, fetch_blob_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountRequest, fetch_id_), @@ -150,6 +166,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountRequest, fetch_full_name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountRequest, fetch_links_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountRequest, fetch_parental_controls_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountRequest, fetch_cais_id_), }; GetAccountRequest_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( @@ -163,7 +180,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::MessageFactory::generated_factory(), sizeof(GetAccountRequest)); GetAccountResponse_descriptor_ = file->message_type(1); - static const int GetAccountResponse_offsets_[7] = { + static const int GetAccountResponse_offsets_[8] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountResponse, blob_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountResponse, id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountResponse, email_), @@ -171,6 +188,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountResponse, full_name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountResponse, links_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountResponse, parental_control_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountResponse, cais_id_), }; GetAccountResponse_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( @@ -184,11 +202,13 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::MessageFactory::generated_factory(), sizeof(GetAccountResponse)); CreateGameAccountRequest_descriptor_ = file->message_type(2); - static const int CreateGameAccountRequest_offsets_[4] = { + static const int CreateGameAccountRequest_offsets_[6] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateGameAccountRequest, account_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateGameAccountRequest, region_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateGameAccountRequest, program_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateGameAccountRequest, realm_permissions_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateGameAccountRequest, account_region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateGameAccountRequest, platform_), }; CreateGameAccountRequest_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( @@ -201,7 +221,22 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(CreateGameAccountRequest)); - CacheExpireRequest_descriptor_ = file->message_type(3); + CreateGameAccountResponse_descriptor_ = file->message_type(3); + static const int CreateGameAccountResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateGameAccountResponse, game_account_), + }; + CreateGameAccountResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CreateGameAccountResponse_descriptor_, + CreateGameAccountResponse::default_instance_, + CreateGameAccountResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateGameAccountResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateGameAccountResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CreateGameAccountResponse)); + CacheExpireRequest_descriptor_ = file->message_type(4); static const int CacheExpireRequest_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CacheExpireRequest, account_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CacheExpireRequest, game_account_), @@ -218,7 +253,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(CacheExpireRequest)); - CredentialUpdateRequest_descriptor_ = file->message_type(4); + CredentialUpdateRequest_descriptor_ = file->message_type(5); static const int CredentialUpdateRequest_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CredentialUpdateRequest, account_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CredentialUpdateRequest, old_credentials_), @@ -236,7 +271,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(CredentialUpdateRequest)); - CredentialUpdateResponse_descriptor_ = file->message_type(5); + CredentialUpdateResponse_descriptor_ = file->message_type(6); static const int CredentialUpdateResponse_offsets_[1] = { }; CredentialUpdateResponse_reflection_ = @@ -250,7 +285,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(CredentialUpdateResponse)); - AccountFlagUpdateRequest_descriptor_ = file->message_type(6); + AccountFlagUpdateRequest_descriptor_ = file->message_type(7); static const int AccountFlagUpdateRequest_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountFlagUpdateRequest, account_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountFlagUpdateRequest, region_), @@ -268,7 +303,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(AccountFlagUpdateRequest)); - GameAccountFlagUpdateRequest_descriptor_ = file->message_type(7); + GameAccountFlagUpdateRequest_descriptor_ = file->message_type(8); static const int GameAccountFlagUpdateRequest_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountFlagUpdateRequest, game_account_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountFlagUpdateRequest, flag_), @@ -285,7 +320,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GameAccountFlagUpdateRequest)); - SubscriptionUpdateRequest_descriptor_ = file->message_type(8); + SubscriptionUpdateRequest_descriptor_ = file->message_type(9); static const int SubscriptionUpdateRequest_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscriptionUpdateRequest, ref_), }; @@ -300,7 +335,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(SubscriptionUpdateRequest)); - SubscriptionUpdateResponse_descriptor_ = file->message_type(9); + SubscriptionUpdateResponse_descriptor_ = file->message_type(10); static const int SubscriptionUpdateResponse_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscriptionUpdateResponse, ref_), }; @@ -315,7 +350,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(SubscriptionUpdateResponse)); - IsIgrAddressRequest_descriptor_ = file->message_type(10); + IsIgrAddressRequest_descriptor_ = file->message_type(11); static const int IsIgrAddressRequest_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsIgrAddressRequest, client_address_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsIgrAddressRequest, region_), @@ -331,7 +366,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(IsIgrAddressRequest)); - AccountServiceRegion_descriptor_ = file->message_type(11); + AccountServiceRegion_descriptor_ = file->message_type(12); static const int AccountServiceRegion_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountServiceRegion, id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountServiceRegion, shard_), @@ -347,7 +382,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(AccountServiceRegion)); - AccountServiceConfig_descriptor_ = file->message_type(12); + AccountServiceConfig_descriptor_ = file->message_type(13); static const int AccountServiceConfig_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountServiceConfig, region_), }; @@ -362,7 +397,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(AccountServiceConfig)); - GetAccountStateRequest_descriptor_ = file->message_type(13); + GetAccountStateRequest_descriptor_ = file->message_type(14); static const int GetAccountStateRequest_offsets_[5] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountStateRequest, entity_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountStateRequest, program_), @@ -381,7 +416,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GetAccountStateRequest)); - GetAccountStateResponse_descriptor_ = file->message_type(14); + GetAccountStateResponse_descriptor_ = file->message_type(15); static const int GetAccountStateResponse_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountStateResponse, state_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAccountStateResponse, tags_), @@ -397,7 +432,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GetAccountStateResponse)); - GetGameAccountStateRequest_descriptor_ = file->message_type(15); + GetGameAccountStateRequest_descriptor_ = file->message_type(16); static const int GetGameAccountStateRequest_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetGameAccountStateRequest, account_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetGameAccountStateRequest, game_account_id_), @@ -415,7 +450,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GetGameAccountStateRequest)); - GetGameAccountStateResponse_descriptor_ = file->message_type(16); + GetGameAccountStateResponse_descriptor_ = file->message_type(17); static const int GetGameAccountStateResponse_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetGameAccountStateResponse, state_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetGameAccountStateResponse, tags_), @@ -431,7 +466,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GetGameAccountStateResponse)); - GetLicensesRequest_descriptor_ = file->message_type(17); + GetLicensesRequest_descriptor_ = file->message_type(18); static const int GetLicensesRequest_offsets_[6] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetLicensesRequest, target_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetLicensesRequest, fetch_account_licenses_), @@ -451,7 +486,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GetLicensesRequest)); - GetLicensesResponse_descriptor_ = file->message_type(18); + GetLicensesResponse_descriptor_ = file->message_type(19); static const int GetLicensesResponse_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetLicensesResponse, licenses_), }; @@ -466,7 +501,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GetLicensesResponse)); - GetGameSessionInfoRequest_descriptor_ = file->message_type(19); + GetGameSessionInfoRequest_descriptor_ = file->message_type(20); static const int GetGameSessionInfoRequest_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetGameSessionInfoRequest, entity_id_), }; @@ -481,7 +516,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GetGameSessionInfoRequest)); - GetGameSessionInfoResponse_descriptor_ = file->message_type(20); + GetGameSessionInfoResponse_descriptor_ = file->message_type(21); static const int GetGameSessionInfoResponse_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetGameSessionInfoResponse, session_info_), }; @@ -496,7 +531,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GetGameSessionInfoResponse)); - GetGameTimeRemainingInfoRequest_descriptor_ = file->message_type(21); + GetGameTimeRemainingInfoRequest_descriptor_ = file->message_type(22); static const int GetGameTimeRemainingInfoRequest_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetGameTimeRemainingInfoRequest, game_account_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetGameTimeRemainingInfoRequest, account_id_), @@ -512,7 +547,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GetGameTimeRemainingInfoRequest)); - GetGameTimeRemainingInfoResponse_descriptor_ = file->message_type(22); + GetGameTimeRemainingInfoResponse_descriptor_ = file->message_type(23); static const int GetGameTimeRemainingInfoResponse_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetGameTimeRemainingInfoResponse, game_time_remaining_info_), }; @@ -527,7 +562,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GetGameTimeRemainingInfoResponse)); - GetCAISInfoRequest_descriptor_ = file->message_type(23); + GetCAISInfoRequest_descriptor_ = file->message_type(24); static const int GetCAISInfoRequest_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetCAISInfoRequest, entity_id_), }; @@ -542,7 +577,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GetCAISInfoRequest)); - GetCAISInfoResponse_descriptor_ = file->message_type(24); + GetCAISInfoResponse_descriptor_ = file->message_type(25); static const int GetCAISInfoResponse_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetCAISInfoResponse, cais_info_), }; @@ -557,7 +592,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GetCAISInfoResponse)); - ForwardCacheExpireRequest_descriptor_ = file->message_type(25); + ForwardCacheExpireRequest_descriptor_ = file->message_type(26); static const int ForwardCacheExpireRequest_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ForwardCacheExpireRequest, entity_id_), }; @@ -572,7 +607,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(ForwardCacheExpireRequest)); - GetAuthorizedDataRequest_descriptor_ = file->message_type(26); + GetAuthorizedDataRequest_descriptor_ = file->message_type(27); static const int GetAuthorizedDataRequest_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAuthorizedDataRequest, entity_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAuthorizedDataRequest, tag_), @@ -589,7 +624,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GetAuthorizedDataRequest)); - GetAuthorizedDataResponse_descriptor_ = file->message_type(27); + GetAuthorizedDataResponse_descriptor_ = file->message_type(28); static const int GetAuthorizedDataResponse_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAuthorizedDataResponse, data_), }; @@ -604,7 +639,73 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GetAuthorizedDataResponse)); - AccountStateNotification_descriptor_ = file->message_type(28); + UpdateParentalControlsAndCAISRequest_descriptor_ = file->message_type(29); + static const int UpdateParentalControlsAndCAISRequest_offsets_[6] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateParentalControlsAndCAISRequest, account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateParentalControlsAndCAISRequest, parental_control_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateParentalControlsAndCAISRequest, cais_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateParentalControlsAndCAISRequest, session_start_time_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateParentalControlsAndCAISRequest, start_time_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateParentalControlsAndCAISRequest, end_time_), + }; + UpdateParentalControlsAndCAISRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + UpdateParentalControlsAndCAISRequest_descriptor_, + UpdateParentalControlsAndCAISRequest::default_instance_, + UpdateParentalControlsAndCAISRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateParentalControlsAndCAISRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateParentalControlsAndCAISRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(UpdateParentalControlsAndCAISRequest)); + QueueDeductRecordRequest_descriptor_ = file->message_type(30); + static const int QueueDeductRecordRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueueDeductRecordRequest, deduct_record_), + }; + QueueDeductRecordRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + QueueDeductRecordRequest_descriptor_, + QueueDeductRecordRequest::default_instance_, + QueueDeductRecordRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueueDeductRecordRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueueDeductRecordRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(QueueDeductRecordRequest)); + GetGameAccountRequest_descriptor_ = file->message_type(31); + static const int GetGameAccountRequest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetGameAccountRequest, game_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetGameAccountRequest, reload_), + }; + GetGameAccountRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetGameAccountRequest_descriptor_, + GetGameAccountRequest::default_instance_, + GetGameAccountRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetGameAccountRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetGameAccountRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetGameAccountRequest)); + GetGameAccountResponse_descriptor_ = file->message_type(32); + static const int GetGameAccountResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetGameAccountResponse, blob_), + }; + GetGameAccountResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetGameAccountResponse_descriptor_, + GetGameAccountResponse::default_instance_, + GetGameAccountResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetGameAccountResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetGameAccountResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetGameAccountResponse)); + AccountStateNotification_descriptor_ = file->message_type(33); static const int AccountStateNotification_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountStateNotification, account_state_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountStateNotification, subscriber_id_), @@ -622,7 +723,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(AccountStateNotification)); - GameAccountStateNotification_descriptor_ = file->message_type(29); + GameAccountStateNotification_descriptor_ = file->message_type(34); static const int GameAccountStateNotification_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountStateNotification, game_account_state_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountStateNotification, subscriber_id_), @@ -640,7 +741,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GameAccountStateNotification)); - GameAccountNotification_descriptor_ = file->message_type(30); + GameAccountNotification_descriptor_ = file->message_type(35); static const int GameAccountNotification_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountNotification, game_accounts_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountNotification, subscriber_id_), @@ -657,7 +758,7 @@ void protobuf_AssignDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GameAccountNotification)); - GameAccountSessionNotification_descriptor_ = file->message_type(31); + GameAccountSessionNotification_descriptor_ = file->message_type(36); static const int GameAccountSessionNotification_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountSessionNotification, game_account_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountSessionNotification, session_info_), @@ -694,6 +795,8 @@ void protobuf_RegisterTypes(const ::std::string&) { ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( CreateGameAccountRequest_descriptor_, &CreateGameAccountRequest::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CreateGameAccountResponse_descriptor_, &CreateGameAccountResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( CacheExpireRequest_descriptor_, &CacheExpireRequest::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( CredentialUpdateRequest_descriptor_, &CredentialUpdateRequest::default_instance()); @@ -744,6 +847,14 @@ void protobuf_RegisterTypes(const ::std::string&) { ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( GetAuthorizedDataResponse_descriptor_, &GetAuthorizedDataResponse::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + UpdateParentalControlsAndCAISRequest_descriptor_, &UpdateParentalControlsAndCAISRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + QueueDeductRecordRequest_descriptor_, &QueueDeductRecordRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetGameAccountRequest_descriptor_, &GetGameAccountRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetGameAccountResponse_descriptor_, &GetGameAccountResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( AccountStateNotification_descriptor_, &AccountStateNotification::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( GameAccountStateNotification_descriptor_, &GameAccountStateNotification::default_instance()); @@ -762,6 +873,8 @@ void protobuf_ShutdownFile_account_5fservice_2eproto() { delete GetAccountResponse_reflection_; delete CreateGameAccountRequest::default_instance_; delete CreateGameAccountRequest_reflection_; + delete CreateGameAccountResponse::default_instance_; + delete CreateGameAccountResponse_reflection_; delete CacheExpireRequest::default_instance_; delete CacheExpireRequest_reflection_; delete CredentialUpdateRequest::default_instance_; @@ -812,6 +925,14 @@ void protobuf_ShutdownFile_account_5fservice_2eproto() { delete GetAuthorizedDataRequest_reflection_; delete GetAuthorizedDataResponse::default_instance_; delete GetAuthorizedDataResponse_reflection_; + delete UpdateParentalControlsAndCAISRequest::default_instance_; + delete UpdateParentalControlsAndCAISRequest_reflection_; + delete QueueDeductRecordRequest::default_instance_; + delete QueueDeductRecordRequest_reflection_; + delete GetGameAccountRequest::default_instance_; + delete GetGameAccountRequest_reflection_; + delete GetGameAccountResponse::default_instance_; + delete GetGameAccountResponse_reflection_; delete AccountStateNotification::default_instance_; delete AccountStateNotification_reflection_; delete GameAccountStateNotification::default_instance_; @@ -834,192 +955,224 @@ void protobuf_AddDesc_account_5fservice_2eproto() { ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( "\n\025account_service.proto\022\027bgs.protocol.ac" "count.v1\032\023account_types.proto\032\022entity_ty" - "pes.proto\032\017rpc_types.proto\"\272\002\n\021GetAccoun" + "pes.proto\032\017rpc_types.proto\"\357\002\n\021GetAccoun" "tRequest\0226\n\003ref\030\001 \001(\0132).bgs.protocol.acc" - "ount.v1.AccountReference\022\030\n\tfetch_all\030\n " - "\001(\010:\005false\022\031\n\nfetch_blob\030\013 \001(\010:\005false\022\027\n" - "\010fetch_id\030\014 \001(\010:\005false\022\032\n\013fetch_email\030\r " - "\001(\010:\005false\022\037\n\020fetch_battle_tag\030\016 \001(\010:\005fa" - "lse\022\036\n\017fetch_full_name\030\017 \001(\010:\005false\022\032\n\013f" - "etch_links\030\020 \001(\010:\005false\022&\n\027fetch_parenta" - "l_controls\030\021 \001(\010:\005false\"\264\002\n\022GetAccountRe" - "sponse\0222\n\004blob\030\013 \001(\0132$.bgs.protocol.acco" - "unt.v1.AccountBlob\022.\n\002id\030\014 \001(\0132\".bgs.pro" - "tocol.account.v1.AccountId\022\r\n\005email\030\r \003(" - "\t\022\022\n\nbattle_tag\030\016 \001(\t\022\021\n\tfull_name\030\017 \001(\t" - "\0227\n\005links\030\020 \003(\0132(.bgs.protocol.account.v" - "1.GameAccountLink\022K\n\025parental_control_in" - "fo\030\021 \001(\0132,.bgs.protocol.account.v1.Paren" - "talControlInfo\"\216\001\n\030CreateGameAccountRequ" - "est\0223\n\007account\030\001 \001(\0132\".bgs.protocol.acco" - "unt.v1.AccountId\022\016\n\006region\030\002 \001(\r\022\017\n\007prog" - "ram\030\003 \001(\007\022\034\n\021realm_permissions\030\004 \001(\r:\0011\"" - "\232\001\n\022CacheExpireRequest\0223\n\007account\030\001 \003(\0132" - "\".bgs.protocol.account.v1.AccountId\022@\n\014g" - "ame_account\030\002 \003(\0132*.bgs.protocol.account" - ".v1.GameAccountHandle\022\r\n\005email\030\003 \003(\t\"\350\001\n" - "\027CredentialUpdateRequest\0223\n\007account\030\001 \002(" - "\0132\".bgs.protocol.account.v1.AccountId\022C\n" - "\017old_credentials\030\002 \003(\0132*.bgs.protocol.ac" - "count.v1.AccountCredential\022C\n\017new_creden" - "tials\030\003 \003(\0132*.bgs.protocol.account.v1.Ac" - "countCredential\022\016\n\006region\030\004 \001(\r\"\032\n\030Crede" - "ntialUpdateResponse\"}\n\030AccountFlagUpdate" - "Request\0223\n\007account\030\001 \001(\0132\".bgs.protocol." - "account.v1.AccountId\022\016\n\006region\030\002 \001(\r\022\014\n\004" - "flag\030\003 \001(\004\022\016\n\006active\030\004 \001(\010\"~\n\034GameAccoun" - "tFlagUpdateRequest\022@\n\014game_account\030\001 \001(\013" - "2*.bgs.protocol.account.v1.GameAccountHa" - "ndle\022\014\n\004flag\030\002 \001(\004\022\016\n\006active\030\003 \001(\010\"V\n\031Su" - "bscriptionUpdateRequest\0229\n\003ref\030\002 \003(\0132,.b" - "gs.protocol.account.v1.SubscriberReferen" - "ce\"W\n\032SubscriptionUpdateResponse\0229\n\003ref\030" - "\001 \003(\0132,.bgs.protocol.account.v1.Subscrib" - "erReference\"=\n\023IsIgrAddressRequest\022\026\n\016cl" - "ient_address\030\001 \001(\t\022\016\n\006region\030\002 \001(\r\"1\n\024Ac" - "countServiceRegion\022\n\n\002id\030\001 \002(\r\022\r\n\005shard\030" - "\002 \002(\t\"U\n\024AccountServiceConfig\022=\n\006region\030" - "\001 \003(\0132-.bgs.protocol.account.v1.AccountS" - "erviceRegion\"\334\001\n\026GetAccountStateRequest\022" - ")\n\tentity_id\030\001 \001(\0132\026.bgs.protocol.Entity" - "Id\022\017\n\007program\030\002 \001(\r\022\016\n\006region\030\003 \001(\r\022=\n\007o" - "ptions\030\n \001(\0132,.bgs.protocol.account.v1.A" - "ccountFieldOptions\0227\n\004tags\030\013 \001(\0132).bgs.p" - "rotocol.account.v1.AccountFieldTags\"\210\001\n\027" - "GetAccountStateResponse\0224\n\005state\030\001 \001(\0132%" - ".bgs.protocol.account.v1.AccountState\0227\n" - "\004tags\030\002 \001(\0132).bgs.protocol.account.v1.Ac" - "countFieldTags\"\375\001\n\032GetGameAccountStateRe" - "quest\022.\n\naccount_id\030\001 \001(\0132\026.bgs.protocol" - ".EntityIdB\002\030\001\022/\n\017game_account_id\030\002 \001(\0132\026" - ".bgs.protocol.EntityId\022A\n\007options\030\n \001(\0132" - "0.bgs.protocol.account.v1.GameAccountFie" - "ldOptions\022;\n\004tags\030\013 \001(\0132-.bgs.protocol.a" - "ccount.v1.GameAccountFieldTags\"\224\001\n\033GetGa" - "meAccountStateResponse\0228\n\005state\030\001 \001(\0132)." - "bgs.protocol.account.v1.GameAccountState" - "\022;\n\004tags\030\002 \001(\0132-.bgs.protocol.account.v1" - ".GameAccountFieldTags\"\345\001\n\022GetLicensesReq" - "uest\022)\n\ttarget_id\030\001 \001(\0132\026.bgs.protocol.E" - "ntityId\022\036\n\026fetch_account_licenses\030\002 \001(\010\022" - "#\n\033fetch_game_account_licenses\030\003 \001(\010\022&\n\036" - "fetch_dynamic_account_licenses\030\004 \001(\010\022\017\n\007" - "program\030\005 \001(\007\022&\n\027exclude_unknown_program" - "\030\006 \001(\010:\005false\"P\n\023GetLicensesResponse\0229\n\010" - "licenses\030\001 \003(\0132\'.bgs.protocol.account.v1" - ".AccountLicense\"F\n\031GetGameSessionInfoReq" - "uest\022)\n\tentity_id\030\001 \001(\0132\026.bgs.protocol.E" - "ntityId\"\\\n\032GetGameSessionInfoResponse\022>\n" - "\014session_info\030\002 \001(\0132(.bgs.protocol.accou" - "nt.v1.GameSessionInfo\"~\n\037GetGameTimeRema" - "iningInfoRequest\022/\n\017game_account_id\030\001 \001(" - "\0132\026.bgs.protocol.EntityId\022*\n\naccount_id\030" - "\002 \001(\0132\026.bgs.protocol.EntityId\"t\n GetGame" - "TimeRemainingInfoResponse\022P\n\030game_time_r" - "emaining_info\030\001 \001(\0132..bgs.protocol.accou" - "nt.v1.GameTimeRemainingInfo\"\?\n\022GetCAISIn" - "foRequest\022)\n\tentity_id\030\001 \001(\0132\026.bgs.proto" - "col.EntityId\"G\n\023GetCAISInfoResponse\0220\n\tc" - "ais_info\030\001 \001(\0132\035.bgs.protocol.account.v1" - ".CAIS\"F\n\031ForwardCacheExpireRequest\022)\n\ten" - "tity_id\030\001 \001(\0132\026.bgs.protocol.EntityId\"n\n" - "\030GetAuthorizedDataRequest\022)\n\tentity_id\030\001" - " \001(\0132\026.bgs.protocol.EntityId\022\013\n\003tag\030\002 \003(" - "\t\022\032\n\022privileged_network\030\003 \001(\010\"R\n\031GetAuth" - "orizedDataResponse\0225\n\004data\030\001 \003(\0132\'.bgs.p" - "rotocol.account.v1.AuthorizedData\"\320\001\n\030Ac" - "countStateNotification\022<\n\raccount_state\030" + "ount.v1.AccountReference\022\025\n\006reload\030\002 \001(\010" + ":\005false\022\030\n\tfetch_all\030\n \001(\010:\005false\022\031\n\nfet" + "ch_blob\030\013 \001(\010:\005false\022\027\n\010fetch_id\030\014 \001(\010:\005" + "false\022\032\n\013fetch_email\030\r \001(\010:\005false\022\037\n\020fet" + "ch_battle_tag\030\016 \001(\010:\005false\022\036\n\017fetch_full" + "_name\030\017 \001(\010:\005false\022\032\n\013fetch_links\030\020 \001(\010:" + "\005false\022&\n\027fetch_parental_controls\030\021 \001(\010:" + "\005false\022\034\n\rfetch_cais_id\030\022 \001(\010:\005false\"\305\002\n" + "\022GetAccountResponse\0222\n\004blob\030\013 \001(\0132$.bgs." + "protocol.account.v1.AccountBlob\022.\n\002id\030\014 " + "\001(\0132\".bgs.protocol.account.v1.AccountId\022" + "\r\n\005email\030\r \003(\t\022\022\n\nbattle_tag\030\016 \001(\t\022\021\n\tfu" + "ll_name\030\017 \001(\t\0227\n\005links\030\020 \003(\0132(.bgs.proto" + "col.account.v1.GameAccountLink\022K\n\025parent" + "al_control_info\030\021 \001(\0132,.bgs.protocol.acc" + "ount.v1.ParentalControlInfo\022\017\n\007cais_id\030\022" + " \001(\t\"\270\001\n\030CreateGameAccountRequest\0223\n\007acc" + "ount\030\001 \001(\0132\".bgs.protocol.account.v1.Acc" + "ountId\022\016\n\006region\030\002 \001(\r\022\017\n\007program\030\003 \001(\007\022" + "\034\n\021realm_permissions\030\004 \001(\r:\0010\022\026\n\016account" + "_region\030\005 \001(\r\022\020\n\010platform\030\006 \001(\007\"]\n\031Creat" + "eGameAccountResponse\022@\n\014game_account\030\001 \001" + "(\0132*.bgs.protocol.account.v1.GameAccount" + "Handle\"\232\001\n\022CacheExpireRequest\0223\n\007account" + "\030\001 \003(\0132\".bgs.protocol.account.v1.Account" + "Id\022@\n\014game_account\030\002 \003(\0132*.bgs.protocol." + "account.v1.GameAccountHandle\022\r\n\005email\030\003 " + "\003(\t\"\350\001\n\027CredentialUpdateRequest\0223\n\007accou" + "nt\030\001 \002(\0132\".bgs.protocol.account.v1.Accou" + "ntId\022C\n\017old_credentials\030\002 \003(\0132*.bgs.prot" + "ocol.account.v1.AccountCredential\022C\n\017new" + "_credentials\030\003 \003(\0132*.bgs.protocol.accoun" + "t.v1.AccountCredential\022\016\n\006region\030\004 \001(\r\"\032" + "\n\030CredentialUpdateResponse\"}\n\030AccountFla" + "gUpdateRequest\0223\n\007account\030\001 \001(\0132\".bgs.pr" + "otocol.account.v1.AccountId\022\016\n\006region\030\002 " + "\001(\r\022\014\n\004flag\030\003 \001(\004\022\016\n\006active\030\004 \001(\010\"~\n\034Gam" + "eAccountFlagUpdateRequest\022@\n\014game_accoun" + "t\030\001 \001(\0132*.bgs.protocol.account.v1.GameAc" + "countHandle\022\014\n\004flag\030\002 \001(\004\022\016\n\006active\030\003 \001(" + "\010\"V\n\031SubscriptionUpdateRequest\0229\n\003ref\030\002 " + "\003(\0132,.bgs.protocol.account.v1.Subscriber" + "Reference\"W\n\032SubscriptionUpdateResponse\022" + "9\n\003ref\030\001 \003(\0132,.bgs.protocol.account.v1.S" + "ubscriberReference\"=\n\023IsIgrAddressReques" + "t\022\026\n\016client_address\030\001 \001(\t\022\016\n\006region\030\002 \001(" + "\r\"1\n\024AccountServiceRegion\022\n\n\002id\030\001 \002(\r\022\r\n" + "\005shard\030\002 \002(\t\"U\n\024AccountServiceConfig\022=\n\006" + "region\030\001 \003(\0132-.bgs.protocol.account.v1.A" + "ccountServiceRegion\"\334\001\n\026GetAccountStateR" + "equest\022)\n\tentity_id\030\001 \001(\0132\026.bgs.protocol" + ".EntityId\022\017\n\007program\030\002 \001(\r\022\016\n\006region\030\003 \001" + "(\r\022=\n\007options\030\n \001(\0132,.bgs.protocol.accou" + "nt.v1.AccountFieldOptions\0227\n\004tags\030\013 \001(\0132" + ").bgs.protocol.account.v1.AccountFieldTa" + "gs\"\210\001\n\027GetAccountStateResponse\0224\n\005state\030" "\001 \001(\0132%.bgs.protocol.account.v1.AccountS" - "tate\022\025\n\rsubscriber_id\030\002 \001(\004\022\?\n\014account_t" - "ags\030\003 \001(\0132).bgs.protocol.account.v1.Acco" - "untFieldTags\022\036\n\026subscription_completed\030\004" - " \001(\010\"\346\001\n\034GameAccountStateNotification\022E\n" - "\022game_account_state\030\001 \001(\0132).bgs.protocol" - ".account.v1.GameAccountState\022\025\n\rsubscrib" - "er_id\030\002 \001(\004\022H\n\021game_account_tags\030\003 \001(\0132-" - ".bgs.protocol.account.v1.GameAccountFiel" - "dTags\022\036\n\026subscription_completed\030\004 \001(\010\"\262\001" - "\n\027GameAccountNotification\022\?\n\rgame_accoun" - "ts\030\001 \003(\0132(.bgs.protocol.account.v1.GameA" - "ccountList\022\025\n\rsubscriber_id\030\002 \001(\004\022\?\n\014acc" - "ount_tags\030\003 \001(\0132).bgs.protocol.account.v" - "1.AccountFieldTags\"\250\001\n\036GameAccountSessio" - "nNotification\022@\n\014game_account\030\001 \001(\0132*.bg" - "s.protocol.account.v1.GameAccountHandle\022" - "D\n\014session_info\030\002 \001(\0132..bgs.protocol.acc" - "ount.v1.GameSessionUpdateInfo2\345\020\n\016Accoun" - "tService\022l\n\016GetGameAccount\022*.bgs.protoco" - "l.account.v1.GameAccountHandle\032(.bgs.pro" - "tocol.account.v1.GameAccountBlob\"\004\200\265\030\014\022k" - "\n\nGetAccount\022*.bgs.protocol.account.v1.G" - "etAccountRequest\032+.bgs.protocol.account." - "v1.GetAccountResponse\"\004\200\265\030\r\022x\n\021CreateGam" - "eAccount\0221.bgs.protocol.account.v1.Creat" - "eGameAccountRequest\032*.bgs.protocol.accou" - "nt.v1.GameAccountHandle\"\004\200\265\030\016\022X\n\014IsIgrAd" - "dress\022,.bgs.protocol.account.v1.IsIgrAdd" - "ressRequest\032\024.bgs.protocol.NoData\"\004\200\265\030\017\022" - "[\n\013CacheExpire\022+.bgs.protocol.account.v1" - ".CacheExpireRequest\032\031.bgs.protocol.NO_RE" - "SPONSE\"\004\200\265\030\024\022}\n\020CredentialUpdate\0220.bgs.p" - "rotocol.account.v1.CredentialUpdateReque" - "st\0321.bgs.protocol.account.v1.CredentialU" - "pdateResponse\"\004\200\265\030\025\022z\n\tSubscribe\0222.bgs.p" - "rotocol.account.v1.SubscriptionUpdateReq" - "uest\0323.bgs.protocol.account.v1.Subscript" - "ionUpdateResponse\"\004\200\265\030\031\022]\n\013Unsubscribe\0222" - ".bgs.protocol.account.v1.SubscriptionUpd" - "ateRequest\032\024.bgs.protocol.NoData\"\004\200\265\030\032\022z" - "\n\017GetAccountState\022/.bgs.protocol.account" - ".v1.GetAccountStateRequest\0320.bgs.protoco" - "l.account.v1.GetAccountStateResponse\"\004\200\265" - "\030\036\022\206\001\n\023GetGameAccountState\0223.bgs.protoco" - "l.account.v1.GetGameAccountStateRequest\032" - "4.bgs.protocol.account.v1.GetGameAccount" - "StateResponse\"\004\200\265\030\037\022n\n\013GetLicenses\022+.bgs" - ".protocol.account.v1.GetLicensesRequest\032" - ",.bgs.protocol.account.v1.GetLicensesRes" - "ponse\"\004\200\265\030 \022\225\001\n\030GetGameTimeRemainingInfo" - "\0228.bgs.protocol.account.v1.GetGameTimeRe" - "mainingInfoRequest\0329.bgs.protocol.accoun" - "t.v1.GetGameTimeRemainingInfoResponse\"\004\200" - "\265\030!\022\203\001\n\022GetGameSessionInfo\0222.bgs.protoco" - "l.account.v1.GetGameSessionInfoRequest\0323" - ".bgs.protocol.account.v1.GetGameSessionI" - "nfoResponse\"\004\200\265\030\"\022n\n\013GetCAISInfo\022+.bgs.p" - "rotocol.account.v1.GetCAISInfoRequest\032,." - "bgs.protocol.account.v1.GetCAISInfoRespo" - "nse\"\004\200\265\030#\022d\n\022ForwardCacheExpire\0222.bgs.pr" - "otocol.account.v1.ForwardCacheExpireRequ" - "est\032\024.bgs.protocol.NoData\"\004\200\265\030$\022\200\001\n\021GetA" - "uthorizedData\0221.bgs.protocol.account.v1." - "GetAuthorizedDataRequest\0322.bgs.protocol." - "account.v1.GetAuthorizedDataResponse\"\004\200\265" - "\030%\022g\n\021AccountFlagUpdate\0221.bgs.protocol.a" - "ccount.v1.AccountFlagUpdateRequest\032\031.bgs" - ".protocol.NO_RESPONSE\"\004\200\265\030&\022o\n\025GameAccou" - "ntFlagUpdate\0225.bgs.protocol.account.v1.G" - "ameAccountFlagUpdateRequest\032\031.bgs.protoc" - "ol.NO_RESPONSE\"\004\200\265\030\'\032\'\312>$bnet.protocol.a" - "ccount.AccountService2\377\003\n\017AccountListene" - "r\022k\n\025OnAccountStateUpdated\0221.bgs.protoco" - "l.account.v1.AccountStateNotification\032\031." - "bgs.protocol.NO_RESPONSE\"\004\200\265\030\001\022s\n\031OnGame" - "AccountStateUpdated\0225.bgs.protocol.accou" - "nt.v1.GameAccountStateNotification\032\031.bgs" - ".protocol.NO_RESPONSE\"\004\200\265\030\002\022m\n\025OnGameAcc" - "ountsUpdated\0220.bgs.protocol.account.v1.G" - "ameAccountNotification\032\031.bgs.protocol.NO" - "_RESPONSE\"\007\210\002\001\200\265\030\003\022s\n\024OnGameSessionUpdat" - "ed\0227.bgs.protocol.account.v1.GameAccount" - "SessionNotification\032\031.bgs.protocol.NO_RE" - "SPONSE\"\007\210\002\001\200\265\030\004\032&\312>#bnet.protocol.accoun" - "t.AccountNotifyB\005H\001\200\001\000", 7302); + "tate\0227\n\004tags\030\002 \001(\0132).bgs.protocol.accoun" + "t.v1.AccountFieldTags\"\375\001\n\032GetGameAccount" + "StateRequest\022.\n\naccount_id\030\001 \001(\0132\026.bgs.p" + "rotocol.EntityIdB\002\030\001\022/\n\017game_account_id\030" + "\002 \001(\0132\026.bgs.protocol.EntityId\022A\n\007options" + "\030\n \001(\01320.bgs.protocol.account.v1.GameAcc" + "ountFieldOptions\022;\n\004tags\030\013 \001(\0132-.bgs.pro" + "tocol.account.v1.GameAccountFieldTags\"\224\001" + "\n\033GetGameAccountStateResponse\0228\n\005state\030\001" + " \001(\0132).bgs.protocol.account.v1.GameAccou" + "ntState\022;\n\004tags\030\002 \001(\0132-.bgs.protocol.acc" + "ount.v1.GameAccountFieldTags\"\345\001\n\022GetLice" + "nsesRequest\022)\n\ttarget_id\030\001 \001(\0132\026.bgs.pro" + "tocol.EntityId\022\036\n\026fetch_account_licenses" + "\030\002 \001(\010\022#\n\033fetch_game_account_licenses\030\003 " + "\001(\010\022&\n\036fetch_dynamic_account_licenses\030\004 " + "\001(\010\022\017\n\007program\030\005 \001(\007\022&\n\027exclude_unknown_" + "program\030\006 \001(\010:\005false\"P\n\023GetLicensesRespo" + "nse\0229\n\010licenses\030\001 \003(\0132\'.bgs.protocol.acc" + "ount.v1.AccountLicense\"F\n\031GetGameSession" + "InfoRequest\022)\n\tentity_id\030\001 \001(\0132\026.bgs.pro" + "tocol.EntityId\"\\\n\032GetGameSessionInfoResp" + "onse\022>\n\014session_info\030\002 \001(\0132(.bgs.protoco" + "l.account.v1.GameSessionInfo\"~\n\037GetGameT" + "imeRemainingInfoRequest\022/\n\017game_account_" + "id\030\001 \001(\0132\026.bgs.protocol.EntityId\022*\n\nacco" + "unt_id\030\002 \001(\0132\026.bgs.protocol.EntityId\"t\n " + "GetGameTimeRemainingInfoResponse\022P\n\030game" + "_time_remaining_info\030\001 \001(\0132..bgs.protoco" + "l.account.v1.GameTimeRemainingInfo\"\?\n\022Ge" + "tCAISInfoRequest\022)\n\tentity_id\030\001 \001(\0132\026.bg" + "s.protocol.EntityId\"G\n\023GetCAISInfoRespon" + "se\0220\n\tcais_info\030\001 \001(\0132\035.bgs.protocol.acc" + "ount.v1.CAIS\"F\n\031ForwardCacheExpireReques" + "t\022)\n\tentity_id\030\001 \001(\0132\026.bgs.protocol.Enti" + "tyId\"n\n\030GetAuthorizedDataRequest\022)\n\tenti" + "ty_id\030\001 \001(\0132\026.bgs.protocol.EntityId\022\013\n\003t" + "ag\030\002 \003(\t\022\032\n\022privileged_network\030\003 \001(\010\"R\n\031" + "GetAuthorizedDataResponse\0225\n\004data\030\001 \003(\0132" + "\'.bgs.protocol.account.v1.AuthorizedData" + "\"\373\001\n$UpdateParentalControlsAndCAISReques" + "t\0223\n\007account\030\001 \001(\0132\".bgs.protocol.accoun" + "t.v1.AccountId\022K\n\025parental_control_info\030" + "\002 \001(\0132,.bgs.protocol.account.v1.Parental" + "ControlInfo\022\017\n\007cais_id\030\003 \001(\t\022\032\n\022session_" + "start_time\030\004 \001(\004\022\022\n\nstart_time\030\005 \001(\004\022\020\n\010" + "end_time\030\006 \001(\004\"X\n\030QueueDeductRecordReque" + "st\022<\n\rdeduct_record\030\001 \001(\0132%.bgs.protocol" + ".account.v1.DeductRecord\"p\n\025GetGameAccou" + "ntRequest\022@\n\014game_account\030\001 \001(\0132*.bgs.pr" + "otocol.account.v1.GameAccountHandle\022\025\n\006r" + "eload\030\002 \001(\010:\005false\"P\n\026GetGameAccountResp" + "onse\0226\n\004blob\030\001 \001(\0132(.bgs.protocol.accoun" + "t.v1.GameAccountBlob\"\320\001\n\030AccountStateNot" + "ification\022<\n\raccount_state\030\001 \001(\0132%.bgs.p" + "rotocol.account.v1.AccountState\022\025\n\rsubsc" + "riber_id\030\002 \001(\004\022\?\n\014account_tags\030\003 \001(\0132).b" + "gs.protocol.account.v1.AccountFieldTags\022" + "\036\n\026subscription_completed\030\004 \001(\010\"\346\001\n\034Game" + "AccountStateNotification\022E\n\022game_account" + "_state\030\001 \001(\0132).bgs.protocol.account.v1.G" + "ameAccountState\022\025\n\rsubscriber_id\030\002 \001(\004\022H" + "\n\021game_account_tags\030\003 \001(\0132-.bgs.protocol" + ".account.v1.GameAccountFieldTags\022\036\n\026subs" + "cription_completed\030\004 \001(\010\"\262\001\n\027GameAccount" + "Notification\022\?\n\rgame_accounts\030\001 \003(\0132(.bg" + "s.protocol.account.v1.GameAccountList\022\025\n" + "\rsubscriber_id\030\002 \001(\004\022\?\n\014account_tags\030\003 \001" + "(\0132).bgs.protocol.account.v1.AccountFiel" + "dTags\"\250\001\n\036GameAccountSessionNotification" + "\022@\n\014game_account\030\001 \001(\0132*.bgs.protocol.ac" + "count.v1.GameAccountHandle\022D\n\014session_in" + "fo\030\002 \001(\0132..bgs.protocol.account.v1.GameS" + "essionUpdateInfo2\312\024\n\016AccountService\022p\n\022G" + "etGameAccountBlob\022*.bgs.protocol.account" + ".v1.GameAccountHandle\032(.bgs.protocol.acc" + "ount.v1.GameAccountBlob\"\004\200\265\030\014\022k\n\nGetAcco" + "unt\022*.bgs.protocol.account.v1.GetAccount" + "Request\032+.bgs.protocol.account.v1.GetAcc" + "ountResponse\"\004\200\265\030\r\022x\n\021CreateGameAccount\022" + "1.bgs.protocol.account.v1.CreateGameAcco" + "untRequest\032*.bgs.protocol.account.v1.Gam" + "eAccountHandle\"\004\200\265\030\016\022X\n\014IsIgrAddress\022,.b" + "gs.protocol.account.v1.IsIgrAddressReque" + "st\032\024.bgs.protocol.NoData\"\004\200\265\030\017\022[\n\013CacheE" + "xpire\022+.bgs.protocol.account.v1.CacheExp" + "ireRequest\032\031.bgs.protocol.NO_RESPONSE\"\004\200" + "\265\030\024\022\200\001\n\020CredentialUpdate\0220.bgs.protocol." + "account.v1.CredentialUpdateRequest\0321.bgs" + ".protocol.account.v1.CredentialUpdateRes" + "ponse\"\007\210\002\001\200\265\030\025\022z\n\tSubscribe\0222.bgs.protoc" + "ol.account.v1.SubscriptionUpdateRequest\032" + "3.bgs.protocol.account.v1.SubscriptionUp" + "dateResponse\"\004\200\265\030\031\022]\n\013Unsubscribe\0222.bgs." + "protocol.account.v1.SubscriptionUpdateRe" + "quest\032\024.bgs.protocol.NoData\"\004\200\265\030\032\022z\n\017Get" + "AccountState\022/.bgs.protocol.account.v1.G" + "etAccountStateRequest\0320.bgs.protocol.acc" + "ount.v1.GetAccountStateResponse\"\004\200\265\030\036\022\206\001" + "\n\023GetGameAccountState\0223.bgs.protocol.acc" + "ount.v1.GetGameAccountStateRequest\0324.bgs" + ".protocol.account.v1.GetGameAccountState" + "Response\"\004\200\265\030\037\022n\n\013GetLicenses\022+.bgs.prot" + "ocol.account.v1.GetLicensesRequest\032,.bgs" + ".protocol.account.v1.GetLicensesResponse" + "\"\004\200\265\030 \022\225\001\n\030GetGameTimeRemainingInfo\0228.bg" + "s.protocol.account.v1.GetGameTimeRemaini" + "ngInfoRequest\0329.bgs.protocol.account.v1." + "GetGameTimeRemainingInfoResponse\"\004\200\265\030!\022\203" + "\001\n\022GetGameSessionInfo\0222.bgs.protocol.acc" + "ount.v1.GetGameSessionInfoRequest\0323.bgs." + "protocol.account.v1.GetGameSessionInfoRe" + "sponse\"\004\200\265\030\"\022n\n\013GetCAISInfo\022+.bgs.protoc" + "ol.account.v1.GetCAISInfoRequest\032,.bgs.p" + "rotocol.account.v1.GetCAISInfoResponse\"\004" + "\200\265\030#\022d\n\022ForwardCacheExpire\0222.bgs.protoco" + "l.account.v1.ForwardCacheExpireRequest\032\024" + ".bgs.protocol.NoData\"\004\200\265\030$\022\200\001\n\021GetAuthor" + "izedData\0221.bgs.protocol.account.v1.GetAu" + "thorizedDataRequest\0322.bgs.protocol.accou" + "nt.v1.GetAuthorizedDataResponse\"\004\200\265\030%\022g\n" + "\021AccountFlagUpdate\0221.bgs.protocol.accoun" + "t.v1.AccountFlagUpdateRequest\032\031.bgs.prot" + "ocol.NO_RESPONSE\"\004\200\265\030&\022o\n\025GameAccountFla" + "gUpdate\0225.bgs.protocol.account.v1.GameAc" + "countFlagUpdateRequest\032\031.bgs.protocol.NO" + "_RESPONSE\"\004\200\265\030\'\022z\n\035UpdateParentalControl" + "sAndCAIS\022=.bgs.protocol.account.v1.Updat" + "eParentalControlsAndCAISRequest\032\024.bgs.pr" + "otocol.NoData\"\004\200\265\030(\022\201\001\n\022CreateGameAccoun" + "t2\0221.bgs.protocol.account.v1.CreateGameA" + "ccountRequest\0322.bgs.protocol.account.v1." + "CreateGameAccountResponse\"\004\200\265\030)\022w\n\016GetGa" + "meAccount\022..bgs.protocol.account.v1.GetG" + "ameAccountRequest\032/.bgs.protocol.account" + ".v1.GetGameAccountResponse\"\004\200\265\030*\022b\n\021Queu" + "eDeductRecord\0221.bgs.protocol.account.v1." + "QueueDeductRecordRequest\032\024.bgs.protocol." + "NoData\"\004\200\265\030+\032\'\312>$bnet.protocol.account.A" + "ccountService2\377\003\n\017AccountListener\022k\n\025OnA" + "ccountStateUpdated\0221.bgs.protocol.accoun" + "t.v1.AccountStateNotification\032\031.bgs.prot" + "ocol.NO_RESPONSE\"\004\200\265\030\001\022s\n\031OnGameAccountS" + "tateUpdated\0225.bgs.protocol.account.v1.Ga" + "meAccountStateNotification\032\031.bgs.protoco" + "l.NO_RESPONSE\"\004\200\265\030\002\022m\n\025OnGameAccountsUpd" + "ated\0220.bgs.protocol.account.v1.GameAccou" + "ntNotification\032\031.bgs.protocol.NO_RESPONS" + "E\"\007\210\002\001\200\265\030\003\022s\n\024OnGameSessionUpdated\0227.bgs" + ".protocol.account.v1.GameAccountSessionN" + "otification\032\031.bgs.protocol.NO_RESPONSE\"\007" + "\210\002\001\200\265\030\004\032&\312>#bnet.protocol.account.Accoun" + "tNotifyB\005H\001\200\001\000", 8534); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "account_service.proto", &protobuf_RegisterTypes); GetAccountRequest::default_instance_ = new GetAccountRequest(); GetAccountResponse::default_instance_ = new GetAccountResponse(); CreateGameAccountRequest::default_instance_ = new CreateGameAccountRequest(); + CreateGameAccountResponse::default_instance_ = new CreateGameAccountResponse(); CacheExpireRequest::default_instance_ = new CacheExpireRequest(); CredentialUpdateRequest::default_instance_ = new CredentialUpdateRequest(); CredentialUpdateResponse::default_instance_ = new CredentialUpdateResponse(); @@ -1045,6 +1198,10 @@ void protobuf_AddDesc_account_5fservice_2eproto() { ForwardCacheExpireRequest::default_instance_ = new ForwardCacheExpireRequest(); GetAuthorizedDataRequest::default_instance_ = new GetAuthorizedDataRequest(); GetAuthorizedDataResponse::default_instance_ = new GetAuthorizedDataResponse(); + UpdateParentalControlsAndCAISRequest::default_instance_ = new UpdateParentalControlsAndCAISRequest(); + QueueDeductRecordRequest::default_instance_ = new QueueDeductRecordRequest(); + GetGameAccountRequest::default_instance_ = new GetGameAccountRequest(); + GetGameAccountResponse::default_instance_ = new GetGameAccountResponse(); AccountStateNotification::default_instance_ = new AccountStateNotification(); GameAccountStateNotification::default_instance_ = new GameAccountStateNotification(); GameAccountNotification::default_instance_ = new GameAccountNotification(); @@ -1052,6 +1209,7 @@ void protobuf_AddDesc_account_5fservice_2eproto() { GetAccountRequest::default_instance_->InitAsDefaultInstance(); GetAccountResponse::default_instance_->InitAsDefaultInstance(); CreateGameAccountRequest::default_instance_->InitAsDefaultInstance(); + CreateGameAccountResponse::default_instance_->InitAsDefaultInstance(); CacheExpireRequest::default_instance_->InitAsDefaultInstance(); CredentialUpdateRequest::default_instance_->InitAsDefaultInstance(); CredentialUpdateResponse::default_instance_->InitAsDefaultInstance(); @@ -1077,6 +1235,10 @@ void protobuf_AddDesc_account_5fservice_2eproto() { ForwardCacheExpireRequest::default_instance_->InitAsDefaultInstance(); GetAuthorizedDataRequest::default_instance_->InitAsDefaultInstance(); GetAuthorizedDataResponse::default_instance_->InitAsDefaultInstance(); + UpdateParentalControlsAndCAISRequest::default_instance_->InitAsDefaultInstance(); + QueueDeductRecordRequest::default_instance_->InitAsDefaultInstance(); + GetGameAccountRequest::default_instance_->InitAsDefaultInstance(); + GetGameAccountResponse::default_instance_->InitAsDefaultInstance(); AccountStateNotification::default_instance_->InitAsDefaultInstance(); GameAccountStateNotification::default_instance_->InitAsDefaultInstance(); GameAccountNotification::default_instance_->InitAsDefaultInstance(); @@ -1095,6 +1257,7 @@ struct StaticDescriptorInitializer_account_5fservice_2eproto { #ifndef _MSC_VER const int GetAccountRequest::kRefFieldNumber; +const int GetAccountRequest::kReloadFieldNumber; const int GetAccountRequest::kFetchAllFieldNumber; const int GetAccountRequest::kFetchBlobFieldNumber; const int GetAccountRequest::kFetchIdFieldNumber; @@ -1103,6 +1266,7 @@ const int GetAccountRequest::kFetchBattleTagFieldNumber; const int GetAccountRequest::kFetchFullNameFieldNumber; const int GetAccountRequest::kFetchLinksFieldNumber; const int GetAccountRequest::kFetchParentalControlsFieldNumber; +const int GetAccountRequest::kFetchCaisIdFieldNumber; #endif // !_MSC_VER GetAccountRequest::GetAccountRequest() @@ -1125,6 +1289,7 @@ GetAccountRequest::GetAccountRequest(const GetAccountRequest& from) void GetAccountRequest::SharedCtor() { _cached_size_ = 0; ref_ = NULL; + reload_ = false; fetch_all_ = false; fetch_blob_ = false; fetch_id_ = false; @@ -1133,6 +1298,7 @@ void GetAccountRequest::SharedCtor() { fetch_full_name_ = false; fetch_links_ = false; fetch_parental_controls_ = false; + fetch_cais_id_ = false; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -1180,12 +1346,12 @@ void GetAccountRequest::Clear() { } while (0) if (_has_bits_[0 / 32] & 255) { - ZR_(fetch_all_, fetch_links_); + ZR_(reload_, fetch_full_name_); if (has_ref()) { if (ref_ != NULL) ref_->::bgs::protocol::account::v1::AccountReference::Clear(); } } - fetch_parental_controls_ = false; + ZR_(fetch_links_, fetch_cais_id_); #undef OFFSET_OF_FIELD_ #undef ZR_ @@ -1212,6 +1378,21 @@ bool GetAccountRequest::MergePartialFromCodedStream( } else { goto handle_unusual; } + if (input->ExpectTag(16)) goto parse_reload; + break; + } + + // optional bool reload = 2 [default = false]; + case 2: { + if (tag == 16) { + parse_reload: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &reload_))); + set_has_reload(); + } else { + goto handle_unusual; + } if (input->ExpectTag(80)) goto parse_fetch_all; break; } @@ -1332,6 +1513,21 @@ bool GetAccountRequest::MergePartialFromCodedStream( } else { goto handle_unusual; } + if (input->ExpectTag(144)) goto parse_fetch_cais_id; + break; + } + + // optional bool fetch_cais_id = 18 [default = false]; + case 18: { + if (tag == 144) { + parse_fetch_cais_id: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &fetch_cais_id_))); + set_has_fetch_cais_id(); + } else { + goto handle_unusual; + } if (input->ExpectAtEnd()) goto success; break; } @@ -1367,6 +1563,11 @@ void GetAccountRequest::SerializeWithCachedSizes( 1, this->ref(), output); } + // optional bool reload = 2 [default = false]; + if (has_reload()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->reload(), output); + } + // optional bool fetch_all = 10 [default = false]; if (has_fetch_all()) { ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->fetch_all(), output); @@ -1407,6 +1608,11 @@ void GetAccountRequest::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->fetch_parental_controls(), output); } + // optional bool fetch_cais_id = 18 [default = false]; + if (has_fetch_cais_id()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->fetch_cais_id(), output); + } + if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); @@ -1424,6 +1630,11 @@ void GetAccountRequest::SerializeWithCachedSizes( 1, this->ref(), target); } + // optional bool reload = 2 [default = false]; + if (has_reload()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->reload(), target); + } + // optional bool fetch_all = 10 [default = false]; if (has_fetch_all()) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->fetch_all(), target); @@ -1464,6 +1675,11 @@ void GetAccountRequest::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->fetch_parental_controls(), target); } + // optional bool fetch_cais_id = 18 [default = false]; + if (has_fetch_cais_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->fetch_cais_id(), target); + } + if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); @@ -1483,6 +1699,11 @@ int GetAccountRequest::ByteSize() const { this->ref()); } + // optional bool reload = 2 [default = false]; + if (has_reload()) { + total_size += 1 + 1; + } + // optional bool fetch_all = 10 [default = false]; if (has_fetch_all()) { total_size += 1 + 1; @@ -1513,18 +1734,23 @@ int GetAccountRequest::ByteSize() const { total_size += 1 + 1; } + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { // optional bool fetch_links = 16 [default = false]; if (has_fetch_links()) { total_size += 2 + 1; } - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { // optional bool fetch_parental_controls = 17 [default = false]; if (has_fetch_parental_controls()) { total_size += 2 + 1; } + // optional bool fetch_cais_id = 18 [default = false]; + if (has_fetch_cais_id()) { + total_size += 2 + 1; + } + } if (!unknown_fields().empty()) { total_size += @@ -1555,6 +1781,9 @@ void GetAccountRequest::MergeFrom(const GetAccountRequest& from) { if (from.has_ref()) { mutable_ref()->::bgs::protocol::account::v1::AccountReference::MergeFrom(from.ref()); } + if (from.has_reload()) { + set_reload(from.reload()); + } if (from.has_fetch_all()) { set_fetch_all(from.fetch_all()); } @@ -1573,14 +1802,17 @@ void GetAccountRequest::MergeFrom(const GetAccountRequest& from) { if (from.has_fetch_full_name()) { set_fetch_full_name(from.fetch_full_name()); } + } + if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { if (from.has_fetch_links()) { set_fetch_links(from.fetch_links()); } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { if (from.has_fetch_parental_controls()) { set_fetch_parental_controls(from.fetch_parental_controls()); } + if (from.has_fetch_cais_id()) { + set_fetch_cais_id(from.fetch_cais_id()); + } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } @@ -1608,6 +1840,7 @@ bool GetAccountRequest::IsInitialized() const { void GetAccountRequest::Swap(GetAccountRequest* other) { if (other != this) { std::swap(ref_, other->ref_); + std::swap(reload_, other->reload_); std::swap(fetch_all_, other->fetch_all_); std::swap(fetch_blob_, other->fetch_blob_); std::swap(fetch_id_, other->fetch_id_); @@ -1616,6 +1849,7 @@ void GetAccountRequest::Swap(GetAccountRequest* other) { std::swap(fetch_full_name_, other->fetch_full_name_); std::swap(fetch_links_, other->fetch_links_); std::swap(fetch_parental_controls_, other->fetch_parental_controls_); + std::swap(fetch_cais_id_, other->fetch_cais_id_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); @@ -1641,6 +1875,7 @@ const int GetAccountResponse::kBattleTagFieldNumber; const int GetAccountResponse::kFullNameFieldNumber; const int GetAccountResponse::kLinksFieldNumber; const int GetAccountResponse::kParentalControlInfoFieldNumber; +const int GetAccountResponse::kCaisIdFieldNumber; #endif // !_MSC_VER GetAccountResponse::GetAccountResponse() @@ -1670,6 +1905,7 @@ void GetAccountResponse::SharedCtor() { battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); full_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); parental_control_info_ = NULL; + cais_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -1685,6 +1921,9 @@ void GetAccountResponse::SharedDtor() { if (full_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete full_name_; } + if (cais_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete cais_id_; + } if (this != default_instance_) { delete blob_; delete id_; @@ -1714,7 +1953,7 @@ GetAccountResponse* GetAccountResponse::New() const { } void GetAccountResponse::Clear() { - if (_has_bits_[0 / 32] & 91) { + if (_has_bits_[0 / 32] & 219) { if (has_blob()) { if (blob_ != NULL) blob_->::bgs::protocol::account::v1::AccountBlob::Clear(); } @@ -1734,6 +1973,11 @@ void GetAccountResponse::Clear() { if (has_parental_control_info()) { if (parental_control_info_ != NULL) parental_control_info_->::bgs::protocol::account::v1::ParentalControlInfo::Clear(); } + if (has_cais_id()) { + if (cais_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + cais_id_->clear(); + } + } } email_.Clear(); links_.Clear(); @@ -1852,6 +2096,23 @@ bool GetAccountResponse::MergePartialFromCodedStream( } else { goto handle_unusual; } + if (input->ExpectTag(146)) goto parse_cais_id; + break; + } + + // optional string cais_id = 18; + case 18: { + if (tag == 146) { + parse_cais_id: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_cais_id())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->cais_id().data(), this->cais_id().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "cais_id"); + } else { + goto handle_unusual; + } if (input->ExpectAtEnd()) goto success; break; } @@ -1935,6 +2196,16 @@ void GetAccountResponse::SerializeWithCachedSizes( 17, this->parental_control_info(), output); } + // optional string cais_id = 18; + if (has_cais_id()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->cais_id().data(), this->cais_id().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "cais_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 18, this->cais_id(), output); + } + if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); @@ -2005,6 +2276,17 @@ void GetAccountResponse::SerializeWithCachedSizes( 17, this->parental_control_info(), target); } + // optional string cais_id = 18; + if (has_cais_id()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->cais_id().data(), this->cais_id().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "cais_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 18, this->cais_id(), target); + } + if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); @@ -2052,6 +2334,13 @@ int GetAccountResponse::ByteSize() const { this->parental_control_info()); } + // optional string cais_id = 18; + if (has_cais_id()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->cais_id()); + } + } // repeated string email = 13; total_size += 1 * this->email_size(); @@ -2111,6 +2400,9 @@ void GetAccountResponse::MergeFrom(const GetAccountResponse& from) { if (from.has_parental_control_info()) { mutable_parental_control_info()->::bgs::protocol::account::v1::ParentalControlInfo::MergeFrom(from.parental_control_info()); } + if (from.has_cais_id()) { + set_cais_id(from.cais_id()); + } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } @@ -2148,6 +2440,7 @@ void GetAccountResponse::Swap(GetAccountResponse* other) { std::swap(full_name_, other->full_name_); links_.Swap(&other->links_); std::swap(parental_control_info_, other->parental_control_info_); + std::swap(cais_id_, other->cais_id_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); @@ -2170,6 +2463,8 @@ const int CreateGameAccountRequest::kAccountFieldNumber; const int CreateGameAccountRequest::kRegionFieldNumber; const int CreateGameAccountRequest::kProgramFieldNumber; const int CreateGameAccountRequest::kRealmPermissionsFieldNumber; +const int CreateGameAccountRequest::kAccountRegionFieldNumber; +const int CreateGameAccountRequest::kPlatformFieldNumber; #endif // !_MSC_VER CreateGameAccountRequest::CreateGameAccountRequest() @@ -2194,7 +2489,9 @@ void CreateGameAccountRequest::SharedCtor() { account_ = NULL; region_ = 0u; program_ = 0u; - realm_permissions_ = 1u; + realm_permissions_ = 0u; + account_region_ = 0u; + platform_ = 0u; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -2241,12 +2538,11 @@ void CreateGameAccountRequest::Clear() { ::memset(&first, 0, n); \ } while (0) - if (_has_bits_[0 / 32] & 15) { - ZR_(region_, program_); + if (_has_bits_[0 / 32] & 63) { + ZR_(region_, platform_); if (has_account()) { if (account_ != NULL) account_->::bgs::protocol::account::v1::AccountId::Clear(); } - realm_permissions_ = 1u; } #undef OFFSET_OF_FIELD_ @@ -2308,7 +2604,7 @@ bool CreateGameAccountRequest::MergePartialFromCodedStream( break; } - // optional uint32 realm_permissions = 4 [default = 1]; + // optional uint32 realm_permissions = 4 [default = 0]; case 4: { if (tag == 32) { parse_realm_permissions: @@ -2319,6 +2615,36 @@ bool CreateGameAccountRequest::MergePartialFromCodedStream( } else { goto handle_unusual; } + if (input->ExpectTag(40)) goto parse_account_region; + break; + } + + // optional uint32 account_region = 5; + case 5: { + if (tag == 40) { + parse_account_region: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &account_region_))); + set_has_account_region(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(53)) goto parse_platform; + break; + } + + // optional fixed32 platform = 6; + case 6: { + if (tag == 53) { + parse_platform: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( + input, &platform_))); + set_has_platform(); + } else { + goto handle_unusual; + } if (input->ExpectAtEnd()) goto success; break; } @@ -2364,11 +2690,21 @@ void CreateGameAccountRequest::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteFixed32(3, this->program(), output); } - // optional uint32 realm_permissions = 4 [default = 1]; + // optional uint32 realm_permissions = 4 [default = 0]; if (has_realm_permissions()) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->realm_permissions(), output); } + // optional uint32 account_region = 5; + if (has_account_region()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->account_region(), output); + } + + // optional fixed32 platform = 6; + if (has_platform()) { + ::google::protobuf::internal::WireFormatLite::WriteFixed32(6, this->platform(), output); + } + if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); @@ -2396,11 +2732,21 @@ void CreateGameAccountRequest::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(3, this->program(), target); } - // optional uint32 realm_permissions = 4 [default = 1]; + // optional uint32 realm_permissions = 4 [default = 0]; if (has_realm_permissions()) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->realm_permissions(), target); } + // optional uint32 account_region = 5; + if (has_account_region()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->account_region(), target); + } + + // optional fixed32 platform = 6; + if (has_platform()) { + target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(6, this->platform(), target); + } + if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); @@ -2432,13 +2778,25 @@ int CreateGameAccountRequest::ByteSize() const { total_size += 1 + 4; } - // optional uint32 realm_permissions = 4 [default = 1]; + // optional uint32 realm_permissions = 4 [default = 0]; if (has_realm_permissions()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt32Size( this->realm_permissions()); } + // optional uint32 account_region = 5; + if (has_account_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->account_region()); + } + + // optional fixed32 platform = 6; + if (has_platform()) { + total_size += 1 + 4; + } + } if (!unknown_fields().empty()) { total_size += @@ -2478,6 +2836,12 @@ void CreateGameAccountRequest::MergeFrom(const CreateGameAccountRequest& from) { if (from.has_realm_permissions()) { set_realm_permissions(from.realm_permissions()); } + if (from.has_account_region()) { + set_account_region(from.account_region()); + } + if (from.has_platform()) { + set_platform(from.platform()); + } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } @@ -2508,6 +2872,8 @@ void CreateGameAccountRequest::Swap(CreateGameAccountRequest* other) { std::swap(region_, other->region_); std::swap(program_, other->program_); std::swap(realm_permissions_, other->realm_permissions_); + std::swap(account_region_, other->account_region_); + std::swap(platform_, other->platform_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); @@ -2526,6 +2892,236 @@ void CreateGameAccountRequest::Swap(CreateGameAccountRequest* other) { // =================================================================== #ifndef _MSC_VER +const int CreateGameAccountResponse::kGameAccountFieldNumber; +#endif // !_MSC_VER + +CreateGameAccountResponse::CreateGameAccountResponse() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.CreateGameAccountResponse) +} + +void CreateGameAccountResponse::InitAsDefaultInstance() { + game_account_ = const_cast< ::bgs::protocol::account::v1::GameAccountHandle*>(&::bgs::protocol::account::v1::GameAccountHandle::default_instance()); +} + +CreateGameAccountResponse::CreateGameAccountResponse(const CreateGameAccountResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.account.v1.CreateGameAccountResponse) +} + +void CreateGameAccountResponse::SharedCtor() { + _cached_size_ = 0; + game_account_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CreateGameAccountResponse::~CreateGameAccountResponse() { + // @@protoc_insertion_point(destructor:bgs.protocol.account.v1.CreateGameAccountResponse) + SharedDtor(); +} + +void CreateGameAccountResponse::SharedDtor() { + if (this != default_instance_) { + delete game_account_; + } +} + +void CreateGameAccountResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CreateGameAccountResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CreateGameAccountResponse_descriptor_; +} + +const CreateGameAccountResponse& CreateGameAccountResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_account_5fservice_2eproto(); + return *default_instance_; +} + +CreateGameAccountResponse* CreateGameAccountResponse::default_instance_ = NULL; + +CreateGameAccountResponse* CreateGameAccountResponse::New() const { + return new CreateGameAccountResponse; +} + +void CreateGameAccountResponse::Clear() { + if (has_game_account()) { + if (game_account_ != NULL) game_account_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CreateGameAccountResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.account.v1.CreateGameAccountResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_game_account())); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.account.v1.CreateGameAccountResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.CreateGameAccountResponse) + return false; +#undef DO_ +} + +void CreateGameAccountResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.CreateGameAccountResponse) + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + if (has_game_account()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->game_account(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.CreateGameAccountResponse) +} + +::google::protobuf::uint8* CreateGameAccountResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.CreateGameAccountResponse) + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + if (has_game_account()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->game_account(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.account.v1.CreateGameAccountResponse) + return target; +} + +int CreateGameAccountResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + if (has_game_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->game_account()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CreateGameAccountResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CreateGameAccountResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available<const CreateGameAccountResponse*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CreateGameAccountResponse::MergeFrom(const CreateGameAccountResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_game_account()) { + mutable_game_account()->::bgs::protocol::account::v1::GameAccountHandle::MergeFrom(from.game_account()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CreateGameAccountResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateGameAccountResponse::CopyFrom(const CreateGameAccountResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateGameAccountResponse::IsInitialized() const { + + if (has_game_account()) { + if (!this->game_account().IsInitialized()) return false; + } + return true; +} + +void CreateGameAccountResponse::Swap(CreateGameAccountResponse* other) { + if (other != this) { + std::swap(game_account_, other->game_account_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CreateGameAccountResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CreateGameAccountResponse_descriptor_; + metadata.reflection = CreateGameAccountResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER const int CacheExpireRequest::kAccountFieldNumber; const int CacheExpireRequest::kGameAccountFieldNumber; const int CacheExpireRequest::kEmailFieldNumber; @@ -7682,6 +8278,9 @@ void GetGameSessionInfoResponse::CopyFrom(const GetGameSessionInfoResponse& from bool GetGameSessionInfoResponse::IsInitialized() const { + if (has_session_info()) { + if (!this->session_info().IsInitialized()) return false; + } return true; } @@ -9438,6 +10037,1200 @@ void GetAuthorizedDataResponse::Swap(GetAuthorizedDataResponse* other) { // =================================================================== #ifndef _MSC_VER +const int UpdateParentalControlsAndCAISRequest::kAccountFieldNumber; +const int UpdateParentalControlsAndCAISRequest::kParentalControlInfoFieldNumber; +const int UpdateParentalControlsAndCAISRequest::kCaisIdFieldNumber; +const int UpdateParentalControlsAndCAISRequest::kSessionStartTimeFieldNumber; +const int UpdateParentalControlsAndCAISRequest::kStartTimeFieldNumber; +const int UpdateParentalControlsAndCAISRequest::kEndTimeFieldNumber; +#endif // !_MSC_VER + +UpdateParentalControlsAndCAISRequest::UpdateParentalControlsAndCAISRequest() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest) +} + +void UpdateParentalControlsAndCAISRequest::InitAsDefaultInstance() { + account_ = const_cast< ::bgs::protocol::account::v1::AccountId*>(&::bgs::protocol::account::v1::AccountId::default_instance()); + parental_control_info_ = const_cast< ::bgs::protocol::account::v1::ParentalControlInfo*>(&::bgs::protocol::account::v1::ParentalControlInfo::default_instance()); +} + +UpdateParentalControlsAndCAISRequest::UpdateParentalControlsAndCAISRequest(const UpdateParentalControlsAndCAISRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest) +} + +void UpdateParentalControlsAndCAISRequest::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + account_ = NULL; + parental_control_info_ = NULL; + cais_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + session_start_time_ = GOOGLE_ULONGLONG(0); + start_time_ = GOOGLE_ULONGLONG(0); + end_time_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +UpdateParentalControlsAndCAISRequest::~UpdateParentalControlsAndCAISRequest() { + // @@protoc_insertion_point(destructor:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest) + SharedDtor(); +} + +void UpdateParentalControlsAndCAISRequest::SharedDtor() { + if (cais_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete cais_id_; + } + if (this != default_instance_) { + delete account_; + delete parental_control_info_; + } +} + +void UpdateParentalControlsAndCAISRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* UpdateParentalControlsAndCAISRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return UpdateParentalControlsAndCAISRequest_descriptor_; +} + +const UpdateParentalControlsAndCAISRequest& UpdateParentalControlsAndCAISRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_account_5fservice_2eproto(); + return *default_instance_; +} + +UpdateParentalControlsAndCAISRequest* UpdateParentalControlsAndCAISRequest::default_instance_ = NULL; + +UpdateParentalControlsAndCAISRequest* UpdateParentalControlsAndCAISRequest::New() const { + return new UpdateParentalControlsAndCAISRequest; +} + +void UpdateParentalControlsAndCAISRequest::Clear() { +#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ + &reinterpret_cast<UpdateParentalControlsAndCAISRequest*>(16)->f) - \ + reinterpret_cast<char*>(16)) + +#define ZR_(first, last) do { \ + size_t f = OFFSET_OF_FIELD_(first); \ + size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ + ::memset(&first, 0, n); \ + } while (0) + + if (_has_bits_[0 / 32] & 63) { + ZR_(session_start_time_, end_time_); + if (has_account()) { + if (account_ != NULL) account_->::bgs::protocol::account::v1::AccountId::Clear(); + } + if (has_parental_control_info()) { + if (parental_control_info_ != NULL) parental_control_info_->::bgs::protocol::account::v1::ParentalControlInfo::Clear(); + } + if (has_cais_id()) { + if (cais_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + cais_id_->clear(); + } + } + } + +#undef OFFSET_OF_FIELD_ +#undef ZR_ + + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool UpdateParentalControlsAndCAISRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .bgs.protocol.account.v1.AccountId account = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_account())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(18)) goto parse_parental_control_info; + break; + } + + // optional .bgs.protocol.account.v1.ParentalControlInfo parental_control_info = 2; + case 2: { + if (tag == 18) { + parse_parental_control_info: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_parental_control_info())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(26)) goto parse_cais_id; + break; + } + + // optional string cais_id = 3; + case 3: { + if (tag == 26) { + parse_cais_id: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_cais_id())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->cais_id().data(), this->cais_id().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "cais_id"); + } else { + goto handle_unusual; + } + if (input->ExpectTag(32)) goto parse_session_start_time; + break; + } + + // optional uint64 session_start_time = 4; + case 4: { + if (tag == 32) { + parse_session_start_time: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &session_start_time_))); + set_has_session_start_time(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(40)) goto parse_start_time; + break; + } + + // optional uint64 start_time = 5; + case 5: { + if (tag == 40) { + parse_start_time: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &start_time_))); + set_has_start_time(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(48)) goto parse_end_time; + break; + } + + // optional uint64 end_time = 6; + case 6: { + if (tag == 48) { + parse_end_time: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &end_time_))); + set_has_end_time(); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest) + return false; +#undef DO_ +} + +void UpdateParentalControlsAndCAISRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest) + // optional .bgs.protocol.account.v1.AccountId account = 1; + if (has_account()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->account(), output); + } + + // optional .bgs.protocol.account.v1.ParentalControlInfo parental_control_info = 2; + if (has_parental_control_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->parental_control_info(), output); + } + + // optional string cais_id = 3; + if (has_cais_id()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->cais_id().data(), this->cais_id().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "cais_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->cais_id(), output); + } + + // optional uint64 session_start_time = 4; + if (has_session_start_time()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->session_start_time(), output); + } + + // optional uint64 start_time = 5; + if (has_start_time()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->start_time(), output); + } + + // optional uint64 end_time = 6; + if (has_end_time()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->end_time(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest) +} + +::google::protobuf::uint8* UpdateParentalControlsAndCAISRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest) + // optional .bgs.protocol.account.v1.AccountId account = 1; + if (has_account()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->account(), target); + } + + // optional .bgs.protocol.account.v1.ParentalControlInfo parental_control_info = 2; + if (has_parental_control_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->parental_control_info(), target); + } + + // optional string cais_id = 3; + if (has_cais_id()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->cais_id().data(), this->cais_id().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "cais_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->cais_id(), target); + } + + // optional uint64 session_start_time = 4; + if (has_session_start_time()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->session_start_time(), target); + } + + // optional uint64 start_time = 5; + if (has_start_time()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->start_time(), target); + } + + // optional uint64 end_time = 6; + if (has_end_time()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->end_time(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest) + return target; +} + +int UpdateParentalControlsAndCAISRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .bgs.protocol.account.v1.AccountId account = 1; + if (has_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->account()); + } + + // optional .bgs.protocol.account.v1.ParentalControlInfo parental_control_info = 2; + if (has_parental_control_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->parental_control_info()); + } + + // optional string cais_id = 3; + if (has_cais_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->cais_id()); + } + + // optional uint64 session_start_time = 4; + if (has_session_start_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->session_start_time()); + } + + // optional uint64 start_time = 5; + if (has_start_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->start_time()); + } + + // optional uint64 end_time = 6; + if (has_end_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->end_time()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void UpdateParentalControlsAndCAISRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const UpdateParentalControlsAndCAISRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available<const UpdateParentalControlsAndCAISRequest*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void UpdateParentalControlsAndCAISRequest::MergeFrom(const UpdateParentalControlsAndCAISRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_account()) { + mutable_account()->::bgs::protocol::account::v1::AccountId::MergeFrom(from.account()); + } + if (from.has_parental_control_info()) { + mutable_parental_control_info()->::bgs::protocol::account::v1::ParentalControlInfo::MergeFrom(from.parental_control_info()); + } + if (from.has_cais_id()) { + set_cais_id(from.cais_id()); + } + if (from.has_session_start_time()) { + set_session_start_time(from.session_start_time()); + } + if (from.has_start_time()) { + set_start_time(from.start_time()); + } + if (from.has_end_time()) { + set_end_time(from.end_time()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void UpdateParentalControlsAndCAISRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UpdateParentalControlsAndCAISRequest::CopyFrom(const UpdateParentalControlsAndCAISRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UpdateParentalControlsAndCAISRequest::IsInitialized() const { + + if (has_account()) { + if (!this->account().IsInitialized()) return false; + } + return true; +} + +void UpdateParentalControlsAndCAISRequest::Swap(UpdateParentalControlsAndCAISRequest* other) { + if (other != this) { + std::swap(account_, other->account_); + std::swap(parental_control_info_, other->parental_control_info_); + std::swap(cais_id_, other->cais_id_); + std::swap(session_start_time_, other->session_start_time_); + std::swap(start_time_, other->start_time_); + std::swap(end_time_, other->end_time_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata UpdateParentalControlsAndCAISRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = UpdateParentalControlsAndCAISRequest_descriptor_; + metadata.reflection = UpdateParentalControlsAndCAISRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int QueueDeductRecordRequest::kDeductRecordFieldNumber; +#endif // !_MSC_VER + +QueueDeductRecordRequest::QueueDeductRecordRequest() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.QueueDeductRecordRequest) +} + +void QueueDeductRecordRequest::InitAsDefaultInstance() { + deduct_record_ = const_cast< ::bgs::protocol::account::v1::DeductRecord*>(&::bgs::protocol::account::v1::DeductRecord::default_instance()); +} + +QueueDeductRecordRequest::QueueDeductRecordRequest(const QueueDeductRecordRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.account.v1.QueueDeductRecordRequest) +} + +void QueueDeductRecordRequest::SharedCtor() { + _cached_size_ = 0; + deduct_record_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +QueueDeductRecordRequest::~QueueDeductRecordRequest() { + // @@protoc_insertion_point(destructor:bgs.protocol.account.v1.QueueDeductRecordRequest) + SharedDtor(); +} + +void QueueDeductRecordRequest::SharedDtor() { + if (this != default_instance_) { + delete deduct_record_; + } +} + +void QueueDeductRecordRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* QueueDeductRecordRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return QueueDeductRecordRequest_descriptor_; +} + +const QueueDeductRecordRequest& QueueDeductRecordRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_account_5fservice_2eproto(); + return *default_instance_; +} + +QueueDeductRecordRequest* QueueDeductRecordRequest::default_instance_ = NULL; + +QueueDeductRecordRequest* QueueDeductRecordRequest::New() const { + return new QueueDeductRecordRequest; +} + +void QueueDeductRecordRequest::Clear() { + if (has_deduct_record()) { + if (deduct_record_ != NULL) deduct_record_->::bgs::protocol::account::v1::DeductRecord::Clear(); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool QueueDeductRecordRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.account.v1.QueueDeductRecordRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .bgs.protocol.account.v1.DeductRecord deduct_record = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_deduct_record())); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.account.v1.QueueDeductRecordRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.QueueDeductRecordRequest) + return false; +#undef DO_ +} + +void QueueDeductRecordRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.QueueDeductRecordRequest) + // optional .bgs.protocol.account.v1.DeductRecord deduct_record = 1; + if (has_deduct_record()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->deduct_record(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.QueueDeductRecordRequest) +} + +::google::protobuf::uint8* QueueDeductRecordRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.QueueDeductRecordRequest) + // optional .bgs.protocol.account.v1.DeductRecord deduct_record = 1; + if (has_deduct_record()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->deduct_record(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.account.v1.QueueDeductRecordRequest) + return target; +} + +int QueueDeductRecordRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .bgs.protocol.account.v1.DeductRecord deduct_record = 1; + if (has_deduct_record()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->deduct_record()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void QueueDeductRecordRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const QueueDeductRecordRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available<const QueueDeductRecordRequest*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void QueueDeductRecordRequest::MergeFrom(const QueueDeductRecordRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_deduct_record()) { + mutable_deduct_record()->::bgs::protocol::account::v1::DeductRecord::MergeFrom(from.deduct_record()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void QueueDeductRecordRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void QueueDeductRecordRequest::CopyFrom(const QueueDeductRecordRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool QueueDeductRecordRequest::IsInitialized() const { + + if (has_deduct_record()) { + if (!this->deduct_record().IsInitialized()) return false; + } + return true; +} + +void QueueDeductRecordRequest::Swap(QueueDeductRecordRequest* other) { + if (other != this) { + std::swap(deduct_record_, other->deduct_record_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata QueueDeductRecordRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = QueueDeductRecordRequest_descriptor_; + metadata.reflection = QueueDeductRecordRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetGameAccountRequest::kGameAccountFieldNumber; +const int GetGameAccountRequest::kReloadFieldNumber; +#endif // !_MSC_VER + +GetGameAccountRequest::GetGameAccountRequest() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.GetGameAccountRequest) +} + +void GetGameAccountRequest::InitAsDefaultInstance() { + game_account_ = const_cast< ::bgs::protocol::account::v1::GameAccountHandle*>(&::bgs::protocol::account::v1::GameAccountHandle::default_instance()); +} + +GetGameAccountRequest::GetGameAccountRequest(const GetGameAccountRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.account.v1.GetGameAccountRequest) +} + +void GetGameAccountRequest::SharedCtor() { + _cached_size_ = 0; + game_account_ = NULL; + reload_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetGameAccountRequest::~GetGameAccountRequest() { + // @@protoc_insertion_point(destructor:bgs.protocol.account.v1.GetGameAccountRequest) + SharedDtor(); +} + +void GetGameAccountRequest::SharedDtor() { + if (this != default_instance_) { + delete game_account_; + } +} + +void GetGameAccountRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetGameAccountRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetGameAccountRequest_descriptor_; +} + +const GetGameAccountRequest& GetGameAccountRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_account_5fservice_2eproto(); + return *default_instance_; +} + +GetGameAccountRequest* GetGameAccountRequest::default_instance_ = NULL; + +GetGameAccountRequest* GetGameAccountRequest::New() const { + return new GetGameAccountRequest; +} + +void GetGameAccountRequest::Clear() { + if (_has_bits_[0 / 32] & 3) { + if (has_game_account()) { + if (game_account_ != NULL) game_account_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + } + reload_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetGameAccountRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.account.v1.GetGameAccountRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_game_account())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(16)) goto parse_reload; + break; + } + + // optional bool reload = 2 [default = false]; + case 2: { + if (tag == 16) { + parse_reload: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &reload_))); + set_has_reload(); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.account.v1.GetGameAccountRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GetGameAccountRequest) + return false; +#undef DO_ +} + +void GetGameAccountRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GetGameAccountRequest) + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + if (has_game_account()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->game_account(), output); + } + + // optional bool reload = 2 [default = false]; + if (has_reload()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->reload(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GetGameAccountRequest) +} + +::google::protobuf::uint8* GetGameAccountRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GetGameAccountRequest) + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + if (has_game_account()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->game_account(), target); + } + + // optional bool reload = 2 [default = false]; + if (has_reload()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->reload(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.account.v1.GetGameAccountRequest) + return target; +} + +int GetGameAccountRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + if (has_game_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->game_account()); + } + + // optional bool reload = 2 [default = false]; + if (has_reload()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetGameAccountRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetGameAccountRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available<const GetGameAccountRequest*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetGameAccountRequest::MergeFrom(const GetGameAccountRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_game_account()) { + mutable_game_account()->::bgs::protocol::account::v1::GameAccountHandle::MergeFrom(from.game_account()); + } + if (from.has_reload()) { + set_reload(from.reload()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetGameAccountRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetGameAccountRequest::CopyFrom(const GetGameAccountRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetGameAccountRequest::IsInitialized() const { + + if (has_game_account()) { + if (!this->game_account().IsInitialized()) return false; + } + return true; +} + +void GetGameAccountRequest::Swap(GetGameAccountRequest* other) { + if (other != this) { + std::swap(game_account_, other->game_account_); + std::swap(reload_, other->reload_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetGameAccountRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetGameAccountRequest_descriptor_; + metadata.reflection = GetGameAccountRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetGameAccountResponse::kBlobFieldNumber; +#endif // !_MSC_VER + +GetGameAccountResponse::GetGameAccountResponse() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.GetGameAccountResponse) +} + +void GetGameAccountResponse::InitAsDefaultInstance() { + blob_ = const_cast< ::bgs::protocol::account::v1::GameAccountBlob*>(&::bgs::protocol::account::v1::GameAccountBlob::default_instance()); +} + +GetGameAccountResponse::GetGameAccountResponse(const GetGameAccountResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.account.v1.GetGameAccountResponse) +} + +void GetGameAccountResponse::SharedCtor() { + _cached_size_ = 0; + blob_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetGameAccountResponse::~GetGameAccountResponse() { + // @@protoc_insertion_point(destructor:bgs.protocol.account.v1.GetGameAccountResponse) + SharedDtor(); +} + +void GetGameAccountResponse::SharedDtor() { + if (this != default_instance_) { + delete blob_; + } +} + +void GetGameAccountResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetGameAccountResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetGameAccountResponse_descriptor_; +} + +const GetGameAccountResponse& GetGameAccountResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_account_5fservice_2eproto(); + return *default_instance_; +} + +GetGameAccountResponse* GetGameAccountResponse::default_instance_ = NULL; + +GetGameAccountResponse* GetGameAccountResponse::New() const { + return new GetGameAccountResponse; +} + +void GetGameAccountResponse::Clear() { + if (has_blob()) { + if (blob_ != NULL) blob_->::bgs::protocol::account::v1::GameAccountBlob::Clear(); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetGameAccountResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.account.v1.GetGameAccountResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .bgs.protocol.account.v1.GameAccountBlob blob = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_blob())); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.account.v1.GetGameAccountResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.GetGameAccountResponse) + return false; +#undef DO_ +} + +void GetGameAccountResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.GetGameAccountResponse) + // optional .bgs.protocol.account.v1.GameAccountBlob blob = 1; + if (has_blob()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->blob(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.GetGameAccountResponse) +} + +::google::protobuf::uint8* GetGameAccountResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.GetGameAccountResponse) + // optional .bgs.protocol.account.v1.GameAccountBlob blob = 1; + if (has_blob()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->blob(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.account.v1.GetGameAccountResponse) + return target; +} + +int GetGameAccountResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .bgs.protocol.account.v1.GameAccountBlob blob = 1; + if (has_blob()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->blob()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetGameAccountResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetGameAccountResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available<const GetGameAccountResponse*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetGameAccountResponse::MergeFrom(const GetGameAccountResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_blob()) { + mutable_blob()->::bgs::protocol::account::v1::GameAccountBlob::MergeFrom(from.blob()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetGameAccountResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetGameAccountResponse::CopyFrom(const GetGameAccountResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetGameAccountResponse::IsInitialized() const { + + if (has_blob()) { + if (!this->blob().IsInitialized()) return false; + } + return true; +} + +void GetGameAccountResponse::Swap(GetGameAccountResponse* other) { + if (other != this) { + std::swap(blob_, other->blob_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetGameAccountResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetGameAccountResponse_descriptor_; + metadata.reflection = GetGameAccountResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER const int AccountStateNotification::kAccountStateFieldNumber; const int AccountStateNotification::kSubscriberIdFieldNumber; const int AccountStateNotification::kAccountTagsFieldNumber; @@ -10737,8 +12530,8 @@ google::protobuf::ServiceDescriptor const* AccountService::descriptor() { return AccountService_descriptor_; } -void AccountService::GetGameAccount(::bgs::protocol::account::v1::GameAccountHandle const* request, std::function<void(::bgs::protocol::account::v1::GameAccountBlob const*)> responseCallback) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method AccountService.GetGameAccount(bgs.protocol.account.v1.GameAccountHandle{ %s })", +void AccountService::GetGameAccountBlob(::bgs::protocol::account::v1::GameAccountHandle const* request, std::function<void(::bgs::protocol::account::v1::GameAccountBlob const*)> responseCallback) { + TC_LOG_DEBUG("service.protobuf", "%s Server called client method AccountService.GetGameAccountBlob(bgs.protocol.account.v1.GameAccountHandle{ %s })", GetCallerInfo().c_str(), request->ShortDebugString().c_str()); std::function<void(MessageBuffer)> callback = [responseCallback](MessageBuffer buffer) -> void { ::bgs::protocol::account::v1::GameAccountBlob response; @@ -10920,19 +12713,63 @@ void AccountService::GameAccountFlagUpdate(::bgs::protocol::account::v1::GameAcc SendRequest(service_hash_, 39, request); } +void AccountService::UpdateParentalControlsAndCAIS(::bgs::protocol::account::v1::UpdateParentalControlsAndCAISRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback) { + TC_LOG_DEBUG("service.protobuf", "%s Server called client method AccountService.UpdateParentalControlsAndCAIS(bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest{ %s })", + GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + std::function<void(MessageBuffer)> callback = [responseCallback](MessageBuffer buffer) -> void { + ::bgs::protocol::NoData response; + if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) + responseCallback(&response); + }; + SendRequest(service_hash_, 40, request, std::move(callback)); +} + +void AccountService::CreateGameAccount2(::bgs::protocol::account::v1::CreateGameAccountRequest const* request, std::function<void(::bgs::protocol::account::v1::CreateGameAccountResponse const*)> responseCallback) { + TC_LOG_DEBUG("service.protobuf", "%s Server called client method AccountService.CreateGameAccount2(bgs.protocol.account.v1.CreateGameAccountRequest{ %s })", + GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + std::function<void(MessageBuffer)> callback = [responseCallback](MessageBuffer buffer) -> void { + ::bgs::protocol::account::v1::CreateGameAccountResponse response; + if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) + responseCallback(&response); + }; + SendRequest(service_hash_, 41, request, std::move(callback)); +} + +void AccountService::GetGameAccount(::bgs::protocol::account::v1::GetGameAccountRequest const* request, std::function<void(::bgs::protocol::account::v1::GetGameAccountResponse const*)> responseCallback) { + TC_LOG_DEBUG("service.protobuf", "%s Server called client method AccountService.GetGameAccount(bgs.protocol.account.v1.GetGameAccountRequest{ %s })", + GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + std::function<void(MessageBuffer)> callback = [responseCallback](MessageBuffer buffer) -> void { + ::bgs::protocol::account::v1::GetGameAccountResponse response; + if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) + responseCallback(&response); + }; + SendRequest(service_hash_, 42, request, std::move(callback)); +} + +void AccountService::QueueDeductRecord(::bgs::protocol::account::v1::QueueDeductRecordRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback) { + TC_LOG_DEBUG("service.protobuf", "%s Server called client method AccountService.QueueDeductRecord(bgs.protocol.account.v1.QueueDeductRecordRequest{ %s })", + GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + std::function<void(MessageBuffer)> callback = [responseCallback](MessageBuffer buffer) -> void { + ::bgs::protocol::NoData response; + if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) + responseCallback(&response); + }; + SendRequest(service_hash_, 43, request, std::move(callback)); +} + void AccountService::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) { switch(methodId) { case 12: { ::bgs::protocol::account::v1::GameAccountHandle request; if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AccountService.GetGameAccount server method call.", GetCallerInfo().c_str()); + TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AccountService.GetGameAccountBlob server method call.", GetCallerInfo().c_str()); SendResponse(service_hash_, 12, token, ERROR_RPC_MALFORMED_REQUEST); return; } ::bgs::protocol::account::v1::GameAccountBlob response; - uint32 status = HandleGetGameAccount(&request, &response); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.GetGameAccount(bgs.protocol.account.v1.GameAccountHandle{ %s }) returned bgs.protocol.account.v1.GameAccountBlob{ %s } status %u.", + uint32 status = HandleGetGameAccountBlob(&request, &response); + TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.GetGameAccountBlob(bgs.protocol.account.v1.GameAccountHandle{ %s }) returned bgs.protocol.account.v1.GameAccountBlob{ %s } status %u.", GetCallerInfo().c_str(), request.ShortDebugString().c_str(), response.ShortDebugString().c_str(), status); if (!status) SendResponse(service_hash_, 12, token, &response); @@ -11237,6 +13074,78 @@ void AccountService::CallServerMethod(uint32 token, uint32 methodId, MessageBuff SendResponse(service_hash_, 39, token, status); break; } + case 40: { + ::bgs::protocol::account::v1::UpdateParentalControlsAndCAISRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AccountService.UpdateParentalControlsAndCAIS server method call.", GetCallerInfo().c_str()); + SendResponse(service_hash_, 40, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + + ::bgs::protocol::NoData response; + uint32 status = HandleUpdateParentalControlsAndCAIS(&request, &response); + TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.UpdateParentalControlsAndCAIS(bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest{ %s }) returned bgs.protocol.NoData{ %s } status %u.", + GetCallerInfo().c_str(), request.ShortDebugString().c_str(), response.ShortDebugString().c_str(), status); + if (!status) + SendResponse(service_hash_, 40, token, &response); + else + SendResponse(service_hash_, 40, token, status); + break; + } + case 41: { + ::bgs::protocol::account::v1::CreateGameAccountRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AccountService.CreateGameAccount2 server method call.", GetCallerInfo().c_str()); + SendResponse(service_hash_, 41, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + + ::bgs::protocol::account::v1::CreateGameAccountResponse response; + uint32 status = HandleCreateGameAccount2(&request, &response); + TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.CreateGameAccount2(bgs.protocol.account.v1.CreateGameAccountRequest{ %s }) returned bgs.protocol.account.v1.CreateGameAccountResponse{ %s } status %u.", + GetCallerInfo().c_str(), request.ShortDebugString().c_str(), response.ShortDebugString().c_str(), status); + if (!status) + SendResponse(service_hash_, 41, token, &response); + else + SendResponse(service_hash_, 41, token, status); + break; + } + case 42: { + ::bgs::protocol::account::v1::GetGameAccountRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AccountService.GetGameAccount server method call.", GetCallerInfo().c_str()); + SendResponse(service_hash_, 42, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + + ::bgs::protocol::account::v1::GetGameAccountResponse response; + uint32 status = HandleGetGameAccount(&request, &response); + TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.GetGameAccount(bgs.protocol.account.v1.GetGameAccountRequest{ %s }) returned bgs.protocol.account.v1.GetGameAccountResponse{ %s } status %u.", + GetCallerInfo().c_str(), request.ShortDebugString().c_str(), response.ShortDebugString().c_str(), status); + if (!status) + SendResponse(service_hash_, 42, token, &response); + else + SendResponse(service_hash_, 42, token, status); + break; + } + case 43: { + ::bgs::protocol::account::v1::QueueDeductRecordRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for AccountService.QueueDeductRecord server method call.", GetCallerInfo().c_str()); + SendResponse(service_hash_, 43, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + + ::bgs::protocol::NoData response; + uint32 status = HandleQueueDeductRecord(&request, &response); + TC_LOG_DEBUG("service.protobuf", "%s Client called server method AccountService.QueueDeductRecord(bgs.protocol.account.v1.QueueDeductRecordRequest{ %s }) returned bgs.protocol.NoData{ %s } status %u.", + GetCallerInfo().c_str(), request.ShortDebugString().c_str(), response.ShortDebugString().c_str(), status); + if (!status) + SendResponse(service_hash_, 43, token, &response); + else + SendResponse(service_hash_, 43, token, status); + break; + } default: TC_LOG_ERROR("service.protobuf", "Bad method id %u.", methodId); SendResponse(service_hash_, methodId, token, ERROR_RPC_INVALID_METHOD); @@ -11244,8 +13153,8 @@ void AccountService::CallServerMethod(uint32 token, uint32 methodId, MessageBuff } } -uint32 AccountService::HandleGetGameAccount(::bgs::protocol::account::v1::GameAccountHandle const* request, ::bgs::protocol::account::v1::GameAccountBlob* response) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AccountService.GetGameAccount({ %s })", +uint32 AccountService::HandleGetGameAccountBlob(::bgs::protocol::account::v1::GameAccountHandle const* request, ::bgs::protocol::account::v1::GameAccountBlob* response) { + TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AccountService.GetGameAccountBlob({ %s })", GetCallerInfo().c_str(), request->ShortDebugString().c_str()); return ERROR_RPC_NOT_IMPLEMENTED; } @@ -11352,6 +13261,30 @@ uint32 AccountService::HandleGameAccountFlagUpdate(::bgs::protocol::account::v1: return ERROR_RPC_NOT_IMPLEMENTED; } +uint32 AccountService::HandleUpdateParentalControlsAndCAIS(::bgs::protocol::account::v1::UpdateParentalControlsAndCAISRequest const* request, ::bgs::protocol::NoData* response) { + TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AccountService.UpdateParentalControlsAndCAIS({ %s })", + GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + return ERROR_RPC_NOT_IMPLEMENTED; +} + +uint32 AccountService::HandleCreateGameAccount2(::bgs::protocol::account::v1::CreateGameAccountRequest const* request, ::bgs::protocol::account::v1::CreateGameAccountResponse* response) { + TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AccountService.CreateGameAccount2({ %s })", + GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + return ERROR_RPC_NOT_IMPLEMENTED; +} + +uint32 AccountService::HandleGetGameAccount(::bgs::protocol::account::v1::GetGameAccountRequest const* request, ::bgs::protocol::account::v1::GetGameAccountResponse* response) { + TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AccountService.GetGameAccount({ %s })", + GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + return ERROR_RPC_NOT_IMPLEMENTED; +} + +uint32 AccountService::HandleQueueDeductRecord(::bgs::protocol::account::v1::QueueDeductRecordRequest const* request, ::bgs::protocol::NoData* response) { + TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method AccountService.QueueDeductRecord({ %s })", + GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + return ERROR_RPC_NOT_IMPLEMENTED; +} + // =================================================================== AccountListener::AccountListener(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { diff --git a/src/server/proto/Client/account_service.pb.h b/src/server/proto/Client/account_service.pb.h index e08b7b23448..50b084e17dd 100644 --- a/src/server/proto/Client/account_service.pb.h +++ b/src/server/proto/Client/account_service.pb.h @@ -46,6 +46,7 @@ void protobuf_ShutdownFile_account_5fservice_2eproto(); class GetAccountRequest; class GetAccountResponse; class CreateGameAccountRequest; +class CreateGameAccountResponse; class CacheExpireRequest; class CredentialUpdateRequest; class CredentialUpdateResponse; @@ -71,6 +72,10 @@ class GetCAISInfoResponse; class ForwardCacheExpireRequest; class GetAuthorizedDataRequest; class GetAuthorizedDataResponse; +class UpdateParentalControlsAndCAISRequest; +class QueueDeductRecordRequest; +class GetGameAccountRequest; +class GetGameAccountResponse; class AccountStateNotification; class GameAccountStateNotification; class GameAccountNotification; @@ -140,6 +145,13 @@ class TC_PROTO_API GetAccountRequest : public ::google::protobuf::Message { inline ::bgs::protocol::account::v1::AccountReference* release_ref(); inline void set_allocated_ref(::bgs::protocol::account::v1::AccountReference* ref); + // optional bool reload = 2 [default = false]; + inline bool has_reload() const; + inline void clear_reload(); + static const int kReloadFieldNumber = 2; + inline bool reload() const; + inline void set_reload(bool value); + // optional bool fetch_all = 10 [default = false]; inline bool has_fetch_all() const; inline void clear_fetch_all(); @@ -196,10 +208,19 @@ class TC_PROTO_API GetAccountRequest : public ::google::protobuf::Message { inline bool fetch_parental_controls() const; inline void set_fetch_parental_controls(bool value); + // optional bool fetch_cais_id = 18 [default = false]; + inline bool has_fetch_cais_id() const; + inline void clear_fetch_cais_id(); + static const int kFetchCaisIdFieldNumber = 18; + inline bool fetch_cais_id() const; + inline void set_fetch_cais_id(bool value); + // @@protoc_insertion_point(class_scope:bgs.protocol.account.v1.GetAccountRequest) private: inline void set_has_ref(); inline void clear_has_ref(); + inline void set_has_reload(); + inline void clear_has_reload(); inline void set_has_fetch_all(); inline void clear_has_fetch_all(); inline void set_has_fetch_blob(); @@ -216,12 +237,15 @@ class TC_PROTO_API GetAccountRequest : public ::google::protobuf::Message { inline void clear_has_fetch_links(); inline void set_has_fetch_parental_controls(); inline void clear_has_fetch_parental_controls(); + inline void set_has_fetch_cais_id(); + inline void clear_has_fetch_cais_id(); ::google::protobuf::UnknownFieldSet _unknown_fields_; ::google::protobuf::uint32 _has_bits_[1]; mutable int _cached_size_; ::bgs::protocol::account::v1::AccountReference* ref_; + bool reload_; bool fetch_all_; bool fetch_blob_; bool fetch_id_; @@ -230,6 +254,7 @@ class TC_PROTO_API GetAccountRequest : public ::google::protobuf::Message { bool fetch_full_name_; bool fetch_links_; bool fetch_parental_controls_; + bool fetch_cais_id_; friend void TC_PROTO_API protobuf_AddDesc_account_5fservice_2eproto(); friend void protobuf_AssignDesc_account_5fservice_2eproto(); friend void protobuf_ShutdownFile_account_5fservice_2eproto(); @@ -371,6 +396,18 @@ class TC_PROTO_API GetAccountResponse : public ::google::protobuf::Message { inline ::bgs::protocol::account::v1::ParentalControlInfo* release_parental_control_info(); inline void set_allocated_parental_control_info(::bgs::protocol::account::v1::ParentalControlInfo* parental_control_info); + // optional string cais_id = 18; + inline bool has_cais_id() const; + inline void clear_cais_id(); + static const int kCaisIdFieldNumber = 18; + inline const ::std::string& cais_id() const; + inline void set_cais_id(const ::std::string& value); + inline void set_cais_id(const char* value); + inline void set_cais_id(const char* value, size_t size); + inline ::std::string* mutable_cais_id(); + inline ::std::string* release_cais_id(); + inline void set_allocated_cais_id(::std::string* cais_id); + // @@protoc_insertion_point(class_scope:bgs.protocol.account.v1.GetAccountResponse) private: inline void set_has_blob(); @@ -383,6 +420,8 @@ class TC_PROTO_API GetAccountResponse : public ::google::protobuf::Message { inline void clear_has_full_name(); inline void set_has_parental_control_info(); inline void clear_has_parental_control_info(); + inline void set_has_cais_id(); + inline void clear_has_cais_id(); ::google::protobuf::UnknownFieldSet _unknown_fields_; @@ -395,6 +434,7 @@ class TC_PROTO_API GetAccountResponse : public ::google::protobuf::Message { ::std::string* full_name_; ::google::protobuf::RepeatedPtrField< ::bgs::protocol::account::v1::GameAccountLink > links_; ::bgs::protocol::account::v1::ParentalControlInfo* parental_control_info_; + ::std::string* cais_id_; friend void TC_PROTO_API protobuf_AddDesc_account_5fservice_2eproto(); friend void protobuf_AssignDesc_account_5fservice_2eproto(); friend void protobuf_ShutdownFile_account_5fservice_2eproto(); @@ -480,13 +520,27 @@ class TC_PROTO_API CreateGameAccountRequest : public ::google::protobuf::Message inline ::google::protobuf::uint32 program() const; inline void set_program(::google::protobuf::uint32 value); - // optional uint32 realm_permissions = 4 [default = 1]; + // optional uint32 realm_permissions = 4 [default = 0]; inline bool has_realm_permissions() const; inline void clear_realm_permissions(); static const int kRealmPermissionsFieldNumber = 4; inline ::google::protobuf::uint32 realm_permissions() const; inline void set_realm_permissions(::google::protobuf::uint32 value); + // optional uint32 account_region = 5; + inline bool has_account_region() const; + inline void clear_account_region(); + static const int kAccountRegionFieldNumber = 5; + inline ::google::protobuf::uint32 account_region() const; + inline void set_account_region(::google::protobuf::uint32 value); + + // optional fixed32 platform = 6; + inline bool has_platform() const; + inline void clear_platform(); + static const int kPlatformFieldNumber = 6; + inline ::google::protobuf::uint32 platform() const; + inline void set_platform(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:bgs.protocol.account.v1.CreateGameAccountRequest) private: inline void set_has_account(); @@ -497,6 +551,10 @@ class TC_PROTO_API CreateGameAccountRequest : public ::google::protobuf::Message inline void clear_has_program(); inline void set_has_realm_permissions(); inline void clear_has_realm_permissions(); + inline void set_has_account_region(); + inline void clear_has_account_region(); + inline void set_has_platform(); + inline void clear_has_platform(); ::google::protobuf::UnknownFieldSet _unknown_fields_; @@ -506,6 +564,8 @@ class TC_PROTO_API CreateGameAccountRequest : public ::google::protobuf::Message ::google::protobuf::uint32 region_; ::google::protobuf::uint32 program_; ::google::protobuf::uint32 realm_permissions_; + ::google::protobuf::uint32 account_region_; + ::google::protobuf::uint32 platform_; friend void TC_PROTO_API protobuf_AddDesc_account_5fservice_2eproto(); friend void protobuf_AssignDesc_account_5fservice_2eproto(); friend void protobuf_ShutdownFile_account_5fservice_2eproto(); @@ -515,6 +575,87 @@ class TC_PROTO_API CreateGameAccountRequest : public ::google::protobuf::Message }; // ------------------------------------------------------------------- +class TC_PROTO_API CreateGameAccountResponse : public ::google::protobuf::Message { + public: + CreateGameAccountResponse(); + virtual ~CreateGameAccountResponse(); + + CreateGameAccountResponse(const CreateGameAccountResponse& from); + + inline CreateGameAccountResponse& operator=(const CreateGameAccountResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CreateGameAccountResponse& default_instance(); + + void Swap(CreateGameAccountResponse* other); + + // implements Message ---------------------------------------------- + + CreateGameAccountResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CreateGameAccountResponse& from); + void MergeFrom(const CreateGameAccountResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + inline bool has_game_account() const; + inline void clear_game_account(); + static const int kGameAccountFieldNumber = 1; + inline const ::bgs::protocol::account::v1::GameAccountHandle& game_account() const; + inline ::bgs::protocol::account::v1::GameAccountHandle* mutable_game_account(); + inline ::bgs::protocol::account::v1::GameAccountHandle* release_game_account(); + inline void set_allocated_game_account(::bgs::protocol::account::v1::GameAccountHandle* game_account); + + // @@protoc_insertion_point(class_scope:bgs.protocol.account.v1.CreateGameAccountResponse) + private: + inline void set_has_game_account(); + inline void clear_has_game_account(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::account::v1::GameAccountHandle* game_account_; + friend void TC_PROTO_API protobuf_AddDesc_account_5fservice_2eproto(); + friend void protobuf_AssignDesc_account_5fservice_2eproto(); + friend void protobuf_ShutdownFile_account_5fservice_2eproto(); + + void InitAsDefaultInstance(); + static CreateGameAccountResponse* default_instance_; +}; +// ------------------------------------------------------------------- + class TC_PROTO_API CacheExpireRequest : public ::google::protobuf::Message { public: CacheExpireRequest(); @@ -2869,6 +3010,397 @@ class TC_PROTO_API GetAuthorizedDataResponse : public ::google::protobuf::Messag }; // ------------------------------------------------------------------- +class TC_PROTO_API UpdateParentalControlsAndCAISRequest : public ::google::protobuf::Message { + public: + UpdateParentalControlsAndCAISRequest(); + virtual ~UpdateParentalControlsAndCAISRequest(); + + UpdateParentalControlsAndCAISRequest(const UpdateParentalControlsAndCAISRequest& from); + + inline UpdateParentalControlsAndCAISRequest& operator=(const UpdateParentalControlsAndCAISRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const UpdateParentalControlsAndCAISRequest& default_instance(); + + void Swap(UpdateParentalControlsAndCAISRequest* other); + + // implements Message ---------------------------------------------- + + UpdateParentalControlsAndCAISRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const UpdateParentalControlsAndCAISRequest& from); + void MergeFrom(const UpdateParentalControlsAndCAISRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .bgs.protocol.account.v1.AccountId account = 1; + inline bool has_account() const; + inline void clear_account(); + static const int kAccountFieldNumber = 1; + inline const ::bgs::protocol::account::v1::AccountId& account() const; + inline ::bgs::protocol::account::v1::AccountId* mutable_account(); + inline ::bgs::protocol::account::v1::AccountId* release_account(); + inline void set_allocated_account(::bgs::protocol::account::v1::AccountId* account); + + // optional .bgs.protocol.account.v1.ParentalControlInfo parental_control_info = 2; + inline bool has_parental_control_info() const; + inline void clear_parental_control_info(); + static const int kParentalControlInfoFieldNumber = 2; + inline const ::bgs::protocol::account::v1::ParentalControlInfo& parental_control_info() const; + inline ::bgs::protocol::account::v1::ParentalControlInfo* mutable_parental_control_info(); + inline ::bgs::protocol::account::v1::ParentalControlInfo* release_parental_control_info(); + inline void set_allocated_parental_control_info(::bgs::protocol::account::v1::ParentalControlInfo* parental_control_info); + + // optional string cais_id = 3; + inline bool has_cais_id() const; + inline void clear_cais_id(); + static const int kCaisIdFieldNumber = 3; + inline const ::std::string& cais_id() const; + inline void set_cais_id(const ::std::string& value); + inline void set_cais_id(const char* value); + inline void set_cais_id(const char* value, size_t size); + inline ::std::string* mutable_cais_id(); + inline ::std::string* release_cais_id(); + inline void set_allocated_cais_id(::std::string* cais_id); + + // optional uint64 session_start_time = 4; + inline bool has_session_start_time() const; + inline void clear_session_start_time(); + static const int kSessionStartTimeFieldNumber = 4; + inline ::google::protobuf::uint64 session_start_time() const; + inline void set_session_start_time(::google::protobuf::uint64 value); + + // optional uint64 start_time = 5; + inline bool has_start_time() const; + inline void clear_start_time(); + static const int kStartTimeFieldNumber = 5; + inline ::google::protobuf::uint64 start_time() const; + inline void set_start_time(::google::protobuf::uint64 value); + + // optional uint64 end_time = 6; + inline bool has_end_time() const; + inline void clear_end_time(); + static const int kEndTimeFieldNumber = 6; + inline ::google::protobuf::uint64 end_time() const; + inline void set_end_time(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest) + private: + inline void set_has_account(); + inline void clear_has_account(); + inline void set_has_parental_control_info(); + inline void clear_has_parental_control_info(); + inline void set_has_cais_id(); + inline void clear_has_cais_id(); + inline void set_has_session_start_time(); + inline void clear_has_session_start_time(); + inline void set_has_start_time(); + inline void clear_has_start_time(); + inline void set_has_end_time(); + inline void clear_has_end_time(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::account::v1::AccountId* account_; + ::bgs::protocol::account::v1::ParentalControlInfo* parental_control_info_; + ::std::string* cais_id_; + ::google::protobuf::uint64 session_start_time_; + ::google::protobuf::uint64 start_time_; + ::google::protobuf::uint64 end_time_; + friend void TC_PROTO_API protobuf_AddDesc_account_5fservice_2eproto(); + friend void protobuf_AssignDesc_account_5fservice_2eproto(); + friend void protobuf_ShutdownFile_account_5fservice_2eproto(); + + void InitAsDefaultInstance(); + static UpdateParentalControlsAndCAISRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API QueueDeductRecordRequest : public ::google::protobuf::Message { + public: + QueueDeductRecordRequest(); + virtual ~QueueDeductRecordRequest(); + + QueueDeductRecordRequest(const QueueDeductRecordRequest& from); + + inline QueueDeductRecordRequest& operator=(const QueueDeductRecordRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const QueueDeductRecordRequest& default_instance(); + + void Swap(QueueDeductRecordRequest* other); + + // implements Message ---------------------------------------------- + + QueueDeductRecordRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const QueueDeductRecordRequest& from); + void MergeFrom(const QueueDeductRecordRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .bgs.protocol.account.v1.DeductRecord deduct_record = 1; + inline bool has_deduct_record() const; + inline void clear_deduct_record(); + static const int kDeductRecordFieldNumber = 1; + inline const ::bgs::protocol::account::v1::DeductRecord& deduct_record() const; + inline ::bgs::protocol::account::v1::DeductRecord* mutable_deduct_record(); + inline ::bgs::protocol::account::v1::DeductRecord* release_deduct_record(); + inline void set_allocated_deduct_record(::bgs::protocol::account::v1::DeductRecord* deduct_record); + + // @@protoc_insertion_point(class_scope:bgs.protocol.account.v1.QueueDeductRecordRequest) + private: + inline void set_has_deduct_record(); + inline void clear_has_deduct_record(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::account::v1::DeductRecord* deduct_record_; + friend void TC_PROTO_API protobuf_AddDesc_account_5fservice_2eproto(); + friend void protobuf_AssignDesc_account_5fservice_2eproto(); + friend void protobuf_ShutdownFile_account_5fservice_2eproto(); + + void InitAsDefaultInstance(); + static QueueDeductRecordRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API GetGameAccountRequest : public ::google::protobuf::Message { + public: + GetGameAccountRequest(); + virtual ~GetGameAccountRequest(); + + GetGameAccountRequest(const GetGameAccountRequest& from); + + inline GetGameAccountRequest& operator=(const GetGameAccountRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetGameAccountRequest& default_instance(); + + void Swap(GetGameAccountRequest* other); + + // implements Message ---------------------------------------------- + + GetGameAccountRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetGameAccountRequest& from); + void MergeFrom(const GetGameAccountRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + inline bool has_game_account() const; + inline void clear_game_account(); + static const int kGameAccountFieldNumber = 1; + inline const ::bgs::protocol::account::v1::GameAccountHandle& game_account() const; + inline ::bgs::protocol::account::v1::GameAccountHandle* mutable_game_account(); + inline ::bgs::protocol::account::v1::GameAccountHandle* release_game_account(); + inline void set_allocated_game_account(::bgs::protocol::account::v1::GameAccountHandle* game_account); + + // optional bool reload = 2 [default = false]; + inline bool has_reload() const; + inline void clear_reload(); + static const int kReloadFieldNumber = 2; + inline bool reload() const; + inline void set_reload(bool value); + + // @@protoc_insertion_point(class_scope:bgs.protocol.account.v1.GetGameAccountRequest) + private: + inline void set_has_game_account(); + inline void clear_has_game_account(); + inline void set_has_reload(); + inline void clear_has_reload(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::account::v1::GameAccountHandle* game_account_; + bool reload_; + friend void TC_PROTO_API protobuf_AddDesc_account_5fservice_2eproto(); + friend void protobuf_AssignDesc_account_5fservice_2eproto(); + friend void protobuf_ShutdownFile_account_5fservice_2eproto(); + + void InitAsDefaultInstance(); + static GetGameAccountRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API GetGameAccountResponse : public ::google::protobuf::Message { + public: + GetGameAccountResponse(); + virtual ~GetGameAccountResponse(); + + GetGameAccountResponse(const GetGameAccountResponse& from); + + inline GetGameAccountResponse& operator=(const GetGameAccountResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetGameAccountResponse& default_instance(); + + void Swap(GetGameAccountResponse* other); + + // implements Message ---------------------------------------------- + + GetGameAccountResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetGameAccountResponse& from); + void MergeFrom(const GetGameAccountResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .bgs.protocol.account.v1.GameAccountBlob blob = 1; + inline bool has_blob() const; + inline void clear_blob(); + static const int kBlobFieldNumber = 1; + inline const ::bgs::protocol::account::v1::GameAccountBlob& blob() const; + inline ::bgs::protocol::account::v1::GameAccountBlob* mutable_blob(); + inline ::bgs::protocol::account::v1::GameAccountBlob* release_blob(); + inline void set_allocated_blob(::bgs::protocol::account::v1::GameAccountBlob* blob); + + // @@protoc_insertion_point(class_scope:bgs.protocol.account.v1.GetGameAccountResponse) + private: + inline void set_has_blob(); + inline void clear_has_blob(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::account::v1::GameAccountBlob* blob_; + friend void TC_PROTO_API protobuf_AddDesc_account_5fservice_2eproto(); + friend void protobuf_AssignDesc_account_5fservice_2eproto(); + friend void protobuf_ShutdownFile_account_5fservice_2eproto(); + + void InitAsDefaultInstance(); + static GetGameAccountResponse* default_instance_; +}; +// ------------------------------------------------------------------- + class TC_PROTO_API AccountStateNotification : public ::google::protobuf::Message { public: AccountStateNotification(); @@ -3306,7 +3838,7 @@ class TC_PROTO_API AccountService : public ServiceBase // client methods -------------------------------------------------- - void GetGameAccount(::bgs::protocol::account::v1::GameAccountHandle const* request, std::function<void(::bgs::protocol::account::v1::GameAccountBlob const*)> responseCallback); + void GetGameAccountBlob(::bgs::protocol::account::v1::GameAccountHandle const* request, std::function<void(::bgs::protocol::account::v1::GameAccountBlob const*)> responseCallback); void GetAccount(::bgs::protocol::account::v1::GetAccountRequest const* request, std::function<void(::bgs::protocol::account::v1::GetAccountResponse const*)> responseCallback); void CreateGameAccount(::bgs::protocol::account::v1::CreateGameAccountRequest const* request, std::function<void(::bgs::protocol::account::v1::GameAccountHandle const*)> responseCallback); void IsIgrAddress(::bgs::protocol::account::v1::IsIgrAddressRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback); @@ -3324,12 +3856,16 @@ class TC_PROTO_API AccountService : public ServiceBase void GetAuthorizedData(::bgs::protocol::account::v1::GetAuthorizedDataRequest const* request, std::function<void(::bgs::protocol::account::v1::GetAuthorizedDataResponse const*)> responseCallback); void AccountFlagUpdate(::bgs::protocol::account::v1::AccountFlagUpdateRequest const* request); void GameAccountFlagUpdate(::bgs::protocol::account::v1::GameAccountFlagUpdateRequest const* request); + void UpdateParentalControlsAndCAIS(::bgs::protocol::account::v1::UpdateParentalControlsAndCAISRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback); + void CreateGameAccount2(::bgs::protocol::account::v1::CreateGameAccountRequest const* request, std::function<void(::bgs::protocol::account::v1::CreateGameAccountResponse const*)> responseCallback); + void GetGameAccount(::bgs::protocol::account::v1::GetGameAccountRequest const* request, std::function<void(::bgs::protocol::account::v1::GetGameAccountResponse const*)> responseCallback); + void QueueDeductRecord(::bgs::protocol::account::v1::QueueDeductRecordRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback); // server methods -------------------------------------------------- void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) override final; protected: - virtual uint32 HandleGetGameAccount(::bgs::protocol::account::v1::GameAccountHandle const* request, ::bgs::protocol::account::v1::GameAccountBlob* response); + virtual uint32 HandleGetGameAccountBlob(::bgs::protocol::account::v1::GameAccountHandle const* request, ::bgs::protocol::account::v1::GameAccountBlob* response); virtual uint32 HandleGetAccount(::bgs::protocol::account::v1::GetAccountRequest const* request, ::bgs::protocol::account::v1::GetAccountResponse* response); virtual uint32 HandleCreateGameAccount(::bgs::protocol::account::v1::CreateGameAccountRequest const* request, ::bgs::protocol::account::v1::GameAccountHandle* response); virtual uint32 HandleIsIgrAddress(::bgs::protocol::account::v1::IsIgrAddressRequest const* request, ::bgs::protocol::NoData* response); @@ -3347,6 +3883,10 @@ class TC_PROTO_API AccountService : public ServiceBase virtual uint32 HandleGetAuthorizedData(::bgs::protocol::account::v1::GetAuthorizedDataRequest const* request, ::bgs::protocol::account::v1::GetAuthorizedDataResponse* response); virtual uint32 HandleAccountFlagUpdate(::bgs::protocol::account::v1::AccountFlagUpdateRequest const* request); virtual uint32 HandleGameAccountFlagUpdate(::bgs::protocol::account::v1::GameAccountFlagUpdateRequest const* request); + virtual uint32 HandleUpdateParentalControlsAndCAIS(::bgs::protocol::account::v1::UpdateParentalControlsAndCAISRequest const* request, ::bgs::protocol::NoData* response); + virtual uint32 HandleCreateGameAccount2(::bgs::protocol::account::v1::CreateGameAccountRequest const* request, ::bgs::protocol::account::v1::CreateGameAccountResponse* response); + virtual uint32 HandleGetGameAccount(::bgs::protocol::account::v1::GetGameAccountRequest const* request, ::bgs::protocol::account::v1::GetGameAccountResponse* response); + virtual uint32 HandleQueueDeductRecord(::bgs::protocol::account::v1::QueueDeductRecordRequest const* request, ::bgs::protocol::NoData* response); private: uint32 service_hash_; @@ -3438,15 +3978,39 @@ inline void GetAccountRequest::set_allocated_ref(::bgs::protocol::account::v1::A // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.GetAccountRequest.ref) } +// optional bool reload = 2 [default = false]; +inline bool GetAccountRequest::has_reload() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GetAccountRequest::set_has_reload() { + _has_bits_[0] |= 0x00000002u; +} +inline void GetAccountRequest::clear_has_reload() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GetAccountRequest::clear_reload() { + reload_ = false; + clear_has_reload(); +} +inline bool GetAccountRequest::reload() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.GetAccountRequest.reload) + return reload_; +} +inline void GetAccountRequest::set_reload(bool value) { + set_has_reload(); + reload_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.GetAccountRequest.reload) +} + // optional bool fetch_all = 10 [default = false]; inline bool GetAccountRequest::has_fetch_all() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void GetAccountRequest::set_has_fetch_all() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000004u; } inline void GetAccountRequest::clear_has_fetch_all() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000004u; } inline void GetAccountRequest::clear_fetch_all() { fetch_all_ = false; @@ -3464,13 +4028,13 @@ inline void GetAccountRequest::set_fetch_all(bool value) { // optional bool fetch_blob = 11 [default = false]; inline bool GetAccountRequest::has_fetch_blob() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void GetAccountRequest::set_has_fetch_blob() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000008u; } inline void GetAccountRequest::clear_has_fetch_blob() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000008u; } inline void GetAccountRequest::clear_fetch_blob() { fetch_blob_ = false; @@ -3488,13 +4052,13 @@ inline void GetAccountRequest::set_fetch_blob(bool value) { // optional bool fetch_id = 12 [default = false]; inline bool GetAccountRequest::has_fetch_id() const { - return (_has_bits_[0] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void GetAccountRequest::set_has_fetch_id() { - _has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000010u; } inline void GetAccountRequest::clear_has_fetch_id() { - _has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000010u; } inline void GetAccountRequest::clear_fetch_id() { fetch_id_ = false; @@ -3512,13 +4076,13 @@ inline void GetAccountRequest::set_fetch_id(bool value) { // optional bool fetch_email = 13 [default = false]; inline bool GetAccountRequest::has_fetch_email() const { - return (_has_bits_[0] & 0x00000010u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void GetAccountRequest::set_has_fetch_email() { - _has_bits_[0] |= 0x00000010u; + _has_bits_[0] |= 0x00000020u; } inline void GetAccountRequest::clear_has_fetch_email() { - _has_bits_[0] &= ~0x00000010u; + _has_bits_[0] &= ~0x00000020u; } inline void GetAccountRequest::clear_fetch_email() { fetch_email_ = false; @@ -3536,13 +4100,13 @@ inline void GetAccountRequest::set_fetch_email(bool value) { // optional bool fetch_battle_tag = 14 [default = false]; inline bool GetAccountRequest::has_fetch_battle_tag() const { - return (_has_bits_[0] & 0x00000020u) != 0; + return (_has_bits_[0] & 0x00000040u) != 0; } inline void GetAccountRequest::set_has_fetch_battle_tag() { - _has_bits_[0] |= 0x00000020u; + _has_bits_[0] |= 0x00000040u; } inline void GetAccountRequest::clear_has_fetch_battle_tag() { - _has_bits_[0] &= ~0x00000020u; + _has_bits_[0] &= ~0x00000040u; } inline void GetAccountRequest::clear_fetch_battle_tag() { fetch_battle_tag_ = false; @@ -3560,13 +4124,13 @@ inline void GetAccountRequest::set_fetch_battle_tag(bool value) { // optional bool fetch_full_name = 15 [default = false]; inline bool GetAccountRequest::has_fetch_full_name() const { - return (_has_bits_[0] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x00000080u) != 0; } inline void GetAccountRequest::set_has_fetch_full_name() { - _has_bits_[0] |= 0x00000040u; + _has_bits_[0] |= 0x00000080u; } inline void GetAccountRequest::clear_has_fetch_full_name() { - _has_bits_[0] &= ~0x00000040u; + _has_bits_[0] &= ~0x00000080u; } inline void GetAccountRequest::clear_fetch_full_name() { fetch_full_name_ = false; @@ -3584,13 +4148,13 @@ inline void GetAccountRequest::set_fetch_full_name(bool value) { // optional bool fetch_links = 16 [default = false]; inline bool GetAccountRequest::has_fetch_links() const { - return (_has_bits_[0] & 0x00000080u) != 0; + return (_has_bits_[0] & 0x00000100u) != 0; } inline void GetAccountRequest::set_has_fetch_links() { - _has_bits_[0] |= 0x00000080u; + _has_bits_[0] |= 0x00000100u; } inline void GetAccountRequest::clear_has_fetch_links() { - _has_bits_[0] &= ~0x00000080u; + _has_bits_[0] &= ~0x00000100u; } inline void GetAccountRequest::clear_fetch_links() { fetch_links_ = false; @@ -3608,13 +4172,13 @@ inline void GetAccountRequest::set_fetch_links(bool value) { // optional bool fetch_parental_controls = 17 [default = false]; inline bool GetAccountRequest::has_fetch_parental_controls() const { - return (_has_bits_[0] & 0x00000100u) != 0; + return (_has_bits_[0] & 0x00000200u) != 0; } inline void GetAccountRequest::set_has_fetch_parental_controls() { - _has_bits_[0] |= 0x00000100u; + _has_bits_[0] |= 0x00000200u; } inline void GetAccountRequest::clear_has_fetch_parental_controls() { - _has_bits_[0] &= ~0x00000100u; + _has_bits_[0] &= ~0x00000200u; } inline void GetAccountRequest::clear_fetch_parental_controls() { fetch_parental_controls_ = false; @@ -3630,6 +4194,30 @@ inline void GetAccountRequest::set_fetch_parental_controls(bool value) { // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.GetAccountRequest.fetch_parental_controls) } +// optional bool fetch_cais_id = 18 [default = false]; +inline bool GetAccountRequest::has_fetch_cais_id() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void GetAccountRequest::set_has_fetch_cais_id() { + _has_bits_[0] |= 0x00000400u; +} +inline void GetAccountRequest::clear_has_fetch_cais_id() { + _has_bits_[0] &= ~0x00000400u; +} +inline void GetAccountRequest::clear_fetch_cais_id() { + fetch_cais_id_ = false; + clear_has_fetch_cais_id(); +} +inline bool GetAccountRequest::fetch_cais_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.GetAccountRequest.fetch_cais_id) + return fetch_cais_id_; +} +inline void GetAccountRequest::set_fetch_cais_id(bool value) { + set_has_fetch_cais_id(); + fetch_cais_id_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.GetAccountRequest.fetch_cais_id) +} + // ------------------------------------------------------------------- // GetAccountResponse @@ -3993,6 +4581,82 @@ inline void GetAccountResponse::set_allocated_parental_control_info(::bgs::proto // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.GetAccountResponse.parental_control_info) } +// optional string cais_id = 18; +inline bool GetAccountResponse::has_cais_id() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void GetAccountResponse::set_has_cais_id() { + _has_bits_[0] |= 0x00000080u; +} +inline void GetAccountResponse::clear_has_cais_id() { + _has_bits_[0] &= ~0x00000080u; +} +inline void GetAccountResponse::clear_cais_id() { + if (cais_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + cais_id_->clear(); + } + clear_has_cais_id(); +} +inline const ::std::string& GetAccountResponse::cais_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.GetAccountResponse.cais_id) + return *cais_id_; +} +inline void GetAccountResponse::set_cais_id(const ::std::string& value) { + set_has_cais_id(); + if (cais_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + cais_id_ = new ::std::string; + } + cais_id_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.GetAccountResponse.cais_id) +} +inline void GetAccountResponse::set_cais_id(const char* value) { + set_has_cais_id(); + if (cais_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + cais_id_ = new ::std::string; + } + cais_id_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.account.v1.GetAccountResponse.cais_id) +} +inline void GetAccountResponse::set_cais_id(const char* value, size_t size) { + set_has_cais_id(); + if (cais_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + cais_id_ = new ::std::string; + } + cais_id_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.account.v1.GetAccountResponse.cais_id) +} +inline ::std::string* GetAccountResponse::mutable_cais_id() { + set_has_cais_id(); + if (cais_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + cais_id_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.account.v1.GetAccountResponse.cais_id) + return cais_id_; +} +inline ::std::string* GetAccountResponse::release_cais_id() { + clear_has_cais_id(); + if (cais_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = cais_id_; + cais_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void GetAccountResponse::set_allocated_cais_id(::std::string* cais_id) { + if (cais_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete cais_id_; + } + if (cais_id) { + set_has_cais_id(); + cais_id_ = cais_id; + } else { + clear_has_cais_id(); + cais_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.GetAccountResponse.cais_id) +} + // ------------------------------------------------------------------- // CreateGameAccountRequest @@ -4086,7 +4750,7 @@ inline void CreateGameAccountRequest::set_program(::google::protobuf::uint32 val // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.CreateGameAccountRequest.program) } -// optional uint32 realm_permissions = 4 [default = 1]; +// optional uint32 realm_permissions = 4 [default = 0]; inline bool CreateGameAccountRequest::has_realm_permissions() const { return (_has_bits_[0] & 0x00000008u) != 0; } @@ -4097,7 +4761,7 @@ inline void CreateGameAccountRequest::clear_has_realm_permissions() { _has_bits_[0] &= ~0x00000008u; } inline void CreateGameAccountRequest::clear_realm_permissions() { - realm_permissions_ = 1u; + realm_permissions_ = 0u; clear_has_realm_permissions(); } inline ::google::protobuf::uint32 CreateGameAccountRequest::realm_permissions() const { @@ -4110,6 +4774,99 @@ inline void CreateGameAccountRequest::set_realm_permissions(::google::protobuf:: // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.CreateGameAccountRequest.realm_permissions) } +// optional uint32 account_region = 5; +inline bool CreateGameAccountRequest::has_account_region() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void CreateGameAccountRequest::set_has_account_region() { + _has_bits_[0] |= 0x00000010u; +} +inline void CreateGameAccountRequest::clear_has_account_region() { + _has_bits_[0] &= ~0x00000010u; +} +inline void CreateGameAccountRequest::clear_account_region() { + account_region_ = 0u; + clear_has_account_region(); +} +inline ::google::protobuf::uint32 CreateGameAccountRequest::account_region() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.CreateGameAccountRequest.account_region) + return account_region_; +} +inline void CreateGameAccountRequest::set_account_region(::google::protobuf::uint32 value) { + set_has_account_region(); + account_region_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.CreateGameAccountRequest.account_region) +} + +// optional fixed32 platform = 6; +inline bool CreateGameAccountRequest::has_platform() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void CreateGameAccountRequest::set_has_platform() { + _has_bits_[0] |= 0x00000020u; +} +inline void CreateGameAccountRequest::clear_has_platform() { + _has_bits_[0] &= ~0x00000020u; +} +inline void CreateGameAccountRequest::clear_platform() { + platform_ = 0u; + clear_has_platform(); +} +inline ::google::protobuf::uint32 CreateGameAccountRequest::platform() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.CreateGameAccountRequest.platform) + return platform_; +} +inline void CreateGameAccountRequest::set_platform(::google::protobuf::uint32 value) { + set_has_platform(); + platform_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.CreateGameAccountRequest.platform) +} + +// ------------------------------------------------------------------- + +// CreateGameAccountResponse + +// optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; +inline bool CreateGameAccountResponse::has_game_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CreateGameAccountResponse::set_has_game_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void CreateGameAccountResponse::clear_has_game_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CreateGameAccountResponse::clear_game_account() { + if (game_account_ != NULL) game_account_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + clear_has_game_account(); +} +inline const ::bgs::protocol::account::v1::GameAccountHandle& CreateGameAccountResponse::game_account() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.CreateGameAccountResponse.game_account) + return game_account_ != NULL ? *game_account_ : *default_instance_->game_account_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* CreateGameAccountResponse::mutable_game_account() { + set_has_game_account(); + if (game_account_ == NULL) game_account_ = new ::bgs::protocol::account::v1::GameAccountHandle; + // @@protoc_insertion_point(field_mutable:bgs.protocol.account.v1.CreateGameAccountResponse.game_account) + return game_account_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* CreateGameAccountResponse::release_game_account() { + clear_has_game_account(); + ::bgs::protocol::account::v1::GameAccountHandle* temp = game_account_; + game_account_ = NULL; + return temp; +} +inline void CreateGameAccountResponse::set_allocated_game_account(::bgs::protocol::account::v1::GameAccountHandle* game_account) { + delete game_account_; + game_account_ = game_account; + if (game_account) { + set_has_game_account(); + } else { + clear_has_game_account(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.CreateGameAccountResponse.game_account) +} + // ------------------------------------------------------------------- // CacheExpireRequest @@ -6110,6 +6867,399 @@ GetAuthorizedDataResponse::mutable_data() { // ------------------------------------------------------------------- +// UpdateParentalControlsAndCAISRequest + +// optional .bgs.protocol.account.v1.AccountId account = 1; +inline bool UpdateParentalControlsAndCAISRequest::has_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void UpdateParentalControlsAndCAISRequest::set_has_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void UpdateParentalControlsAndCAISRequest::clear_has_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void UpdateParentalControlsAndCAISRequest::clear_account() { + if (account_ != NULL) account_->::bgs::protocol::account::v1::AccountId::Clear(); + clear_has_account(); +} +inline const ::bgs::protocol::account::v1::AccountId& UpdateParentalControlsAndCAISRequest::account() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest.account) + return account_ != NULL ? *account_ : *default_instance_->account_; +} +inline ::bgs::protocol::account::v1::AccountId* UpdateParentalControlsAndCAISRequest::mutable_account() { + set_has_account(); + if (account_ == NULL) account_ = new ::bgs::protocol::account::v1::AccountId; + // @@protoc_insertion_point(field_mutable:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest.account) + return account_; +} +inline ::bgs::protocol::account::v1::AccountId* UpdateParentalControlsAndCAISRequest::release_account() { + clear_has_account(); + ::bgs::protocol::account::v1::AccountId* temp = account_; + account_ = NULL; + return temp; +} +inline void UpdateParentalControlsAndCAISRequest::set_allocated_account(::bgs::protocol::account::v1::AccountId* account) { + delete account_; + account_ = account; + if (account) { + set_has_account(); + } else { + clear_has_account(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest.account) +} + +// optional .bgs.protocol.account.v1.ParentalControlInfo parental_control_info = 2; +inline bool UpdateParentalControlsAndCAISRequest::has_parental_control_info() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void UpdateParentalControlsAndCAISRequest::set_has_parental_control_info() { + _has_bits_[0] |= 0x00000002u; +} +inline void UpdateParentalControlsAndCAISRequest::clear_has_parental_control_info() { + _has_bits_[0] &= ~0x00000002u; +} +inline void UpdateParentalControlsAndCAISRequest::clear_parental_control_info() { + if (parental_control_info_ != NULL) parental_control_info_->::bgs::protocol::account::v1::ParentalControlInfo::Clear(); + clear_has_parental_control_info(); +} +inline const ::bgs::protocol::account::v1::ParentalControlInfo& UpdateParentalControlsAndCAISRequest::parental_control_info() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest.parental_control_info) + return parental_control_info_ != NULL ? *parental_control_info_ : *default_instance_->parental_control_info_; +} +inline ::bgs::protocol::account::v1::ParentalControlInfo* UpdateParentalControlsAndCAISRequest::mutable_parental_control_info() { + set_has_parental_control_info(); + if (parental_control_info_ == NULL) parental_control_info_ = new ::bgs::protocol::account::v1::ParentalControlInfo; + // @@protoc_insertion_point(field_mutable:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest.parental_control_info) + return parental_control_info_; +} +inline ::bgs::protocol::account::v1::ParentalControlInfo* UpdateParentalControlsAndCAISRequest::release_parental_control_info() { + clear_has_parental_control_info(); + ::bgs::protocol::account::v1::ParentalControlInfo* temp = parental_control_info_; + parental_control_info_ = NULL; + return temp; +} +inline void UpdateParentalControlsAndCAISRequest::set_allocated_parental_control_info(::bgs::protocol::account::v1::ParentalControlInfo* parental_control_info) { + delete parental_control_info_; + parental_control_info_ = parental_control_info; + if (parental_control_info) { + set_has_parental_control_info(); + } else { + clear_has_parental_control_info(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest.parental_control_info) +} + +// optional string cais_id = 3; +inline bool UpdateParentalControlsAndCAISRequest::has_cais_id() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void UpdateParentalControlsAndCAISRequest::set_has_cais_id() { + _has_bits_[0] |= 0x00000004u; +} +inline void UpdateParentalControlsAndCAISRequest::clear_has_cais_id() { + _has_bits_[0] &= ~0x00000004u; +} +inline void UpdateParentalControlsAndCAISRequest::clear_cais_id() { + if (cais_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + cais_id_->clear(); + } + clear_has_cais_id(); +} +inline const ::std::string& UpdateParentalControlsAndCAISRequest::cais_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest.cais_id) + return *cais_id_; +} +inline void UpdateParentalControlsAndCAISRequest::set_cais_id(const ::std::string& value) { + set_has_cais_id(); + if (cais_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + cais_id_ = new ::std::string; + } + cais_id_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest.cais_id) +} +inline void UpdateParentalControlsAndCAISRequest::set_cais_id(const char* value) { + set_has_cais_id(); + if (cais_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + cais_id_ = new ::std::string; + } + cais_id_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest.cais_id) +} +inline void UpdateParentalControlsAndCAISRequest::set_cais_id(const char* value, size_t size) { + set_has_cais_id(); + if (cais_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + cais_id_ = new ::std::string; + } + cais_id_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest.cais_id) +} +inline ::std::string* UpdateParentalControlsAndCAISRequest::mutable_cais_id() { + set_has_cais_id(); + if (cais_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + cais_id_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest.cais_id) + return cais_id_; +} +inline ::std::string* UpdateParentalControlsAndCAISRequest::release_cais_id() { + clear_has_cais_id(); + if (cais_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = cais_id_; + cais_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void UpdateParentalControlsAndCAISRequest::set_allocated_cais_id(::std::string* cais_id) { + if (cais_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete cais_id_; + } + if (cais_id) { + set_has_cais_id(); + cais_id_ = cais_id; + } else { + clear_has_cais_id(); + cais_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest.cais_id) +} + +// optional uint64 session_start_time = 4; +inline bool UpdateParentalControlsAndCAISRequest::has_session_start_time() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void UpdateParentalControlsAndCAISRequest::set_has_session_start_time() { + _has_bits_[0] |= 0x00000008u; +} +inline void UpdateParentalControlsAndCAISRequest::clear_has_session_start_time() { + _has_bits_[0] &= ~0x00000008u; +} +inline void UpdateParentalControlsAndCAISRequest::clear_session_start_time() { + session_start_time_ = GOOGLE_ULONGLONG(0); + clear_has_session_start_time(); +} +inline ::google::protobuf::uint64 UpdateParentalControlsAndCAISRequest::session_start_time() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest.session_start_time) + return session_start_time_; +} +inline void UpdateParentalControlsAndCAISRequest::set_session_start_time(::google::protobuf::uint64 value) { + set_has_session_start_time(); + session_start_time_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest.session_start_time) +} + +// optional uint64 start_time = 5; +inline bool UpdateParentalControlsAndCAISRequest::has_start_time() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void UpdateParentalControlsAndCAISRequest::set_has_start_time() { + _has_bits_[0] |= 0x00000010u; +} +inline void UpdateParentalControlsAndCAISRequest::clear_has_start_time() { + _has_bits_[0] &= ~0x00000010u; +} +inline void UpdateParentalControlsAndCAISRequest::clear_start_time() { + start_time_ = GOOGLE_ULONGLONG(0); + clear_has_start_time(); +} +inline ::google::protobuf::uint64 UpdateParentalControlsAndCAISRequest::start_time() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest.start_time) + return start_time_; +} +inline void UpdateParentalControlsAndCAISRequest::set_start_time(::google::protobuf::uint64 value) { + set_has_start_time(); + start_time_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest.start_time) +} + +// optional uint64 end_time = 6; +inline bool UpdateParentalControlsAndCAISRequest::has_end_time() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void UpdateParentalControlsAndCAISRequest::set_has_end_time() { + _has_bits_[0] |= 0x00000020u; +} +inline void UpdateParentalControlsAndCAISRequest::clear_has_end_time() { + _has_bits_[0] &= ~0x00000020u; +} +inline void UpdateParentalControlsAndCAISRequest::clear_end_time() { + end_time_ = GOOGLE_ULONGLONG(0); + clear_has_end_time(); +} +inline ::google::protobuf::uint64 UpdateParentalControlsAndCAISRequest::end_time() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest.end_time) + return end_time_; +} +inline void UpdateParentalControlsAndCAISRequest::set_end_time(::google::protobuf::uint64 value) { + set_has_end_time(); + end_time_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.UpdateParentalControlsAndCAISRequest.end_time) +} + +// ------------------------------------------------------------------- + +// QueueDeductRecordRequest + +// optional .bgs.protocol.account.v1.DeductRecord deduct_record = 1; +inline bool QueueDeductRecordRequest::has_deduct_record() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void QueueDeductRecordRequest::set_has_deduct_record() { + _has_bits_[0] |= 0x00000001u; +} +inline void QueueDeductRecordRequest::clear_has_deduct_record() { + _has_bits_[0] &= ~0x00000001u; +} +inline void QueueDeductRecordRequest::clear_deduct_record() { + if (deduct_record_ != NULL) deduct_record_->::bgs::protocol::account::v1::DeductRecord::Clear(); + clear_has_deduct_record(); +} +inline const ::bgs::protocol::account::v1::DeductRecord& QueueDeductRecordRequest::deduct_record() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.QueueDeductRecordRequest.deduct_record) + return deduct_record_ != NULL ? *deduct_record_ : *default_instance_->deduct_record_; +} +inline ::bgs::protocol::account::v1::DeductRecord* QueueDeductRecordRequest::mutable_deduct_record() { + set_has_deduct_record(); + if (deduct_record_ == NULL) deduct_record_ = new ::bgs::protocol::account::v1::DeductRecord; + // @@protoc_insertion_point(field_mutable:bgs.protocol.account.v1.QueueDeductRecordRequest.deduct_record) + return deduct_record_; +} +inline ::bgs::protocol::account::v1::DeductRecord* QueueDeductRecordRequest::release_deduct_record() { + clear_has_deduct_record(); + ::bgs::protocol::account::v1::DeductRecord* temp = deduct_record_; + deduct_record_ = NULL; + return temp; +} +inline void QueueDeductRecordRequest::set_allocated_deduct_record(::bgs::protocol::account::v1::DeductRecord* deduct_record) { + delete deduct_record_; + deduct_record_ = deduct_record; + if (deduct_record) { + set_has_deduct_record(); + } else { + clear_has_deduct_record(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.QueueDeductRecordRequest.deduct_record) +} + +// ------------------------------------------------------------------- + +// GetGameAccountRequest + +// optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; +inline bool GetGameAccountRequest::has_game_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetGameAccountRequest::set_has_game_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetGameAccountRequest::clear_has_game_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetGameAccountRequest::clear_game_account() { + if (game_account_ != NULL) game_account_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + clear_has_game_account(); +} +inline const ::bgs::protocol::account::v1::GameAccountHandle& GetGameAccountRequest::game_account() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.GetGameAccountRequest.game_account) + return game_account_ != NULL ? *game_account_ : *default_instance_->game_account_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* GetGameAccountRequest::mutable_game_account() { + set_has_game_account(); + if (game_account_ == NULL) game_account_ = new ::bgs::protocol::account::v1::GameAccountHandle; + // @@protoc_insertion_point(field_mutable:bgs.protocol.account.v1.GetGameAccountRequest.game_account) + return game_account_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* GetGameAccountRequest::release_game_account() { + clear_has_game_account(); + ::bgs::protocol::account::v1::GameAccountHandle* temp = game_account_; + game_account_ = NULL; + return temp; +} +inline void GetGameAccountRequest::set_allocated_game_account(::bgs::protocol::account::v1::GameAccountHandle* game_account) { + delete game_account_; + game_account_ = game_account; + if (game_account) { + set_has_game_account(); + } else { + clear_has_game_account(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.GetGameAccountRequest.game_account) +} + +// optional bool reload = 2 [default = false]; +inline bool GetGameAccountRequest::has_reload() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GetGameAccountRequest::set_has_reload() { + _has_bits_[0] |= 0x00000002u; +} +inline void GetGameAccountRequest::clear_has_reload() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GetGameAccountRequest::clear_reload() { + reload_ = false; + clear_has_reload(); +} +inline bool GetGameAccountRequest::reload() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.GetGameAccountRequest.reload) + return reload_; +} +inline void GetGameAccountRequest::set_reload(bool value) { + set_has_reload(); + reload_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.GetGameAccountRequest.reload) +} + +// ------------------------------------------------------------------- + +// GetGameAccountResponse + +// optional .bgs.protocol.account.v1.GameAccountBlob blob = 1; +inline bool GetGameAccountResponse::has_blob() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetGameAccountResponse::set_has_blob() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetGameAccountResponse::clear_has_blob() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetGameAccountResponse::clear_blob() { + if (blob_ != NULL) blob_->::bgs::protocol::account::v1::GameAccountBlob::Clear(); + clear_has_blob(); +} +inline const ::bgs::protocol::account::v1::GameAccountBlob& GetGameAccountResponse::blob() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.GetGameAccountResponse.blob) + return blob_ != NULL ? *blob_ : *default_instance_->blob_; +} +inline ::bgs::protocol::account::v1::GameAccountBlob* GetGameAccountResponse::mutable_blob() { + set_has_blob(); + if (blob_ == NULL) blob_ = new ::bgs::protocol::account::v1::GameAccountBlob; + // @@protoc_insertion_point(field_mutable:bgs.protocol.account.v1.GetGameAccountResponse.blob) + return blob_; +} +inline ::bgs::protocol::account::v1::GameAccountBlob* GetGameAccountResponse::release_blob() { + clear_has_blob(); + ::bgs::protocol::account::v1::GameAccountBlob* temp = blob_; + blob_ = NULL; + return temp; +} +inline void GetGameAccountResponse::set_allocated_blob(::bgs::protocol::account::v1::GameAccountBlob* blob) { + delete blob_; + blob_ = blob; + if (blob) { + set_has_blob(); + } else { + clear_has_blob(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.GetGameAccountResponse.blob) +} + +// ------------------------------------------------------------------- + // AccountStateNotification // optional .bgs.protocol.account.v1.AccountState account_state = 1; diff --git a/src/server/proto/Client/account_types.pb.cc b/src/server/proto/Client/account_types.pb.cc index 9659cfa2c84..7e6a8e1490b 100644 --- a/src/server/proto/Client/account_types.pb.cc +++ b/src/server/proto/Client/account_types.pb.cc @@ -63,6 +63,9 @@ const ::google::protobuf::internal::GeneratedMessageReflection* const ::google::protobuf::Descriptor* Identity_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* Identity_reflection_ = NULL; +const ::google::protobuf::Descriptor* AccountInfo_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AccountInfo_reflection_ = NULL; const ::google::protobuf::Descriptor* ProgramTag_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* ProgramTag_reflection_ = NULL; @@ -139,6 +142,28 @@ const ::google::protobuf::internal::GeneratedMessageReflection* const ::google::protobuf::Descriptor* AuthorizedData_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* AuthorizedData_reflection_ = NULL; +const ::google::protobuf::Descriptor* BenefactorAddress_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + BenefactorAddress_reflection_ = NULL; +const ::google::protobuf::Descriptor* ExternalBenefactorLookup_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ExternalBenefactorLookup_reflection_ = NULL; +const ::google::protobuf::Descriptor* AuthBenefactor_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AuthBenefactor_reflection_ = NULL; +const ::google::protobuf::Descriptor* ApplicationInfo_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ApplicationInfo_reflection_ = NULL; +const ::google::protobuf::Descriptor* DeductRecord_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DeductRecord_reflection_ = NULL; +const ::google::protobuf::Descriptor* IgrId_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + IgrId_reflection_ = NULL; +struct IgrIdOneofInstance { + const ::bgs::protocol::account::v1::GameAccountHandle* game_account_; + ::google::protobuf::uint32 external_id_; +}* IgrId_default_oneof_instance_ = NULL; const ::google::protobuf::EnumDescriptor* IdentityVerificationStatus_descriptor_ = NULL; } // namespace @@ -198,7 +223,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::MessageFactory::generated_factory(), sizeof(AccountCredential)); AccountBlob_descriptor_ = file->message_type(3); - static const int AccountBlob_offsets_[20] = { + static const int AccountBlob_offsets_[21] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountBlob, id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountBlob, region_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountBlob, email_), @@ -219,6 +244,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountBlob, country_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountBlob, preferred_region_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountBlob, identity_check_status_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountBlob, cais_id_), }; AccountBlob_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( @@ -360,7 +386,27 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(Identity)); - ProgramTag_descriptor_ = file->message_type(11); + AccountInfo_descriptor_ = file->message_type(11); + static const int AccountInfo_offsets_[6] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountInfo, account_paid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountInfo, country_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountInfo, battle_tag_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountInfo, manual_review_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountInfo, identity_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountInfo, account_muted_), + }; + AccountInfo_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AccountInfo_descriptor_, + AccountInfo::default_instance_, + AccountInfo_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountInfo, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountInfo, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AccountInfo)); + ProgramTag_descriptor_ = file->message_type(12); static const int ProgramTag_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProgramTag, program_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProgramTag, tag_), @@ -376,7 +422,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(ProgramTag)); - RegionTag_descriptor_ = file->message_type(12); + RegionTag_descriptor_ = file->message_type(13); static const int RegionTag_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionTag, region_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionTag, tag_), @@ -392,7 +438,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(RegionTag)); - AccountFieldTags_descriptor_ = file->message_type(13); + AccountFieldTags_descriptor_ = file->message_type(14); static const int AccountFieldTags_offsets_[6] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountFieldTags, account_level_info_tag_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountFieldTags, privacy_info_tag_), @@ -412,7 +458,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(AccountFieldTags)); - GameAccountFieldTags_descriptor_ = file->message_type(14); + GameAccountFieldTags_descriptor_ = file->message_type(15); static const int GameAccountFieldTags_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountFieldTags, game_level_info_tag_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountFieldTags, game_time_info_tag_), @@ -430,7 +476,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GameAccountFieldTags)); - AccountFieldOptions_descriptor_ = file->message_type(15); + AccountFieldOptions_descriptor_ = file->message_type(16); static const int AccountFieldOptions_offsets_[7] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountFieldOptions, all_fields_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountFieldOptions, field_account_level_info_), @@ -451,7 +497,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(AccountFieldOptions)); - GameAccountFieldOptions_descriptor_ = file->message_type(16); + GameAccountFieldOptions_descriptor_ = file->message_type(17); static const int GameAccountFieldOptions_offsets_[5] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountFieldOptions, all_fields_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountFieldOptions, field_game_level_info_), @@ -470,7 +516,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GameAccountFieldOptions)); - SubscriberReference_descriptor_ = file->message_type(17); + SubscriberReference_descriptor_ = file->message_type(18); static const int SubscriberReference_offsets_[7] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscriberReference, object_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscriberReference, entity_id_), @@ -491,7 +537,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(SubscriberReference)); - AccountLevelInfo_descriptor_ = file->message_type(18); + AccountLevelInfo_descriptor_ = file->message_type(19); static const int AccountLevelInfo_offsets_[11] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountLevelInfo, licenses_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountLevelInfo, default_currency_), @@ -516,7 +562,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(AccountLevelInfo)); - PrivacyInfo_descriptor_ = file->message_type(19); + PrivacyInfo_descriptor_ = file->message_type(20); static const int PrivacyInfo_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrivacyInfo, is_using_rid_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrivacyInfo, is_real_id_visible_for_view_friends_), @@ -535,7 +581,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::MessageFactory::generated_factory(), sizeof(PrivacyInfo)); PrivacyInfo_GameInfoPrivacy_descriptor_ = PrivacyInfo_descriptor_->enum_type(0); - ParentalControlInfo_descriptor_ = file->message_type(20); + ParentalControlInfo_descriptor_ = file->message_type(21); static const int ParentalControlInfo_offsets_[6] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParentalControlInfo, timezone_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParentalControlInfo, minutes_per_day_), @@ -555,7 +601,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(ParentalControlInfo)); - GameLevelInfo_descriptor_ = file->message_type(21); + GameLevelInfo_descriptor_ = file->message_type(22); static const int GameLevelInfo_offsets_[8] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameLevelInfo, is_trial_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameLevelInfo, is_lifetime_), @@ -577,7 +623,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GameLevelInfo)); - GameTimeInfo_descriptor_ = file->message_type(22); + GameTimeInfo_descriptor_ = file->message_type(23); static const int GameTimeInfo_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameTimeInfo, is_unlimited_play_time_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameTimeInfo, play_time_expires_), @@ -595,7 +641,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GameTimeInfo)); - GameTimeRemainingInfo_descriptor_ = file->message_type(23); + GameTimeRemainingInfo_descriptor_ = file->message_type(24); static const int GameTimeRemainingInfo_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameTimeRemainingInfo, minutes_remaining_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameTimeRemainingInfo, parental_daily_minutes_remaining_), @@ -613,7 +659,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GameTimeRemainingInfo)); - GameStatus_descriptor_ = file->message_type(24); + GameStatus_descriptor_ = file->message_type(25); static const int GameStatus_offsets_[6] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameStatus, is_suspended_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameStatus, is_banned_), @@ -633,7 +679,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GameStatus)); - RAFInfo_descriptor_ = file->message_type(25); + RAFInfo_descriptor_ = file->message_type(26); static const int RAFInfo_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RAFInfo, raf_info_), }; @@ -648,14 +694,15 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(RAFInfo)); - GameSessionInfo_descriptor_ = file->message_type(26); - static const int GameSessionInfo_offsets_[6] = { + GameSessionInfo_descriptor_ = file->message_type(27); + static const int GameSessionInfo_offsets_[7] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameSessionInfo, start_time_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameSessionInfo, location_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameSessionInfo, has_benefactor_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameSessionInfo, is_using_igr_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameSessionInfo, parental_controls_active_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameSessionInfo, start_time_sec_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameSessionInfo, igr_id_), }; GameSessionInfo_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( @@ -668,7 +715,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GameSessionInfo)); - GameSessionUpdateInfo_descriptor_ = file->message_type(27); + GameSessionUpdateInfo_descriptor_ = file->message_type(28); static const int GameSessionUpdateInfo_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameSessionUpdateInfo, cais_), }; @@ -683,7 +730,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GameSessionUpdateInfo)); - GameSessionLocation_descriptor_ = file->message_type(28); + GameSessionLocation_descriptor_ = file->message_type(29); static const int GameSessionLocation_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameSessionLocation, ip_address_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameSessionLocation, country_), @@ -700,7 +747,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GameSessionLocation)); - CAIS_descriptor_ = file->message_type(29); + CAIS_descriptor_ = file->message_type(30); static const int CAIS_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CAIS, played_minutes_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CAIS, rested_minutes_), @@ -717,7 +764,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(CAIS)); - GameAccountList_descriptor_ = file->message_type(30); + GameAccountList_descriptor_ = file->message_type(31); static const int GameAccountList_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountList, region_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountList, handle_), @@ -733,7 +780,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GameAccountList)); - AccountState_descriptor_ = file->message_type(31); + AccountState_descriptor_ = file->message_type(32); static const int AccountState_offsets_[6] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountState, account_level_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountState, privacy_info_), @@ -753,7 +800,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(AccountState)); - AccountStateTagged_descriptor_ = file->message_type(32); + AccountStateTagged_descriptor_ = file->message_type(33); static const int AccountStateTagged_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountStateTagged, account_state_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccountStateTagged, account_tags_), @@ -769,7 +816,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(AccountStateTagged)); - GameAccountState_descriptor_ = file->message_type(33); + GameAccountState_descriptor_ = file->message_type(34); static const int GameAccountState_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountState, game_level_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountState, game_time_info_), @@ -787,7 +834,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GameAccountState)); - GameAccountStateTagged_descriptor_ = file->message_type(34); + GameAccountStateTagged_descriptor_ = file->message_type(35); static const int GameAccountStateTagged_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountStateTagged, game_account_state_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountStateTagged, game_account_tags_), @@ -803,7 +850,7 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GameAccountStateTagged)); - AuthorizedData_descriptor_ = file->message_type(35); + AuthorizedData_descriptor_ = file->message_type(36); static const int AuthorizedData_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthorizedData, data_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthorizedData, license_), @@ -819,6 +866,114 @@ void protobuf_AssignDesc_account_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(AuthorizedData)); + BenefactorAddress_descriptor_ = file->message_type(37); + static const int BenefactorAddress_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BenefactorAddress, region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BenefactorAddress, igr_address_), + }; + BenefactorAddress_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + BenefactorAddress_descriptor_, + BenefactorAddress::default_instance_, + BenefactorAddress_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BenefactorAddress, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BenefactorAddress, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(BenefactorAddress)); + ExternalBenefactorLookup_descriptor_ = file->message_type(38); + static const int ExternalBenefactorLookup_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExternalBenefactorLookup, benefactor_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExternalBenefactorLookup, region_), + }; + ExternalBenefactorLookup_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ExternalBenefactorLookup_descriptor_, + ExternalBenefactorLookup::default_instance_, + ExternalBenefactorLookup_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExternalBenefactorLookup, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExternalBenefactorLookup, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ExternalBenefactorLookup)); + AuthBenefactor_descriptor_ = file->message_type(39); + static const int AuthBenefactor_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthBenefactor, igr_address_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthBenefactor, benefactor_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthBenefactor, active_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthBenefactor, last_update_time_), + }; + AuthBenefactor_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AuthBenefactor_descriptor_, + AuthBenefactor::default_instance_, + AuthBenefactor_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthBenefactor, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthBenefactor, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AuthBenefactor)); + ApplicationInfo_descriptor_ = file->message_type(40); + static const int ApplicationInfo_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ApplicationInfo, platform_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ApplicationInfo, locale_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ApplicationInfo, application_version_), + }; + ApplicationInfo_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ApplicationInfo_descriptor_, + ApplicationInfo::default_instance_, + ApplicationInfo_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ApplicationInfo, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ApplicationInfo, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ApplicationInfo)); + DeductRecord_descriptor_ = file->message_type(41); + static const int DeductRecord_offsets_[8] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeductRecord, game_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeductRecord, benefactor_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeductRecord, start_time_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeductRecord, end_time_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeductRecord, client_address_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeductRecord, application_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeductRecord, session_owner_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeductRecord, free_session_), + }; + DeductRecord_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DeductRecord_descriptor_, + DeductRecord::default_instance_, + DeductRecord_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeductRecord, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeductRecord, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DeductRecord)); + IgrId_descriptor_ = file->message_type(42); + static const int IgrId_offsets_[3] = { + PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(IgrId_default_oneof_instance_, game_account_), + PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(IgrId_default_oneof_instance_, external_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IgrId, type_), + }; + IgrId_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + IgrId_descriptor_, + IgrId::default_instance_, + IgrId_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IgrId, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IgrId, _unknown_fields_), + -1, + IgrId_default_oneof_instance_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IgrId, _oneof_case_[0]), + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(IgrId)); IdentityVerificationStatus_descriptor_ = file->enum_type(0); } @@ -855,6 +1010,8 @@ void protobuf_RegisterTypes(const ::std::string&) { ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( Identity_descriptor_, &Identity::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AccountInfo_descriptor_, &AccountInfo::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( ProgramTag_descriptor_, &ProgramTag::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( RegionTag_descriptor_, &RegionTag::default_instance()); @@ -904,6 +1061,18 @@ void protobuf_RegisterTypes(const ::std::string&) { GameAccountStateTagged_descriptor_, &GameAccountStateTagged::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( AuthorizedData_descriptor_, &AuthorizedData::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + BenefactorAddress_descriptor_, &BenefactorAddress::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ExternalBenefactorLookup_descriptor_, &ExternalBenefactorLookup::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AuthBenefactor_descriptor_, &AuthBenefactor::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ApplicationInfo_descriptor_, &ApplicationInfo::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DeductRecord_descriptor_, &DeductRecord::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + IgrId_descriptor_, &IgrId::default_instance()); } } // namespace @@ -931,6 +1100,8 @@ void protobuf_ShutdownFile_account_5ftypes_2eproto() { delete AccountReference_reflection_; delete Identity::default_instance_; delete Identity_reflection_; + delete AccountInfo::default_instance_; + delete AccountInfo_reflection_; delete ProgramTag::default_instance_; delete ProgramTag_reflection_; delete RegionTag::default_instance_; @@ -981,6 +1152,19 @@ void protobuf_ShutdownFile_account_5ftypes_2eproto() { delete GameAccountStateTagged_reflection_; delete AuthorizedData::default_instance_; delete AuthorizedData_reflection_; + delete BenefactorAddress::default_instance_; + delete BenefactorAddress_reflection_; + delete ExternalBenefactorLookup::default_instance_; + delete ExternalBenefactorLookup_reflection_; + delete AuthBenefactor::default_instance_; + delete AuthBenefactor_reflection_; + delete ApplicationInfo::default_instance_; + delete ApplicationInfo_reflection_; + delete DeductRecord::default_instance_; + delete DeductRecord_reflection_; + delete IgrId::default_instance_; + delete IgrId_default_oneof_instance_; + delete IgrId_reflection_; } void protobuf_AddDesc_account_5ftypes_2eproto() { @@ -997,7 +1181,7 @@ void protobuf_AddDesc_account_5ftypes_2eproto() { "oto\"\027\n\tAccountId\022\n\n\002id\030\001 \002(\007\"-\n\016AccountL" "icense\022\n\n\002id\030\001 \002(\r\022\017\n\007expires\030\002 \001(\004\"-\n\021A" "ccountCredential\022\n\n\002id\030\001 \002(\r\022\014\n\004data\030\002 \001" - "(\014\"\237\005\n\013AccountBlob\022\n\n\002id\030\002 \002(\007\022\016\n\006region" + "(\014\"\260\005\n\013AccountBlob\022\n\n\002id\030\002 \002(\007\022\016\n\006region" "\030\003 \002(\r\022\r\n\005email\030\004 \003(\t\022\r\n\005flags\030\005 \002(\004\022\026\n\016" "secure_release\030\006 \001(\004\022\027\n\017whitelist_start\030" "\007 \001(\004\022\025\n\rwhitelist_end\030\010 \001(\004\022\021\n\tfull_nam" @@ -1013,149 +1197,174 @@ void protobuf_AddDesc_account_5ftypes_2eproto() { "ccount.v1.ParentalControlInfo\022\017\n\007country" "\030 \001(\t\022\030\n\020preferred_region\030! \001(\r\022R\n\025iden" "tity_check_status\030\" \001(\01623.bgs.protocol.a" - "ccount.v1.IdentityVerificationStatus\"E\n\017" - "AccountBlobList\0222\n\004blob\030\001 \003(\0132$.bgs.prot" - "ocol.account.v1.AccountBlob\"@\n\021GameAccou" - "ntHandle\022\n\n\002id\030\001 \002(\007\022\017\n\007program\030\002 \002(\007\022\016\n" - "\006region\030\003 \002(\r\"a\n\017GameAccountLink\022@\n\014game" - "_account\030\001 \002(\0132*.bgs.protocol.account.v1" - ".GameAccountHandle\022\014\n\004name\030\002 \002(\t\"\327\003\n\017Gam" - "eAccountBlob\022@\n\014game_account\030\001 \002(\0132*.bgs" - ".protocol.account.v1.GameAccountHandle\022\016" - "\n\004name\030\002 \001(\t:\000\022\034\n\021realm_permissions\030\003 \001(" - "\r:\0010\022\016\n\006status\030\004 \002(\r\022\020\n\005flags\030\005 \001(\004:\0010\022\030" - "\n\rbilling_flags\030\006 \001(\r:\0010\022\030\n\020cache_expira" - "tion\030\007 \002(\004\022\037\n\027subscription_expiration\030\n " - "\001(\004\022\027\n\017units_remaining\030\013 \001(\r\022\031\n\021status_e" - "xpiration\030\014 \001(\004\022\021\n\tbox_level\030\r \001(\r\022\034\n\024bo" - "x_level_expiration\030\016 \001(\004\0229\n\010licenses\030\024 \003" - "(\0132\'.bgs.protocol.account.v1.AccountLice" - "nse\022\023\n\013raf_account\030\025 \001(\007\022\020\n\010raf_info\030\026 \001" - "(\014\022\026\n\016raf_expiration\030\027 \001(\004\"M\n\023GameAccoun" - "tBlobList\0226\n\004blob\030\001 \003(\0132(.bgs.protocol.a" - "ccount.v1.GameAccountBlob\"\220\001\n\020AccountRef" - "erence\022\n\n\002id\030\001 \001(\007\022\r\n\005email\030\002 \001(\t\022:\n\006han" - "dle\030\003 \001(\0132*.bgs.protocol.account.v1.Game" - "AccountHandle\022\022\n\nbattle_tag\030\004 \001(\t\022\021\n\006reg" - "ion\030\n \001(\r:\0010\"\253\001\n\010Identity\0223\n\007account\030\001 \001" - "(\0132\".bgs.protocol.account.v1.AccountId\022@" - "\n\014game_account\030\002 \001(\0132*.bgs.protocol.acco" - "unt.v1.GameAccountHandle\022(\n\007process\030\003 \001(" - "\0132\027.bgs.protocol.ProcessId\"*\n\nProgramTag" - "\022\017\n\007program\030\001 \001(\007\022\013\n\003tag\030\002 \001(\007\"(\n\tRegion" - "Tag\022\016\n\006region\030\001 \001(\007\022\013\n\003tag\030\002 \001(\007\"\260\002\n\020Acc" - "ountFieldTags\022\036\n\026account_level_info_tag\030" - "\002 \001(\007\022\030\n\020privacy_info_tag\030\003 \001(\007\022!\n\031paren" - "tal_control_info_tag\030\004 \001(\007\022A\n\024game_level" - "_info_tags\030\007 \003(\0132#.bgs.protocol.account." - "v1.ProgramTag\022=\n\020game_status_tags\030\t \003(\0132" - "#.bgs.protocol.account.v1.ProgramTag\022=\n\021" - "game_account_tags\030\013 \003(\0132\".bgs.protocol.a" - "ccount.v1.RegionTag\"~\n\024GameAccountFieldT" - "ags\022\033\n\023game_level_info_tag\030\002 \001(\007\022\032\n\022game" - "_time_info_tag\030\003 \001(\007\022\027\n\017game_status_tag\030" - "\004 \001(\007\022\024\n\014raf_info_tag\030\005 \001(\007\"\343\001\n\023AccountF" - "ieldOptions\022\022\n\nall_fields\030\001 \001(\010\022 \n\030field" - "_account_level_info\030\002 \001(\010\022\032\n\022field_priva" - "cy_info\030\003 \001(\010\022#\n\033field_parental_control_" - "info\030\004 \001(\010\022\035\n\025field_game_level_info\030\006 \001(" - "\010\022\031\n\021field_game_status\030\007 \001(\010\022\033\n\023field_ga" - "me_accounts\030\010 \001(\010\"\235\001\n\027GameAccountFieldOp" - "tions\022\022\n\nall_fields\030\001 \001(\010\022\035\n\025field_game_" - "level_info\030\002 \001(\010\022\034\n\024field_game_time_info" - "\030\003 \001(\010\022\031\n\021field_game_status\030\004 \001(\010\022\026\n\016fie" - "ld_raf_info\030\005 \001(\010\"\222\003\n\023SubscriberReferenc" - "e\022\024\n\tobject_id\030\001 \001(\004:\0010\022)\n\tentity_id\030\002 \001" - "(\0132\026.bgs.protocol.EntityId\022E\n\017account_op" - "tions\030\003 \001(\0132,.bgs.protocol.account.v1.Ac" - "countFieldOptions\022\?\n\014account_tags\030\004 \001(\0132" - ").bgs.protocol.account.v1.AccountFieldTa" - "gs\022N\n\024game_account_options\030\005 \001(\01320.bgs.p" - "rotocol.account.v1.GameAccountFieldOptio" - "ns\022H\n\021game_account_tags\030\006 \001(\0132-.bgs.prot" - "ocol.account.v1.GameAccountFieldTags\022\030\n\r" - "subscriber_id\030\007 \001(\004:\0010\"\334\002\n\020AccountLevelI" - "nfo\0229\n\010licenses\030\003 \003(\0132\'.bgs.protocol.acc" - "ount.v1.AccountLicense\022\030\n\020default_curren" - "cy\030\004 \001(\007\022\017\n\007country\030\005 \001(\t\022\030\n\020preferred_r" - "egion\030\006 \001(\r\022\021\n\tfull_name\030\007 \001(\t\022\022\n\nbattle" - "_tag\030\010 \001(\t\022\r\n\005muted\030\t \001(\010\022\025\n\rmanual_revi" - "ew\030\n \001(\010\022\030\n\020account_paid_any\030\013 \001(\010\022R\n\025id" - "entity_check_status\030\014 \001(\01623.bgs.protocol" - ".account.v1.IdentityVerificationStatus\022\r" - "\n\005email\030\r \001(\t\"\246\002\n\013PrivacyInfo\022\024\n\014is_usin" - "g_rid\030\003 \001(\010\022+\n#is_real_id_visible_for_vi" - "ew_friends\030\004 \001(\010\022$\n\034is_hidden_from_frien" - "d_finder\030\005 \001(\010\022`\n\021game_info_privacy\030\006 \001(" - "\01624.bgs.protocol.account.v1.PrivacyInfo." - "GameInfoPrivacy:\017PRIVACY_FRIENDS\"L\n\017Game" - "InfoPrivacy\022\016\n\nPRIVACY_ME\020\000\022\023\n\017PRIVACY_F" - "RIENDS\020\001\022\024\n\020PRIVACY_EVERYONE\020\002\"\244\001\n\023Paren" - "talControlInfo\022\020\n\010timezone\030\003 \001(\t\022\027\n\017minu" - "tes_per_day\030\004 \001(\r\022\030\n\020minutes_per_week\030\005 " - "\001(\r\022\031\n\021can_receive_voice\030\006 \001(\010\022\026\n\016can_se" - "nd_voice\030\007 \001(\010\022\025\n\rplay_schedule\030\010 \003(\010\"\323\001" - "\n\rGameLevelInfo\022\020\n\010is_trial\030\004 \001(\010\022\023\n\013is_" - "lifetime\030\005 \001(\010\022\025\n\ris_restricted\030\006 \001(\010\022\017\n" - "\007is_beta\030\007 \001(\010\022\014\n\004name\030\010 \001(\t\022\017\n\007program\030" - "\t \001(\007\0229\n\010licenses\030\n \003(\0132\'.bgs.protocol.a" - "ccount.v1.AccountLicense\022\031\n\021realm_permis" - "sions\030\013 \001(\r\"\205\001\n\014GameTimeInfo\022\036\n\026is_unlim" - "ited_play_time\030\003 \001(\010\022\031\n\021play_time_expire" - "s\030\005 \001(\004\022\027\n\017is_subscription\030\006 \001(\010\022!\n\031is_r" - "ecurring_subscription\030\007 \001(\010\"\255\001\n\025GameTime" - "RemainingInfo\022\031\n\021minutes_remaining\030\001 \001(\r" - "\022(\n parental_daily_minutes_remaining\030\002 \001" - "(\r\022)\n!parental_weekly_minutes_remaining\030" - "\003 \001(\r\022$\n\034seconds_remaining_until_kick\030\004 " - "\001(\r\"\220\001\n\nGameStatus\022\024\n\014is_suspended\030\004 \001(\010" - "\022\021\n\tis_banned\030\005 \001(\010\022\032\n\022suspension_expire" - "s\030\006 \001(\004\022\017\n\007program\030\007 \001(\007\022\021\n\tis_locked\030\010 " - "\001(\010\022\031\n\021is_bam_unlockable\030\t \001(\010\"\033\n\007RAFInf" - "o\022\020\n\010raf_info\030\001 \001(\014\"\321\001\n\017GameSessionInfo\022" - "\026\n\nstart_time\030\003 \001(\rB\002\030\001\022>\n\010location\030\004 \001(" - "\0132,.bgs.protocol.account.v1.GameSessionL" - "ocation\022\026\n\016has_benefactor\030\005 \001(\010\022\024\n\014is_us" - "ing_igr\030\006 \001(\010\022 \n\030parental_controls_activ" - "e\030\007 \001(\010\022\026\n\016start_time_sec\030\010 \001(\004\"D\n\025GameS" - "essionUpdateInfo\022+\n\004cais\030\010 \001(\0132\035.bgs.pro" - "tocol.account.v1.CAIS\"H\n\023GameSessionLoca" - "tion\022\022\n\nip_address\030\001 \001(\t\022\017\n\007country\030\002 \001(" - "\r\022\014\n\004city\030\003 \001(\t\"O\n\004CAIS\022\026\n\016played_minute" - "s\030\001 \001(\r\022\026\n\016rested_minutes\030\002 \001(\r\022\027\n\017last_" - "heard_time\030\003 \001(\004\"]\n\017GameAccountList\022\016\n\006r" - "egion\030\003 \001(\r\022:\n\006handle\030\004 \003(\0132*.bgs.protoc" - "ol.account.v1.GameAccountHandle\"\232\003\n\014Acco" - "untState\022E\n\022account_level_info\030\001 \001(\0132).b" - "gs.protocol.account.v1.AccountLevelInfo\022" - ":\n\014privacy_info\030\002 \001(\0132$.bgs.protocol.acc" - "ount.v1.PrivacyInfo\022K\n\025parental_control_" - "info\030\003 \001(\0132,.bgs.protocol.account.v1.Par" - "entalControlInfo\022\?\n\017game_level_info\030\005 \003(" - "\0132&.bgs.protocol.account.v1.GameLevelInf" - "o\0228\n\013game_status\030\006 \003(\0132#.bgs.protocol.ac" - "count.v1.GameStatus\022\?\n\rgame_accounts\030\007 \003" - "(\0132(.bgs.protocol.account.v1.GameAccount" - "List\"\223\001\n\022AccountStateTagged\022<\n\raccount_s" - "tate\030\001 \001(\0132%.bgs.protocol.account.v1.Acc" - "ountState\022\?\n\014account_tags\030\002 \001(\0132).bgs.pr" - "otocol.account.v1.AccountFieldTags\"\200\002\n\020G" - "ameAccountState\022\?\n\017game_level_info\030\001 \001(\013" - "2&.bgs.protocol.account.v1.GameLevelInfo" - "\022=\n\016game_time_info\030\002 \001(\0132%.bgs.protocol." - "account.v1.GameTimeInfo\0228\n\013game_status\030\003" - " \001(\0132#.bgs.protocol.account.v1.GameStatu" - "s\0222\n\010raf_info\030\004 \001(\0132 .bgs.protocol.accou" - "nt.v1.RAFInfo\"\251\001\n\026GameAccountStateTagged" - "\022E\n\022game_account_state\030\001 \001(\0132).bgs.proto" - "col.account.v1.GameAccountState\022H\n\021game_" - "account_tags\030\002 \001(\0132-.bgs.protocol.accoun" - "t.v1.GameAccountFieldTags\"/\n\016AuthorizedD" - "ata\022\014\n\004data\030\001 \001(\t\022\017\n\007license\030\002 \003(\r*\216\001\n\032I" - "dentityVerificationStatus\022\021\n\rIDENT_NO_DA" - "TA\020\000\022\021\n\rIDENT_PENDING\020\001\022\020\n\014IDENT_FAILED\020" - "\004\022\021\n\rIDENT_SUCCESS\020\005\022\022\n\016IDENT_SUCC_MNL\020\006" - "\022\021\n\rIDENT_UNKNOWN\020\007B\002H\001", 6543); + "ccount.v1.IdentityVerificationStatus\022\017\n\007" + "cais_id\030# \001(\t\"E\n\017AccountBlobList\0222\n\004blob" + "\030\001 \003(\0132$.bgs.protocol.account.v1.Account" + "Blob\"@\n\021GameAccountHandle\022\n\n\002id\030\001 \002(\007\022\017\n" + "\007program\030\002 \002(\007\022\016\n\006region\030\003 \002(\r\"a\n\017GameAc" + "countLink\022@\n\014game_account\030\001 \002(\0132*.bgs.pr" + "otocol.account.v1.GameAccountHandle\022\014\n\004n" + "ame\030\002 \002(\t\"\327\003\n\017GameAccountBlob\022@\n\014game_ac" + "count\030\001 \002(\0132*.bgs.protocol.account.v1.Ga" + "meAccountHandle\022\016\n\004name\030\002 \001(\t:\000\022\034\n\021realm" + "_permissions\030\003 \001(\r:\0010\022\016\n\006status\030\004 \002(\r\022\020\n" + "\005flags\030\005 \001(\004:\0010\022\030\n\rbilling_flags\030\006 \001(\r:\001" + "0\022\030\n\020cache_expiration\030\007 \002(\004\022\037\n\027subscript" + "ion_expiration\030\n \001(\004\022\027\n\017units_remaining\030" + "\013 \001(\r\022\031\n\021status_expiration\030\014 \001(\004\022\021\n\tbox_" + "level\030\r \001(\r\022\034\n\024box_level_expiration\030\016 \001(" + "\004\0229\n\010licenses\030\024 \003(\0132\'.bgs.protocol.accou" + "nt.v1.AccountLicense\022\023\n\013raf_account\030\025 \001(" + "\007\022\020\n\010raf_info\030\026 \001(\014\022\026\n\016raf_expiration\030\027 " + "\001(\004\"M\n\023GameAccountBlobList\0226\n\004blob\030\001 \003(\013" + "2(.bgs.protocol.account.v1.GameAccountBl" + "ob\"\220\001\n\020AccountReference\022\n\n\002id\030\001 \001(\007\022\r\n\005e" + "mail\030\002 \001(\t\022:\n\006handle\030\003 \001(\0132*.bgs.protoco" + "l.account.v1.GameAccountHandle\022\022\n\nbattle" + "_tag\030\004 \001(\t\022\021\n\006region\030\n \001(\r:\0010\"\253\001\n\010Identi" + "ty\0223\n\007account\030\001 \001(\0132\".bgs.protocol.accou" + "nt.v1.AccountId\022@\n\014game_account\030\002 \001(\0132*." + "bgs.protocol.account.v1.GameAccountHandl" + "e\022(\n\007process\030\003 \001(\0132\027.bgs.protocol.Proces" + "sId\"\306\001\n\013AccountInfo\022\033\n\014account_paid\030\001 \001(" + "\010:\005false\022\025\n\ncountry_id\030\002 \001(\007:\0010\022\022\n\nbattl" + "e_tag\030\003 \001(\t\022\034\n\rmanual_review\030\004 \001(\010:\005fals" + "e\0223\n\010identity\030\005 \001(\0132!.bgs.protocol.accou" + "nt.v1.Identity\022\034\n\raccount_muted\030\006 \001(\010:\005f" + "alse\"*\n\nProgramTag\022\017\n\007program\030\001 \001(\007\022\013\n\003t" + "ag\030\002 \001(\007\"(\n\tRegionTag\022\016\n\006region\030\001 \001(\007\022\013\n" + "\003tag\030\002 \001(\007\"\260\002\n\020AccountFieldTags\022\036\n\026accou" + "nt_level_info_tag\030\002 \001(\007\022\030\n\020privacy_info_" + "tag\030\003 \001(\007\022!\n\031parental_control_info_tag\030\004" + " \001(\007\022A\n\024game_level_info_tags\030\007 \003(\0132#.bgs" + ".protocol.account.v1.ProgramTag\022=\n\020game_" + "status_tags\030\t \003(\0132#.bgs.protocol.account" + ".v1.ProgramTag\022=\n\021game_account_tags\030\013 \003(" + "\0132\".bgs.protocol.account.v1.RegionTag\"~\n" + "\024GameAccountFieldTags\022\033\n\023game_level_info" + "_tag\030\002 \001(\007\022\032\n\022game_time_info_tag\030\003 \001(\007\022\027" + "\n\017game_status_tag\030\004 \001(\007\022\024\n\014raf_info_tag\030" + "\005 \001(\007\"\343\001\n\023AccountFieldOptions\022\022\n\nall_fie" + "lds\030\001 \001(\010\022 \n\030field_account_level_info\030\002 " + "\001(\010\022\032\n\022field_privacy_info\030\003 \001(\010\022#\n\033field" + "_parental_control_info\030\004 \001(\010\022\035\n\025field_ga" + "me_level_info\030\006 \001(\010\022\031\n\021field_game_status" + "\030\007 \001(\010\022\033\n\023field_game_accounts\030\010 \001(\010\"\235\001\n\027" + "GameAccountFieldOptions\022\022\n\nall_fields\030\001 " + "\001(\010\022\035\n\025field_game_level_info\030\002 \001(\010\022\034\n\024fi" + "eld_game_time_info\030\003 \001(\010\022\031\n\021field_game_s" + "tatus\030\004 \001(\010\022\026\n\016field_raf_info\030\005 \001(\010\"\222\003\n\023" + "SubscriberReference\022\024\n\tobject_id\030\001 \001(\004:\001" + "0\022)\n\tentity_id\030\002 \001(\0132\026.bgs.protocol.Enti" + "tyId\022E\n\017account_options\030\003 \001(\0132,.bgs.prot" + "ocol.account.v1.AccountFieldOptions\022\?\n\014a" + "ccount_tags\030\004 \001(\0132).bgs.protocol.account" + ".v1.AccountFieldTags\022N\n\024game_account_opt" + "ions\030\005 \001(\01320.bgs.protocol.account.v1.Gam" + "eAccountFieldOptions\022H\n\021game_account_tag" + "s\030\006 \001(\0132-.bgs.protocol.account.v1.GameAc" + "countFieldTags\022\030\n\rsubscriber_id\030\007 \001(\004:\0010" + "\"\334\002\n\020AccountLevelInfo\0229\n\010licenses\030\003 \003(\0132" + "\'.bgs.protocol.account.v1.AccountLicense" + "\022\030\n\020default_currency\030\004 \001(\007\022\017\n\007country\030\005 " + "\001(\t\022\030\n\020preferred_region\030\006 \001(\r\022\021\n\tfull_na" + "me\030\007 \001(\t\022\022\n\nbattle_tag\030\010 \001(\t\022\r\n\005muted\030\t " + "\001(\010\022\025\n\rmanual_review\030\n \001(\010\022\030\n\020account_pa" + "id_any\030\013 \001(\010\022R\n\025identity_check_status\030\014 " + "\001(\01623.bgs.protocol.account.v1.IdentityVe" + "rificationStatus\022\r\n\005email\030\r \001(\t\"\246\002\n\013Priv" + "acyInfo\022\024\n\014is_using_rid\030\003 \001(\010\022+\n#is_real" + "_id_visible_for_view_friends\030\004 \001(\010\022$\n\034is" + "_hidden_from_friend_finder\030\005 \001(\010\022`\n\021game" + "_info_privacy\030\006 \001(\01624.bgs.protocol.accou" + "nt.v1.PrivacyInfo.GameInfoPrivacy:\017PRIVA" + "CY_FRIENDS\"L\n\017GameInfoPrivacy\022\016\n\nPRIVACY" + "_ME\020\000\022\023\n\017PRIVACY_FRIENDS\020\001\022\024\n\020PRIVACY_EV" + "ERYONE\020\002\"\244\001\n\023ParentalControlInfo\022\020\n\010time" + "zone\030\003 \001(\t\022\027\n\017minutes_per_day\030\004 \001(\r\022\030\n\020m" + "inutes_per_week\030\005 \001(\r\022\031\n\021can_receive_voi" + "ce\030\006 \001(\010\022\026\n\016can_send_voice\030\007 \001(\010\022\025\n\rplay" + "_schedule\030\010 \003(\010\"\323\001\n\rGameLevelInfo\022\020\n\010is_" + "trial\030\004 \001(\010\022\023\n\013is_lifetime\030\005 \001(\010\022\025\n\ris_r" + "estricted\030\006 \001(\010\022\017\n\007is_beta\030\007 \001(\010\022\014\n\004name" + "\030\010 \001(\t\022\017\n\007program\030\t \001(\007\0229\n\010licenses\030\n \003(" + "\0132\'.bgs.protocol.account.v1.AccountLicen" + "se\022\031\n\021realm_permissions\030\013 \001(\r\"\205\001\n\014GameTi" + "meInfo\022\036\n\026is_unlimited_play_time\030\003 \001(\010\022\031" + "\n\021play_time_expires\030\005 \001(\004\022\027\n\017is_subscrip" + "tion\030\006 \001(\010\022!\n\031is_recurring_subscription\030" + "\007 \001(\010\"\255\001\n\025GameTimeRemainingInfo\022\031\n\021minut" + "es_remaining\030\001 \001(\r\022(\n parental_daily_min" + "utes_remaining\030\002 \001(\r\022)\n!parental_weekly_" + "minutes_remaining\030\003 \001(\r\022$\n\034seconds_remai" + "ning_until_kick\030\004 \001(\r\"\220\001\n\nGameStatus\022\024\n\014" + "is_suspended\030\004 \001(\010\022\021\n\tis_banned\030\005 \001(\010\022\032\n" + "\022suspension_expires\030\006 \001(\004\022\017\n\007program\030\007 \001" + "(\007\022\021\n\tis_locked\030\010 \001(\010\022\031\n\021is_bam_unlockab" + "le\030\t \001(\010\"\033\n\007RAFInfo\022\020\n\010raf_info\030\001 \001(\014\"\201\002" + "\n\017GameSessionInfo\022\026\n\nstart_time\030\003 \001(\rB\002\030" + "\001\022>\n\010location\030\004 \001(\0132,.bgs.protocol.accou" + "nt.v1.GameSessionLocation\022\026\n\016has_benefac" + "tor\030\005 \001(\010\022\024\n\014is_using_igr\030\006 \001(\010\022 \n\030paren" + "tal_controls_active\030\007 \001(\010\022\026\n\016start_time_" + "sec\030\010 \001(\004\022.\n\006igr_id\030\t \001(\0132\036.bgs.protocol" + ".account.v1.IgrId\"D\n\025GameSessionUpdateIn" + "fo\022+\n\004cais\030\010 \001(\0132\035.bgs.protocol.account." + "v1.CAIS\"H\n\023GameSessionLocation\022\022\n\nip_add" + "ress\030\001 \001(\t\022\017\n\007country\030\002 \001(\r\022\014\n\004city\030\003 \001(" + "\t\"O\n\004CAIS\022\026\n\016played_minutes\030\001 \001(\r\022\026\n\016res" + "ted_minutes\030\002 \001(\r\022\027\n\017last_heard_time\030\003 \001" + "(\004\"]\n\017GameAccountList\022\016\n\006region\030\003 \001(\r\022:\n" + "\006handle\030\004 \003(\0132*.bgs.protocol.account.v1." + "GameAccountHandle\"\232\003\n\014AccountState\022E\n\022ac" + "count_level_info\030\001 \001(\0132).bgs.protocol.ac" + "count.v1.AccountLevelInfo\022:\n\014privacy_inf" + "o\030\002 \001(\0132$.bgs.protocol.account.v1.Privac" + "yInfo\022K\n\025parental_control_info\030\003 \001(\0132,.b" + "gs.protocol.account.v1.ParentalControlIn" + "fo\022\?\n\017game_level_info\030\005 \003(\0132&.bgs.protoc" + "ol.account.v1.GameLevelInfo\0228\n\013game_stat" + "us\030\006 \003(\0132#.bgs.protocol.account.v1.GameS" + "tatus\022\?\n\rgame_accounts\030\007 \003(\0132(.bgs.proto" + "col.account.v1.GameAccountList\"\223\001\n\022Accou" + "ntStateTagged\022<\n\raccount_state\030\001 \001(\0132%.b" + "gs.protocol.account.v1.AccountState\022\?\n\014a" + "ccount_tags\030\002 \001(\0132).bgs.protocol.account" + ".v1.AccountFieldTags\"\200\002\n\020GameAccountStat" + "e\022\?\n\017game_level_info\030\001 \001(\0132&.bgs.protoco" + "l.account.v1.GameLevelInfo\022=\n\016game_time_" + "info\030\002 \001(\0132%.bgs.protocol.account.v1.Gam" + "eTimeInfo\0228\n\013game_status\030\003 \001(\0132#.bgs.pro" + "tocol.account.v1.GameStatus\0222\n\010raf_info\030" + "\004 \001(\0132 .bgs.protocol.account.v1.RAFInfo\"" + "\251\001\n\026GameAccountStateTagged\022E\n\022game_accou" + "nt_state\030\001 \001(\0132).bgs.protocol.account.v1" + ".GameAccountState\022H\n\021game_account_tags\030\002" + " \001(\0132-.bgs.protocol.account.v1.GameAccou" + "ntFieldTags\"/\n\016AuthorizedData\022\014\n\004data\030\001 " + "\001(\t\022\017\n\007license\030\002 \003(\r\"8\n\021BenefactorAddres" + "s\022\016\n\006region\030\001 \001(\r\022\023\n\013igr_address\030\002 \001(\t\"A" + "\n\030ExternalBenefactorLookup\022\025\n\rbenefactor" + "_id\030\001 \001(\007\022\016\n\006region\030\002 \001(\r\"f\n\016AuthBenefac" + "tor\022\023\n\013igr_address\030\001 \001(\t\022\025\n\rbenefactor_i" + "d\030\002 \001(\007\022\016\n\006active\030\003 \001(\010\022\030\n\020last_update_t" + "ime\030\004 \001(\004\"S\n\017ApplicationInfo\022\023\n\013platform" + "_id\030\001 \001(\007\022\016\n\006locale\030\002 \001(\007\022\033\n\023application" + "_version\030\003 \001(\005\"\277\002\n\014DeductRecord\022@\n\014game_" + "account\030\001 \001(\0132*.bgs.protocol.account.v1." + "GameAccountHandle\022>\n\nbenefactor\030\002 \001(\0132*." + "bgs.protocol.account.v1.GameAccountHandl" + "e\022\022\n\nstart_time\030\003 \001(\004\022\020\n\010end_time\030\004 \001(\004\022" + "\026\n\016client_address\030\005 \001(\t\022B\n\020application_i" + "nfo\030\006 \001(\0132(.bgs.protocol.account.v1.Appl" + "icationInfo\022\025\n\rsession_owner\030\007 \001(\t\022\024\n\014fr" + "ee_session\030\010 \001(\010\"j\n\005IgrId\022B\n\014game_accoun" + "t\030\001 \001(\0132*.bgs.protocol.account.v1.GameAc" + "countHandleH\000\022\025\n\013external_id\030\002 \001(\007H\000B\006\n\004" + "type*\216\001\n\032IdentityVerificationStatus\022\021\n\rI" + "DENT_NO_DATA\020\000\022\021\n\rIDENT_PENDING\020\001\022\020\n\014IDE" + "NT_FAILED\020\004\022\021\n\rIDENT_SUCCESS\020\005\022\022\n\016IDENT_" + "SUCC_MNL\020\006\022\021\n\rIDENT_UNKNOWN\020\007B\002H\001", 7553); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "account_types.proto", &protobuf_RegisterTypes); AccountId::default_instance_ = new AccountId(); @@ -1169,6 +1378,7 @@ void protobuf_AddDesc_account_5ftypes_2eproto() { GameAccountBlobList::default_instance_ = new GameAccountBlobList(); AccountReference::default_instance_ = new AccountReference(); Identity::default_instance_ = new Identity(); + AccountInfo::default_instance_ = new AccountInfo(); ProgramTag::default_instance_ = new ProgramTag(); RegionTag::default_instance_ = new RegionTag(); AccountFieldTags::default_instance_ = new AccountFieldTags(); @@ -1194,6 +1404,13 @@ void protobuf_AddDesc_account_5ftypes_2eproto() { GameAccountState::default_instance_ = new GameAccountState(); GameAccountStateTagged::default_instance_ = new GameAccountStateTagged(); AuthorizedData::default_instance_ = new AuthorizedData(); + BenefactorAddress::default_instance_ = new BenefactorAddress(); + ExternalBenefactorLookup::default_instance_ = new ExternalBenefactorLookup(); + AuthBenefactor::default_instance_ = new AuthBenefactor(); + ApplicationInfo::default_instance_ = new ApplicationInfo(); + DeductRecord::default_instance_ = new DeductRecord(); + IgrId::default_instance_ = new IgrId(); + IgrId_default_oneof_instance_ = new IgrIdOneofInstance; AccountId::default_instance_->InitAsDefaultInstance(); AccountLicense::default_instance_->InitAsDefaultInstance(); AccountCredential::default_instance_->InitAsDefaultInstance(); @@ -1205,6 +1422,7 @@ void protobuf_AddDesc_account_5ftypes_2eproto() { GameAccountBlobList::default_instance_->InitAsDefaultInstance(); AccountReference::default_instance_->InitAsDefaultInstance(); Identity::default_instance_->InitAsDefaultInstance(); + AccountInfo::default_instance_->InitAsDefaultInstance(); ProgramTag::default_instance_->InitAsDefaultInstance(); RegionTag::default_instance_->InitAsDefaultInstance(); AccountFieldTags::default_instance_->InitAsDefaultInstance(); @@ -1230,6 +1448,12 @@ void protobuf_AddDesc_account_5ftypes_2eproto() { GameAccountState::default_instance_->InitAsDefaultInstance(); GameAccountStateTagged::default_instance_->InitAsDefaultInstance(); AuthorizedData::default_instance_->InitAsDefaultInstance(); + BenefactorAddress::default_instance_->InitAsDefaultInstance(); + ExternalBenefactorLookup::default_instance_->InitAsDefaultInstance(); + AuthBenefactor::default_instance_->InitAsDefaultInstance(); + ApplicationInfo::default_instance_->InitAsDefaultInstance(); + DeductRecord::default_instance_->InitAsDefaultInstance(); + IgrId::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_account_5ftypes_2eproto); } @@ -2050,6 +2274,7 @@ const int AccountBlob::kParentalControlInfoFieldNumber; const int AccountBlob::kCountryFieldNumber; const int AccountBlob::kPreferredRegionFieldNumber; const int AccountBlob::kIdentityCheckStatusFieldNumber; +const int AccountBlob::kCaisIdFieldNumber; #endif // !_MSC_VER AccountBlob::AccountBlob() @@ -2088,6 +2313,7 @@ void AccountBlob::SharedCtor() { country_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); preferred_region_ = 0u; identity_check_status_ = 0; + cais_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -2106,6 +2332,9 @@ void AccountBlob::SharedDtor() { if (country_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete country_; } + if (cais_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete cais_id_; + } if (this != default_instance_) { delete parental_control_info_; } @@ -2161,7 +2390,7 @@ void AccountBlob::Clear() { } legal_locale_ = 0u; } - if (_has_bits_[16 / 32] & 983040) { + if (_has_bits_[16 / 32] & 2031616) { if (has_parental_control_info()) { if (parental_control_info_ != NULL) parental_control_info_->::bgs::protocol::account::v1::ParentalControlInfo::Clear(); } @@ -2172,6 +2401,11 @@ void AccountBlob::Clear() { } preferred_region_ = 0u; identity_check_status_ = 0; + if (has_cais_id()) { + if (cais_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + cais_id_->clear(); + } + } } #undef OFFSET_OF_FIELD_ @@ -2500,6 +2734,23 @@ bool AccountBlob::MergePartialFromCodedStream( } else { goto handle_unusual; } + if (input->ExpectTag(282)) goto parse_cais_id; + break; + } + + // optional string cais_id = 35; + case 35: { + if (tag == 282) { + parse_cais_id: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_cais_id())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->cais_id().data(), this->cais_id().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "cais_id"); + } else { + goto handle_unusual; + } if (input->ExpectAtEnd()) goto success; break; } @@ -2654,6 +2905,16 @@ void AccountBlob::SerializeWithCachedSizes( 34, this->identity_check_status(), output); } + // optional string cais_id = 35; + if (has_cais_id()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->cais_id().data(), this->cais_id().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "cais_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 35, this->cais_id(), output); + } + if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); @@ -2796,6 +3057,17 @@ void AccountBlob::SerializeWithCachedSizes( 34, this->identity_check_status(), target); } + // optional string cais_id = 35; + if (has_cais_id()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->cais_id().data(), this->cais_id().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "cais_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 35, this->cais_id(), target); + } + if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); @@ -2917,6 +3189,13 @@ int AccountBlob::ByteSize() const { ::google::protobuf::internal::WireFormatLite::EnumSize(this->identity_check_status()); } + // optional string cais_id = 35; + if (has_cais_id()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->cais_id()); + } + } // repeated string email = 4; total_size += 1 * this->email_size(); @@ -3031,6 +3310,9 @@ void AccountBlob::MergeFrom(const AccountBlob& from) { if (from.has_identity_check_status()) { set_identity_check_status(from.identity_check_status()); } + if (from.has_cais_id()) { + set_cais_id(from.cais_id()); + } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } @@ -3078,6 +3360,7 @@ void AccountBlob::Swap(AccountBlob* other) { std::swap(country_, other->country_); std::swap(preferred_region_, other->preferred_region_); std::swap(identity_check_status_, other->identity_check_status_); + std::swap(cais_id_, other->cais_id_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); @@ -5763,6 +6046,457 @@ void Identity::Swap(Identity* other) { // =================================================================== #ifndef _MSC_VER +const int AccountInfo::kAccountPaidFieldNumber; +const int AccountInfo::kCountryIdFieldNumber; +const int AccountInfo::kBattleTagFieldNumber; +const int AccountInfo::kManualReviewFieldNumber; +const int AccountInfo::kIdentityFieldNumber; +const int AccountInfo::kAccountMutedFieldNumber; +#endif // !_MSC_VER + +AccountInfo::AccountInfo() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.AccountInfo) +} + +void AccountInfo::InitAsDefaultInstance() { + identity_ = const_cast< ::bgs::protocol::account::v1::Identity*>(&::bgs::protocol::account::v1::Identity::default_instance()); +} + +AccountInfo::AccountInfo(const AccountInfo& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.account.v1.AccountInfo) +} + +void AccountInfo::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + account_paid_ = false; + country_id_ = 0u; + battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + manual_review_ = false; + identity_ = NULL; + account_muted_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AccountInfo::~AccountInfo() { + // @@protoc_insertion_point(destructor:bgs.protocol.account.v1.AccountInfo) + SharedDtor(); +} + +void AccountInfo::SharedDtor() { + if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete battle_tag_; + } + if (this != default_instance_) { + delete identity_; + } +} + +void AccountInfo::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AccountInfo::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AccountInfo_descriptor_; +} + +const AccountInfo& AccountInfo::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_account_5ftypes_2eproto(); + return *default_instance_; +} + +AccountInfo* AccountInfo::default_instance_ = NULL; + +AccountInfo* AccountInfo::New() const { + return new AccountInfo; +} + +void AccountInfo::Clear() { +#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ + &reinterpret_cast<AccountInfo*>(16)->f) - \ + reinterpret_cast<char*>(16)) + +#define ZR_(first, last) do { \ + size_t f = OFFSET_OF_FIELD_(first); \ + size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ + ::memset(&first, 0, n); \ + } while (0) + + if (_has_bits_[0 / 32] & 63) { + ZR_(country_id_, account_muted_); + if (has_battle_tag()) { + if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_->clear(); + } + } + if (has_identity()) { + if (identity_ != NULL) identity_->::bgs::protocol::account::v1::Identity::Clear(); + } + } + +#undef OFFSET_OF_FIELD_ +#undef ZR_ + + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AccountInfo::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.account.v1.AccountInfo) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool account_paid = 1 [default = false]; + case 1: { + if (tag == 8) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &account_paid_))); + set_has_account_paid(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(21)) goto parse_country_id; + break; + } + + // optional fixed32 country_id = 2 [default = 0]; + case 2: { + if (tag == 21) { + parse_country_id: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( + input, &country_id_))); + set_has_country_id(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(26)) goto parse_battle_tag; + break; + } + + // optional string battle_tag = 3; + case 3: { + if (tag == 26) { + parse_battle_tag: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_battle_tag())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->battle_tag().data(), this->battle_tag().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "battle_tag"); + } else { + goto handle_unusual; + } + if (input->ExpectTag(32)) goto parse_manual_review; + break; + } + + // optional bool manual_review = 4 [default = false]; + case 4: { + if (tag == 32) { + parse_manual_review: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &manual_review_))); + set_has_manual_review(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(42)) goto parse_identity; + break; + } + + // optional .bgs.protocol.account.v1.Identity identity = 5; + case 5: { + if (tag == 42) { + parse_identity: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_identity())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(48)) goto parse_account_muted; + break; + } + + // optional bool account_muted = 6 [default = false]; + case 6: { + if (tag == 48) { + parse_account_muted: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &account_muted_))); + set_has_account_muted(); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.account.v1.AccountInfo) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.AccountInfo) + return false; +#undef DO_ +} + +void AccountInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.AccountInfo) + // optional bool account_paid = 1 [default = false]; + if (has_account_paid()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->account_paid(), output); + } + + // optional fixed32 country_id = 2 [default = 0]; + if (has_country_id()) { + ::google::protobuf::internal::WireFormatLite::WriteFixed32(2, this->country_id(), output); + } + + // optional string battle_tag = 3; + if (has_battle_tag()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->battle_tag().data(), this->battle_tag().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "battle_tag"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->battle_tag(), output); + } + + // optional bool manual_review = 4 [default = false]; + if (has_manual_review()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->manual_review(), output); + } + + // optional .bgs.protocol.account.v1.Identity identity = 5; + if (has_identity()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->identity(), output); + } + + // optional bool account_muted = 6 [default = false]; + if (has_account_muted()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->account_muted(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.AccountInfo) +} + +::google::protobuf::uint8* AccountInfo::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.AccountInfo) + // optional bool account_paid = 1 [default = false]; + if (has_account_paid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->account_paid(), target); + } + + // optional fixed32 country_id = 2 [default = 0]; + if (has_country_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(2, this->country_id(), target); + } + + // optional string battle_tag = 3; + if (has_battle_tag()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->battle_tag().data(), this->battle_tag().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "battle_tag"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->battle_tag(), target); + } + + // optional bool manual_review = 4 [default = false]; + if (has_manual_review()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->manual_review(), target); + } + + // optional .bgs.protocol.account.v1.Identity identity = 5; + if (has_identity()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->identity(), target); + } + + // optional bool account_muted = 6 [default = false]; + if (has_account_muted()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->account_muted(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.account.v1.AccountInfo) + return target; +} + +int AccountInfo::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bool account_paid = 1 [default = false]; + if (has_account_paid()) { + total_size += 1 + 1; + } + + // optional fixed32 country_id = 2 [default = 0]; + if (has_country_id()) { + total_size += 1 + 4; + } + + // optional string battle_tag = 3; + if (has_battle_tag()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->battle_tag()); + } + + // optional bool manual_review = 4 [default = false]; + if (has_manual_review()) { + total_size += 1 + 1; + } + + // optional .bgs.protocol.account.v1.Identity identity = 5; + if (has_identity()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->identity()); + } + + // optional bool account_muted = 6 [default = false]; + if (has_account_muted()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AccountInfo::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AccountInfo* source = + ::google::protobuf::internal::dynamic_cast_if_available<const AccountInfo*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AccountInfo::MergeFrom(const AccountInfo& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_account_paid()) { + set_account_paid(from.account_paid()); + } + if (from.has_country_id()) { + set_country_id(from.country_id()); + } + if (from.has_battle_tag()) { + set_battle_tag(from.battle_tag()); + } + if (from.has_manual_review()) { + set_manual_review(from.manual_review()); + } + if (from.has_identity()) { + mutable_identity()->::bgs::protocol::account::v1::Identity::MergeFrom(from.identity()); + } + if (from.has_account_muted()) { + set_account_muted(from.account_muted()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AccountInfo::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AccountInfo::CopyFrom(const AccountInfo& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AccountInfo::IsInitialized() const { + + if (has_identity()) { + if (!this->identity().IsInitialized()) return false; + } + return true; +} + +void AccountInfo::Swap(AccountInfo* other) { + if (other != this) { + std::swap(account_paid_, other->account_paid_); + std::swap(country_id_, other->country_id_); + std::swap(battle_tag_, other->battle_tag_); + std::swap(manual_review_, other->manual_review_); + std::swap(identity_, other->identity_); + std::swap(account_muted_, other->account_muted_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AccountInfo::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AccountInfo_descriptor_; + metadata.reflection = AccountInfo_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER const int ProgramTag::kProgramFieldNumber; const int ProgramTag::kTagFieldNumber; #endif // !_MSC_VER @@ -11796,6 +12530,7 @@ const int GameSessionInfo::kHasBenefactorFieldNumber; const int GameSessionInfo::kIsUsingIgrFieldNumber; const int GameSessionInfo::kParentalControlsActiveFieldNumber; const int GameSessionInfo::kStartTimeSecFieldNumber; +const int GameSessionInfo::kIgrIdFieldNumber; #endif // !_MSC_VER GameSessionInfo::GameSessionInfo() @@ -11806,6 +12541,7 @@ GameSessionInfo::GameSessionInfo() void GameSessionInfo::InitAsDefaultInstance() { location_ = const_cast< ::bgs::protocol::account::v1::GameSessionLocation*>(&::bgs::protocol::account::v1::GameSessionLocation::default_instance()); + igr_id_ = const_cast< ::bgs::protocol::account::v1::IgrId*>(&::bgs::protocol::account::v1::IgrId::default_instance()); } GameSessionInfo::GameSessionInfo(const GameSessionInfo& from) @@ -11823,6 +12559,7 @@ void GameSessionInfo::SharedCtor() { is_using_igr_ = false; parental_controls_active_ = false; start_time_sec_ = GOOGLE_ULONGLONG(0); + igr_id_ = NULL; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -11834,6 +12571,7 @@ GameSessionInfo::~GameSessionInfo() { void GameSessionInfo::SharedDtor() { if (this != default_instance_) { delete location_; + delete igr_id_; } } @@ -11869,11 +12607,14 @@ void GameSessionInfo::Clear() { ::memset(&first, 0, n); \ } while (0) - if (_has_bits_[0 / 32] & 63) { + if (_has_bits_[0 / 32] & 127) { ZR_(start_time_, start_time_sec_); if (has_location()) { if (location_ != NULL) location_->::bgs::protocol::account::v1::GameSessionLocation::Clear(); } + if (has_igr_id()) { + if (igr_id_ != NULL) igr_id_->::bgs::protocol::account::v1::IgrId::Clear(); + } } #undef OFFSET_OF_FIELD_ @@ -11976,6 +12717,19 @@ bool GameSessionInfo::MergePartialFromCodedStream( } else { goto handle_unusual; } + if (input->ExpectTag(74)) goto parse_igr_id; + break; + } + + // optional .bgs.protocol.account.v1.IgrId igr_id = 9; + case 9: { + if (tag == 74) { + parse_igr_id: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_igr_id())); + } else { + goto handle_unusual; + } if (input->ExpectAtEnd()) goto success; break; } @@ -12036,6 +12790,12 @@ void GameSessionInfo::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->start_time_sec(), output); } + // optional .bgs.protocol.account.v1.IgrId igr_id = 9; + if (has_igr_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, this->igr_id(), output); + } + if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); @@ -12078,6 +12838,13 @@ void GameSessionInfo::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->start_time_sec(), target); } + // optional .bgs.protocol.account.v1.IgrId igr_id = 9; + if (has_igr_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 9, this->igr_id(), target); + } + if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); @@ -12126,6 +12893,13 @@ int GameSessionInfo::ByteSize() const { this->start_time_sec()); } + // optional .bgs.protocol.account.v1.IgrId igr_id = 9; + if (has_igr_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->igr_id()); + } + } if (!unknown_fields().empty()) { total_size += @@ -12171,6 +12945,9 @@ void GameSessionInfo::MergeFrom(const GameSessionInfo& from) { if (from.has_start_time_sec()) { set_start_time_sec(from.start_time_sec()); } + if (from.has_igr_id()) { + mutable_igr_id()->::bgs::protocol::account::v1::IgrId::MergeFrom(from.igr_id()); + } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } @@ -12189,6 +12966,9 @@ void GameSessionInfo::CopyFrom(const GameSessionInfo& from) { bool GameSessionInfo::IsInitialized() const { + if (has_igr_id()) { + if (!this->igr_id().IsInitialized()) return false; + } return true; } @@ -12200,6 +12980,7 @@ void GameSessionInfo::Swap(GameSessionInfo* other) { std::swap(is_using_igr_, other->is_using_igr_); std::swap(parental_controls_active_, other->parental_controls_active_); std::swap(start_time_sec_, other->start_time_sec_); + std::swap(igr_id_, other->igr_id_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); @@ -15002,6 +15783,2103 @@ void AuthorizedData::Swap(AuthorizedData* other) { } +// =================================================================== + +#ifndef _MSC_VER +const int BenefactorAddress::kRegionFieldNumber; +const int BenefactorAddress::kIgrAddressFieldNumber; +#endif // !_MSC_VER + +BenefactorAddress::BenefactorAddress() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.BenefactorAddress) +} + +void BenefactorAddress::InitAsDefaultInstance() { +} + +BenefactorAddress::BenefactorAddress(const BenefactorAddress& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.account.v1.BenefactorAddress) +} + +void BenefactorAddress::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + region_ = 0u; + igr_address_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +BenefactorAddress::~BenefactorAddress() { + // @@protoc_insertion_point(destructor:bgs.protocol.account.v1.BenefactorAddress) + SharedDtor(); +} + +void BenefactorAddress::SharedDtor() { + if (igr_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete igr_address_; + } + if (this != default_instance_) { + } +} + +void BenefactorAddress::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BenefactorAddress::descriptor() { + protobuf_AssignDescriptorsOnce(); + return BenefactorAddress_descriptor_; +} + +const BenefactorAddress& BenefactorAddress::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_account_5ftypes_2eproto(); + return *default_instance_; +} + +BenefactorAddress* BenefactorAddress::default_instance_ = NULL; + +BenefactorAddress* BenefactorAddress::New() const { + return new BenefactorAddress; +} + +void BenefactorAddress::Clear() { + if (_has_bits_[0 / 32] & 3) { + region_ = 0u; + if (has_igr_address()) { + if (igr_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + igr_address_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool BenefactorAddress::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.account.v1.BenefactorAddress) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 region = 1; + case 1: { + if (tag == 8) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, ®ion_))); + set_has_region(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(18)) goto parse_igr_address; + break; + } + + // optional string igr_address = 2; + case 2: { + if (tag == 18) { + parse_igr_address: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_igr_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->igr_address().data(), this->igr_address().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "igr_address"); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.account.v1.BenefactorAddress) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.BenefactorAddress) + return false; +#undef DO_ +} + +void BenefactorAddress::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.BenefactorAddress) + // optional uint32 region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->region(), output); + } + + // optional string igr_address = 2; + if (has_igr_address()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->igr_address().data(), this->igr_address().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "igr_address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->igr_address(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.BenefactorAddress) +} + +::google::protobuf::uint8* BenefactorAddress::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.BenefactorAddress) + // optional uint32 region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->region(), target); + } + + // optional string igr_address = 2; + if (has_igr_address()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->igr_address().data(), this->igr_address().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "igr_address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->igr_address(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.account.v1.BenefactorAddress) + return target; +} + +int BenefactorAddress::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint32 region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->region()); + } + + // optional string igr_address = 2; + if (has_igr_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->igr_address()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BenefactorAddress::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const BenefactorAddress* source = + ::google::protobuf::internal::dynamic_cast_if_available<const BenefactorAddress*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void BenefactorAddress::MergeFrom(const BenefactorAddress& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + set_region(from.region()); + } + if (from.has_igr_address()) { + set_igr_address(from.igr_address()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void BenefactorAddress::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BenefactorAddress::CopyFrom(const BenefactorAddress& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BenefactorAddress::IsInitialized() const { + + return true; +} + +void BenefactorAddress::Swap(BenefactorAddress* other) { + if (other != this) { + std::swap(region_, other->region_); + std::swap(igr_address_, other->igr_address_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata BenefactorAddress::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = BenefactorAddress_descriptor_; + metadata.reflection = BenefactorAddress_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ExternalBenefactorLookup::kBenefactorIdFieldNumber; +const int ExternalBenefactorLookup::kRegionFieldNumber; +#endif // !_MSC_VER + +ExternalBenefactorLookup::ExternalBenefactorLookup() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.ExternalBenefactorLookup) +} + +void ExternalBenefactorLookup::InitAsDefaultInstance() { +} + +ExternalBenefactorLookup::ExternalBenefactorLookup(const ExternalBenefactorLookup& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.account.v1.ExternalBenefactorLookup) +} + +void ExternalBenefactorLookup::SharedCtor() { + _cached_size_ = 0; + benefactor_id_ = 0u; + region_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ExternalBenefactorLookup::~ExternalBenefactorLookup() { + // @@protoc_insertion_point(destructor:bgs.protocol.account.v1.ExternalBenefactorLookup) + SharedDtor(); +} + +void ExternalBenefactorLookup::SharedDtor() { + if (this != default_instance_) { + } +} + +void ExternalBenefactorLookup::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ExternalBenefactorLookup::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ExternalBenefactorLookup_descriptor_; +} + +const ExternalBenefactorLookup& ExternalBenefactorLookup::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_account_5ftypes_2eproto(); + return *default_instance_; +} + +ExternalBenefactorLookup* ExternalBenefactorLookup::default_instance_ = NULL; + +ExternalBenefactorLookup* ExternalBenefactorLookup::New() const { + return new ExternalBenefactorLookup; +} + +void ExternalBenefactorLookup::Clear() { +#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ + &reinterpret_cast<ExternalBenefactorLookup*>(16)->f) - \ + reinterpret_cast<char*>(16)) + +#define ZR_(first, last) do { \ + size_t f = OFFSET_OF_FIELD_(first); \ + size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ + ::memset(&first, 0, n); \ + } while (0) + + ZR_(benefactor_id_, region_); + +#undef OFFSET_OF_FIELD_ +#undef ZR_ + + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ExternalBenefactorLookup::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.account.v1.ExternalBenefactorLookup) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional fixed32 benefactor_id = 1; + case 1: { + if (tag == 13) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( + input, &benefactor_id_))); + set_has_benefactor_id(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(16)) goto parse_region; + break; + } + + // optional uint32 region = 2; + case 2: { + if (tag == 16) { + parse_region: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, ®ion_))); + set_has_region(); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.account.v1.ExternalBenefactorLookup) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.ExternalBenefactorLookup) + return false; +#undef DO_ +} + +void ExternalBenefactorLookup::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.ExternalBenefactorLookup) + // optional fixed32 benefactor_id = 1; + if (has_benefactor_id()) { + ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->benefactor_id(), output); + } + + // optional uint32 region = 2; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->region(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.ExternalBenefactorLookup) +} + +::google::protobuf::uint8* ExternalBenefactorLookup::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.ExternalBenefactorLookup) + // optional fixed32 benefactor_id = 1; + if (has_benefactor_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->benefactor_id(), target); + } + + // optional uint32 region = 2; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->region(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.account.v1.ExternalBenefactorLookup) + return target; +} + +int ExternalBenefactorLookup::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional fixed32 benefactor_id = 1; + if (has_benefactor_id()) { + total_size += 1 + 4; + } + + // optional uint32 region = 2; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->region()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ExternalBenefactorLookup::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ExternalBenefactorLookup* source = + ::google::protobuf::internal::dynamic_cast_if_available<const ExternalBenefactorLookup*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ExternalBenefactorLookup::MergeFrom(const ExternalBenefactorLookup& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_benefactor_id()) { + set_benefactor_id(from.benefactor_id()); + } + if (from.has_region()) { + set_region(from.region()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ExternalBenefactorLookup::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExternalBenefactorLookup::CopyFrom(const ExternalBenefactorLookup& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExternalBenefactorLookup::IsInitialized() const { + + return true; +} + +void ExternalBenefactorLookup::Swap(ExternalBenefactorLookup* other) { + if (other != this) { + std::swap(benefactor_id_, other->benefactor_id_); + std::swap(region_, other->region_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ExternalBenefactorLookup::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ExternalBenefactorLookup_descriptor_; + metadata.reflection = ExternalBenefactorLookup_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int AuthBenefactor::kIgrAddressFieldNumber; +const int AuthBenefactor::kBenefactorIdFieldNumber; +const int AuthBenefactor::kActiveFieldNumber; +const int AuthBenefactor::kLastUpdateTimeFieldNumber; +#endif // !_MSC_VER + +AuthBenefactor::AuthBenefactor() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.AuthBenefactor) +} + +void AuthBenefactor::InitAsDefaultInstance() { +} + +AuthBenefactor::AuthBenefactor(const AuthBenefactor& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.account.v1.AuthBenefactor) +} + +void AuthBenefactor::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + igr_address_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + benefactor_id_ = 0u; + active_ = false; + last_update_time_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AuthBenefactor::~AuthBenefactor() { + // @@protoc_insertion_point(destructor:bgs.protocol.account.v1.AuthBenefactor) + SharedDtor(); +} + +void AuthBenefactor::SharedDtor() { + if (igr_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete igr_address_; + } + if (this != default_instance_) { + } +} + +void AuthBenefactor::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AuthBenefactor::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AuthBenefactor_descriptor_; +} + +const AuthBenefactor& AuthBenefactor::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_account_5ftypes_2eproto(); + return *default_instance_; +} + +AuthBenefactor* AuthBenefactor::default_instance_ = NULL; + +AuthBenefactor* AuthBenefactor::New() const { + return new AuthBenefactor; +} + +void AuthBenefactor::Clear() { +#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ + &reinterpret_cast<AuthBenefactor*>(16)->f) - \ + reinterpret_cast<char*>(16)) + +#define ZR_(first, last) do { \ + size_t f = OFFSET_OF_FIELD_(first); \ + size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ + ::memset(&first, 0, n); \ + } while (0) + + if (_has_bits_[0 / 32] & 15) { + ZR_(benefactor_id_, last_update_time_); + if (has_igr_address()) { + if (igr_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + igr_address_->clear(); + } + } + } + +#undef OFFSET_OF_FIELD_ +#undef ZR_ + + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AuthBenefactor::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.account.v1.AuthBenefactor) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string igr_address = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_igr_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->igr_address().data(), this->igr_address().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "igr_address"); + } else { + goto handle_unusual; + } + if (input->ExpectTag(21)) goto parse_benefactor_id; + break; + } + + // optional fixed32 benefactor_id = 2; + case 2: { + if (tag == 21) { + parse_benefactor_id: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( + input, &benefactor_id_))); + set_has_benefactor_id(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(24)) goto parse_active; + break; + } + + // optional bool active = 3; + case 3: { + if (tag == 24) { + parse_active: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &active_))); + set_has_active(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(32)) goto parse_last_update_time; + break; + } + + // optional uint64 last_update_time = 4; + case 4: { + if (tag == 32) { + parse_last_update_time: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &last_update_time_))); + set_has_last_update_time(); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.account.v1.AuthBenefactor) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.AuthBenefactor) + return false; +#undef DO_ +} + +void AuthBenefactor::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.AuthBenefactor) + // optional string igr_address = 1; + if (has_igr_address()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->igr_address().data(), this->igr_address().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "igr_address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->igr_address(), output); + } + + // optional fixed32 benefactor_id = 2; + if (has_benefactor_id()) { + ::google::protobuf::internal::WireFormatLite::WriteFixed32(2, this->benefactor_id(), output); + } + + // optional bool active = 3; + if (has_active()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->active(), output); + } + + // optional uint64 last_update_time = 4; + if (has_last_update_time()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->last_update_time(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.AuthBenefactor) +} + +::google::protobuf::uint8* AuthBenefactor::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.AuthBenefactor) + // optional string igr_address = 1; + if (has_igr_address()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->igr_address().data(), this->igr_address().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "igr_address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->igr_address(), target); + } + + // optional fixed32 benefactor_id = 2; + if (has_benefactor_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(2, this->benefactor_id(), target); + } + + // optional bool active = 3; + if (has_active()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->active(), target); + } + + // optional uint64 last_update_time = 4; + if (has_last_update_time()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->last_update_time(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.account.v1.AuthBenefactor) + return target; +} + +int AuthBenefactor::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional string igr_address = 1; + if (has_igr_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->igr_address()); + } + + // optional fixed32 benefactor_id = 2; + if (has_benefactor_id()) { + total_size += 1 + 4; + } + + // optional bool active = 3; + if (has_active()) { + total_size += 1 + 1; + } + + // optional uint64 last_update_time = 4; + if (has_last_update_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->last_update_time()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AuthBenefactor::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AuthBenefactor* source = + ::google::protobuf::internal::dynamic_cast_if_available<const AuthBenefactor*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AuthBenefactor::MergeFrom(const AuthBenefactor& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_igr_address()) { + set_igr_address(from.igr_address()); + } + if (from.has_benefactor_id()) { + set_benefactor_id(from.benefactor_id()); + } + if (from.has_active()) { + set_active(from.active()); + } + if (from.has_last_update_time()) { + set_last_update_time(from.last_update_time()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AuthBenefactor::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AuthBenefactor::CopyFrom(const AuthBenefactor& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AuthBenefactor::IsInitialized() const { + + return true; +} + +void AuthBenefactor::Swap(AuthBenefactor* other) { + if (other != this) { + std::swap(igr_address_, other->igr_address_); + std::swap(benefactor_id_, other->benefactor_id_); + std::swap(active_, other->active_); + std::swap(last_update_time_, other->last_update_time_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AuthBenefactor::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AuthBenefactor_descriptor_; + metadata.reflection = AuthBenefactor_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ApplicationInfo::kPlatformIdFieldNumber; +const int ApplicationInfo::kLocaleFieldNumber; +const int ApplicationInfo::kApplicationVersionFieldNumber; +#endif // !_MSC_VER + +ApplicationInfo::ApplicationInfo() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.ApplicationInfo) +} + +void ApplicationInfo::InitAsDefaultInstance() { +} + +ApplicationInfo::ApplicationInfo(const ApplicationInfo& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.account.v1.ApplicationInfo) +} + +void ApplicationInfo::SharedCtor() { + _cached_size_ = 0; + platform_id_ = 0u; + locale_ = 0u; + application_version_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ApplicationInfo::~ApplicationInfo() { + // @@protoc_insertion_point(destructor:bgs.protocol.account.v1.ApplicationInfo) + SharedDtor(); +} + +void ApplicationInfo::SharedDtor() { + if (this != default_instance_) { + } +} + +void ApplicationInfo::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ApplicationInfo::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ApplicationInfo_descriptor_; +} + +const ApplicationInfo& ApplicationInfo::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_account_5ftypes_2eproto(); + return *default_instance_; +} + +ApplicationInfo* ApplicationInfo::default_instance_ = NULL; + +ApplicationInfo* ApplicationInfo::New() const { + return new ApplicationInfo; +} + +void ApplicationInfo::Clear() { +#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ + &reinterpret_cast<ApplicationInfo*>(16)->f) - \ + reinterpret_cast<char*>(16)) + +#define ZR_(first, last) do { \ + size_t f = OFFSET_OF_FIELD_(first); \ + size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ + ::memset(&first, 0, n); \ + } while (0) + + ZR_(platform_id_, application_version_); + +#undef OFFSET_OF_FIELD_ +#undef ZR_ + + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ApplicationInfo::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.account.v1.ApplicationInfo) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional fixed32 platform_id = 1; + case 1: { + if (tag == 13) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( + input, &platform_id_))); + set_has_platform_id(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(21)) goto parse_locale; + break; + } + + // optional fixed32 locale = 2; + case 2: { + if (tag == 21) { + parse_locale: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( + input, &locale_))); + set_has_locale(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(24)) goto parse_application_version; + break; + } + + // optional int32 application_version = 3; + case 3: { + if (tag == 24) { + parse_application_version: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &application_version_))); + set_has_application_version(); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.account.v1.ApplicationInfo) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.ApplicationInfo) + return false; +#undef DO_ +} + +void ApplicationInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.ApplicationInfo) + // optional fixed32 platform_id = 1; + if (has_platform_id()) { + ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->platform_id(), output); + } + + // optional fixed32 locale = 2; + if (has_locale()) { + ::google::protobuf::internal::WireFormatLite::WriteFixed32(2, this->locale(), output); + } + + // optional int32 application_version = 3; + if (has_application_version()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->application_version(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.ApplicationInfo) +} + +::google::protobuf::uint8* ApplicationInfo::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.ApplicationInfo) + // optional fixed32 platform_id = 1; + if (has_platform_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->platform_id(), target); + } + + // optional fixed32 locale = 2; + if (has_locale()) { + target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(2, this->locale(), target); + } + + // optional int32 application_version = 3; + if (has_application_version()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->application_version(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.account.v1.ApplicationInfo) + return target; +} + +int ApplicationInfo::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional fixed32 platform_id = 1; + if (has_platform_id()) { + total_size += 1 + 4; + } + + // optional fixed32 locale = 2; + if (has_locale()) { + total_size += 1 + 4; + } + + // optional int32 application_version = 3; + if (has_application_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->application_version()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ApplicationInfo::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ApplicationInfo* source = + ::google::protobuf::internal::dynamic_cast_if_available<const ApplicationInfo*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ApplicationInfo::MergeFrom(const ApplicationInfo& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_platform_id()) { + set_platform_id(from.platform_id()); + } + if (from.has_locale()) { + set_locale(from.locale()); + } + if (from.has_application_version()) { + set_application_version(from.application_version()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ApplicationInfo::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ApplicationInfo::CopyFrom(const ApplicationInfo& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ApplicationInfo::IsInitialized() const { + + return true; +} + +void ApplicationInfo::Swap(ApplicationInfo* other) { + if (other != this) { + std::swap(platform_id_, other->platform_id_); + std::swap(locale_, other->locale_); + std::swap(application_version_, other->application_version_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ApplicationInfo::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ApplicationInfo_descriptor_; + metadata.reflection = ApplicationInfo_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DeductRecord::kGameAccountFieldNumber; +const int DeductRecord::kBenefactorFieldNumber; +const int DeductRecord::kStartTimeFieldNumber; +const int DeductRecord::kEndTimeFieldNumber; +const int DeductRecord::kClientAddressFieldNumber; +const int DeductRecord::kApplicationInfoFieldNumber; +const int DeductRecord::kSessionOwnerFieldNumber; +const int DeductRecord::kFreeSessionFieldNumber; +#endif // !_MSC_VER + +DeductRecord::DeductRecord() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.DeductRecord) +} + +void DeductRecord::InitAsDefaultInstance() { + game_account_ = const_cast< ::bgs::protocol::account::v1::GameAccountHandle*>(&::bgs::protocol::account::v1::GameAccountHandle::default_instance()); + benefactor_ = const_cast< ::bgs::protocol::account::v1::GameAccountHandle*>(&::bgs::protocol::account::v1::GameAccountHandle::default_instance()); + application_info_ = const_cast< ::bgs::protocol::account::v1::ApplicationInfo*>(&::bgs::protocol::account::v1::ApplicationInfo::default_instance()); +} + +DeductRecord::DeductRecord(const DeductRecord& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.account.v1.DeductRecord) +} + +void DeductRecord::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + game_account_ = NULL; + benefactor_ = NULL; + start_time_ = GOOGLE_ULONGLONG(0); + end_time_ = GOOGLE_ULONGLONG(0); + client_address_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + application_info_ = NULL; + session_owner_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + free_session_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DeductRecord::~DeductRecord() { + // @@protoc_insertion_point(destructor:bgs.protocol.account.v1.DeductRecord) + SharedDtor(); +} + +void DeductRecord::SharedDtor() { + if (client_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete client_address_; + } + if (session_owner_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete session_owner_; + } + if (this != default_instance_) { + delete game_account_; + delete benefactor_; + delete application_info_; + } +} + +void DeductRecord::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DeductRecord::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DeductRecord_descriptor_; +} + +const DeductRecord& DeductRecord::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_account_5ftypes_2eproto(); + return *default_instance_; +} + +DeductRecord* DeductRecord::default_instance_ = NULL; + +DeductRecord* DeductRecord::New() const { + return new DeductRecord; +} + +void DeductRecord::Clear() { +#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ + &reinterpret_cast<DeductRecord*>(16)->f) - \ + reinterpret_cast<char*>(16)) + +#define ZR_(first, last) do { \ + size_t f = OFFSET_OF_FIELD_(first); \ + size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ + ::memset(&first, 0, n); \ + } while (0) + + if (_has_bits_[0 / 32] & 255) { + ZR_(start_time_, end_time_); + if (has_game_account()) { + if (game_account_ != NULL) game_account_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + } + if (has_benefactor()) { + if (benefactor_ != NULL) benefactor_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + } + if (has_client_address()) { + if (client_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + client_address_->clear(); + } + } + if (has_application_info()) { + if (application_info_ != NULL) application_info_->::bgs::protocol::account::v1::ApplicationInfo::Clear(); + } + if (has_session_owner()) { + if (session_owner_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + session_owner_->clear(); + } + } + free_session_ = false; + } + +#undef OFFSET_OF_FIELD_ +#undef ZR_ + + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DeductRecord::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.account.v1.DeductRecord) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_game_account())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(18)) goto parse_benefactor; + break; + } + + // optional .bgs.protocol.account.v1.GameAccountHandle benefactor = 2; + case 2: { + if (tag == 18) { + parse_benefactor: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_benefactor())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(24)) goto parse_start_time; + break; + } + + // optional uint64 start_time = 3; + case 3: { + if (tag == 24) { + parse_start_time: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &start_time_))); + set_has_start_time(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(32)) goto parse_end_time; + break; + } + + // optional uint64 end_time = 4; + case 4: { + if (tag == 32) { + parse_end_time: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &end_time_))); + set_has_end_time(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(42)) goto parse_client_address; + break; + } + + // optional string client_address = 5; + case 5: { + if (tag == 42) { + parse_client_address: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_client_address())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->client_address().data(), this->client_address().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "client_address"); + } else { + goto handle_unusual; + } + if (input->ExpectTag(50)) goto parse_application_info; + break; + } + + // optional .bgs.protocol.account.v1.ApplicationInfo application_info = 6; + case 6: { + if (tag == 50) { + parse_application_info: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_application_info())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(58)) goto parse_session_owner; + break; + } + + // optional string session_owner = 7; + case 7: { + if (tag == 58) { + parse_session_owner: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_session_owner())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->session_owner().data(), this->session_owner().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "session_owner"); + } else { + goto handle_unusual; + } + if (input->ExpectTag(64)) goto parse_free_session; + break; + } + + // optional bool free_session = 8; + case 8: { + if (tag == 64) { + parse_free_session: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &free_session_))); + set_has_free_session(); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.account.v1.DeductRecord) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.DeductRecord) + return false; +#undef DO_ +} + +void DeductRecord::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.DeductRecord) + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + if (has_game_account()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->game_account(), output); + } + + // optional .bgs.protocol.account.v1.GameAccountHandle benefactor = 2; + if (has_benefactor()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->benefactor(), output); + } + + // optional uint64 start_time = 3; + if (has_start_time()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->start_time(), output); + } + + // optional uint64 end_time = 4; + if (has_end_time()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->end_time(), output); + } + + // optional string client_address = 5; + if (has_client_address()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->client_address().data(), this->client_address().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "client_address"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->client_address(), output); + } + + // optional .bgs.protocol.account.v1.ApplicationInfo application_info = 6; + if (has_application_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->application_info(), output); + } + + // optional string session_owner = 7; + if (has_session_owner()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->session_owner().data(), this->session_owner().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "session_owner"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 7, this->session_owner(), output); + } + + // optional bool free_session = 8; + if (has_free_session()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->free_session(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.DeductRecord) +} + +::google::protobuf::uint8* DeductRecord::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.DeductRecord) + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + if (has_game_account()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->game_account(), target); + } + + // optional .bgs.protocol.account.v1.GameAccountHandle benefactor = 2; + if (has_benefactor()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->benefactor(), target); + } + + // optional uint64 start_time = 3; + if (has_start_time()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->start_time(), target); + } + + // optional uint64 end_time = 4; + if (has_end_time()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->end_time(), target); + } + + // optional string client_address = 5; + if (has_client_address()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->client_address().data(), this->client_address().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "client_address"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->client_address(), target); + } + + // optional .bgs.protocol.account.v1.ApplicationInfo application_info = 6; + if (has_application_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 6, this->application_info(), target); + } + + // optional string session_owner = 7; + if (has_session_owner()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->session_owner().data(), this->session_owner().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "session_owner"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 7, this->session_owner(), target); + } + + // optional bool free_session = 8; + if (has_free_session()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->free_session(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.account.v1.DeductRecord) + return target; +} + +int DeductRecord::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + if (has_game_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->game_account()); + } + + // optional .bgs.protocol.account.v1.GameAccountHandle benefactor = 2; + if (has_benefactor()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->benefactor()); + } + + // optional uint64 start_time = 3; + if (has_start_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->start_time()); + } + + // optional uint64 end_time = 4; + if (has_end_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->end_time()); + } + + // optional string client_address = 5; + if (has_client_address()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->client_address()); + } + + // optional .bgs.protocol.account.v1.ApplicationInfo application_info = 6; + if (has_application_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->application_info()); + } + + // optional string session_owner = 7; + if (has_session_owner()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->session_owner()); + } + + // optional bool free_session = 8; + if (has_free_session()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DeductRecord::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DeductRecord* source = + ::google::protobuf::internal::dynamic_cast_if_available<const DeductRecord*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DeductRecord::MergeFrom(const DeductRecord& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_game_account()) { + mutable_game_account()->::bgs::protocol::account::v1::GameAccountHandle::MergeFrom(from.game_account()); + } + if (from.has_benefactor()) { + mutable_benefactor()->::bgs::protocol::account::v1::GameAccountHandle::MergeFrom(from.benefactor()); + } + if (from.has_start_time()) { + set_start_time(from.start_time()); + } + if (from.has_end_time()) { + set_end_time(from.end_time()); + } + if (from.has_client_address()) { + set_client_address(from.client_address()); + } + if (from.has_application_info()) { + mutable_application_info()->::bgs::protocol::account::v1::ApplicationInfo::MergeFrom(from.application_info()); + } + if (from.has_session_owner()) { + set_session_owner(from.session_owner()); + } + if (from.has_free_session()) { + set_free_session(from.free_session()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DeductRecord::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DeductRecord::CopyFrom(const DeductRecord& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeductRecord::IsInitialized() const { + + if (has_game_account()) { + if (!this->game_account().IsInitialized()) return false; + } + if (has_benefactor()) { + if (!this->benefactor().IsInitialized()) return false; + } + return true; +} + +void DeductRecord::Swap(DeductRecord* other) { + if (other != this) { + std::swap(game_account_, other->game_account_); + std::swap(benefactor_, other->benefactor_); + std::swap(start_time_, other->start_time_); + std::swap(end_time_, other->end_time_); + std::swap(client_address_, other->client_address_); + std::swap(application_info_, other->application_info_); + std::swap(session_owner_, other->session_owner_); + std::swap(free_session_, other->free_session_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DeductRecord::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DeductRecord_descriptor_; + metadata.reflection = DeductRecord_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int IgrId::kGameAccountFieldNumber; +const int IgrId::kExternalIdFieldNumber; +#endif // !_MSC_VER + +IgrId::IgrId() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.account.v1.IgrId) +} + +void IgrId::InitAsDefaultInstance() { + IgrId_default_oneof_instance_->game_account_ = const_cast< ::bgs::protocol::account::v1::GameAccountHandle*>(&::bgs::protocol::account::v1::GameAccountHandle::default_instance()); + IgrId_default_oneof_instance_->external_id_ = 0u; +} + +IgrId::IgrId(const IgrId& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.account.v1.IgrId) +} + +void IgrId::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + clear_has_type(); +} + +IgrId::~IgrId() { + // @@protoc_insertion_point(destructor:bgs.protocol.account.v1.IgrId) + SharedDtor(); +} + +void IgrId::SharedDtor() { + if (has_type()) { + clear_type(); + } + if (this != default_instance_) { + } +} + +void IgrId::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* IgrId::descriptor() { + protobuf_AssignDescriptorsOnce(); + return IgrId_descriptor_; +} + +const IgrId& IgrId::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_account_5ftypes_2eproto(); + return *default_instance_; +} + +IgrId* IgrId::default_instance_ = NULL; + +IgrId* IgrId::New() const { + return new IgrId; +} + +void IgrId::clear_type() { + switch(type_case()) { + case kGameAccount: { + delete type_.game_account_; + break; + } + case kExternalId: { + // No need to clear + break; + } + case TYPE_NOT_SET: { + break; + } + } + _oneof_case_[0] = TYPE_NOT_SET; +} + + +void IgrId::Clear() { + clear_type(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool IgrId::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.account.v1.IgrId) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_game_account())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(21)) goto parse_external_id; + break; + } + + // optional fixed32 external_id = 2; + case 2: { + if (tag == 21) { + parse_external_id: + clear_type(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( + input, &type_.external_id_))); + set_has_external_id(); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.account.v1.IgrId) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.account.v1.IgrId) + return false; +#undef DO_ +} + +void IgrId::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.account.v1.IgrId) + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + if (has_game_account()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->game_account(), output); + } + + // optional fixed32 external_id = 2; + if (has_external_id()) { + ::google::protobuf::internal::WireFormatLite::WriteFixed32(2, this->external_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.account.v1.IgrId) +} + +::google::protobuf::uint8* IgrId::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.account.v1.IgrId) + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + if (has_game_account()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->game_account(), target); + } + + // optional fixed32 external_id = 2; + if (has_external_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(2, this->external_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.account.v1.IgrId) + return target; +} + +int IgrId::ByteSize() const { + int total_size = 0; + + switch (type_case()) { + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + case kGameAccount: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->game_account()); + break; + } + // optional fixed32 external_id = 2; + case kExternalId: { + total_size += 1 + 4; + break; + } + case TYPE_NOT_SET: { + break; + } + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void IgrId::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const IgrId* source = + ::google::protobuf::internal::dynamic_cast_if_available<const IgrId*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void IgrId::MergeFrom(const IgrId& from) { + GOOGLE_CHECK_NE(&from, this); + switch (from.type_case()) { + case kGameAccount: { + mutable_game_account()->::bgs::protocol::account::v1::GameAccountHandle::MergeFrom(from.game_account()); + break; + } + case kExternalId: { + set_external_id(from.external_id()); + break; + } + case TYPE_NOT_SET: { + break; + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void IgrId::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IgrId::CopyFrom(const IgrId& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IgrId::IsInitialized() const { + + if (has_game_account()) { + if (!this->game_account().IsInitialized()) return false; + } + return true; +} + +void IgrId::Swap(IgrId* other) { + if (other != this) { + std::swap(type_, other->type_); + std::swap(_oneof_case_[0], other->_oneof_case_[0]); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata IgrId::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = IgrId_descriptor_; + metadata.reflection = IgrId_reflection_; + return metadata; +} + + // @@protoc_insertion_point(namespace_scope) } // namespace v1 diff --git a/src/server/proto/Client/account_types.pb.h b/src/server/proto/Client/account_types.pb.h index 137b31a3c0c..86bdbbff15a 100644 --- a/src/server/proto/Client/account_types.pb.h +++ b/src/server/proto/Client/account_types.pb.h @@ -51,6 +51,7 @@ class GameAccountBlob; class GameAccountBlobList; class AccountReference; class Identity; +class AccountInfo; class ProgramTag; class RegionTag; class AccountFieldTags; @@ -76,6 +77,12 @@ class AccountStateTagged; class GameAccountState; class GameAccountStateTagged; class AuthorizedData; +class BenefactorAddress; +class ExternalBenefactorLookup; +class AuthBenefactor; +class ApplicationInfo; +class DeductRecord; +class IgrId; enum PrivacyInfo_GameInfoPrivacy { PrivacyInfo_GameInfoPrivacy_PRIVACY_ME = 0, @@ -618,6 +625,18 @@ class TC_PROTO_API AccountBlob : public ::google::protobuf::Message { inline ::bgs::protocol::account::v1::IdentityVerificationStatus identity_check_status() const; inline void set_identity_check_status(::bgs::protocol::account::v1::IdentityVerificationStatus value); + // optional string cais_id = 35; + inline bool has_cais_id() const; + inline void clear_cais_id(); + static const int kCaisIdFieldNumber = 35; + inline const ::std::string& cais_id() const; + inline void set_cais_id(const ::std::string& value); + inline void set_cais_id(const char* value); + inline void set_cais_id(const char* value, size_t size); + inline ::std::string* mutable_cais_id(); + inline ::std::string* release_cais_id(); + inline void set_allocated_cais_id(::std::string* cais_id); + // @@protoc_insertion_point(class_scope:bgs.protocol.account.v1.AccountBlob) private: inline void set_has_id(); @@ -652,6 +671,8 @@ class TC_PROTO_API AccountBlob : public ::google::protobuf::Message { inline void clear_has_preferred_region(); inline void set_has_identity_check_status(); inline void clear_has_identity_check_status(); + inline void set_has_cais_id(); + inline void clear_has_cais_id(); ::google::protobuf::UnknownFieldSet _unknown_fields_; @@ -676,6 +697,7 @@ class TC_PROTO_API AccountBlob : public ::google::protobuf::Message { ::google::protobuf::uint32 legal_locale_; ::google::protobuf::uint32 preferred_region_; ::std::string* country_; + ::std::string* cais_id_; int identity_check_status_; friend void TC_PROTO_API protobuf_AddDesc_account_5ftypes_2eproto(); friend void protobuf_AssignDesc_account_5ftypes_2eproto(); @@ -1525,6 +1547,142 @@ class TC_PROTO_API Identity : public ::google::protobuf::Message { }; // ------------------------------------------------------------------- +class TC_PROTO_API AccountInfo : public ::google::protobuf::Message { + public: + AccountInfo(); + virtual ~AccountInfo(); + + AccountInfo(const AccountInfo& from); + + inline AccountInfo& operator=(const AccountInfo& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AccountInfo& default_instance(); + + void Swap(AccountInfo* other); + + // implements Message ---------------------------------------------- + + AccountInfo* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AccountInfo& from); + void MergeFrom(const AccountInfo& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bool account_paid = 1 [default = false]; + inline bool has_account_paid() const; + inline void clear_account_paid(); + static const int kAccountPaidFieldNumber = 1; + inline bool account_paid() const; + inline void set_account_paid(bool value); + + // optional fixed32 country_id = 2 [default = 0]; + inline bool has_country_id() const; + inline void clear_country_id(); + static const int kCountryIdFieldNumber = 2; + inline ::google::protobuf::uint32 country_id() const; + inline void set_country_id(::google::protobuf::uint32 value); + + // optional string battle_tag = 3; + inline bool has_battle_tag() const; + inline void clear_battle_tag(); + static const int kBattleTagFieldNumber = 3; + inline const ::std::string& battle_tag() const; + inline void set_battle_tag(const ::std::string& value); + inline void set_battle_tag(const char* value); + inline void set_battle_tag(const char* value, size_t size); + inline ::std::string* mutable_battle_tag(); + inline ::std::string* release_battle_tag(); + inline void set_allocated_battle_tag(::std::string* battle_tag); + + // optional bool manual_review = 4 [default = false]; + inline bool has_manual_review() const; + inline void clear_manual_review(); + static const int kManualReviewFieldNumber = 4; + inline bool manual_review() const; + inline void set_manual_review(bool value); + + // optional .bgs.protocol.account.v1.Identity identity = 5; + inline bool has_identity() const; + inline void clear_identity(); + static const int kIdentityFieldNumber = 5; + inline const ::bgs::protocol::account::v1::Identity& identity() const; + inline ::bgs::protocol::account::v1::Identity* mutable_identity(); + inline ::bgs::protocol::account::v1::Identity* release_identity(); + inline void set_allocated_identity(::bgs::protocol::account::v1::Identity* identity); + + // optional bool account_muted = 6 [default = false]; + inline bool has_account_muted() const; + inline void clear_account_muted(); + static const int kAccountMutedFieldNumber = 6; + inline bool account_muted() const; + inline void set_account_muted(bool value); + + // @@protoc_insertion_point(class_scope:bgs.protocol.account.v1.AccountInfo) + private: + inline void set_has_account_paid(); + inline void clear_has_account_paid(); + inline void set_has_country_id(); + inline void clear_has_country_id(); + inline void set_has_battle_tag(); + inline void clear_has_battle_tag(); + inline void set_has_manual_review(); + inline void clear_has_manual_review(); + inline void set_has_identity(); + inline void clear_has_identity(); + inline void set_has_account_muted(); + inline void clear_has_account_muted(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::std::string* battle_tag_; + ::google::protobuf::uint32 country_id_; + bool account_paid_; + bool manual_review_; + bool account_muted_; + ::bgs::protocol::account::v1::Identity* identity_; + friend void TC_PROTO_API protobuf_AddDesc_account_5ftypes_2eproto(); + friend void protobuf_AssignDesc_account_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_account_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static AccountInfo* default_instance_; +}; +// ------------------------------------------------------------------- + class TC_PROTO_API ProgramTag : public ::google::protobuf::Message { public: ProgramTag(); @@ -3515,6 +3673,15 @@ class TC_PROTO_API GameSessionInfo : public ::google::protobuf::Message { inline ::google::protobuf::uint64 start_time_sec() const; inline void set_start_time_sec(::google::protobuf::uint64 value); + // optional .bgs.protocol.account.v1.IgrId igr_id = 9; + inline bool has_igr_id() const; + inline void clear_igr_id(); + static const int kIgrIdFieldNumber = 9; + inline const ::bgs::protocol::account::v1::IgrId& igr_id() const; + inline ::bgs::protocol::account::v1::IgrId* mutable_igr_id(); + inline ::bgs::protocol::account::v1::IgrId* release_igr_id(); + inline void set_allocated_igr_id(::bgs::protocol::account::v1::IgrId* igr_id); + // @@protoc_insertion_point(class_scope:bgs.protocol.account.v1.GameSessionInfo) private: inline void set_has_start_time(); @@ -3529,6 +3696,8 @@ class TC_PROTO_API GameSessionInfo : public ::google::protobuf::Message { inline void clear_has_parental_controls_active(); inline void set_has_start_time_sec(); inline void clear_has_start_time_sec(); + inline void set_has_igr_id(); + inline void clear_has_igr_id(); ::google::protobuf::UnknownFieldSet _unknown_fields_; @@ -3540,6 +3709,7 @@ class TC_PROTO_API GameSessionInfo : public ::google::protobuf::Message { bool is_using_igr_; bool parental_controls_active_; ::google::protobuf::uint64 start_time_sec_; + ::bgs::protocol::account::v1::IgrId* igr_id_; friend void TC_PROTO_API protobuf_AddDesc_account_5ftypes_2eproto(); friend void protobuf_AssignDesc_account_5ftypes_2eproto(); friend void protobuf_ShutdownFile_account_5ftypes_2eproto(); @@ -4472,6 +4642,671 @@ class TC_PROTO_API AuthorizedData : public ::google::protobuf::Message { void InitAsDefaultInstance(); static AuthorizedData* default_instance_; }; +// ------------------------------------------------------------------- + +class TC_PROTO_API BenefactorAddress : public ::google::protobuf::Message { + public: + BenefactorAddress(); + virtual ~BenefactorAddress(); + + BenefactorAddress(const BenefactorAddress& from); + + inline BenefactorAddress& operator=(const BenefactorAddress& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BenefactorAddress& default_instance(); + + void Swap(BenefactorAddress* other); + + // implements Message ---------------------------------------------- + + BenefactorAddress* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const BenefactorAddress& from); + void MergeFrom(const BenefactorAddress& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline ::google::protobuf::uint32 region() const; + inline void set_region(::google::protobuf::uint32 value); + + // optional string igr_address = 2; + inline bool has_igr_address() const; + inline void clear_igr_address(); + static const int kIgrAddressFieldNumber = 2; + inline const ::std::string& igr_address() const; + inline void set_igr_address(const ::std::string& value); + inline void set_igr_address(const char* value); + inline void set_igr_address(const char* value, size_t size); + inline ::std::string* mutable_igr_address(); + inline ::std::string* release_igr_address(); + inline void set_allocated_igr_address(::std::string* igr_address); + + // @@protoc_insertion_point(class_scope:bgs.protocol.account.v1.BenefactorAddress) + private: + inline void set_has_region(); + inline void clear_has_region(); + inline void set_has_igr_address(); + inline void clear_has_igr_address(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::std::string* igr_address_; + ::google::protobuf::uint32 region_; + friend void TC_PROTO_API protobuf_AddDesc_account_5ftypes_2eproto(); + friend void protobuf_AssignDesc_account_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_account_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static BenefactorAddress* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API ExternalBenefactorLookup : public ::google::protobuf::Message { + public: + ExternalBenefactorLookup(); + virtual ~ExternalBenefactorLookup(); + + ExternalBenefactorLookup(const ExternalBenefactorLookup& from); + + inline ExternalBenefactorLookup& operator=(const ExternalBenefactorLookup& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ExternalBenefactorLookup& default_instance(); + + void Swap(ExternalBenefactorLookup* other); + + // implements Message ---------------------------------------------- + + ExternalBenefactorLookup* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ExternalBenefactorLookup& from); + void MergeFrom(const ExternalBenefactorLookup& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional fixed32 benefactor_id = 1; + inline bool has_benefactor_id() const; + inline void clear_benefactor_id(); + static const int kBenefactorIdFieldNumber = 1; + inline ::google::protobuf::uint32 benefactor_id() const; + inline void set_benefactor_id(::google::protobuf::uint32 value); + + // optional uint32 region = 2; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 2; + inline ::google::protobuf::uint32 region() const; + inline void set_region(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:bgs.protocol.account.v1.ExternalBenefactorLookup) + private: + inline void set_has_benefactor_id(); + inline void clear_has_benefactor_id(); + inline void set_has_region(); + inline void clear_has_region(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::google::protobuf::uint32 benefactor_id_; + ::google::protobuf::uint32 region_; + friend void TC_PROTO_API protobuf_AddDesc_account_5ftypes_2eproto(); + friend void protobuf_AssignDesc_account_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_account_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static ExternalBenefactorLookup* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API AuthBenefactor : public ::google::protobuf::Message { + public: + AuthBenefactor(); + virtual ~AuthBenefactor(); + + AuthBenefactor(const AuthBenefactor& from); + + inline AuthBenefactor& operator=(const AuthBenefactor& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AuthBenefactor& default_instance(); + + void Swap(AuthBenefactor* other); + + // implements Message ---------------------------------------------- + + AuthBenefactor* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AuthBenefactor& from); + void MergeFrom(const AuthBenefactor& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string igr_address = 1; + inline bool has_igr_address() const; + inline void clear_igr_address(); + static const int kIgrAddressFieldNumber = 1; + inline const ::std::string& igr_address() const; + inline void set_igr_address(const ::std::string& value); + inline void set_igr_address(const char* value); + inline void set_igr_address(const char* value, size_t size); + inline ::std::string* mutable_igr_address(); + inline ::std::string* release_igr_address(); + inline void set_allocated_igr_address(::std::string* igr_address); + + // optional fixed32 benefactor_id = 2; + inline bool has_benefactor_id() const; + inline void clear_benefactor_id(); + static const int kBenefactorIdFieldNumber = 2; + inline ::google::protobuf::uint32 benefactor_id() const; + inline void set_benefactor_id(::google::protobuf::uint32 value); + + // optional bool active = 3; + inline bool has_active() const; + inline void clear_active(); + static const int kActiveFieldNumber = 3; + inline bool active() const; + inline void set_active(bool value); + + // optional uint64 last_update_time = 4; + inline bool has_last_update_time() const; + inline void clear_last_update_time(); + static const int kLastUpdateTimeFieldNumber = 4; + inline ::google::protobuf::uint64 last_update_time() const; + inline void set_last_update_time(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:bgs.protocol.account.v1.AuthBenefactor) + private: + inline void set_has_igr_address(); + inline void clear_has_igr_address(); + inline void set_has_benefactor_id(); + inline void clear_has_benefactor_id(); + inline void set_has_active(); + inline void clear_has_active(); + inline void set_has_last_update_time(); + inline void clear_has_last_update_time(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::std::string* igr_address_; + ::google::protobuf::uint32 benefactor_id_; + bool active_; + ::google::protobuf::uint64 last_update_time_; + friend void TC_PROTO_API protobuf_AddDesc_account_5ftypes_2eproto(); + friend void protobuf_AssignDesc_account_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_account_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static AuthBenefactor* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API ApplicationInfo : public ::google::protobuf::Message { + public: + ApplicationInfo(); + virtual ~ApplicationInfo(); + + ApplicationInfo(const ApplicationInfo& from); + + inline ApplicationInfo& operator=(const ApplicationInfo& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ApplicationInfo& default_instance(); + + void Swap(ApplicationInfo* other); + + // implements Message ---------------------------------------------- + + ApplicationInfo* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ApplicationInfo& from); + void MergeFrom(const ApplicationInfo& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional fixed32 platform_id = 1; + inline bool has_platform_id() const; + inline void clear_platform_id(); + static const int kPlatformIdFieldNumber = 1; + inline ::google::protobuf::uint32 platform_id() const; + inline void set_platform_id(::google::protobuf::uint32 value); + + // optional fixed32 locale = 2; + inline bool has_locale() const; + inline void clear_locale(); + static const int kLocaleFieldNumber = 2; + inline ::google::protobuf::uint32 locale() const; + inline void set_locale(::google::protobuf::uint32 value); + + // optional int32 application_version = 3; + inline bool has_application_version() const; + inline void clear_application_version(); + static const int kApplicationVersionFieldNumber = 3; + inline ::google::protobuf::int32 application_version() const; + inline void set_application_version(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:bgs.protocol.account.v1.ApplicationInfo) + private: + inline void set_has_platform_id(); + inline void clear_has_platform_id(); + inline void set_has_locale(); + inline void clear_has_locale(); + inline void set_has_application_version(); + inline void clear_has_application_version(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::google::protobuf::uint32 platform_id_; + ::google::protobuf::uint32 locale_; + ::google::protobuf::int32 application_version_; + friend void TC_PROTO_API protobuf_AddDesc_account_5ftypes_2eproto(); + friend void protobuf_AssignDesc_account_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_account_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static ApplicationInfo* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API DeductRecord : public ::google::protobuf::Message { + public: + DeductRecord(); + virtual ~DeductRecord(); + + DeductRecord(const DeductRecord& from); + + inline DeductRecord& operator=(const DeductRecord& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DeductRecord& default_instance(); + + void Swap(DeductRecord* other); + + // implements Message ---------------------------------------------- + + DeductRecord* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DeductRecord& from); + void MergeFrom(const DeductRecord& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + inline bool has_game_account() const; + inline void clear_game_account(); + static const int kGameAccountFieldNumber = 1; + inline const ::bgs::protocol::account::v1::GameAccountHandle& game_account() const; + inline ::bgs::protocol::account::v1::GameAccountHandle* mutable_game_account(); + inline ::bgs::protocol::account::v1::GameAccountHandle* release_game_account(); + inline void set_allocated_game_account(::bgs::protocol::account::v1::GameAccountHandle* game_account); + + // optional .bgs.protocol.account.v1.GameAccountHandle benefactor = 2; + inline bool has_benefactor() const; + inline void clear_benefactor(); + static const int kBenefactorFieldNumber = 2; + inline const ::bgs::protocol::account::v1::GameAccountHandle& benefactor() const; + inline ::bgs::protocol::account::v1::GameAccountHandle* mutable_benefactor(); + inline ::bgs::protocol::account::v1::GameAccountHandle* release_benefactor(); + inline void set_allocated_benefactor(::bgs::protocol::account::v1::GameAccountHandle* benefactor); + + // optional uint64 start_time = 3; + inline bool has_start_time() const; + inline void clear_start_time(); + static const int kStartTimeFieldNumber = 3; + inline ::google::protobuf::uint64 start_time() const; + inline void set_start_time(::google::protobuf::uint64 value); + + // optional uint64 end_time = 4; + inline bool has_end_time() const; + inline void clear_end_time(); + static const int kEndTimeFieldNumber = 4; + inline ::google::protobuf::uint64 end_time() const; + inline void set_end_time(::google::protobuf::uint64 value); + + // optional string client_address = 5; + inline bool has_client_address() const; + inline void clear_client_address(); + static const int kClientAddressFieldNumber = 5; + inline const ::std::string& client_address() const; + inline void set_client_address(const ::std::string& value); + inline void set_client_address(const char* value); + inline void set_client_address(const char* value, size_t size); + inline ::std::string* mutable_client_address(); + inline ::std::string* release_client_address(); + inline void set_allocated_client_address(::std::string* client_address); + + // optional .bgs.protocol.account.v1.ApplicationInfo application_info = 6; + inline bool has_application_info() const; + inline void clear_application_info(); + static const int kApplicationInfoFieldNumber = 6; + inline const ::bgs::protocol::account::v1::ApplicationInfo& application_info() const; + inline ::bgs::protocol::account::v1::ApplicationInfo* mutable_application_info(); + inline ::bgs::protocol::account::v1::ApplicationInfo* release_application_info(); + inline void set_allocated_application_info(::bgs::protocol::account::v1::ApplicationInfo* application_info); + + // optional string session_owner = 7; + inline bool has_session_owner() const; + inline void clear_session_owner(); + static const int kSessionOwnerFieldNumber = 7; + inline const ::std::string& session_owner() const; + inline void set_session_owner(const ::std::string& value); + inline void set_session_owner(const char* value); + inline void set_session_owner(const char* value, size_t size); + inline ::std::string* mutable_session_owner(); + inline ::std::string* release_session_owner(); + inline void set_allocated_session_owner(::std::string* session_owner); + + // optional bool free_session = 8; + inline bool has_free_session() const; + inline void clear_free_session(); + static const int kFreeSessionFieldNumber = 8; + inline bool free_session() const; + inline void set_free_session(bool value); + + // @@protoc_insertion_point(class_scope:bgs.protocol.account.v1.DeductRecord) + private: + inline void set_has_game_account(); + inline void clear_has_game_account(); + inline void set_has_benefactor(); + inline void clear_has_benefactor(); + inline void set_has_start_time(); + inline void clear_has_start_time(); + inline void set_has_end_time(); + inline void clear_has_end_time(); + inline void set_has_client_address(); + inline void clear_has_client_address(); + inline void set_has_application_info(); + inline void clear_has_application_info(); + inline void set_has_session_owner(); + inline void clear_has_session_owner(); + inline void set_has_free_session(); + inline void clear_has_free_session(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::account::v1::GameAccountHandle* game_account_; + ::bgs::protocol::account::v1::GameAccountHandle* benefactor_; + ::google::protobuf::uint64 start_time_; + ::google::protobuf::uint64 end_time_; + ::std::string* client_address_; + ::bgs::protocol::account::v1::ApplicationInfo* application_info_; + ::std::string* session_owner_; + bool free_session_; + friend void TC_PROTO_API protobuf_AddDesc_account_5ftypes_2eproto(); + friend void protobuf_AssignDesc_account_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_account_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static DeductRecord* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API IgrId : public ::google::protobuf::Message { + public: + IgrId(); + virtual ~IgrId(); + + IgrId(const IgrId& from); + + inline IgrId& operator=(const IgrId& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const IgrId& default_instance(); + + enum TypeCase { + kGameAccount = 1, + kExternalId = 2, + TYPE_NOT_SET = 0, + }; + + void Swap(IgrId* other); + + // implements Message ---------------------------------------------- + + IgrId* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const IgrId& from); + void MergeFrom(const IgrId& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; + inline bool has_game_account() const; + inline void clear_game_account(); + static const int kGameAccountFieldNumber = 1; + inline const ::bgs::protocol::account::v1::GameAccountHandle& game_account() const; + inline ::bgs::protocol::account::v1::GameAccountHandle* mutable_game_account(); + inline ::bgs::protocol::account::v1::GameAccountHandle* release_game_account(); + inline void set_allocated_game_account(::bgs::protocol::account::v1::GameAccountHandle* game_account); + + // optional fixed32 external_id = 2; + inline bool has_external_id() const; + inline void clear_external_id(); + static const int kExternalIdFieldNumber = 2; + inline ::google::protobuf::uint32 external_id() const; + inline void set_external_id(::google::protobuf::uint32 value); + + inline TypeCase type_case() const; + // @@protoc_insertion_point(class_scope:bgs.protocol.account.v1.IgrId) + private: + inline void set_has_game_account(); + inline void set_has_external_id(); + + inline bool has_type(); + void clear_type(); + inline void clear_has_type(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + union TypeUnion { + ::bgs::protocol::account::v1::GameAccountHandle* game_account_; + ::google::protobuf::uint32 external_id_; + } type_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend void TC_PROTO_API protobuf_AddDesc_account_5ftypes_2eproto(); + friend void protobuf_AssignDesc_account_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_account_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static IgrId* default_instance_; +}; // =================================================================== @@ -5368,6 +6203,82 @@ inline void AccountBlob::set_identity_check_status(::bgs::protocol::account::v1: // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.AccountBlob.identity_check_status) } +// optional string cais_id = 35; +inline bool AccountBlob::has_cais_id() const { + return (_has_bits_[0] & 0x00100000u) != 0; +} +inline void AccountBlob::set_has_cais_id() { + _has_bits_[0] |= 0x00100000u; +} +inline void AccountBlob::clear_has_cais_id() { + _has_bits_[0] &= ~0x00100000u; +} +inline void AccountBlob::clear_cais_id() { + if (cais_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + cais_id_->clear(); + } + clear_has_cais_id(); +} +inline const ::std::string& AccountBlob::cais_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.AccountBlob.cais_id) + return *cais_id_; +} +inline void AccountBlob::set_cais_id(const ::std::string& value) { + set_has_cais_id(); + if (cais_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + cais_id_ = new ::std::string; + } + cais_id_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.AccountBlob.cais_id) +} +inline void AccountBlob::set_cais_id(const char* value) { + set_has_cais_id(); + if (cais_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + cais_id_ = new ::std::string; + } + cais_id_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.account.v1.AccountBlob.cais_id) +} +inline void AccountBlob::set_cais_id(const char* value, size_t size) { + set_has_cais_id(); + if (cais_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + cais_id_ = new ::std::string; + } + cais_id_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.account.v1.AccountBlob.cais_id) +} +inline ::std::string* AccountBlob::mutable_cais_id() { + set_has_cais_id(); + if (cais_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + cais_id_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.account.v1.AccountBlob.cais_id) + return cais_id_; +} +inline ::std::string* AccountBlob::release_cais_id() { + clear_has_cais_id(); + if (cais_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = cais_id_; + cais_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void AccountBlob::set_allocated_cais_id(::std::string* cais_id) { + if (cais_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete cais_id_; + } + if (cais_id) { + set_has_cais_id(); + cais_id_ = cais_id; + } else { + clear_has_cais_id(); + cais_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.AccountBlob.cais_id) +} + // ------------------------------------------------------------------- // AccountBlobList @@ -6522,6 +7433,223 @@ inline void Identity::set_allocated_process(::bgs::protocol::ProcessId* process) // ------------------------------------------------------------------- +// AccountInfo + +// optional bool account_paid = 1 [default = false]; +inline bool AccountInfo::has_account_paid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AccountInfo::set_has_account_paid() { + _has_bits_[0] |= 0x00000001u; +} +inline void AccountInfo::clear_has_account_paid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AccountInfo::clear_account_paid() { + account_paid_ = false; + clear_has_account_paid(); +} +inline bool AccountInfo::account_paid() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.AccountInfo.account_paid) + return account_paid_; +} +inline void AccountInfo::set_account_paid(bool value) { + set_has_account_paid(); + account_paid_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.AccountInfo.account_paid) +} + +// optional fixed32 country_id = 2 [default = 0]; +inline bool AccountInfo::has_country_id() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void AccountInfo::set_has_country_id() { + _has_bits_[0] |= 0x00000002u; +} +inline void AccountInfo::clear_has_country_id() { + _has_bits_[0] &= ~0x00000002u; +} +inline void AccountInfo::clear_country_id() { + country_id_ = 0u; + clear_has_country_id(); +} +inline ::google::protobuf::uint32 AccountInfo::country_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.AccountInfo.country_id) + return country_id_; +} +inline void AccountInfo::set_country_id(::google::protobuf::uint32 value) { + set_has_country_id(); + country_id_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.AccountInfo.country_id) +} + +// optional string battle_tag = 3; +inline bool AccountInfo::has_battle_tag() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void AccountInfo::set_has_battle_tag() { + _has_bits_[0] |= 0x00000004u; +} +inline void AccountInfo::clear_has_battle_tag() { + _has_bits_[0] &= ~0x00000004u; +} +inline void AccountInfo::clear_battle_tag() { + if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_->clear(); + } + clear_has_battle_tag(); +} +inline const ::std::string& AccountInfo::battle_tag() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.AccountInfo.battle_tag) + return *battle_tag_; +} +inline void AccountInfo::set_battle_tag(const ::std::string& value) { + set_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_ = new ::std::string; + } + battle_tag_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.AccountInfo.battle_tag) +} +inline void AccountInfo::set_battle_tag(const char* value) { + set_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_ = new ::std::string; + } + battle_tag_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.account.v1.AccountInfo.battle_tag) +} +inline void AccountInfo::set_battle_tag(const char* value, size_t size) { + set_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_ = new ::std::string; + } + battle_tag_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.account.v1.AccountInfo.battle_tag) +} +inline ::std::string* AccountInfo::mutable_battle_tag() { + set_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.account.v1.AccountInfo.battle_tag) + return battle_tag_; +} +inline ::std::string* AccountInfo::release_battle_tag() { + clear_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = battle_tag_; + battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void AccountInfo::set_allocated_battle_tag(::std::string* battle_tag) { + if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete battle_tag_; + } + if (battle_tag) { + set_has_battle_tag(); + battle_tag_ = battle_tag; + } else { + clear_has_battle_tag(); + battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.AccountInfo.battle_tag) +} + +// optional bool manual_review = 4 [default = false]; +inline bool AccountInfo::has_manual_review() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void AccountInfo::set_has_manual_review() { + _has_bits_[0] |= 0x00000008u; +} +inline void AccountInfo::clear_has_manual_review() { + _has_bits_[0] &= ~0x00000008u; +} +inline void AccountInfo::clear_manual_review() { + manual_review_ = false; + clear_has_manual_review(); +} +inline bool AccountInfo::manual_review() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.AccountInfo.manual_review) + return manual_review_; +} +inline void AccountInfo::set_manual_review(bool value) { + set_has_manual_review(); + manual_review_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.AccountInfo.manual_review) +} + +// optional .bgs.protocol.account.v1.Identity identity = 5; +inline bool AccountInfo::has_identity() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void AccountInfo::set_has_identity() { + _has_bits_[0] |= 0x00000010u; +} +inline void AccountInfo::clear_has_identity() { + _has_bits_[0] &= ~0x00000010u; +} +inline void AccountInfo::clear_identity() { + if (identity_ != NULL) identity_->::bgs::protocol::account::v1::Identity::Clear(); + clear_has_identity(); +} +inline const ::bgs::protocol::account::v1::Identity& AccountInfo::identity() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.AccountInfo.identity) + return identity_ != NULL ? *identity_ : *default_instance_->identity_; +} +inline ::bgs::protocol::account::v1::Identity* AccountInfo::mutable_identity() { + set_has_identity(); + if (identity_ == NULL) identity_ = new ::bgs::protocol::account::v1::Identity; + // @@protoc_insertion_point(field_mutable:bgs.protocol.account.v1.AccountInfo.identity) + return identity_; +} +inline ::bgs::protocol::account::v1::Identity* AccountInfo::release_identity() { + clear_has_identity(); + ::bgs::protocol::account::v1::Identity* temp = identity_; + identity_ = NULL; + return temp; +} +inline void AccountInfo::set_allocated_identity(::bgs::protocol::account::v1::Identity* identity) { + delete identity_; + identity_ = identity; + if (identity) { + set_has_identity(); + } else { + clear_has_identity(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.AccountInfo.identity) +} + +// optional bool account_muted = 6 [default = false]; +inline bool AccountInfo::has_account_muted() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void AccountInfo::set_has_account_muted() { + _has_bits_[0] |= 0x00000020u; +} +inline void AccountInfo::clear_has_account_muted() { + _has_bits_[0] &= ~0x00000020u; +} +inline void AccountInfo::clear_account_muted() { + account_muted_ = false; + clear_has_account_muted(); +} +inline bool AccountInfo::account_muted() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.AccountInfo.account_muted) + return account_muted_; +} +inline void AccountInfo::set_account_muted(bool value) { + set_has_account_muted(); + account_muted_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.AccountInfo.account_muted) +} + +// ------------------------------------------------------------------- + // ProgramTag // optional fixed32 program = 1; @@ -9080,6 +10208,47 @@ inline void GameSessionInfo::set_start_time_sec(::google::protobuf::uint64 value // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.GameSessionInfo.start_time_sec) } +// optional .bgs.protocol.account.v1.IgrId igr_id = 9; +inline bool GameSessionInfo::has_igr_id() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void GameSessionInfo::set_has_igr_id() { + _has_bits_[0] |= 0x00000040u; +} +inline void GameSessionInfo::clear_has_igr_id() { + _has_bits_[0] &= ~0x00000040u; +} +inline void GameSessionInfo::clear_igr_id() { + if (igr_id_ != NULL) igr_id_->::bgs::protocol::account::v1::IgrId::Clear(); + clear_has_igr_id(); +} +inline const ::bgs::protocol::account::v1::IgrId& GameSessionInfo::igr_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.GameSessionInfo.igr_id) + return igr_id_ != NULL ? *igr_id_ : *default_instance_->igr_id_; +} +inline ::bgs::protocol::account::v1::IgrId* GameSessionInfo::mutable_igr_id() { + set_has_igr_id(); + if (igr_id_ == NULL) igr_id_ = new ::bgs::protocol::account::v1::IgrId; + // @@protoc_insertion_point(field_mutable:bgs.protocol.account.v1.GameSessionInfo.igr_id) + return igr_id_; +} +inline ::bgs::protocol::account::v1::IgrId* GameSessionInfo::release_igr_id() { + clear_has_igr_id(); + ::bgs::protocol::account::v1::IgrId* temp = igr_id_; + igr_id_ = NULL; + return temp; +} +inline void GameSessionInfo::set_allocated_igr_id(::bgs::protocol::account::v1::IgrId* igr_id) { + delete igr_id_; + igr_id_ = igr_id; + if (igr_id) { + set_has_igr_id(); + } else { + clear_has_igr_id(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.GameSessionInfo.igr_id) +} + // ------------------------------------------------------------------- // GameSessionUpdateInfo @@ -10106,6 +11275,824 @@ AuthorizedData::mutable_license() { return &license_; } +// ------------------------------------------------------------------- + +// BenefactorAddress + +// optional uint32 region = 1; +inline bool BenefactorAddress::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BenefactorAddress::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void BenefactorAddress::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BenefactorAddress::clear_region() { + region_ = 0u; + clear_has_region(); +} +inline ::google::protobuf::uint32 BenefactorAddress::region() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.BenefactorAddress.region) + return region_; +} +inline void BenefactorAddress::set_region(::google::protobuf::uint32 value) { + set_has_region(); + region_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.BenefactorAddress.region) +} + +// optional string igr_address = 2; +inline bool BenefactorAddress::has_igr_address() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void BenefactorAddress::set_has_igr_address() { + _has_bits_[0] |= 0x00000002u; +} +inline void BenefactorAddress::clear_has_igr_address() { + _has_bits_[0] &= ~0x00000002u; +} +inline void BenefactorAddress::clear_igr_address() { + if (igr_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + igr_address_->clear(); + } + clear_has_igr_address(); +} +inline const ::std::string& BenefactorAddress::igr_address() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.BenefactorAddress.igr_address) + return *igr_address_; +} +inline void BenefactorAddress::set_igr_address(const ::std::string& value) { + set_has_igr_address(); + if (igr_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + igr_address_ = new ::std::string; + } + igr_address_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.BenefactorAddress.igr_address) +} +inline void BenefactorAddress::set_igr_address(const char* value) { + set_has_igr_address(); + if (igr_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + igr_address_ = new ::std::string; + } + igr_address_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.account.v1.BenefactorAddress.igr_address) +} +inline void BenefactorAddress::set_igr_address(const char* value, size_t size) { + set_has_igr_address(); + if (igr_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + igr_address_ = new ::std::string; + } + igr_address_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.account.v1.BenefactorAddress.igr_address) +} +inline ::std::string* BenefactorAddress::mutable_igr_address() { + set_has_igr_address(); + if (igr_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + igr_address_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.account.v1.BenefactorAddress.igr_address) + return igr_address_; +} +inline ::std::string* BenefactorAddress::release_igr_address() { + clear_has_igr_address(); + if (igr_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = igr_address_; + igr_address_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void BenefactorAddress::set_allocated_igr_address(::std::string* igr_address) { + if (igr_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete igr_address_; + } + if (igr_address) { + set_has_igr_address(); + igr_address_ = igr_address; + } else { + clear_has_igr_address(); + igr_address_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.BenefactorAddress.igr_address) +} + +// ------------------------------------------------------------------- + +// ExternalBenefactorLookup + +// optional fixed32 benefactor_id = 1; +inline bool ExternalBenefactorLookup::has_benefactor_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ExternalBenefactorLookup::set_has_benefactor_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void ExternalBenefactorLookup::clear_has_benefactor_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ExternalBenefactorLookup::clear_benefactor_id() { + benefactor_id_ = 0u; + clear_has_benefactor_id(); +} +inline ::google::protobuf::uint32 ExternalBenefactorLookup::benefactor_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.ExternalBenefactorLookup.benefactor_id) + return benefactor_id_; +} +inline void ExternalBenefactorLookup::set_benefactor_id(::google::protobuf::uint32 value) { + set_has_benefactor_id(); + benefactor_id_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.ExternalBenefactorLookup.benefactor_id) +} + +// optional uint32 region = 2; +inline bool ExternalBenefactorLookup::has_region() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ExternalBenefactorLookup::set_has_region() { + _has_bits_[0] |= 0x00000002u; +} +inline void ExternalBenefactorLookup::clear_has_region() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ExternalBenefactorLookup::clear_region() { + region_ = 0u; + clear_has_region(); +} +inline ::google::protobuf::uint32 ExternalBenefactorLookup::region() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.ExternalBenefactorLookup.region) + return region_; +} +inline void ExternalBenefactorLookup::set_region(::google::protobuf::uint32 value) { + set_has_region(); + region_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.ExternalBenefactorLookup.region) +} + +// ------------------------------------------------------------------- + +// AuthBenefactor + +// optional string igr_address = 1; +inline bool AuthBenefactor::has_igr_address() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AuthBenefactor::set_has_igr_address() { + _has_bits_[0] |= 0x00000001u; +} +inline void AuthBenefactor::clear_has_igr_address() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AuthBenefactor::clear_igr_address() { + if (igr_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + igr_address_->clear(); + } + clear_has_igr_address(); +} +inline const ::std::string& AuthBenefactor::igr_address() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.AuthBenefactor.igr_address) + return *igr_address_; +} +inline void AuthBenefactor::set_igr_address(const ::std::string& value) { + set_has_igr_address(); + if (igr_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + igr_address_ = new ::std::string; + } + igr_address_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.AuthBenefactor.igr_address) +} +inline void AuthBenefactor::set_igr_address(const char* value) { + set_has_igr_address(); + if (igr_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + igr_address_ = new ::std::string; + } + igr_address_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.account.v1.AuthBenefactor.igr_address) +} +inline void AuthBenefactor::set_igr_address(const char* value, size_t size) { + set_has_igr_address(); + if (igr_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + igr_address_ = new ::std::string; + } + igr_address_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.account.v1.AuthBenefactor.igr_address) +} +inline ::std::string* AuthBenefactor::mutable_igr_address() { + set_has_igr_address(); + if (igr_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + igr_address_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.account.v1.AuthBenefactor.igr_address) + return igr_address_; +} +inline ::std::string* AuthBenefactor::release_igr_address() { + clear_has_igr_address(); + if (igr_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = igr_address_; + igr_address_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void AuthBenefactor::set_allocated_igr_address(::std::string* igr_address) { + if (igr_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete igr_address_; + } + if (igr_address) { + set_has_igr_address(); + igr_address_ = igr_address; + } else { + clear_has_igr_address(); + igr_address_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.AuthBenefactor.igr_address) +} + +// optional fixed32 benefactor_id = 2; +inline bool AuthBenefactor::has_benefactor_id() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void AuthBenefactor::set_has_benefactor_id() { + _has_bits_[0] |= 0x00000002u; +} +inline void AuthBenefactor::clear_has_benefactor_id() { + _has_bits_[0] &= ~0x00000002u; +} +inline void AuthBenefactor::clear_benefactor_id() { + benefactor_id_ = 0u; + clear_has_benefactor_id(); +} +inline ::google::protobuf::uint32 AuthBenefactor::benefactor_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.AuthBenefactor.benefactor_id) + return benefactor_id_; +} +inline void AuthBenefactor::set_benefactor_id(::google::protobuf::uint32 value) { + set_has_benefactor_id(); + benefactor_id_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.AuthBenefactor.benefactor_id) +} + +// optional bool active = 3; +inline bool AuthBenefactor::has_active() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void AuthBenefactor::set_has_active() { + _has_bits_[0] |= 0x00000004u; +} +inline void AuthBenefactor::clear_has_active() { + _has_bits_[0] &= ~0x00000004u; +} +inline void AuthBenefactor::clear_active() { + active_ = false; + clear_has_active(); +} +inline bool AuthBenefactor::active() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.AuthBenefactor.active) + return active_; +} +inline void AuthBenefactor::set_active(bool value) { + set_has_active(); + active_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.AuthBenefactor.active) +} + +// optional uint64 last_update_time = 4; +inline bool AuthBenefactor::has_last_update_time() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void AuthBenefactor::set_has_last_update_time() { + _has_bits_[0] |= 0x00000008u; +} +inline void AuthBenefactor::clear_has_last_update_time() { + _has_bits_[0] &= ~0x00000008u; +} +inline void AuthBenefactor::clear_last_update_time() { + last_update_time_ = GOOGLE_ULONGLONG(0); + clear_has_last_update_time(); +} +inline ::google::protobuf::uint64 AuthBenefactor::last_update_time() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.AuthBenefactor.last_update_time) + return last_update_time_; +} +inline void AuthBenefactor::set_last_update_time(::google::protobuf::uint64 value) { + set_has_last_update_time(); + last_update_time_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.AuthBenefactor.last_update_time) +} + +// ------------------------------------------------------------------- + +// ApplicationInfo + +// optional fixed32 platform_id = 1; +inline bool ApplicationInfo::has_platform_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ApplicationInfo::set_has_platform_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void ApplicationInfo::clear_has_platform_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ApplicationInfo::clear_platform_id() { + platform_id_ = 0u; + clear_has_platform_id(); +} +inline ::google::protobuf::uint32 ApplicationInfo::platform_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.ApplicationInfo.platform_id) + return platform_id_; +} +inline void ApplicationInfo::set_platform_id(::google::protobuf::uint32 value) { + set_has_platform_id(); + platform_id_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.ApplicationInfo.platform_id) +} + +// optional fixed32 locale = 2; +inline bool ApplicationInfo::has_locale() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ApplicationInfo::set_has_locale() { + _has_bits_[0] |= 0x00000002u; +} +inline void ApplicationInfo::clear_has_locale() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ApplicationInfo::clear_locale() { + locale_ = 0u; + clear_has_locale(); +} +inline ::google::protobuf::uint32 ApplicationInfo::locale() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.ApplicationInfo.locale) + return locale_; +} +inline void ApplicationInfo::set_locale(::google::protobuf::uint32 value) { + set_has_locale(); + locale_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.ApplicationInfo.locale) +} + +// optional int32 application_version = 3; +inline bool ApplicationInfo::has_application_version() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ApplicationInfo::set_has_application_version() { + _has_bits_[0] |= 0x00000004u; +} +inline void ApplicationInfo::clear_has_application_version() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ApplicationInfo::clear_application_version() { + application_version_ = 0; + clear_has_application_version(); +} +inline ::google::protobuf::int32 ApplicationInfo::application_version() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.ApplicationInfo.application_version) + return application_version_; +} +inline void ApplicationInfo::set_application_version(::google::protobuf::int32 value) { + set_has_application_version(); + application_version_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.ApplicationInfo.application_version) +} + +// ------------------------------------------------------------------- + +// DeductRecord + +// optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; +inline bool DeductRecord::has_game_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DeductRecord::set_has_game_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void DeductRecord::clear_has_game_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DeductRecord::clear_game_account() { + if (game_account_ != NULL) game_account_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + clear_has_game_account(); +} +inline const ::bgs::protocol::account::v1::GameAccountHandle& DeductRecord::game_account() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.DeductRecord.game_account) + return game_account_ != NULL ? *game_account_ : *default_instance_->game_account_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* DeductRecord::mutable_game_account() { + set_has_game_account(); + if (game_account_ == NULL) game_account_ = new ::bgs::protocol::account::v1::GameAccountHandle; + // @@protoc_insertion_point(field_mutable:bgs.protocol.account.v1.DeductRecord.game_account) + return game_account_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* DeductRecord::release_game_account() { + clear_has_game_account(); + ::bgs::protocol::account::v1::GameAccountHandle* temp = game_account_; + game_account_ = NULL; + return temp; +} +inline void DeductRecord::set_allocated_game_account(::bgs::protocol::account::v1::GameAccountHandle* game_account) { + delete game_account_; + game_account_ = game_account; + if (game_account) { + set_has_game_account(); + } else { + clear_has_game_account(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.DeductRecord.game_account) +} + +// optional .bgs.protocol.account.v1.GameAccountHandle benefactor = 2; +inline bool DeductRecord::has_benefactor() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DeductRecord::set_has_benefactor() { + _has_bits_[0] |= 0x00000002u; +} +inline void DeductRecord::clear_has_benefactor() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DeductRecord::clear_benefactor() { + if (benefactor_ != NULL) benefactor_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + clear_has_benefactor(); +} +inline const ::bgs::protocol::account::v1::GameAccountHandle& DeductRecord::benefactor() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.DeductRecord.benefactor) + return benefactor_ != NULL ? *benefactor_ : *default_instance_->benefactor_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* DeductRecord::mutable_benefactor() { + set_has_benefactor(); + if (benefactor_ == NULL) benefactor_ = new ::bgs::protocol::account::v1::GameAccountHandle; + // @@protoc_insertion_point(field_mutable:bgs.protocol.account.v1.DeductRecord.benefactor) + return benefactor_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* DeductRecord::release_benefactor() { + clear_has_benefactor(); + ::bgs::protocol::account::v1::GameAccountHandle* temp = benefactor_; + benefactor_ = NULL; + return temp; +} +inline void DeductRecord::set_allocated_benefactor(::bgs::protocol::account::v1::GameAccountHandle* benefactor) { + delete benefactor_; + benefactor_ = benefactor; + if (benefactor) { + set_has_benefactor(); + } else { + clear_has_benefactor(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.DeductRecord.benefactor) +} + +// optional uint64 start_time = 3; +inline bool DeductRecord::has_start_time() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void DeductRecord::set_has_start_time() { + _has_bits_[0] |= 0x00000004u; +} +inline void DeductRecord::clear_has_start_time() { + _has_bits_[0] &= ~0x00000004u; +} +inline void DeductRecord::clear_start_time() { + start_time_ = GOOGLE_ULONGLONG(0); + clear_has_start_time(); +} +inline ::google::protobuf::uint64 DeductRecord::start_time() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.DeductRecord.start_time) + return start_time_; +} +inline void DeductRecord::set_start_time(::google::protobuf::uint64 value) { + set_has_start_time(); + start_time_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.DeductRecord.start_time) +} + +// optional uint64 end_time = 4; +inline bool DeductRecord::has_end_time() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void DeductRecord::set_has_end_time() { + _has_bits_[0] |= 0x00000008u; +} +inline void DeductRecord::clear_has_end_time() { + _has_bits_[0] &= ~0x00000008u; +} +inline void DeductRecord::clear_end_time() { + end_time_ = GOOGLE_ULONGLONG(0); + clear_has_end_time(); +} +inline ::google::protobuf::uint64 DeductRecord::end_time() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.DeductRecord.end_time) + return end_time_; +} +inline void DeductRecord::set_end_time(::google::protobuf::uint64 value) { + set_has_end_time(); + end_time_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.DeductRecord.end_time) +} + +// optional string client_address = 5; +inline bool DeductRecord::has_client_address() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void DeductRecord::set_has_client_address() { + _has_bits_[0] |= 0x00000010u; +} +inline void DeductRecord::clear_has_client_address() { + _has_bits_[0] &= ~0x00000010u; +} +inline void DeductRecord::clear_client_address() { + if (client_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + client_address_->clear(); + } + clear_has_client_address(); +} +inline const ::std::string& DeductRecord::client_address() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.DeductRecord.client_address) + return *client_address_; +} +inline void DeductRecord::set_client_address(const ::std::string& value) { + set_has_client_address(); + if (client_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + client_address_ = new ::std::string; + } + client_address_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.DeductRecord.client_address) +} +inline void DeductRecord::set_client_address(const char* value) { + set_has_client_address(); + if (client_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + client_address_ = new ::std::string; + } + client_address_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.account.v1.DeductRecord.client_address) +} +inline void DeductRecord::set_client_address(const char* value, size_t size) { + set_has_client_address(); + if (client_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + client_address_ = new ::std::string; + } + client_address_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.account.v1.DeductRecord.client_address) +} +inline ::std::string* DeductRecord::mutable_client_address() { + set_has_client_address(); + if (client_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + client_address_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.account.v1.DeductRecord.client_address) + return client_address_; +} +inline ::std::string* DeductRecord::release_client_address() { + clear_has_client_address(); + if (client_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = client_address_; + client_address_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void DeductRecord::set_allocated_client_address(::std::string* client_address) { + if (client_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete client_address_; + } + if (client_address) { + set_has_client_address(); + client_address_ = client_address; + } else { + clear_has_client_address(); + client_address_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.DeductRecord.client_address) +} + +// optional .bgs.protocol.account.v1.ApplicationInfo application_info = 6; +inline bool DeductRecord::has_application_info() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void DeductRecord::set_has_application_info() { + _has_bits_[0] |= 0x00000020u; +} +inline void DeductRecord::clear_has_application_info() { + _has_bits_[0] &= ~0x00000020u; +} +inline void DeductRecord::clear_application_info() { + if (application_info_ != NULL) application_info_->::bgs::protocol::account::v1::ApplicationInfo::Clear(); + clear_has_application_info(); +} +inline const ::bgs::protocol::account::v1::ApplicationInfo& DeductRecord::application_info() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.DeductRecord.application_info) + return application_info_ != NULL ? *application_info_ : *default_instance_->application_info_; +} +inline ::bgs::protocol::account::v1::ApplicationInfo* DeductRecord::mutable_application_info() { + set_has_application_info(); + if (application_info_ == NULL) application_info_ = new ::bgs::protocol::account::v1::ApplicationInfo; + // @@protoc_insertion_point(field_mutable:bgs.protocol.account.v1.DeductRecord.application_info) + return application_info_; +} +inline ::bgs::protocol::account::v1::ApplicationInfo* DeductRecord::release_application_info() { + clear_has_application_info(); + ::bgs::protocol::account::v1::ApplicationInfo* temp = application_info_; + application_info_ = NULL; + return temp; +} +inline void DeductRecord::set_allocated_application_info(::bgs::protocol::account::v1::ApplicationInfo* application_info) { + delete application_info_; + application_info_ = application_info; + if (application_info) { + set_has_application_info(); + } else { + clear_has_application_info(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.DeductRecord.application_info) +} + +// optional string session_owner = 7; +inline bool DeductRecord::has_session_owner() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void DeductRecord::set_has_session_owner() { + _has_bits_[0] |= 0x00000040u; +} +inline void DeductRecord::clear_has_session_owner() { + _has_bits_[0] &= ~0x00000040u; +} +inline void DeductRecord::clear_session_owner() { + if (session_owner_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + session_owner_->clear(); + } + clear_has_session_owner(); +} +inline const ::std::string& DeductRecord::session_owner() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.DeductRecord.session_owner) + return *session_owner_; +} +inline void DeductRecord::set_session_owner(const ::std::string& value) { + set_has_session_owner(); + if (session_owner_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + session_owner_ = new ::std::string; + } + session_owner_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.DeductRecord.session_owner) +} +inline void DeductRecord::set_session_owner(const char* value) { + set_has_session_owner(); + if (session_owner_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + session_owner_ = new ::std::string; + } + session_owner_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.account.v1.DeductRecord.session_owner) +} +inline void DeductRecord::set_session_owner(const char* value, size_t size) { + set_has_session_owner(); + if (session_owner_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + session_owner_ = new ::std::string; + } + session_owner_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.account.v1.DeductRecord.session_owner) +} +inline ::std::string* DeductRecord::mutable_session_owner() { + set_has_session_owner(); + if (session_owner_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + session_owner_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.account.v1.DeductRecord.session_owner) + return session_owner_; +} +inline ::std::string* DeductRecord::release_session_owner() { + clear_has_session_owner(); + if (session_owner_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = session_owner_; + session_owner_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void DeductRecord::set_allocated_session_owner(::std::string* session_owner) { + if (session_owner_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete session_owner_; + } + if (session_owner) { + set_has_session_owner(); + session_owner_ = session_owner; + } else { + clear_has_session_owner(); + session_owner_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.account.v1.DeductRecord.session_owner) +} + +// optional bool free_session = 8; +inline bool DeductRecord::has_free_session() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void DeductRecord::set_has_free_session() { + _has_bits_[0] |= 0x00000080u; +} +inline void DeductRecord::clear_has_free_session() { + _has_bits_[0] &= ~0x00000080u; +} +inline void DeductRecord::clear_free_session() { + free_session_ = false; + clear_has_free_session(); +} +inline bool DeductRecord::free_session() const { + // @@protoc_insertion_point(field_get:bgs.protocol.account.v1.DeductRecord.free_session) + return free_session_; +} +inline void DeductRecord::set_free_session(bool value) { + set_has_free_session(); + free_session_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.account.v1.DeductRecord.free_session) +} + +// ------------------------------------------------------------------- + +// IgrId + +// optional .bgs.protocol.account.v1.GameAccountHandle game_account = 1; +inline bool IgrId::has_game_account() const { + return type_case() == kGameAccount; +} +inline void IgrId::set_has_game_account() { + _oneof_case_[0] = kGameAccount; +} +inline void IgrId::clear_game_account() { + if (has_game_account()) { + delete type_.game_account_; + clear_has_type(); + } +} +inline const ::bgs::protocol::account::v1::GameAccountHandle& IgrId::game_account() const { + return has_game_account() ? *type_.game_account_ + : ::bgs::protocol::account::v1::GameAccountHandle::default_instance(); +} +inline ::bgs::protocol::account::v1::GameAccountHandle* IgrId::mutable_game_account() { + if (!has_game_account()) { + clear_type(); + set_has_game_account(); + type_.game_account_ = new ::bgs::protocol::account::v1::GameAccountHandle; + } + return type_.game_account_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* IgrId::release_game_account() { + if (has_game_account()) { + clear_has_type(); + ::bgs::protocol::account::v1::GameAccountHandle* temp = type_.game_account_; + type_.game_account_ = NULL; + return temp; + } else { + return NULL; + } +} +inline void IgrId::set_allocated_game_account(::bgs::protocol::account::v1::GameAccountHandle* game_account) { + clear_type(); + if (game_account) { + set_has_game_account(); + type_.game_account_ = game_account; + } +} + +// optional fixed32 external_id = 2; +inline bool IgrId::has_external_id() const { + return type_case() == kExternalId; +} +inline void IgrId::set_has_external_id() { + _oneof_case_[0] = kExternalId; +} +inline void IgrId::clear_external_id() { + if (has_external_id()) { + type_.external_id_ = 0u; + clear_has_type(); + } +} +inline ::google::protobuf::uint32 IgrId::external_id() const { + if (has_external_id()) { + return type_.external_id_; + } + return 0u; +} +inline void IgrId::set_external_id(::google::protobuf::uint32 value) { + if (!has_external_id()) { + clear_type(); + set_has_external_id(); + } + type_.external_id_ = value; +} + +inline bool IgrId::has_type() { + return type_case() != TYPE_NOT_SET; +} +inline void IgrId::clear_has_type() { + _oneof_case_[0] = TYPE_NOT_SET; +} +inline IgrId::TypeCase IgrId::type_case() const { + return IgrId::TypeCase(_oneof_case_[0]); +} // @@protoc_insertion_point(namespace_scope) diff --git a/src/server/proto/Client/authentication_service.pb.cc b/src/server/proto/Client/authentication_service.pb.cc index e3fcdbf1ddc..44a30da81b7 100644 --- a/src/server/proto/Client/authentication_service.pb.cc +++ b/src/server/proto/Client/authentication_service.pb.cc @@ -165,8 +165,8 @@ void protobuf_AssignDesc_authentication_5fservice_2eproto() { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LogonRequest, allow_logon_queue_notifications_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LogonRequest, web_client_verification_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LogonRequest, cached_web_credentials_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LogonRequest, enable_cookie_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LogonRequest, user_agent_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LogonRequest, device_id_), }; LogonRequest_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( @@ -562,7 +562,7 @@ void protobuf_AddDesc_authentication_5fservice_2eproto() { "rotocol.ContentHandle\022\017\n\007message\030\002 \001(\014\"7" "\n\022ModuleNotification\022\021\n\tmodule_id\030\002 \001(\005\022" "\016\n\006result\030\003 \001(\r\":\n\024ModuleMessageRequest\022" - "\021\n\tmodule_id\030\001 \002(\005\022\017\n\007message\030\002 \001(\014\"\372\002\n\014" + "\021\n\tmodule_id\030\001 \002(\005\022\017\n\007message\030\002 \001(\014\"\360\002\n\014" "LogonRequest\022\017\n\007program\030\001 \001(\t\022\020\n\010platfor" "m\030\002 \001(\t\022\016\n\006locale\030\003 \001(\t\022\r\n\005email\030\004 \001(\t\022\017" "\n\007version\030\005 \001(\t\022\033\n\023application_version\030\006" @@ -571,97 +571,97 @@ void protobuf_AddDesc_authentication_5fservice_2eproto() { ":\005false\022.\n\037allow_logon_queue_notificatio" "ns\030\n \001(\010:\005false\022&\n\027web_client_verificati" "on\030\013 \001(\010:\005false\022\036\n\026cached_web_credential" - "s\030\014 \001(\014\022\033\n\renable_cookie\030\r \001(\010:\004true\022\022\n\n" - "user_agent\030\016 \001(\t\"\232\002\n\013LogonResult\022\022\n\nerro" - "r_code\030\001 \002(\r\022*\n\naccount_id\030\002 \001(\0132\026.bgs.p" - "rotocol.EntityId\022/\n\017game_account_id\030\003 \003(" - "\0132\026.bgs.protocol.EntityId\022\r\n\005email\030\004 \001(\t" - "\022\030\n\020available_region\030\005 \003(\r\022\030\n\020connected_" - "region\030\006 \001(\r\022\022\n\nbattle_tag\030\007 \001(\t\022\025\n\rgeoi" - "p_country\030\010 \001(\t\022\023\n\013session_key\030\t \001(\014\022\027\n\017" - "restricted_mode\030\n \001(\010\"*\n\027GenerateSSOToke" - "nRequest\022\017\n\007program\030\001 \001(\007\">\n\030GenerateSSO" - "TokenResponse\022\016\n\006sso_id\030\001 \001(\014\022\022\n\nsso_sec" - "ret\030\002 \001(\014\"(\n\022LogonUpdateRequest\022\022\n\nerror" - "_code\030\001 \002(\r\"a\n\027LogonQueueUpdateRequest\022\020" - "\n\010position\030\001 \002(\r\022\026\n\016estimated_time\030\002 \002(\004" - "\022\034\n\024eta_deviation_in_sec\030\003 \002(\004\"\276\001\n\033Accou" - "ntSettingsNotification\0229\n\010licenses\030\001 \003(\013" - "2\'.bgs.protocol.account.v1.AccountLicens" - "e\022\024\n\014is_using_rid\030\002 \001(\010\022\033\n\023is_playing_fr" - "om_igr\030\003 \001(\010\022\031\n\021can_receive_voice\030\004 \001(\010\022" - "\026\n\016can_send_voice\030\005 \001(\010\"=\n\030ServerStateCh" - "angeRequest\022\r\n\005state\030\001 \002(\r\022\022\n\nevent_time" - "\030\002 \002(\004\"T\n\013VersionInfo\022\016\n\006number\030\001 \001(\r\022\r\n" - "\005patch\030\002 \001(\t\022\023\n\013is_optional\030\003 \001(\010\022\021\n\tkic" - "k_time\030\004 \001(\004\"\\\n\027VersionInfoNotification\022" - "A\n\014version_info\030\001 \001(\0132+.bgs.protocol.aut" - "hentication.v1.VersionInfo\"_\n\024MemModuleL" - "oadRequest\022+\n\006handle\030\001 \002(\0132\033.bgs.protoco" - "l.ContentHandle\022\013\n\003key\030\002 \002(\014\022\r\n\005input\030\003 " - "\002(\014\"%\n\025MemModuleLoadResponse\022\014\n\004data\030\001 \002" - "(\014\"K\n\030SelectGameAccountRequest\022/\n\017game_a" - "ccount_id\030\001 \002(\0132\026.bgs.protocol.EntityId\"" - "]\n\032GameAccountSelectedRequest\022\016\n\006result\030" - "\001 \002(\r\022/\n\017game_account_id\030\002 \001(\0132\026.bgs.pro" - "tocol.EntityId\"0\n\035GenerateWebCredentials" - "Request\022\017\n\007program\030\001 \001(\007\"9\n\036GenerateWebC" - "redentialsResponse\022\027\n\017web_credentials\030\001 " - "\001(\014\"6\n\033VerifyWebCredentialsRequest\022\027\n\017we" - "b_credentials\030\001 \001(\0142\202\t\n\026AuthenticationLi" - "stener\022e\n\014OnModuleLoad\0221.bgs.protocol.au" - "thentication.v1.ModuleLoadRequest\032\031.bgs." - "protocol.NO_RESPONSE\"\007\210\002\001\200\265\030\001\022f\n\017OnModul" - "eMessage\0224.bgs.protocol.authentication.v" - "1.ModuleMessageRequest\032\024.bgs.protocol.No" - "Data\"\007\210\002\001\200\265\030\002\022p\n\023OnServerStateChange\0228.b" - "gs.protocol.authentication.v1.ServerStat" - "eChangeRequest\032\031.bgs.protocol.NO_RESPONS" - "E\"\004\200\265\030\004\022_\n\017OnLogonComplete\022+.bgs.protoco" - "l.authentication.v1.LogonResult\032\031.bgs.pr" - "otocol.NO_RESPONSE\"\004\200\265\030\005\022\204\001\n\017OnMemModule" - "Load\0224.bgs.protocol.authentication.v1.Me" - "mModuleLoadRequest\0325.bgs.protocol.authen" - "tication.v1.MemModuleLoadResponse\"\004\200\265\030\006\022" - "d\n\rOnLogonUpdate\0222.bgs.protocol.authenti" - "cation.v1.LogonUpdateRequest\032\031.bgs.proto" - "col.NO_RESPONSE\"\004\200\265\030\n\022p\n\024OnVersionInfoUp" - "dated\0227.bgs.protocol.authentication.v1.V" - "ersionInfoNotification\032\031.bgs.protocol.NO" - "_RESPONSE\"\004\200\265\030\013\022n\n\022OnLogonQueueUpdate\0227." - "bgs.protocol.authentication.v1.LogonQueu" - "eUpdateRequest\032\031.bgs.protocol.NO_RESPONS" - "E\"\004\200\265\030\014\022H\n\017OnLogonQueueEnd\022\024.bgs.protoco" - "l.NoData\032\031.bgs.protocol.NO_RESPONSE\"\004\200\265\030" - "\r\022w\n\025OnGameAccountSelected\022:.bgs.protoco" - "l.authentication.v1.GameAccountSelectedR" - "equest\032\031.bgs.protocol.NO_RESPONSE\"\007\210\002\001\200\265" - "\030\016\0324\312>1bnet.protocol.authentication.Auth" - "enticationClient2\315\007\n\025AuthenticationServi" - "ce\022Q\n\005Logon\022,.bgs.protocol.authenticatio" - "n.v1.LogonRequest\032\024.bgs.protocol.NoData\"" - "\004\200\265\030\001\022a\n\014ModuleNotify\0222.bgs.protocol.aut" - "hentication.v1.ModuleNotification\032\024.bgs." - "protocol.NoData\"\007\210\002\001\200\265\030\002\022d\n\rModuleMessag" - "e\0224.bgs.protocol.authentication.v1.Modul" - "eMessageRequest\032\024.bgs.protocol.NoData\"\007\210" - "\002\001\200\265\030\003\022U\n\034SelectGameAccount_DEPRECATED\022\026" - ".bgs.protocol.EntityId\032\024.bgs.protocol.No" - "Data\"\007\210\002\001\200\265\030\004\022\213\001\n\020GenerateSSOToken\0227.bgs" - ".protocol.authentication.v1.GenerateSSOT" - "okenRequest\0328.bgs.protocol.authenticatio" - "n.v1.GenerateSSOTokenResponse\"\004\200\265\030\005\022l\n\021S" - "electGameAccount\0228.bgs.protocol.authenti" - "cation.v1.SelectGameAccountRequest\032\024.bgs" - ".protocol.NoData\"\007\210\002\001\200\265\030\006\022o\n\024VerifyWebCr" - "edentials\022;.bgs.protocol.authentication." - "v1.VerifyWebCredentialsRequest\032\024.bgs.pro" - "tocol.NoData\"\004\200\265\030\007\022\235\001\n\026GenerateWebCreden" - "tials\022=.bgs.protocol.authentication.v1.G" - "enerateWebCredentialsRequest\032>.bgs.proto" - "col.authentication.v1.GenerateWebCredent" - "ialsResponse\"\004\200\265\030\010\0324\312>1bnet.protocol.aut" - "hentication.AuthenticationServerB\005H\001\200\001\000", 4319); + "s\030\014 \001(\014\022\022\n\nuser_agent\030\016 \001(\t\022\021\n\tdevice_id" + "\030\017 \001(\t\"\232\002\n\013LogonResult\022\022\n\nerror_code\030\001 \002" + "(\r\022*\n\naccount_id\030\002 \001(\0132\026.bgs.protocol.En" + "tityId\022/\n\017game_account_id\030\003 \003(\0132\026.bgs.pr" + "otocol.EntityId\022\r\n\005email\030\004 \001(\t\022\030\n\020availa" + "ble_region\030\005 \003(\r\022\030\n\020connected_region\030\006 \001" + "(\r\022\022\n\nbattle_tag\030\007 \001(\t\022\025\n\rgeoip_country\030" + "\010 \001(\t\022\023\n\013session_key\030\t \001(\014\022\027\n\017restricted" + "_mode\030\n \001(\010\"*\n\027GenerateSSOTokenRequest\022\017" + "\n\007program\030\001 \001(\007\">\n\030GenerateSSOTokenRespo" + "nse\022\016\n\006sso_id\030\001 \001(\014\022\022\n\nsso_secret\030\002 \001(\014\"" + "(\n\022LogonUpdateRequest\022\022\n\nerror_code\030\001 \002(" + "\r\"a\n\027LogonQueueUpdateRequest\022\020\n\010position" + "\030\001 \002(\r\022\026\n\016estimated_time\030\002 \002(\004\022\034\n\024eta_de" + "viation_in_sec\030\003 \002(\004\"\276\001\n\033AccountSettings" + "Notification\0229\n\010licenses\030\001 \003(\0132\'.bgs.pro" + "tocol.account.v1.AccountLicense\022\024\n\014is_us" + "ing_rid\030\002 \001(\010\022\033\n\023is_playing_from_igr\030\003 \001" + "(\010\022\031\n\021can_receive_voice\030\004 \001(\010\022\026\n\016can_sen" + "d_voice\030\005 \001(\010\"=\n\030ServerStateChangeReques" + "t\022\r\n\005state\030\001 \002(\r\022\022\n\nevent_time\030\002 \002(\004\"T\n\013" + "VersionInfo\022\016\n\006number\030\001 \001(\r\022\r\n\005patch\030\002 \001" + "(\t\022\023\n\013is_optional\030\003 \001(\010\022\021\n\tkick_time\030\004 \001" + "(\004\"\\\n\027VersionInfoNotification\022A\n\014version" + "_info\030\001 \001(\0132+.bgs.protocol.authenticatio" + "n.v1.VersionInfo\"_\n\024MemModuleLoadRequest" + "\022+\n\006handle\030\001 \002(\0132\033.bgs.protocol.ContentH" + "andle\022\013\n\003key\030\002 \002(\014\022\r\n\005input\030\003 \002(\014\"%\n\025Mem" + "ModuleLoadResponse\022\014\n\004data\030\001 \002(\014\"K\n\030Sele" + "ctGameAccountRequest\022/\n\017game_account_id\030" + "\001 \002(\0132\026.bgs.protocol.EntityId\"]\n\032GameAcc" + "ountSelectedRequest\022\016\n\006result\030\001 \002(\r\022/\n\017g" + "ame_account_id\030\002 \001(\0132\026.bgs.protocol.Enti" + "tyId\"0\n\035GenerateWebCredentialsRequest\022\017\n" + "\007program\030\001 \001(\007\"9\n\036GenerateWebCredentials" + "Response\022\027\n\017web_credentials\030\001 \001(\014\"6\n\033Ver" + "ifyWebCredentialsRequest\022\027\n\017web_credenti" + "als\030\001 \001(\0142\202\t\n\026AuthenticationListener\022e\n\014" + "OnModuleLoad\0221.bgs.protocol.authenticati" + "on.v1.ModuleLoadRequest\032\031.bgs.protocol.N" + "O_RESPONSE\"\007\210\002\001\200\265\030\001\022f\n\017OnModuleMessage\0224" + ".bgs.protocol.authentication.v1.ModuleMe" + "ssageRequest\032\024.bgs.protocol.NoData\"\007\210\002\001\200" + "\265\030\002\022p\n\023OnServerStateChange\0228.bgs.protoco" + "l.authentication.v1.ServerStateChangeReq" + "uest\032\031.bgs.protocol.NO_RESPONSE\"\004\200\265\030\004\022_\n" + "\017OnLogonComplete\022+.bgs.protocol.authenti" + "cation.v1.LogonResult\032\031.bgs.protocol.NO_" + "RESPONSE\"\004\200\265\030\005\022\204\001\n\017OnMemModuleLoad\0224.bgs" + ".protocol.authentication.v1.MemModuleLoa" + "dRequest\0325.bgs.protocol.authentication.v" + "1.MemModuleLoadResponse\"\004\200\265\030\006\022d\n\rOnLogon" + "Update\0222.bgs.protocol.authentication.v1." + "LogonUpdateRequest\032\031.bgs.protocol.NO_RES" + "PONSE\"\004\200\265\030\n\022p\n\024OnVersionInfoUpdated\0227.bg" + "s.protocol.authentication.v1.VersionInfo" + "Notification\032\031.bgs.protocol.NO_RESPONSE\"" + "\004\200\265\030\013\022n\n\022OnLogonQueueUpdate\0227.bgs.protoc" + "ol.authentication.v1.LogonQueueUpdateReq" + "uest\032\031.bgs.protocol.NO_RESPONSE\"\004\200\265\030\014\022H\n" + "\017OnLogonQueueEnd\022\024.bgs.protocol.NoData\032\031" + ".bgs.protocol.NO_RESPONSE\"\004\200\265\030\r\022w\n\025OnGam" + "eAccountSelected\022:.bgs.protocol.authenti" + "cation.v1.GameAccountSelectedRequest\032\031.b" + "gs.protocol.NO_RESPONSE\"\007\210\002\001\200\265\030\016\0324\312>1bne" + "t.protocol.authentication.Authentication" + "Client2\315\007\n\025AuthenticationService\022Q\n\005Logo" + "n\022,.bgs.protocol.authentication.v1.Logon" + "Request\032\024.bgs.protocol.NoData\"\004\200\265\030\001\022a\n\014M" + "oduleNotify\0222.bgs.protocol.authenticatio" + "n.v1.ModuleNotification\032\024.bgs.protocol.N" + "oData\"\007\210\002\001\200\265\030\002\022d\n\rModuleMessage\0224.bgs.pr" + "otocol.authentication.v1.ModuleMessageRe" + "quest\032\024.bgs.protocol.NoData\"\007\210\002\001\200\265\030\003\022U\n\034" + "SelectGameAccount_DEPRECATED\022\026.bgs.proto" + "col.EntityId\032\024.bgs.protocol.NoData\"\007\210\002\001\200" + "\265\030\004\022\213\001\n\020GenerateSSOToken\0227.bgs.protocol." + "authentication.v1.GenerateSSOTokenReques" + "t\0328.bgs.protocol.authentication.v1.Gener" + "ateSSOTokenResponse\"\004\200\265\030\005\022l\n\021SelectGameA" + "ccount\0228.bgs.protocol.authentication.v1." + "SelectGameAccountRequest\032\024.bgs.protocol." + "NoData\"\007\210\002\001\200\265\030\006\022o\n\024VerifyWebCredentials\022" + ";.bgs.protocol.authentication.v1.VerifyW" + "ebCredentialsRequest\032\024.bgs.protocol.NoDa" + "ta\"\004\200\265\030\007\022\235\001\n\026GenerateWebCredentials\022=.bg" + "s.protocol.authentication.v1.GenerateWeb" + "CredentialsRequest\032>.bgs.protocol.authen" + "tication.v1.GenerateWebCredentialsRespon" + "se\"\004\200\265\030\010\0324\312>1bnet.protocol.authenticatio" + "n.AuthenticationServerB\005H\001\200\001\000", 4309); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "authentication_service.proto", &protobuf_RegisterTypes); ModuleLoadRequest::default_instance_ = new ModuleLoadRequest(); @@ -1557,8 +1557,8 @@ const int LogonRequest::kDisconnectOnCookieFailFieldNumber; const int LogonRequest::kAllowLogonQueueNotificationsFieldNumber; const int LogonRequest::kWebClientVerificationFieldNumber; const int LogonRequest::kCachedWebCredentialsFieldNumber; -const int LogonRequest::kEnableCookieFieldNumber; const int LogonRequest::kUserAgentFieldNumber; +const int LogonRequest::kDeviceIdFieldNumber; #endif // !_MSC_VER LogonRequest::LogonRequest() @@ -1592,8 +1592,8 @@ void LogonRequest::SharedCtor() { allow_logon_queue_notifications_ = false; web_client_verification_ = false; cached_web_credentials_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - enable_cookie_ = true; user_agent_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + device_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -1627,6 +1627,9 @@ void LogonRequest::SharedDtor() { if (user_agent_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete user_agent_; } + if (device_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete device_id_; + } if (this != default_instance_) { } } @@ -1703,12 +1706,16 @@ void LogonRequest::Clear() { cached_web_credentials_->clear(); } } - enable_cookie_ = true; if (has_user_agent()) { if (user_agent_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { user_agent_->clear(); } } + if (has_device_id()) { + if (device_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + device_id_->clear(); + } + } } #undef OFFSET_OF_FIELD_ @@ -1909,21 +1916,6 @@ bool LogonRequest::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(104)) goto parse_enable_cookie; - break; - } - - // optional bool enable_cookie = 13 [default = true]; - case 13: { - if (tag == 104) { - parse_enable_cookie: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &enable_cookie_))); - set_has_enable_cookie(); - } else { - goto handle_unusual; - } if (input->ExpectTag(114)) goto parse_user_agent; break; } @@ -1941,6 +1933,23 @@ bool LogonRequest::MergePartialFromCodedStream( } else { goto handle_unusual; } + if (input->ExpectTag(122)) goto parse_device_id; + break; + } + + // optional string device_id = 15; + case 15: { + if (tag == 122) { + parse_device_id: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_device_id())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->device_id().data(), this->device_id().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "device_id"); + } else { + goto handle_unusual; + } if (input->ExpectAtEnd()) goto success; break; } @@ -2057,11 +2066,6 @@ void LogonRequest::SerializeWithCachedSizes( 12, this->cached_web_credentials(), output); } - // optional bool enable_cookie = 13 [default = true]; - if (has_enable_cookie()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(13, this->enable_cookie(), output); - } - // optional string user_agent = 14; if (has_user_agent()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( @@ -2072,6 +2076,16 @@ void LogonRequest::SerializeWithCachedSizes( 14, this->user_agent(), output); } + // optional string device_id = 15; + if (has_device_id()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->device_id().data(), this->device_id().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "device_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 15, this->device_id(), output); + } + if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); @@ -2176,11 +2190,6 @@ void LogonRequest::SerializeWithCachedSizes( 12, this->cached_web_credentials(), target); } - // optional bool enable_cookie = 13 [default = true]; - if (has_enable_cookie()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(13, this->enable_cookie(), target); - } - // optional string user_agent = 14; if (has_user_agent()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( @@ -2192,6 +2201,17 @@ void LogonRequest::SerializeWithCachedSizes( 14, this->user_agent(), target); } + // optional string device_id = 15; + if (has_device_id()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->device_id().data(), this->device_id().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "device_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 15, this->device_id(), target); + } + if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); @@ -2282,11 +2302,6 @@ int LogonRequest::ByteSize() const { this->cached_web_credentials()); } - // optional bool enable_cookie = 13 [default = true]; - if (has_enable_cookie()) { - total_size += 1 + 1; - } - // optional string user_agent = 14; if (has_user_agent()) { total_size += 1 + @@ -2294,6 +2309,13 @@ int LogonRequest::ByteSize() const { this->user_agent()); } + // optional string device_id = 15; + if (has_device_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->device_id()); + } + } if (!unknown_fields().empty()) { total_size += @@ -2359,12 +2381,12 @@ void LogonRequest::MergeFrom(const LogonRequest& from) { if (from.has_cached_web_credentials()) { set_cached_web_credentials(from.cached_web_credentials()); } - if (from.has_enable_cookie()) { - set_enable_cookie(from.enable_cookie()); - } if (from.has_user_agent()) { set_user_agent(from.user_agent()); } + if (from.has_device_id()) { + set_device_id(from.device_id()); + } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } @@ -2400,8 +2422,8 @@ void LogonRequest::Swap(LogonRequest* other) { std::swap(allow_logon_queue_notifications_, other->allow_logon_queue_notifications_); std::swap(web_client_verification_, other->web_client_verification_); std::swap(cached_web_credentials_, other->cached_web_credentials_); - std::swap(enable_cookie_, other->enable_cookie_); std::swap(user_agent_, other->user_agent_); + std::swap(device_id_, other->device_id_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); diff --git a/src/server/proto/Client/authentication_service.pb.h b/src/server/proto/Client/authentication_service.pb.h index 9f48ca9b583..cc3f3ce9b4a 100644 --- a/src/server/proto/Client/authentication_service.pb.h +++ b/src/server/proto/Client/authentication_service.pb.h @@ -518,13 +518,6 @@ class TC_PROTO_API LogonRequest : public ::google::protobuf::Message { inline ::std::string* release_cached_web_credentials(); inline void set_allocated_cached_web_credentials(::std::string* cached_web_credentials); - // optional bool enable_cookie = 13 [default = true]; - inline bool has_enable_cookie() const; - inline void clear_enable_cookie(); - static const int kEnableCookieFieldNumber = 13; - inline bool enable_cookie() const; - inline void set_enable_cookie(bool value); - // optional string user_agent = 14; inline bool has_user_agent() const; inline void clear_user_agent(); @@ -537,6 +530,18 @@ class TC_PROTO_API LogonRequest : public ::google::protobuf::Message { inline ::std::string* release_user_agent(); inline void set_allocated_user_agent(::std::string* user_agent); + // optional string device_id = 15; + inline bool has_device_id() const; + inline void clear_device_id(); + static const int kDeviceIdFieldNumber = 15; + inline const ::std::string& device_id() const; + inline void set_device_id(const ::std::string& value); + inline void set_device_id(const char* value); + inline void set_device_id(const char* value, size_t size); + inline ::std::string* mutable_device_id(); + inline ::std::string* release_device_id(); + inline void set_allocated_device_id(::std::string* device_id); + // @@protoc_insertion_point(class_scope:bgs.protocol.authentication.v1.LogonRequest) private: inline void set_has_program(); @@ -563,10 +568,10 @@ class TC_PROTO_API LogonRequest : public ::google::protobuf::Message { inline void clear_has_web_client_verification(); inline void set_has_cached_web_credentials(); inline void clear_has_cached_web_credentials(); - inline void set_has_enable_cookie(); - inline void clear_has_enable_cookie(); inline void set_has_user_agent(); inline void clear_has_user_agent(); + inline void set_has_device_id(); + inline void clear_has_device_id(); ::google::protobuf::UnknownFieldSet _unknown_fields_; @@ -585,7 +590,7 @@ class TC_PROTO_API LogonRequest : public ::google::protobuf::Message { bool web_client_verification_; ::std::string* cached_web_credentials_; ::std::string* user_agent_; - bool enable_cookie_; + ::std::string* device_id_; friend void TC_PROTO_API protobuf_AddDesc_authentication_5fservice_2eproto(); friend void protobuf_AssignDesc_authentication_5fservice_2eproto(); friend void protobuf_ShutdownFile_authentication_5fservice_2eproto(); @@ -3194,39 +3199,15 @@ inline void LogonRequest::set_allocated_cached_web_credentials(::std::string* ca // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.LogonRequest.cached_web_credentials) } -// optional bool enable_cookie = 13 [default = true]; -inline bool LogonRequest::has_enable_cookie() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -inline void LogonRequest::set_has_enable_cookie() { - _has_bits_[0] |= 0x00001000u; -} -inline void LogonRequest::clear_has_enable_cookie() { - _has_bits_[0] &= ~0x00001000u; -} -inline void LogonRequest::clear_enable_cookie() { - enable_cookie_ = true; - clear_has_enable_cookie(); -} -inline bool LogonRequest::enable_cookie() const { - // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonRequest.enable_cookie) - return enable_cookie_; -} -inline void LogonRequest::set_enable_cookie(bool value) { - set_has_enable_cookie(); - enable_cookie_ = value; - // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonRequest.enable_cookie) -} - // optional string user_agent = 14; inline bool LogonRequest::has_user_agent() const { - return (_has_bits_[0] & 0x00002000u) != 0; + return (_has_bits_[0] & 0x00001000u) != 0; } inline void LogonRequest::set_has_user_agent() { - _has_bits_[0] |= 0x00002000u; + _has_bits_[0] |= 0x00001000u; } inline void LogonRequest::clear_has_user_agent() { - _has_bits_[0] &= ~0x00002000u; + _has_bits_[0] &= ~0x00001000u; } inline void LogonRequest::clear_user_agent() { if (user_agent_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { @@ -3294,6 +3275,82 @@ inline void LogonRequest::set_allocated_user_agent(::std::string* user_agent) { // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.LogonRequest.user_agent) } +// optional string device_id = 15; +inline bool LogonRequest::has_device_id() const { + return (_has_bits_[0] & 0x00002000u) != 0; +} +inline void LogonRequest::set_has_device_id() { + _has_bits_[0] |= 0x00002000u; +} +inline void LogonRequest::clear_has_device_id() { + _has_bits_[0] &= ~0x00002000u; +} +inline void LogonRequest::clear_device_id() { + if (device_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + device_id_->clear(); + } + clear_has_device_id(); +} +inline const ::std::string& LogonRequest::device_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.authentication.v1.LogonRequest.device_id) + return *device_id_; +} +inline void LogonRequest::set_device_id(const ::std::string& value) { + set_has_device_id(); + if (device_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + device_id_ = new ::std::string; + } + device_id_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.authentication.v1.LogonRequest.device_id) +} +inline void LogonRequest::set_device_id(const char* value) { + set_has_device_id(); + if (device_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + device_id_ = new ::std::string; + } + device_id_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.authentication.v1.LogonRequest.device_id) +} +inline void LogonRequest::set_device_id(const char* value, size_t size) { + set_has_device_id(); + if (device_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + device_id_ = new ::std::string; + } + device_id_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.authentication.v1.LogonRequest.device_id) +} +inline ::std::string* LogonRequest::mutable_device_id() { + set_has_device_id(); + if (device_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + device_id_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.authentication.v1.LogonRequest.device_id) + return device_id_; +} +inline ::std::string* LogonRequest::release_device_id() { + clear_has_device_id(); + if (device_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = device_id_; + device_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void LogonRequest::set_allocated_device_id(::std::string* device_id) { + if (device_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete device_id_; + } + if (device_id) { + set_has_device_id(); + device_id_ = device_id; + } else { + clear_has_device_id(); + device_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.authentication.v1.LogonRequest.device_id) +} + // ------------------------------------------------------------------- // LogonResult diff --git a/src/server/proto/Client/channel_service.pb.cc b/src/server/proto/Client/channel_service.pb.cc index b231e5899e1..442d8df8c0f 100644 --- a/src/server/proto/Client/channel_service.pb.cc +++ b/src/server/proto/Client/channel_service.pb.cc @@ -31,15 +31,9 @@ namespace v1 { namespace { -const ::google::protobuf::Descriptor* AddMemberRequest_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AddMemberRequest_reflection_ = NULL; const ::google::protobuf::Descriptor* RemoveMemberRequest_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* RemoveMemberRequest_reflection_ = NULL; -const ::google::protobuf::Descriptor* UnsubscribeMemberRequest_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - UnsubscribeMemberRequest_reflection_ = NULL; const ::google::protobuf::Descriptor* SendMessageRequest_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* SendMessageRequest_reflection_ = NULL; @@ -52,9 +46,6 @@ const ::google::protobuf::internal::GeneratedMessageReflection* const ::google::protobuf::Descriptor* DissolveRequest_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* DissolveRequest_reflection_ = NULL; -const ::google::protobuf::Descriptor* SetRolesRequest_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SetRolesRequest_reflection_ = NULL; const ::google::protobuf::Descriptor* JoinNotification_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* JoinNotification_reflection_ = NULL; @@ -88,26 +79,7 @@ void protobuf_AssignDesc_channel_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( "channel_service.proto"); GOOGLE_CHECK(file != NULL); - AddMemberRequest_descriptor_ = file->message_type(0); - static const int AddMemberRequest_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddMemberRequest, agent_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddMemberRequest, member_identity_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddMemberRequest, member_state_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddMemberRequest, object_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddMemberRequest, subscribe_), - }; - AddMemberRequest_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AddMemberRequest_descriptor_, - AddMemberRequest::default_instance_, - AddMemberRequest_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddMemberRequest, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddMemberRequest, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AddMemberRequest)); - RemoveMemberRequest_descriptor_ = file->message_type(1); + RemoveMemberRequest_descriptor_ = file->message_type(0); static const int RemoveMemberRequest_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RemoveMemberRequest, agent_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RemoveMemberRequest, member_id_), @@ -124,23 +96,7 @@ void protobuf_AssignDesc_channel_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(RemoveMemberRequest)); - UnsubscribeMemberRequest_descriptor_ = file->message_type(2); - static const int UnsubscribeMemberRequest_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UnsubscribeMemberRequest, agent_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UnsubscribeMemberRequest, member_id_), - }; - UnsubscribeMemberRequest_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - UnsubscribeMemberRequest_descriptor_, - UnsubscribeMemberRequest::default_instance_, - UnsubscribeMemberRequest_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UnsubscribeMemberRequest, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UnsubscribeMemberRequest, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(UnsubscribeMemberRequest)); - SendMessageRequest_descriptor_ = file->message_type(3); + SendMessageRequest_descriptor_ = file->message_type(1); static const int SendMessageRequest_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendMessageRequest, agent_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendMessageRequest, message_), @@ -157,7 +113,7 @@ void protobuf_AssignDesc_channel_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(SendMessageRequest)); - UpdateChannelStateRequest_descriptor_ = file->message_type(4); + UpdateChannelStateRequest_descriptor_ = file->message_type(2); static const int UpdateChannelStateRequest_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateChannelStateRequest, agent_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateChannelStateRequest, state_change_), @@ -173,7 +129,7 @@ void protobuf_AssignDesc_channel_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(UpdateChannelStateRequest)); - UpdateMemberStateRequest_descriptor_ = file->message_type(5); + UpdateMemberStateRequest_descriptor_ = file->message_type(3); static const int UpdateMemberStateRequest_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateMemberStateRequest, agent_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateMemberStateRequest, state_change_), @@ -190,7 +146,7 @@ void protobuf_AssignDesc_channel_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(UpdateMemberStateRequest)); - DissolveRequest_descriptor_ = file->message_type(6); + DissolveRequest_descriptor_ = file->message_type(4); static const int DissolveRequest_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DissolveRequest, agent_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DissolveRequest, reason_), @@ -206,24 +162,7 @@ void protobuf_AssignDesc_channel_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(DissolveRequest)); - SetRolesRequest_descriptor_ = file->message_type(7); - static const int SetRolesRequest_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetRolesRequest, agent_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetRolesRequest, role_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetRolesRequest, member_id_), - }; - SetRolesRequest_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - SetRolesRequest_descriptor_, - SetRolesRequest::default_instance_, - SetRolesRequest_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetRolesRequest, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetRolesRequest, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(SetRolesRequest)); - JoinNotification_descriptor_ = file->message_type(8); + JoinNotification_descriptor_ = file->message_type(5); static const int JoinNotification_offsets_[5] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinNotification, self_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinNotification, member_), @@ -242,7 +181,7 @@ void protobuf_AssignDesc_channel_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(JoinNotification)); - MemberAddedNotification_descriptor_ = file->message_type(9); + MemberAddedNotification_descriptor_ = file->message_type(6); static const int MemberAddedNotification_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberAddedNotification, member_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberAddedNotification, channel_id_), @@ -259,7 +198,7 @@ void protobuf_AssignDesc_channel_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(MemberAddedNotification)); - LeaveNotification_descriptor_ = file->message_type(10); + LeaveNotification_descriptor_ = file->message_type(7); static const int LeaveNotification_offsets_[5] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LeaveNotification, agent_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LeaveNotification, member_id_), @@ -278,7 +217,7 @@ void protobuf_AssignDesc_channel_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(LeaveNotification)); - MemberRemovedNotification_descriptor_ = file->message_type(11); + MemberRemovedNotification_descriptor_ = file->message_type(8); static const int MemberRemovedNotification_offsets_[5] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberRemovedNotification, agent_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberRemovedNotification, member_id_), @@ -297,12 +236,12 @@ void protobuf_AssignDesc_channel_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(MemberRemovedNotification)); - SendMessageNotification_descriptor_ = file->message_type(12); + SendMessageNotification_descriptor_ = file->message_type(9); static const int SendMessageNotification_offsets_[6] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendMessageNotification, agent_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendMessageNotification, message_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendMessageNotification, required_privileges_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendMessageNotification, identity_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendMessageNotification, battle_tag_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendMessageNotification, channel_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendMessageNotification, subscriber_), }; @@ -317,7 +256,7 @@ void protobuf_AssignDesc_channel_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(SendMessageNotification)); - UpdateChannelStateNotification_descriptor_ = file->message_type(13); + UpdateChannelStateNotification_descriptor_ = file->message_type(10); static const int UpdateChannelStateNotification_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateChannelStateNotification, agent_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateChannelStateNotification, state_change_), @@ -335,11 +274,10 @@ void protobuf_AssignDesc_channel_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(UpdateChannelStateNotification)); - UpdateMemberStateNotification_descriptor_ = file->message_type(14); - static const int UpdateMemberStateNotification_offsets_[5] = { + UpdateMemberStateNotification_descriptor_ = file->message_type(11); + static const int UpdateMemberStateNotification_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateMemberStateNotification, agent_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateMemberStateNotification, state_change_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateMemberStateNotification, removed_role_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateMemberStateNotification, channel_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateMemberStateNotification, subscriber_), }; @@ -369,12 +307,8 @@ inline void protobuf_AssignDescriptorsOnce() { void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AddMemberRequest_descriptor_, &AddMemberRequest::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( RemoveMemberRequest_descriptor_, &RemoveMemberRequest::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - UnsubscribeMemberRequest_descriptor_, &UnsubscribeMemberRequest::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( SendMessageRequest_descriptor_, &SendMessageRequest::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( UpdateChannelStateRequest_descriptor_, &UpdateChannelStateRequest::default_instance()); @@ -383,8 +317,6 @@ void protobuf_RegisterTypes(const ::std::string&) { ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( DissolveRequest_descriptor_, &DissolveRequest::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SetRolesRequest_descriptor_, &SetRolesRequest::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( JoinNotification_descriptor_, &JoinNotification::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( MemberAddedNotification_descriptor_, &MemberAddedNotification::default_instance()); @@ -403,12 +335,8 @@ void protobuf_RegisterTypes(const ::std::string&) { } // namespace void protobuf_ShutdownFile_channel_5fservice_2eproto() { - delete AddMemberRequest::default_instance_; - delete AddMemberRequest_reflection_; delete RemoveMemberRequest::default_instance_; delete RemoveMemberRequest_reflection_; - delete UnsubscribeMemberRequest::default_instance_; - delete UnsubscribeMemberRequest_reflection_; delete SendMessageRequest::default_instance_; delete SendMessageRequest_reflection_; delete UpdateChannelStateRequest::default_instance_; @@ -417,8 +345,6 @@ void protobuf_ShutdownFile_channel_5fservice_2eproto() { delete UpdateMemberStateRequest_reflection_; delete DissolveRequest::default_instance_; delete DissolveRequest_reflection_; - delete SetRolesRequest::default_instance_; - delete SetRolesRequest_reflection_; delete JoinNotification::default_instance_; delete JoinNotification_reflection_; delete MemberAddedNotification::default_instance_; @@ -449,127 +375,105 @@ void protobuf_AddDesc_channel_5fservice_2eproto() { "\n\025channel_service.proto\022\027bgs.protocol.ch" "annel.v1\032\023account_types.proto\032\022entity_ty" "pes.proto\032\023channel_types.proto\032\017rpc_type" - "s.proto\"\325\001\n\020AddMemberRequest\022(\n\010agent_id" - "\030\001 \001(\0132\026.bgs.protocol.EntityId\022/\n\017member" - "_identity\030\002 \002(\0132\026.bgs.protocol.Identity\022" - ":\n\014member_state\030\003 \002(\0132$.bgs.protocol.cha" - "nnel.v1.MemberState\022\021\n\tobject_id\030\004 \002(\004\022\027" - "\n\tsubscribe\030\005 \001(\010:\004true\"z\n\023RemoveMemberR" - "equest\022(\n\010agent_id\030\001 \001(\0132\026.bgs.protocol." - "EntityId\022)\n\tmember_id\030\002 \002(\0132\026.bgs.protoc" - "ol.EntityId\022\016\n\006reason\030\003 \001(\r\"o\n\030Unsubscri" - "beMemberRequest\022(\n\010agent_id\030\001 \001(\0132\026.bgs." - "protocol.EntityId\022)\n\tmember_id\030\002 \002(\0132\026.b" - "gs.protocol.EntityId\"\221\001\n\022SendMessageRequ" - "est\022(\n\010agent_id\030\001 \001(\0132\026.bgs.protocol.Ent" - "ityId\0221\n\007message\030\002 \002(\0132 .bgs.protocol.ch" - "annel.v1.Message\022\036\n\023required_privileges\030" - "\003 \001(\004:\0010\"\202\001\n\031UpdateChannelStateRequest\022(" - "\n\010agent_id\030\001 \001(\0132\026.bgs.protocol.EntityId" - "\022;\n\014state_change\030\002 \002(\0132%.bgs.protocol.ch" - "annel.v1.ChannelState\"\225\001\n\030UpdateMemberSt" - "ateRequest\022(\n\010agent_id\030\001 \001(\0132\026.bgs.proto" - "col.EntityId\0225\n\014state_change\030\002 \003(\0132\037.bgs" - ".protocol.channel.v1.Member\022\030\n\014removed_r" - "ole\030\003 \003(\rB\002\020\001\"K\n\017DissolveRequest\022(\n\010agen" - "t_id\030\001 \001(\0132\026.bgs.protocol.EntityId\022\016\n\006re" - "ason\030\002 \001(\r\"x\n\017SetRolesRequest\022(\n\010agent_i" - "d\030\001 \001(\0132\026.bgs.protocol.EntityId\022\020\n\004role\030" - "\002 \003(\rB\002\020\001\022)\n\tmember_id\030\003 \003(\0132\026.bgs.proto" - "col.EntityId\"\237\002\n\020JoinNotification\022-\n\004sel" - "f\030\001 \001(\0132\037.bgs.protocol.channel.v1.Member" - "\022/\n\006member\030\002 \003(\0132\037.bgs.protocol.channel." - "v1.Member\022<\n\rchannel_state\030\003 \002(\0132%.bgs.p" - "rotocol.channel.v1.ChannelState\0226\n\nchann" - "el_id\030\004 \001(\0132\".bgs.protocol.channel.v1.Ch" - "annelId\0225\n\nsubscriber\030\005 \001(\0132!.bgs.protoc" - "ol.account.v1.Identity\"\271\001\n\027MemberAddedNo" - "tification\022/\n\006member\030\001 \002(\0132\037.bgs.protoco" - "l.channel.v1.Member\0226\n\nchannel_id\030\002 \001(\0132" - "\".bgs.protocol.channel.v1.ChannelId\0225\n\ns" - "ubscriber\030\003 \001(\0132!.bgs.protocol.account.v" - "1.Identity\"\347\001\n\021LeaveNotification\022(\n\010agen" - "t_id\030\001 \001(\0132\026.bgs.protocol.EntityId\022)\n\tme" - "mber_id\030\002 \002(\0132\026.bgs.protocol.EntityId\022\016\n" - "\006reason\030\003 \001(\r\0226\n\nchannel_id\030\004 \001(\0132\".bgs." - "protocol.channel.v1.ChannelId\0225\n\nsubscri" - "ber\030\005 \001(\0132!.bgs.protocol.account.v1.Iden" - "tity\"\357\001\n\031MemberRemovedNotification\022(\n\010ag" - "ent_id\030\001 \001(\0132\026.bgs.protocol.EntityId\022)\n\t" - "member_id\030\002 \002(\0132\026.bgs.protocol.EntityId\022" - "\016\n\006reason\030\003 \001(\r\0226\n\nchannel_id\030\004 \001(\0132\".bg" - "s.protocol.channel.v1.ChannelId\0225\n\nsubsc" - "riber\030\005 \001(\0132!.bgs.protocol.account.v1.Id" - "entity\"\227\002\n\027SendMessageNotification\022(\n\010ag" + "s.proto\"z\n\023RemoveMemberRequest\022(\n\010agent_" + "id\030\001 \001(\0132\026.bgs.protocol.EntityId\022)\n\tmemb" + "er_id\030\002 \002(\0132\026.bgs.protocol.EntityId\022\016\n\006r" + "eason\030\003 \001(\r\"\221\001\n\022SendMessageRequest\022(\n\010ag" "ent_id\030\001 \001(\0132\026.bgs.protocol.EntityId\0221\n\007" "message\030\002 \002(\0132 .bgs.protocol.channel.v1." - "Message\022\036\n\023required_privileges\030\003 \001(\004:\0010\022" - "\020\n\010identity\030\004 \001(\t\0226\n\nchannel_id\030\005 \001(\0132\"." - "bgs.protocol.channel.v1.ChannelId\0225\n\nsub" - "scriber\030\006 \001(\0132!.bgs.protocol.account.v1." - "Identity\"\366\001\n\036UpdateChannelStateNotificat" - "ion\022(\n\010agent_id\030\001 \001(\0132\026.bgs.protocol.Ent" - "ityId\022;\n\014state_change\030\002 \002(\0132%.bgs.protoc" - "ol.channel.v1.ChannelState\0226\n\nchannel_id" - "\030\003 \001(\0132\".bgs.protocol.channel.v1.Channel" - "Id\0225\n\nsubscriber\030\004 \001(\0132!.bgs.protocol.ac" - "count.v1.Identity\"\211\002\n\035UpdateMemberStateN" - "otification\022(\n\010agent_id\030\001 \001(\0132\026.bgs.prot" - "ocol.EntityId\0225\n\014state_change\030\002 \003(\0132\037.bg" - "s.protocol.channel.v1.Member\022\030\n\014removed_" - "role\030\003 \003(\rB\002\020\001\0226\n\nchannel_id\030\004 \001(\0132\".bgs" - ".protocol.channel.v1.ChannelId\0225\n\nsubscr" - "iber\030\005 \001(\0132!.bgs.protocol.account.v1.Ide" - "ntity2\212\006\n\016ChannelService\022R\n\tAddMember\022)." - "bgs.protocol.channel.v1.AddMemberRequest" - "\032\024.bgs.protocol.NoData\"\004\200\265\030\001\022X\n\014RemoveMe" - "mber\022,.bgs.protocol.channel.v1.RemoveMem" - "berRequest\032\024.bgs.protocol.NoData\"\004\200\265\030\002\022V" - "\n\013SendMessage\022+.bgs.protocol.channel.v1." - "SendMessageRequest\032\024.bgs.protocol.NoData" - "\"\004\200\265\030\003\022d\n\022UpdateChannelState\0222.bgs.proto" - "col.channel.v1.UpdateChannelStateRequest" - "\032\024.bgs.protocol.NoData\"\004\200\265\030\004\022b\n\021UpdateMe" - "mberState\0221.bgs.protocol.channel.v1.Upda" - "teMemberStateRequest\032\024.bgs.protocol.NoDa" - "ta\"\004\200\265\030\005\022P\n\010Dissolve\022(.bgs.protocol.chan" - "nel.v1.DissolveRequest\032\024.bgs.protocol.No" - "Data\"\004\200\265\030\006\022P\n\010SetRoles\022(.bgs.protocol.ch" - "annel.v1.SetRolesRequest\032\024.bgs.protocol." - "NoData\"\004\200\265\030\007\022b\n\021UnsubscribeMember\0221.bgs." - "protocol.channel.v1.UnsubscribeMemberReq" - "uest\032\024.bgs.protocol.NoData\"\004\200\265\030\010\032 \312>\035bne" - "t.protocol.channel.Channel2\375\005\n\017ChannelLi" - "stener\022T\n\006OnJoin\022).bgs.protocol.channel." - "v1.JoinNotification\032\031.bgs.protocol.NO_RE" - "SPONSE\"\004\200\265\030\001\022b\n\rOnMemberAdded\0220.bgs.prot" - "ocol.channel.v1.MemberAddedNotification\032" - "\031.bgs.protocol.NO_RESPONSE\"\004\200\265\030\002\022V\n\007OnLe" - "ave\022*.bgs.protocol.channel.v1.LeaveNotif" - "ication\032\031.bgs.protocol.NO_RESPONSE\"\004\200\265\030\003" - "\022f\n\017OnMemberRemoved\0222.bgs.protocol.chann" - "el.v1.MemberRemovedNotification\032\031.bgs.pr" - "otocol.NO_RESPONSE\"\004\200\265\030\004\022b\n\rOnSendMessag" - "e\0220.bgs.protocol.channel.v1.SendMessageN" - "otification\032\031.bgs.protocol.NO_RESPONSE\"\004" - "\200\265\030\005\022p\n\024OnUpdateChannelState\0227.bgs.proto" - "col.channel.v1.UpdateChannelStateNotific" - "ation\032\031.bgs.protocol.NO_RESPONSE\"\004\200\265\030\006\022n" - "\n\023OnUpdateMemberState\0226.bgs.protocol.cha" - "nnel.v1.UpdateMemberStateNotification\032\031." - "bgs.protocol.NO_RESPONSE\"\004\200\265\030\007\032*\312>\'bnet." - "protocol.channel.ChannelSubscriberB\005H\001\200\001" - "\000", 4521); + "Message\022\036\n\023required_privileges\030\003 \001(\004:\0010\"" + "\202\001\n\031UpdateChannelStateRequest\022(\n\010agent_i" + "d\030\001 \001(\0132\026.bgs.protocol.EntityId\022;\n\014state" + "_change\030\002 \002(\0132%.bgs.protocol.channel.v1." + "ChannelState\"\225\001\n\030UpdateMemberStateReques" + "t\022(\n\010agent_id\030\001 \001(\0132\026.bgs.protocol.Entit" + "yId\0225\n\014state_change\030\002 \003(\0132\037.bgs.protocol" + ".channel.v1.Member\022\030\n\014removed_role\030\003 \003(\r" + "B\002\020\001\"K\n\017DissolveRequest\022(\n\010agent_id\030\001 \001(" + "\0132\026.bgs.protocol.EntityId\022\016\n\006reason\030\002 \001(" + "\r\"\237\002\n\020JoinNotification\022-\n\004self\030\001 \001(\0132\037.b" + "gs.protocol.channel.v1.Member\022/\n\006member\030" + "\002 \003(\0132\037.bgs.protocol.channel.v1.Member\022<" + "\n\rchannel_state\030\003 \002(\0132%.bgs.protocol.cha" + "nnel.v1.ChannelState\0226\n\nchannel_id\030\004 \001(\013" + "2\".bgs.protocol.channel.v1.ChannelId\0225\n\n" + "subscriber\030\005 \001(\0132!.bgs.protocol.account." + "v1.Identity\"\271\001\n\027MemberAddedNotification\022" + "/\n\006member\030\001 \002(\0132\037.bgs.protocol.channel.v" + "1.Member\0226\n\nchannel_id\030\002 \001(\0132\".bgs.proto" + "col.channel.v1.ChannelId\0225\n\nsubscriber\030\003" + " \001(\0132!.bgs.protocol.account.v1.Identity\"" + "\353\001\n\021LeaveNotification\022(\n\010agent_id\030\001 \001(\0132" + "\026.bgs.protocol.EntityId\022-\n\tmember_id\030\002 \002" + "(\0132\026.bgs.protocol.EntityIdB\002\030\001\022\016\n\006reason" + "\030\003 \001(\r\0226\n\nchannel_id\030\004 \001(\0132\".bgs.protoco" + "l.channel.v1.ChannelId\0225\n\nsubscriber\030\005 \001" + "(\0132!.bgs.protocol.account.v1.Identity\"\357\001" + "\n\031MemberRemovedNotification\022(\n\010agent_id\030" + "\001 \001(\0132\026.bgs.protocol.EntityId\022)\n\tmember_" + "id\030\002 \002(\0132\026.bgs.protocol.EntityId\022\016\n\006reas" + "on\030\003 \001(\r\0226\n\nchannel_id\030\004 \001(\0132\".bgs.proto" + "col.channel.v1.ChannelId\0225\n\nsubscriber\030\005" + " \001(\0132!.bgs.protocol.account.v1.Identity\"" + "\231\002\n\027SendMessageNotification\022(\n\010agent_id\030" + "\001 \001(\0132\026.bgs.protocol.EntityId\0221\n\007message" + "\030\002 \002(\0132 .bgs.protocol.channel.v1.Message" + "\022\036\n\023required_privileges\030\003 \001(\004:\0010\022\022\n\nbatt" + "le_tag\030\004 \001(\t\0226\n\nchannel_id\030\005 \001(\0132\".bgs.p" + "rotocol.channel.v1.ChannelId\0225\n\nsubscrib" + "er\030\006 \001(\0132!.bgs.protocol.account.v1.Ident" + "ity\"\366\001\n\036UpdateChannelStateNotification\022(" + "\n\010agent_id\030\001 \001(\0132\026.bgs.protocol.EntityId" + "\022;\n\014state_change\030\002 \002(\0132%.bgs.protocol.ch" + "annel.v1.ChannelState\0226\n\nchannel_id\030\003 \001(" + "\0132\".bgs.protocol.channel.v1.ChannelId\0225\n" + "\nsubscriber\030\004 \001(\0132!.bgs.protocol.account" + ".v1.Identity\"\357\001\n\035UpdateMemberStateNotifi" + "cation\022(\n\010agent_id\030\001 \001(\0132\026.bgs.protocol." + "EntityId\0225\n\014state_change\030\002 \003(\0132\037.bgs.pro" + "tocol.channel.v1.Member\0226\n\nchannel_id\030\004 " + "\001(\0132\".bgs.protocol.channel.v1.ChannelId\022" + "5\n\nsubscriber\030\005 \001(\0132!.bgs.protocol.accou" + "nt.v1.Identity2\200\004\n\016ChannelService\022X\n\014Rem" + "oveMember\022,.bgs.protocol.channel.v1.Remo" + "veMemberRequest\032\024.bgs.protocol.NoData\"\004\200" + "\265\030\002\022V\n\013SendMessage\022+.bgs.protocol.channe" + "l.v1.SendMessageRequest\032\024.bgs.protocol.N" + "oData\"\004\200\265\030\003\022d\n\022UpdateChannelState\0222.bgs." + "protocol.channel.v1.UpdateChannelStateRe" + "quest\032\024.bgs.protocol.NoData\"\004\200\265\030\004\022b\n\021Upd" + "ateMemberState\0221.bgs.protocol.channel.v1" + ".UpdateMemberStateRequest\032\024.bgs.protocol" + ".NoData\"\004\200\265\030\005\022P\n\010Dissolve\022(.bgs.protocol" + ".channel.v1.DissolveRequest\032\024.bgs.protoc" + "ol.NoData\"\004\200\265\030\006\032 \312>\035bnet.protocol.channe" + "l.Channel2\375\005\n\017ChannelListener\022T\n\006OnJoin\022" + ").bgs.protocol.channel.v1.JoinNotificati" + "on\032\031.bgs.protocol.NO_RESPONSE\"\004\200\265\030\001\022b\n\rO" + "nMemberAdded\0220.bgs.protocol.channel.v1.M" + "emberAddedNotification\032\031.bgs.protocol.NO" + "_RESPONSE\"\004\200\265\030\002\022V\n\007OnLeave\022*.bgs.protoco" + "l.channel.v1.LeaveNotification\032\031.bgs.pro" + "tocol.NO_RESPONSE\"\004\200\265\030\003\022f\n\017OnMemberRemov" + "ed\0222.bgs.protocol.channel.v1.MemberRemov" + "edNotification\032\031.bgs.protocol.NO_RESPONS" + "E\"\004\200\265\030\004\022b\n\rOnSendMessage\0220.bgs.protocol." + "channel.v1.SendMessageNotification\032\031.bgs" + ".protocol.NO_RESPONSE\"\004\200\265\030\005\022p\n\024OnUpdateC" + "hannelState\0227.bgs.protocol.channel.v1.Up" + "dateChannelStateNotification\032\031.bgs.proto" + "col.NO_RESPONSE\"\004\200\265\030\006\022n\n\023OnUpdateMemberS" + "tate\0226.bgs.protocol.channel.v1.UpdateMem" + "berStateNotification\032\031.bgs.protocol.NO_R" + "ESPONSE\"\004\200\265\030\007\032*\312>\'bnet.protocol.channel." + "ChannelSubscriberB\005H\001\200\001\000", 3784); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "channel_service.proto", &protobuf_RegisterTypes); - AddMemberRequest::default_instance_ = new AddMemberRequest(); RemoveMemberRequest::default_instance_ = new RemoveMemberRequest(); - UnsubscribeMemberRequest::default_instance_ = new UnsubscribeMemberRequest(); SendMessageRequest::default_instance_ = new SendMessageRequest(); UpdateChannelStateRequest::default_instance_ = new UpdateChannelStateRequest(); UpdateMemberStateRequest::default_instance_ = new UpdateMemberStateRequest(); DissolveRequest::default_instance_ = new DissolveRequest(); - SetRolesRequest::default_instance_ = new SetRolesRequest(); JoinNotification::default_instance_ = new JoinNotification(); MemberAddedNotification::default_instance_ = new MemberAddedNotification(); LeaveNotification::default_instance_ = new LeaveNotification(); @@ -577,14 +481,11 @@ void protobuf_AddDesc_channel_5fservice_2eproto() { SendMessageNotification::default_instance_ = new SendMessageNotification(); UpdateChannelStateNotification::default_instance_ = new UpdateChannelStateNotification(); UpdateMemberStateNotification::default_instance_ = new UpdateMemberStateNotification(); - AddMemberRequest::default_instance_->InitAsDefaultInstance(); RemoveMemberRequest::default_instance_->InitAsDefaultInstance(); - UnsubscribeMemberRequest::default_instance_->InitAsDefaultInstance(); SendMessageRequest::default_instance_->InitAsDefaultInstance(); UpdateChannelStateRequest::default_instance_->InitAsDefaultInstance(); UpdateMemberStateRequest::default_instance_->InitAsDefaultInstance(); DissolveRequest::default_instance_->InitAsDefaultInstance(); - SetRolesRequest::default_instance_->InitAsDefaultInstance(); JoinNotification::default_instance_->InitAsDefaultInstance(); MemberAddedNotification::default_instance_->InitAsDefaultInstance(); LeaveNotification::default_instance_->InitAsDefaultInstance(); @@ -605,409 +506,6 @@ struct StaticDescriptorInitializer_channel_5fservice_2eproto { // =================================================================== #ifndef _MSC_VER -const int AddMemberRequest::kAgentIdFieldNumber; -const int AddMemberRequest::kMemberIdentityFieldNumber; -const int AddMemberRequest::kMemberStateFieldNumber; -const int AddMemberRequest::kObjectIdFieldNumber; -const int AddMemberRequest::kSubscribeFieldNumber; -#endif // !_MSC_VER - -AddMemberRequest::AddMemberRequest() - : ::google::protobuf::Message() { - SharedCtor(); - // @@protoc_insertion_point(constructor:bgs.protocol.channel.v1.AddMemberRequest) -} - -void AddMemberRequest::InitAsDefaultInstance() { - agent_id_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); - member_identity_ = const_cast< ::bgs::protocol::Identity*>(&::bgs::protocol::Identity::default_instance()); - member_state_ = const_cast< ::bgs::protocol::channel::v1::MemberState*>(&::bgs::protocol::channel::v1::MemberState::default_instance()); -} - -AddMemberRequest::AddMemberRequest(const AddMemberRequest& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:bgs.protocol.channel.v1.AddMemberRequest) -} - -void AddMemberRequest::SharedCtor() { - _cached_size_ = 0; - agent_id_ = NULL; - member_identity_ = NULL; - member_state_ = NULL; - object_id_ = GOOGLE_ULONGLONG(0); - subscribe_ = true; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AddMemberRequest::~AddMemberRequest() { - // @@protoc_insertion_point(destructor:bgs.protocol.channel.v1.AddMemberRequest) - SharedDtor(); -} - -void AddMemberRequest::SharedDtor() { - if (this != default_instance_) { - delete agent_id_; - delete member_identity_; - delete member_state_; - } -} - -void AddMemberRequest::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AddMemberRequest::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AddMemberRequest_descriptor_; -} - -const AddMemberRequest& AddMemberRequest::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_channel_5fservice_2eproto(); - return *default_instance_; -} - -AddMemberRequest* AddMemberRequest::default_instance_ = NULL; - -AddMemberRequest* AddMemberRequest::New() const { - return new AddMemberRequest; -} - -void AddMemberRequest::Clear() { - if (_has_bits_[0 / 32] & 31) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_member_identity()) { - if (member_identity_ != NULL) member_identity_->::bgs::protocol::Identity::Clear(); - } - if (has_member_state()) { - if (member_state_ != NULL) member_state_->::bgs::protocol::channel::v1::MemberState::Clear(); - } - object_id_ = GOOGLE_ULONGLONG(0); - subscribe_ = true; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AddMemberRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.channel.v1.AddMemberRequest) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .bgs.protocol.EntityId agent_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_agent_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_member_identity; - break; - } - - // required .bgs.protocol.Identity member_identity = 2; - case 2: { - if (tag == 18) { - parse_member_identity: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_member_identity())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_member_state; - break; - } - - // required .bgs.protocol.channel.v1.MemberState member_state = 3; - case 3: { - if (tag == 26) { - parse_member_state: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_member_state())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_object_id; - break; - } - - // required uint64 object_id = 4; - case 4: { - if (tag == 32) { - parse_object_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &object_id_))); - set_has_object_id(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_subscribe; - break; - } - - // optional bool subscribe = 5 [default = true]; - case 5: { - if (tag == 40) { - parse_subscribe: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &subscribe_))); - set_has_subscribe(); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:bgs.protocol.channel.v1.AddMemberRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.channel.v1.AddMemberRequest) - return false; -#undef DO_ -} - -void AddMemberRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.channel.v1.AddMemberRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // required .bgs.protocol.Identity member_identity = 2; - if (has_member_identity()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->member_identity(), output); - } - - // required .bgs.protocol.channel.v1.MemberState member_state = 3; - if (has_member_state()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->member_state(), output); - } - - // required uint64 object_id = 4; - if (has_object_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->object_id(), output); - } - - // optional bool subscribe = 5 [default = true]; - if (has_subscribe()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->subscribe(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.channel.v1.AddMemberRequest) -} - -::google::protobuf::uint8* AddMemberRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.channel.v1.AddMemberRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // required .bgs.protocol.Identity member_identity = 2; - if (has_member_identity()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->member_identity(), target); - } - - // required .bgs.protocol.channel.v1.MemberState member_state = 3; - if (has_member_state()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->member_state(), target); - } - - // required uint64 object_id = 4; - if (has_object_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->object_id(), target); - } - - // optional bool subscribe = 5 [default = true]; - if (has_subscribe()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->subscribe(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.channel.v1.AddMemberRequest) - return target; -} - -int AddMemberRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // required .bgs.protocol.Identity member_identity = 2; - if (has_member_identity()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member_identity()); - } - - // required .bgs.protocol.channel.v1.MemberState member_state = 3; - if (has_member_state()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member_state()); - } - - // required uint64 object_id = 4; - if (has_object_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->object_id()); - } - - // optional bool subscribe = 5 [default = true]; - if (has_subscribe()) { - total_size += 1 + 1; - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AddMemberRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AddMemberRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available<const AddMemberRequest*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AddMemberRequest::MergeFrom(const AddMemberRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_agent_id()) { - mutable_agent_id()->::bgs::protocol::EntityId::MergeFrom(from.agent_id()); - } - if (from.has_member_identity()) { - mutable_member_identity()->::bgs::protocol::Identity::MergeFrom(from.member_identity()); - } - if (from.has_member_state()) { - mutable_member_state()->::bgs::protocol::channel::v1::MemberState::MergeFrom(from.member_state()); - } - if (from.has_object_id()) { - set_object_id(from.object_id()); - } - if (from.has_subscribe()) { - set_subscribe(from.subscribe()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AddMemberRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AddMemberRequest::CopyFrom(const AddMemberRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AddMemberRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x0000000e) != 0x0000000e) return false; - - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_member_identity()) { - if (!this->member_identity().IsInitialized()) return false; - } - if (has_member_state()) { - if (!this->member_state().IsInitialized()) return false; - } - return true; -} - -void AddMemberRequest::Swap(AddMemberRequest* other) { - if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(member_identity_, other->member_identity_); - std::swap(member_state_, other->member_state_); - std::swap(object_id_, other->object_id_); - std::swap(subscribe_, other->subscribe_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata AddMemberRequest::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AddMemberRequest_descriptor_; - metadata.reflection = AddMemberRequest_reflection_; - return metadata; -} - - -// =================================================================== - -#ifndef _MSC_VER const int RemoveMemberRequest::kAgentIdFieldNumber; const int RemoveMemberRequest::kMemberIdFieldNumber; const int RemoveMemberRequest::kReasonFieldNumber; @@ -1327,286 +825,6 @@ void RemoveMemberRequest::Swap(RemoveMemberRequest* other) { // =================================================================== #ifndef _MSC_VER -const int UnsubscribeMemberRequest::kAgentIdFieldNumber; -const int UnsubscribeMemberRequest::kMemberIdFieldNumber; -#endif // !_MSC_VER - -UnsubscribeMemberRequest::UnsubscribeMemberRequest() - : ::google::protobuf::Message() { - SharedCtor(); - // @@protoc_insertion_point(constructor:bgs.protocol.channel.v1.UnsubscribeMemberRequest) -} - -void UnsubscribeMemberRequest::InitAsDefaultInstance() { - agent_id_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); - member_id_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); -} - -UnsubscribeMemberRequest::UnsubscribeMemberRequest(const UnsubscribeMemberRequest& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:bgs.protocol.channel.v1.UnsubscribeMemberRequest) -} - -void UnsubscribeMemberRequest::SharedCtor() { - _cached_size_ = 0; - agent_id_ = NULL; - member_id_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -UnsubscribeMemberRequest::~UnsubscribeMemberRequest() { - // @@protoc_insertion_point(destructor:bgs.protocol.channel.v1.UnsubscribeMemberRequest) - SharedDtor(); -} - -void UnsubscribeMemberRequest::SharedDtor() { - if (this != default_instance_) { - delete agent_id_; - delete member_id_; - } -} - -void UnsubscribeMemberRequest::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* UnsubscribeMemberRequest::descriptor() { - protobuf_AssignDescriptorsOnce(); - return UnsubscribeMemberRequest_descriptor_; -} - -const UnsubscribeMemberRequest& UnsubscribeMemberRequest::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_channel_5fservice_2eproto(); - return *default_instance_; -} - -UnsubscribeMemberRequest* UnsubscribeMemberRequest::default_instance_ = NULL; - -UnsubscribeMemberRequest* UnsubscribeMemberRequest::New() const { - return new UnsubscribeMemberRequest; -} - -void UnsubscribeMemberRequest::Clear() { - if (_has_bits_[0 / 32] & 3) { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - if (has_member_id()) { - if (member_id_ != NULL) member_id_->::bgs::protocol::EntityId::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool UnsubscribeMemberRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.channel.v1.UnsubscribeMemberRequest) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .bgs.protocol.EntityId agent_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_agent_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_member_id; - break; - } - - // required .bgs.protocol.EntityId member_id = 2; - case 2: { - if (tag == 18) { - parse_member_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_member_id())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:bgs.protocol.channel.v1.UnsubscribeMemberRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.channel.v1.UnsubscribeMemberRequest) - return false; -#undef DO_ -} - -void UnsubscribeMemberRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.channel.v1.UnsubscribeMemberRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // required .bgs.protocol.EntityId member_id = 2; - if (has_member_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->member_id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.channel.v1.UnsubscribeMemberRequest) -} - -::google::protobuf::uint8* UnsubscribeMemberRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.channel.v1.UnsubscribeMemberRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // required .bgs.protocol.EntityId member_id = 2; - if (has_member_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->member_id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.channel.v1.UnsubscribeMemberRequest) - return target; -} - -int UnsubscribeMemberRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - // required .bgs.protocol.EntityId member_id = 2; - if (has_member_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member_id()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void UnsubscribeMemberRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const UnsubscribeMemberRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available<const UnsubscribeMemberRequest*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void UnsubscribeMemberRequest::MergeFrom(const UnsubscribeMemberRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_agent_id()) { - mutable_agent_id()->::bgs::protocol::EntityId::MergeFrom(from.agent_id()); - } - if (from.has_member_id()) { - mutable_member_id()->::bgs::protocol::EntityId::MergeFrom(from.member_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void UnsubscribeMemberRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UnsubscribeMemberRequest::CopyFrom(const UnsubscribeMemberRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UnsubscribeMemberRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; - - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (has_member_id()) { - if (!this->member_id().IsInitialized()) return false; - } - return true; -} - -void UnsubscribeMemberRequest::Swap(UnsubscribeMemberRequest* other) { - if (other != this) { - std::swap(agent_id_, other->agent_id_); - std::swap(member_id_, other->member_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata UnsubscribeMemberRequest::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = UnsubscribeMemberRequest_descriptor_; - metadata.reflection = UnsubscribeMemberRequest_reflection_; - return metadata; -} - - -// =================================================================== - -#ifndef _MSC_VER const int SendMessageRequest::kAgentIdFieldNumber; const int SendMessageRequest::kMessageFieldNumber; const int SendMessageRequest::kRequiredPrivilegesFieldNumber; @@ -2231,6 +1449,7 @@ UpdateMemberStateRequest::UpdateMemberStateRequest(const UpdateMemberStateReques void UpdateMemberStateRequest::SharedCtor() { _cached_size_ = 0; agent_id_ = NULL; + _removed_role_cached_byte_size_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -2810,339 +2029,6 @@ void DissolveRequest::Swap(DissolveRequest* other) { // =================================================================== #ifndef _MSC_VER -const int SetRolesRequest::kAgentIdFieldNumber; -const int SetRolesRequest::kRoleFieldNumber; -const int SetRolesRequest::kMemberIdFieldNumber; -#endif // !_MSC_VER - -SetRolesRequest::SetRolesRequest() - : ::google::protobuf::Message() { - SharedCtor(); - // @@protoc_insertion_point(constructor:bgs.protocol.channel.v1.SetRolesRequest) -} - -void SetRolesRequest::InitAsDefaultInstance() { - agent_id_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); -} - -SetRolesRequest::SetRolesRequest(const SetRolesRequest& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:bgs.protocol.channel.v1.SetRolesRequest) -} - -void SetRolesRequest::SharedCtor() { - _cached_size_ = 0; - agent_id_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -SetRolesRequest::~SetRolesRequest() { - // @@protoc_insertion_point(destructor:bgs.protocol.channel.v1.SetRolesRequest) - SharedDtor(); -} - -void SetRolesRequest::SharedDtor() { - if (this != default_instance_) { - delete agent_id_; - } -} - -void SetRolesRequest::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SetRolesRequest::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SetRolesRequest_descriptor_; -} - -const SetRolesRequest& SetRolesRequest::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_channel_5fservice_2eproto(); - return *default_instance_; -} - -SetRolesRequest* SetRolesRequest::default_instance_ = NULL; - -SetRolesRequest* SetRolesRequest::New() const { - return new SetRolesRequest; -} - -void SetRolesRequest::Clear() { - if (has_agent_id()) { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - } - role_.Clear(); - member_id_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SetRolesRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.channel.v1.SetRolesRequest) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .bgs.protocol.EntityId agent_id = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_agent_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_role; - break; - } - - // repeated uint32 role = 2 [packed = true]; - case 2: { - if (tag == 18) { - parse_role: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_role()))); - } else if (tag == 16) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 18, input, this->mutable_role()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_member_id; - break; - } - - // repeated .bgs.protocol.EntityId member_id = 3; - case 3: { - if (tag == 26) { - parse_member_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_member_id())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_member_id; - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:bgs.protocol.channel.v1.SetRolesRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.channel.v1.SetRolesRequest) - return false; -#undef DO_ -} - -void SetRolesRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.channel.v1.SetRolesRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->agent_id(), output); - } - - // repeated uint32 role = 2 [packed = true]; - if (this->role_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_role_cached_byte_size_); - } - for (int i = 0; i < this->role_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->role(i), output); - } - - // repeated .bgs.protocol.EntityId member_id = 3; - for (int i = 0; i < this->member_id_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->member_id(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.channel.v1.SetRolesRequest) -} - -::google::protobuf::uint8* SetRolesRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.channel.v1.SetRolesRequest) - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->agent_id(), target); - } - - // repeated uint32 role = 2 [packed = true]; - if (this->role_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 2, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _role_cached_byte_size_, target); - } - for (int i = 0; i < this->role_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32NoTagToArray(this->role(i), target); - } - - // repeated .bgs.protocol.EntityId member_id = 3; - for (int i = 0; i < this->member_id_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->member_id(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.channel.v1.SetRolesRequest) - return target; -} - -int SetRolesRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.EntityId agent_id = 1; - if (has_agent_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->agent_id()); - } - - } - // repeated uint32 role = 2 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->role_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->role(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _role_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated .bgs.protocol.EntityId member_id = 3; - total_size += 1 * this->member_id_size(); - for (int i = 0; i < this->member_id_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->member_id(i)); - } - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SetRolesRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SetRolesRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available<const SetRolesRequest*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SetRolesRequest::MergeFrom(const SetRolesRequest& from) { - GOOGLE_CHECK_NE(&from, this); - role_.MergeFrom(from.role_); - member_id_.MergeFrom(from.member_id_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_agent_id()) { - mutable_agent_id()->::bgs::protocol::EntityId::MergeFrom(from.agent_id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SetRolesRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SetRolesRequest::CopyFrom(const SetRolesRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SetRolesRequest::IsInitialized() const { - - if (has_agent_id()) { - if (!this->agent_id().IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->member_id())) return false; - return true; -} - -void SetRolesRequest::Swap(SetRolesRequest* other) { - if (other != this) { - std::swap(agent_id_, other->agent_id_); - role_.Swap(&other->role_); - member_id_.Swap(&other->member_id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata SetRolesRequest::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SetRolesRequest_descriptor_; - metadata.reflection = SetRolesRequest_reflection_; - return metadata; -} - - -// =================================================================== - -#ifndef _MSC_VER const int JoinNotification::kSelfFieldNumber; const int JoinNotification::kMemberFieldNumber; const int JoinNotification::kChannelStateFieldNumber; @@ -3998,7 +2884,7 @@ bool LeaveNotification::MergePartialFromCodedStream( break; } - // required .bgs.protocol.EntityId member_id = 2; + // required .bgs.protocol.EntityId member_id = 2 [deprecated = true]; case 2: { if (tag == 18) { parse_member_id: @@ -4083,7 +2969,7 @@ void LeaveNotification::SerializeWithCachedSizes( 1, this->agent_id(), output); } - // required .bgs.protocol.EntityId member_id = 2; + // required .bgs.protocol.EntityId member_id = 2 [deprecated = true]; if (has_member_id()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->member_id(), output); @@ -4123,7 +3009,7 @@ void LeaveNotification::SerializeWithCachedSizes( 1, this->agent_id(), target); } - // required .bgs.protocol.EntityId member_id = 2; + // required .bgs.protocol.EntityId member_id = 2 [deprecated = true]; if (has_member_id()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( @@ -4168,7 +3054,7 @@ int LeaveNotification::ByteSize() const { this->agent_id()); } - // required .bgs.protocol.EntityId member_id = 2; + // required .bgs.protocol.EntityId member_id = 2 [deprecated = true]; if (has_member_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( @@ -4713,7 +3599,7 @@ void MemberRemovedNotification::Swap(MemberRemovedNotification* other) { const int SendMessageNotification::kAgentIdFieldNumber; const int SendMessageNotification::kMessageFieldNumber; const int SendMessageNotification::kRequiredPrivilegesFieldNumber; -const int SendMessageNotification::kIdentityFieldNumber; +const int SendMessageNotification::kBattleTagFieldNumber; const int SendMessageNotification::kChannelIdFieldNumber; const int SendMessageNotification::kSubscriberFieldNumber; #endif // !_MSC_VER @@ -4744,7 +3630,7 @@ void SendMessageNotification::SharedCtor() { agent_id_ = NULL; message_ = NULL; required_privileges_ = GOOGLE_ULONGLONG(0); - identity_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); channel_id_ = NULL; subscriber_ = NULL; ::memset(_has_bits_, 0, sizeof(_has_bits_)); @@ -4756,8 +3642,8 @@ SendMessageNotification::~SendMessageNotification() { } void SendMessageNotification::SharedDtor() { - if (identity_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete identity_; + if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete battle_tag_; } if (this != default_instance_) { delete agent_id_; @@ -4797,9 +3683,9 @@ void SendMessageNotification::Clear() { if (message_ != NULL) message_->::bgs::protocol::channel::v1::Message::Clear(); } required_privileges_ = GOOGLE_ULONGLONG(0); - if (has_identity()) { - if (identity_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - identity_->clear(); + if (has_battle_tag()) { + if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_->clear(); } } if (has_channel_id()) { @@ -4859,20 +3745,20 @@ bool SendMessageNotification::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_identity; + if (input->ExpectTag(34)) goto parse_battle_tag; break; } - // optional string identity = 4; + // optional string battle_tag = 4; case 4: { if (tag == 34) { - parse_identity: + parse_battle_tag: DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_identity())); + input, this->mutable_battle_tag())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->identity().data(), this->identity().length(), + this->battle_tag().data(), this->battle_tag().length(), ::google::protobuf::internal::WireFormat::PARSE, - "identity"); + "battle_tag"); } else { goto handle_unusual; } @@ -4948,14 +3834,14 @@ void SendMessageNotification::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->required_privileges(), output); } - // optional string identity = 4; - if (has_identity()) { + // optional string battle_tag = 4; + if (has_battle_tag()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->identity().data(), this->identity().length(), + this->battle_tag().data(), this->battle_tag().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, - "identity"); + "battle_tag"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->identity(), output); + 4, this->battle_tag(), output); } // optional .bgs.protocol.channel.v1.ChannelId channel_id = 5; @@ -4999,15 +3885,15 @@ void SendMessageNotification::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->required_privileges(), target); } - // optional string identity = 4; - if (has_identity()) { + // optional string battle_tag = 4; + if (has_battle_tag()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->identity().data(), this->identity().length(), + this->battle_tag().data(), this->battle_tag().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, - "identity"); + "battle_tag"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->identity(), target); + 4, this->battle_tag(), target); } // optional .bgs.protocol.channel.v1.ChannelId channel_id = 5; @@ -5057,11 +3943,11 @@ int SendMessageNotification::ByteSize() const { this->required_privileges()); } - // optional string identity = 4; - if (has_identity()) { + // optional string battle_tag = 4; + if (has_battle_tag()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->identity()); + this->battle_tag()); } // optional .bgs.protocol.channel.v1.ChannelId channel_id = 5; @@ -5114,8 +4000,8 @@ void SendMessageNotification::MergeFrom(const SendMessageNotification& from) { if (from.has_required_privileges()) { set_required_privileges(from.required_privileges()); } - if (from.has_identity()) { - set_identity(from.identity()); + if (from.has_battle_tag()) { + set_battle_tag(from.battle_tag()); } if (from.has_channel_id()) { mutable_channel_id()->::bgs::protocol::channel::v1::ChannelId::MergeFrom(from.channel_id()); @@ -5162,7 +4048,7 @@ void SendMessageNotification::Swap(SendMessageNotification* other) { std::swap(agent_id_, other->agent_id_); std::swap(message_, other->message_); std::swap(required_privileges_, other->required_privileges_); - std::swap(identity_, other->identity_); + std::swap(battle_tag_, other->battle_tag_); std::swap(channel_id_, other->channel_id_); std::swap(subscriber_, other->subscriber_); std::swap(_has_bits_[0], other->_has_bits_[0]); @@ -5559,7 +4445,6 @@ void UpdateChannelStateNotification::Swap(UpdateChannelStateNotification* other) #ifndef _MSC_VER const int UpdateMemberStateNotification::kAgentIdFieldNumber; const int UpdateMemberStateNotification::kStateChangeFieldNumber; -const int UpdateMemberStateNotification::kRemovedRoleFieldNumber; const int UpdateMemberStateNotification::kChannelIdFieldNumber; const int UpdateMemberStateNotification::kSubscriberFieldNumber; #endif // !_MSC_VER @@ -5626,7 +4511,7 @@ UpdateMemberStateNotification* UpdateMemberStateNotification::New() const { } void UpdateMemberStateNotification::Clear() { - if (_has_bits_[0 / 32] & 25) { + if (_has_bits_[0 / 32] & 13) { if (has_agent_id()) { if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); } @@ -5638,7 +4523,6 @@ void UpdateMemberStateNotification::Clear() { } } state_change_.Clear(); - removed_role_.Clear(); ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } @@ -5675,24 +4559,6 @@ bool UpdateMemberStateNotification::MergePartialFromCodedStream( goto handle_unusual; } if (input->ExpectTag(18)) goto parse_state_change; - if (input->ExpectTag(26)) goto parse_removed_role; - break; - } - - // repeated uint32 removed_role = 3 [packed = true]; - case 3: { - if (tag == 26) { - parse_removed_role: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_removed_role()))); - } else if (tag == 24) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 26, input, this->mutable_removed_role()))); - } else { - goto handle_unusual; - } if (input->ExpectTag(34)) goto parse_channel_id; break; } @@ -5760,16 +4626,6 @@ void UpdateMemberStateNotification::SerializeWithCachedSizes( 2, this->state_change(i), output); } - // repeated uint32 removed_role = 3 [packed = true]; - if (this->removed_role_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_removed_role_cached_byte_size_); - } - for (int i = 0; i < this->removed_role_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->removed_role(i), output); - } - // optional .bgs.protocol.channel.v1.ChannelId channel_id = 4; if (has_channel_id()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( @@ -5806,20 +4662,6 @@ void UpdateMemberStateNotification::SerializeWithCachedSizes( 2, this->state_change(i), target); } - // repeated uint32 removed_role = 3 [packed = true]; - if (this->removed_role_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 3, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _removed_role_cached_byte_size_, target); - } - for (int i = 0; i < this->removed_role_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32NoTagToArray(this->removed_role(i), target); - } - // optional .bgs.protocol.channel.v1.ChannelId channel_id = 4; if (has_channel_id()) { target = ::google::protobuf::internal::WireFormatLite:: @@ -5876,23 +4718,6 @@ int UpdateMemberStateNotification::ByteSize() const { this->state_change(i)); } - // repeated uint32 removed_role = 3 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->removed_role_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->removed_role(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _removed_role_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( @@ -5919,7 +4744,6 @@ void UpdateMemberStateNotification::MergeFrom(const ::google::protobuf::Message& void UpdateMemberStateNotification::MergeFrom(const UpdateMemberStateNotification& from) { GOOGLE_CHECK_NE(&from, this); state_change_.MergeFrom(from.state_change_); - removed_role_.MergeFrom(from.removed_role_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_agent_id()) { mutable_agent_id()->::bgs::protocol::EntityId::MergeFrom(from.agent_id()); @@ -5965,7 +4789,6 @@ void UpdateMemberStateNotification::Swap(UpdateMemberStateNotification* other) { if (other != this) { std::swap(agent_id_, other->agent_id_); state_change_.Swap(&other->state_change_); - removed_role_.Swap(&other->removed_role_); std::swap(channel_id_, other->channel_id_); std::swap(subscriber_, other->subscriber_); std::swap(_has_bits_[0], other->_has_bits_[0]); @@ -5996,17 +4819,6 @@ google::protobuf::ServiceDescriptor const* ChannelService::descriptor() { return ChannelService_descriptor_; } -void ChannelService::AddMember(::bgs::protocol::channel::v1::AddMemberRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ChannelService.AddMember(bgs.protocol.channel.v1.AddMemberRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); - std::function<void(MessageBuffer)> callback = [responseCallback](MessageBuffer buffer) -> void { - ::bgs::protocol::NoData response; - if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) - responseCallback(&response); - }; - SendRequest(service_hash_, 1, request, std::move(callback)); -} - void ChannelService::RemoveMember(::bgs::protocol::channel::v1::RemoveMemberRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback) { TC_LOG_DEBUG("service.protobuf", "%s Server called client method ChannelService.RemoveMember(bgs.protocol.channel.v1.RemoveMemberRequest{ %s })", GetCallerInfo().c_str(), request->ShortDebugString().c_str()); @@ -6062,48 +4874,8 @@ void ChannelService::Dissolve(::bgs::protocol::channel::v1::DissolveRequest cons SendRequest(service_hash_, 6, request, std::move(callback)); } -void ChannelService::SetRoles(::bgs::protocol::channel::v1::SetRolesRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ChannelService.SetRoles(bgs.protocol.channel.v1.SetRolesRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); - std::function<void(MessageBuffer)> callback = [responseCallback](MessageBuffer buffer) -> void { - ::bgs::protocol::NoData response; - if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) - responseCallback(&response); - }; - SendRequest(service_hash_, 7, request, std::move(callback)); -} - -void ChannelService::UnsubscribeMember(::bgs::protocol::channel::v1::UnsubscribeMemberRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback) { - TC_LOG_DEBUG("service.protobuf", "%s Server called client method ChannelService.UnsubscribeMember(bgs.protocol.channel.v1.UnsubscribeMemberRequest{ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); - std::function<void(MessageBuffer)> callback = [responseCallback](MessageBuffer buffer) -> void { - ::bgs::protocol::NoData response; - if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) - responseCallback(&response); - }; - SendRequest(service_hash_, 8, request, std::move(callback)); -} - void ChannelService::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) { switch(methodId) { - case 1: { - ::bgs::protocol::channel::v1::AddMemberRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ChannelService.AddMember server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, 1, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - - ::bgs::protocol::NoData response; - uint32 status = HandleAddMember(&request, &response); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ChannelService.AddMember(bgs.protocol.channel.v1.AddMemberRequest{ %s }) returned bgs.protocol.NoData{ %s } status %u.", - GetCallerInfo().c_str(), request.ShortDebugString().c_str(), response.ShortDebugString().c_str(), status); - if (!status) - SendResponse(service_hash_, 1, token, &response); - else - SendResponse(service_hash_, 1, token, status); - break; - } case 2: { ::bgs::protocol::channel::v1::RemoveMemberRequest request; if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { @@ -6194,42 +4966,6 @@ void ChannelService::CallServerMethod(uint32 token, uint32 methodId, MessageBuff SendResponse(service_hash_, 6, token, status); break; } - case 7: { - ::bgs::protocol::channel::v1::SetRolesRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ChannelService.SetRoles server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, 7, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - - ::bgs::protocol::NoData response; - uint32 status = HandleSetRoles(&request, &response); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ChannelService.SetRoles(bgs.protocol.channel.v1.SetRolesRequest{ %s }) returned bgs.protocol.NoData{ %s } status %u.", - GetCallerInfo().c_str(), request.ShortDebugString().c_str(), response.ShortDebugString().c_str(), status); - if (!status) - SendResponse(service_hash_, 7, token, &response); - else - SendResponse(service_hash_, 7, token, status); - break; - } - case 8: { - ::bgs::protocol::channel::v1::UnsubscribeMemberRequest request; - if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { - TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ChannelService.UnsubscribeMember server method call.", GetCallerInfo().c_str()); - SendResponse(service_hash_, 8, token, ERROR_RPC_MALFORMED_REQUEST); - return; - } - - ::bgs::protocol::NoData response; - uint32 status = HandleUnsubscribeMember(&request, &response); - TC_LOG_DEBUG("service.protobuf", "%s Client called server method ChannelService.UnsubscribeMember(bgs.protocol.channel.v1.UnsubscribeMemberRequest{ %s }) returned bgs.protocol.NoData{ %s } status %u.", - GetCallerInfo().c_str(), request.ShortDebugString().c_str(), response.ShortDebugString().c_str(), status); - if (!status) - SendResponse(service_hash_, 8, token, &response); - else - SendResponse(service_hash_, 8, token, status); - break; - } default: TC_LOG_ERROR("service.protobuf", "Bad method id %u.", methodId); SendResponse(service_hash_, methodId, token, ERROR_RPC_INVALID_METHOD); @@ -6237,12 +4973,6 @@ void ChannelService::CallServerMethod(uint32 token, uint32 methodId, MessageBuff } } -uint32 ChannelService::HandleAddMember(::bgs::protocol::channel::v1::AddMemberRequest const* request, ::bgs::protocol::NoData* response) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ChannelService.AddMember({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); - return ERROR_RPC_NOT_IMPLEMENTED; -} - uint32 ChannelService::HandleRemoveMember(::bgs::protocol::channel::v1::RemoveMemberRequest const* request, ::bgs::protocol::NoData* response) { TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ChannelService.RemoveMember({ %s })", GetCallerInfo().c_str(), request->ShortDebugString().c_str()); @@ -6273,18 +5003,6 @@ uint32 ChannelService::HandleDissolve(::bgs::protocol::channel::v1::DissolveRequ return ERROR_RPC_NOT_IMPLEMENTED; } -uint32 ChannelService::HandleSetRoles(::bgs::protocol::channel::v1::SetRolesRequest const* request, ::bgs::protocol::NoData* response) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ChannelService.SetRoles({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); - return ERROR_RPC_NOT_IMPLEMENTED; -} - -uint32 ChannelService::HandleUnsubscribeMember(::bgs::protocol::channel::v1::UnsubscribeMemberRequest const* request, ::bgs::protocol::NoData* response) { - TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ChannelService.UnsubscribeMember({ %s })", - GetCallerInfo().c_str(), request->ShortDebugString().c_str()); - return ERROR_RPC_NOT_IMPLEMENTED; -} - // =================================================================== ChannelListener::ChannelListener(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { diff --git a/src/server/proto/Client/channel_service.pb.h b/src/server/proto/Client/channel_service.pb.h index 61eafd1e856..c369b3ac8fe 100644 --- a/src/server/proto/Client/channel_service.pb.h +++ b/src/server/proto/Client/channel_service.pb.h @@ -44,14 +44,11 @@ void TC_PROTO_API protobuf_AddDesc_channel_5fservice_2eproto(); void protobuf_AssignDesc_channel_5fservice_2eproto(); void protobuf_ShutdownFile_channel_5fservice_2eproto(); -class AddMemberRequest; class RemoveMemberRequest; -class UnsubscribeMemberRequest; class SendMessageRequest; class UpdateChannelStateRequest; class UpdateMemberStateRequest; class DissolveRequest; -class SetRolesRequest; class JoinNotification; class MemberAddedNotification; class LeaveNotification; @@ -62,131 +59,6 @@ class UpdateMemberStateNotification; // =================================================================== -class TC_PROTO_API AddMemberRequest : public ::google::protobuf::Message { - public: - AddMemberRequest(); - virtual ~AddMemberRequest(); - - AddMemberRequest(const AddMemberRequest& from); - - inline AddMemberRequest& operator=(const AddMemberRequest& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const AddMemberRequest& default_instance(); - - void Swap(AddMemberRequest* other); - - // implements Message ---------------------------------------------- - - AddMemberRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AddMemberRequest& from); - void MergeFrom(const AddMemberRequest& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .bgs.protocol.EntityId agent_id = 1; - inline bool has_agent_id() const; - inline void clear_agent_id(); - static const int kAgentIdFieldNumber = 1; - inline const ::bgs::protocol::EntityId& agent_id() const; - inline ::bgs::protocol::EntityId* mutable_agent_id(); - inline ::bgs::protocol::EntityId* release_agent_id(); - inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id); - - // required .bgs.protocol.Identity member_identity = 2; - inline bool has_member_identity() const; - inline void clear_member_identity(); - static const int kMemberIdentityFieldNumber = 2; - inline const ::bgs::protocol::Identity& member_identity() const; - inline ::bgs::protocol::Identity* mutable_member_identity(); - inline ::bgs::protocol::Identity* release_member_identity(); - inline void set_allocated_member_identity(::bgs::protocol::Identity* member_identity); - - // required .bgs.protocol.channel.v1.MemberState member_state = 3; - inline bool has_member_state() const; - inline void clear_member_state(); - static const int kMemberStateFieldNumber = 3; - inline const ::bgs::protocol::channel::v1::MemberState& member_state() const; - inline ::bgs::protocol::channel::v1::MemberState* mutable_member_state(); - inline ::bgs::protocol::channel::v1::MemberState* release_member_state(); - inline void set_allocated_member_state(::bgs::protocol::channel::v1::MemberState* member_state); - - // required uint64 object_id = 4; - inline bool has_object_id() const; - inline void clear_object_id(); - static const int kObjectIdFieldNumber = 4; - inline ::google::protobuf::uint64 object_id() const; - inline void set_object_id(::google::protobuf::uint64 value); - - // optional bool subscribe = 5 [default = true]; - inline bool has_subscribe() const; - inline void clear_subscribe(); - static const int kSubscribeFieldNumber = 5; - inline bool subscribe() const; - inline void set_subscribe(bool value); - - // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.AddMemberRequest) - private: - inline void set_has_agent_id(); - inline void clear_has_agent_id(); - inline void set_has_member_identity(); - inline void clear_has_member_identity(); - inline void set_has_member_state(); - inline void clear_has_member_state(); - inline void set_has_object_id(); - inline void clear_has_object_id(); - inline void set_has_subscribe(); - inline void clear_has_subscribe(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::bgs::protocol::EntityId* agent_id_; - ::bgs::protocol::Identity* member_identity_; - ::bgs::protocol::channel::v1::MemberState* member_state_; - ::google::protobuf::uint64 object_id_; - bool subscribe_; - friend void TC_PROTO_API protobuf_AddDesc_channel_5fservice_2eproto(); - friend void protobuf_AssignDesc_channel_5fservice_2eproto(); - friend void protobuf_ShutdownFile_channel_5fservice_2eproto(); - - void InitAsDefaultInstance(); - static AddMemberRequest* default_instance_; -}; -// ------------------------------------------------------------------- - class TC_PROTO_API RemoveMemberRequest : public ::google::protobuf::Message { public: RemoveMemberRequest(); @@ -290,99 +162,6 @@ class TC_PROTO_API RemoveMemberRequest : public ::google::protobuf::Message { }; // ------------------------------------------------------------------- -class TC_PROTO_API UnsubscribeMemberRequest : public ::google::protobuf::Message { - public: - UnsubscribeMemberRequest(); - virtual ~UnsubscribeMemberRequest(); - - UnsubscribeMemberRequest(const UnsubscribeMemberRequest& from); - - inline UnsubscribeMemberRequest& operator=(const UnsubscribeMemberRequest& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const UnsubscribeMemberRequest& default_instance(); - - void Swap(UnsubscribeMemberRequest* other); - - // implements Message ---------------------------------------------- - - UnsubscribeMemberRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const UnsubscribeMemberRequest& from); - void MergeFrom(const UnsubscribeMemberRequest& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .bgs.protocol.EntityId agent_id = 1; - inline bool has_agent_id() const; - inline void clear_agent_id(); - static const int kAgentIdFieldNumber = 1; - inline const ::bgs::protocol::EntityId& agent_id() const; - inline ::bgs::protocol::EntityId* mutable_agent_id(); - inline ::bgs::protocol::EntityId* release_agent_id(); - inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id); - - // required .bgs.protocol.EntityId member_id = 2; - inline bool has_member_id() const; - inline void clear_member_id(); - static const int kMemberIdFieldNumber = 2; - inline const ::bgs::protocol::EntityId& member_id() const; - inline ::bgs::protocol::EntityId* mutable_member_id(); - inline ::bgs::protocol::EntityId* release_member_id(); - inline void set_allocated_member_id(::bgs::protocol::EntityId* member_id); - - // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.UnsubscribeMemberRequest) - private: - inline void set_has_agent_id(); - inline void clear_has_agent_id(); - inline void set_has_member_id(); - inline void clear_has_member_id(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::bgs::protocol::EntityId* agent_id_; - ::bgs::protocol::EntityId* member_id_; - friend void TC_PROTO_API protobuf_AddDesc_channel_5fservice_2eproto(); - friend void protobuf_AssignDesc_channel_5fservice_2eproto(); - friend void protobuf_ShutdownFile_channel_5fservice_2eproto(); - - void InitAsDefaultInstance(); - static UnsubscribeMemberRequest* default_instance_; -}; -// ------------------------------------------------------------------- - class TC_PROTO_API SendMessageRequest : public ::google::protobuf::Message { public: SendMessageRequest(); @@ -778,114 +557,6 @@ class TC_PROTO_API DissolveRequest : public ::google::protobuf::Message { }; // ------------------------------------------------------------------- -class TC_PROTO_API SetRolesRequest : public ::google::protobuf::Message { - public: - SetRolesRequest(); - virtual ~SetRolesRequest(); - - SetRolesRequest(const SetRolesRequest& from); - - inline SetRolesRequest& operator=(const SetRolesRequest& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SetRolesRequest& default_instance(); - - void Swap(SetRolesRequest* other); - - // implements Message ---------------------------------------------- - - SetRolesRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SetRolesRequest& from); - void MergeFrom(const SetRolesRequest& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional .bgs.protocol.EntityId agent_id = 1; - inline bool has_agent_id() const; - inline void clear_agent_id(); - static const int kAgentIdFieldNumber = 1; - inline const ::bgs::protocol::EntityId& agent_id() const; - inline ::bgs::protocol::EntityId* mutable_agent_id(); - inline ::bgs::protocol::EntityId* release_agent_id(); - inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id); - - // repeated uint32 role = 2 [packed = true]; - inline int role_size() const; - inline void clear_role(); - static const int kRoleFieldNumber = 2; - inline ::google::protobuf::uint32 role(int index) const; - inline void set_role(int index, ::google::protobuf::uint32 value); - inline void add_role(::google::protobuf::uint32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - role() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_role(); - - // repeated .bgs.protocol.EntityId member_id = 3; - inline int member_id_size() const; - inline void clear_member_id(); - static const int kMemberIdFieldNumber = 3; - inline const ::bgs::protocol::EntityId& member_id(int index) const; - inline ::bgs::protocol::EntityId* mutable_member_id(int index); - inline ::bgs::protocol::EntityId* add_member_id(); - inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EntityId >& - member_id() const; - inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EntityId >* - mutable_member_id(); - - // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.SetRolesRequest) - private: - inline void set_has_agent_id(); - inline void clear_has_agent_id(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::bgs::protocol::EntityId* agent_id_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > role_; - mutable int _role_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EntityId > member_id_; - friend void TC_PROTO_API protobuf_AddDesc_channel_5fservice_2eproto(); - friend void protobuf_AssignDesc_channel_5fservice_2eproto(); - friend void protobuf_ShutdownFile_channel_5fservice_2eproto(); - - void InitAsDefaultInstance(); - static SetRolesRequest* default_instance_; -}; -// ------------------------------------------------------------------- - class TC_PROTO_API JoinNotification : public ::google::protobuf::Message { public: JoinNotification(); @@ -1183,14 +854,14 @@ class TC_PROTO_API LeaveNotification : public ::google::protobuf::Message { inline ::bgs::protocol::EntityId* release_agent_id(); inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id); - // required .bgs.protocol.EntityId member_id = 2; - inline bool has_member_id() const; - inline void clear_member_id(); + // required .bgs.protocol.EntityId member_id = 2 [deprecated = true]; + inline bool has_member_id() const PROTOBUF_DEPRECATED; + inline void clear_member_id() PROTOBUF_DEPRECATED; static const int kMemberIdFieldNumber = 2; - inline const ::bgs::protocol::EntityId& member_id() const; - inline ::bgs::protocol::EntityId* mutable_member_id(); - inline ::bgs::protocol::EntityId* release_member_id(); - inline void set_allocated_member_id(::bgs::protocol::EntityId* member_id); + inline const ::bgs::protocol::EntityId& member_id() const PROTOBUF_DEPRECATED; + inline ::bgs::protocol::EntityId* mutable_member_id() PROTOBUF_DEPRECATED; + inline ::bgs::protocol::EntityId* release_member_id() PROTOBUF_DEPRECATED; + inline void set_allocated_member_id(::bgs::protocol::EntityId* member_id) PROTOBUF_DEPRECATED; // optional uint32 reason = 3; inline bool has_reason() const; @@ -1453,17 +1124,17 @@ class TC_PROTO_API SendMessageNotification : public ::google::protobuf::Message inline ::google::protobuf::uint64 required_privileges() const; inline void set_required_privileges(::google::protobuf::uint64 value); - // optional string identity = 4; - inline bool has_identity() const; - inline void clear_identity(); - static const int kIdentityFieldNumber = 4; - inline const ::std::string& identity() const; - inline void set_identity(const ::std::string& value); - inline void set_identity(const char* value); - inline void set_identity(const char* value, size_t size); - inline ::std::string* mutable_identity(); - inline ::std::string* release_identity(); - inline void set_allocated_identity(::std::string* identity); + // optional string battle_tag = 4; + inline bool has_battle_tag() const; + inline void clear_battle_tag(); + static const int kBattleTagFieldNumber = 4; + inline const ::std::string& battle_tag() const; + inline void set_battle_tag(const ::std::string& value); + inline void set_battle_tag(const char* value); + inline void set_battle_tag(const char* value, size_t size); + inline ::std::string* mutable_battle_tag(); + inline ::std::string* release_battle_tag(); + inline void set_allocated_battle_tag(::std::string* battle_tag); // optional .bgs.protocol.channel.v1.ChannelId channel_id = 5; inline bool has_channel_id() const; @@ -1491,8 +1162,8 @@ class TC_PROTO_API SendMessageNotification : public ::google::protobuf::Message inline void clear_has_message(); inline void set_has_required_privileges(); inline void clear_has_required_privileges(); - inline void set_has_identity(); - inline void clear_has_identity(); + inline void set_has_battle_tag(); + inline void clear_has_battle_tag(); inline void set_has_channel_id(); inline void clear_has_channel_id(); inline void set_has_subscriber(); @@ -1505,7 +1176,7 @@ class TC_PROTO_API SendMessageNotification : public ::google::protobuf::Message ::bgs::protocol::EntityId* agent_id_; ::bgs::protocol::channel::v1::Message* message_; ::google::protobuf::uint64 required_privileges_; - ::std::string* identity_; + ::std::string* battle_tag_; ::bgs::protocol::channel::v1::ChannelId* channel_id_; ::bgs::protocol::account::v1::Identity* subscriber_; friend void TC_PROTO_API protobuf_AddDesc_channel_5fservice_2eproto(); @@ -1708,18 +1379,6 @@ class TC_PROTO_API UpdateMemberStateNotification : public ::google::protobuf::Me inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member >* mutable_state_change(); - // repeated uint32 removed_role = 3 [packed = true]; - inline int removed_role_size() const; - inline void clear_removed_role(); - static const int kRemovedRoleFieldNumber = 3; - inline ::google::protobuf::uint32 removed_role(int index) const; - inline void set_removed_role(int index, ::google::protobuf::uint32 value); - inline void add_removed_role(::google::protobuf::uint32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - removed_role() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_removed_role(); - // optional .bgs.protocol.channel.v1.ChannelId channel_id = 4; inline bool has_channel_id() const; inline void clear_channel_id(); @@ -1753,8 +1412,6 @@ class TC_PROTO_API UpdateMemberStateNotification : public ::google::protobuf::Me mutable int _cached_size_; ::bgs::protocol::EntityId* agent_id_; ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member > state_change_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > removed_role_; - mutable int _removed_role_cached_byte_size_; ::bgs::protocol::channel::v1::ChannelId* channel_id_; ::bgs::protocol::account::v1::Identity* subscriber_; friend void TC_PROTO_API protobuf_AddDesc_channel_5fservice_2eproto(); @@ -1780,27 +1437,21 @@ class TC_PROTO_API ChannelService : public ServiceBase // client methods -------------------------------------------------- - void AddMember(::bgs::protocol::channel::v1::AddMemberRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback); void RemoveMember(::bgs::protocol::channel::v1::RemoveMemberRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback); void SendMessage(::bgs::protocol::channel::v1::SendMessageRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback); void UpdateChannelState(::bgs::protocol::channel::v1::UpdateChannelStateRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback); void UpdateMemberState(::bgs::protocol::channel::v1::UpdateMemberStateRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback); void Dissolve(::bgs::protocol::channel::v1::DissolveRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback); - void SetRoles(::bgs::protocol::channel::v1::SetRolesRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback); - void UnsubscribeMember(::bgs::protocol::channel::v1::UnsubscribeMemberRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback); // server methods -------------------------------------------------- void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) override final; protected: - virtual uint32 HandleAddMember(::bgs::protocol::channel::v1::AddMemberRequest const* request, ::bgs::protocol::NoData* response); virtual uint32 HandleRemoveMember(::bgs::protocol::channel::v1::RemoveMemberRequest const* request, ::bgs::protocol::NoData* response); virtual uint32 HandleSendMessage(::bgs::protocol::channel::v1::SendMessageRequest const* request, ::bgs::protocol::NoData* response); virtual uint32 HandleUpdateChannelState(::bgs::protocol::channel::v1::UpdateChannelStateRequest const* request, ::bgs::protocol::NoData* response); virtual uint32 HandleUpdateMemberState(::bgs::protocol::channel::v1::UpdateMemberStateRequest const* request, ::bgs::protocol::NoData* response); virtual uint32 HandleDissolve(::bgs::protocol::channel::v1::DissolveRequest const* request, ::bgs::protocol::NoData* response); - virtual uint32 HandleSetRoles(::bgs::protocol::channel::v1::SetRolesRequest const* request, ::bgs::protocol::NoData* response); - virtual uint32 HandleUnsubscribeMember(::bgs::protocol::channel::v1::UnsubscribeMemberRequest const* request, ::bgs::protocol::NoData* response); private: uint32 service_hash_; @@ -1855,181 +1506,6 @@ class TC_PROTO_API ChannelListener : public ServiceBase // =================================================================== -// AddMemberRequest - -// optional .bgs.protocol.EntityId agent_id = 1; -inline bool AddMemberRequest::has_agent_id() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AddMemberRequest::set_has_agent_id() { - _has_bits_[0] |= 0x00000001u; -} -inline void AddMemberRequest::clear_has_agent_id() { - _has_bits_[0] &= ~0x00000001u; -} -inline void AddMemberRequest::clear_agent_id() { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - clear_has_agent_id(); -} -inline const ::bgs::protocol::EntityId& AddMemberRequest::agent_id() const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.AddMemberRequest.agent_id) - return agent_id_ != NULL ? *agent_id_ : *default_instance_->agent_id_; -} -inline ::bgs::protocol::EntityId* AddMemberRequest::mutable_agent_id() { - set_has_agent_id(); - if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId; - // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.AddMemberRequest.agent_id) - return agent_id_; -} -inline ::bgs::protocol::EntityId* AddMemberRequest::release_agent_id() { - clear_has_agent_id(); - ::bgs::protocol::EntityId* temp = agent_id_; - agent_id_ = NULL; - return temp; -} -inline void AddMemberRequest::set_allocated_agent_id(::bgs::protocol::EntityId* agent_id) { - delete agent_id_; - agent_id_ = agent_id; - if (agent_id) { - set_has_agent_id(); - } else { - clear_has_agent_id(); - } - // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.AddMemberRequest.agent_id) -} - -// required .bgs.protocol.Identity member_identity = 2; -inline bool AddMemberRequest::has_member_identity() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AddMemberRequest::set_has_member_identity() { - _has_bits_[0] |= 0x00000002u; -} -inline void AddMemberRequest::clear_has_member_identity() { - _has_bits_[0] &= ~0x00000002u; -} -inline void AddMemberRequest::clear_member_identity() { - if (member_identity_ != NULL) member_identity_->::bgs::protocol::Identity::Clear(); - clear_has_member_identity(); -} -inline const ::bgs::protocol::Identity& AddMemberRequest::member_identity() const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.AddMemberRequest.member_identity) - return member_identity_ != NULL ? *member_identity_ : *default_instance_->member_identity_; -} -inline ::bgs::protocol::Identity* AddMemberRequest::mutable_member_identity() { - set_has_member_identity(); - if (member_identity_ == NULL) member_identity_ = new ::bgs::protocol::Identity; - // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.AddMemberRequest.member_identity) - return member_identity_; -} -inline ::bgs::protocol::Identity* AddMemberRequest::release_member_identity() { - clear_has_member_identity(); - ::bgs::protocol::Identity* temp = member_identity_; - member_identity_ = NULL; - return temp; -} -inline void AddMemberRequest::set_allocated_member_identity(::bgs::protocol::Identity* member_identity) { - delete member_identity_; - member_identity_ = member_identity; - if (member_identity) { - set_has_member_identity(); - } else { - clear_has_member_identity(); - } - // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.AddMemberRequest.member_identity) -} - -// required .bgs.protocol.channel.v1.MemberState member_state = 3; -inline bool AddMemberRequest::has_member_state() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void AddMemberRequest::set_has_member_state() { - _has_bits_[0] |= 0x00000004u; -} -inline void AddMemberRequest::clear_has_member_state() { - _has_bits_[0] &= ~0x00000004u; -} -inline void AddMemberRequest::clear_member_state() { - if (member_state_ != NULL) member_state_->::bgs::protocol::channel::v1::MemberState::Clear(); - clear_has_member_state(); -} -inline const ::bgs::protocol::channel::v1::MemberState& AddMemberRequest::member_state() const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.AddMemberRequest.member_state) - return member_state_ != NULL ? *member_state_ : *default_instance_->member_state_; -} -inline ::bgs::protocol::channel::v1::MemberState* AddMemberRequest::mutable_member_state() { - set_has_member_state(); - if (member_state_ == NULL) member_state_ = new ::bgs::protocol::channel::v1::MemberState; - // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.AddMemberRequest.member_state) - return member_state_; -} -inline ::bgs::protocol::channel::v1::MemberState* AddMemberRequest::release_member_state() { - clear_has_member_state(); - ::bgs::protocol::channel::v1::MemberState* temp = member_state_; - member_state_ = NULL; - return temp; -} -inline void AddMemberRequest::set_allocated_member_state(::bgs::protocol::channel::v1::MemberState* member_state) { - delete member_state_; - member_state_ = member_state; - if (member_state) { - set_has_member_state(); - } else { - clear_has_member_state(); - } - // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.AddMemberRequest.member_state) -} - -// required uint64 object_id = 4; -inline bool AddMemberRequest::has_object_id() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void AddMemberRequest::set_has_object_id() { - _has_bits_[0] |= 0x00000008u; -} -inline void AddMemberRequest::clear_has_object_id() { - _has_bits_[0] &= ~0x00000008u; -} -inline void AddMemberRequest::clear_object_id() { - object_id_ = GOOGLE_ULONGLONG(0); - clear_has_object_id(); -} -inline ::google::protobuf::uint64 AddMemberRequest::object_id() const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.AddMemberRequest.object_id) - return object_id_; -} -inline void AddMemberRequest::set_object_id(::google::protobuf::uint64 value) { - set_has_object_id(); - object_id_ = value; - // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.AddMemberRequest.object_id) -} - -// optional bool subscribe = 5 [default = true]; -inline bool AddMemberRequest::has_subscribe() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void AddMemberRequest::set_has_subscribe() { - _has_bits_[0] |= 0x00000010u; -} -inline void AddMemberRequest::clear_has_subscribe() { - _has_bits_[0] &= ~0x00000010u; -} -inline void AddMemberRequest::clear_subscribe() { - subscribe_ = true; - clear_has_subscribe(); -} -inline bool AddMemberRequest::subscribe() const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.AddMemberRequest.subscribe) - return subscribe_; -} -inline void AddMemberRequest::set_subscribe(bool value) { - set_has_subscribe(); - subscribe_ = value; - // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.AddMemberRequest.subscribe) -} - -// ------------------------------------------------------------------- - // RemoveMemberRequest // optional .bgs.protocol.EntityId agent_id = 1; @@ -2140,92 +1616,6 @@ inline void RemoveMemberRequest::set_reason(::google::protobuf::uint32 value) { // ------------------------------------------------------------------- -// UnsubscribeMemberRequest - -// optional .bgs.protocol.EntityId agent_id = 1; -inline bool UnsubscribeMemberRequest::has_agent_id() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void UnsubscribeMemberRequest::set_has_agent_id() { - _has_bits_[0] |= 0x00000001u; -} -inline void UnsubscribeMemberRequest::clear_has_agent_id() { - _has_bits_[0] &= ~0x00000001u; -} -inline void UnsubscribeMemberRequest::clear_agent_id() { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - clear_has_agent_id(); -} -inline const ::bgs::protocol::EntityId& UnsubscribeMemberRequest::agent_id() const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.UnsubscribeMemberRequest.agent_id) - return agent_id_ != NULL ? *agent_id_ : *default_instance_->agent_id_; -} -inline ::bgs::protocol::EntityId* UnsubscribeMemberRequest::mutable_agent_id() { - set_has_agent_id(); - if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId; - // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.UnsubscribeMemberRequest.agent_id) - return agent_id_; -} -inline ::bgs::protocol::EntityId* UnsubscribeMemberRequest::release_agent_id() { - clear_has_agent_id(); - ::bgs::protocol::EntityId* temp = agent_id_; - agent_id_ = NULL; - return temp; -} -inline void UnsubscribeMemberRequest::set_allocated_agent_id(::bgs::protocol::EntityId* agent_id) { - delete agent_id_; - agent_id_ = agent_id; - if (agent_id) { - set_has_agent_id(); - } else { - clear_has_agent_id(); - } - // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.UnsubscribeMemberRequest.agent_id) -} - -// required .bgs.protocol.EntityId member_id = 2; -inline bool UnsubscribeMemberRequest::has_member_id() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void UnsubscribeMemberRequest::set_has_member_id() { - _has_bits_[0] |= 0x00000002u; -} -inline void UnsubscribeMemberRequest::clear_has_member_id() { - _has_bits_[0] &= ~0x00000002u; -} -inline void UnsubscribeMemberRequest::clear_member_id() { - if (member_id_ != NULL) member_id_->::bgs::protocol::EntityId::Clear(); - clear_has_member_id(); -} -inline const ::bgs::protocol::EntityId& UnsubscribeMemberRequest::member_id() const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.UnsubscribeMemberRequest.member_id) - return member_id_ != NULL ? *member_id_ : *default_instance_->member_id_; -} -inline ::bgs::protocol::EntityId* UnsubscribeMemberRequest::mutable_member_id() { - set_has_member_id(); - if (member_id_ == NULL) member_id_ = new ::bgs::protocol::EntityId; - // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.UnsubscribeMemberRequest.member_id) - return member_id_; -} -inline ::bgs::protocol::EntityId* UnsubscribeMemberRequest::release_member_id() { - clear_has_member_id(); - ::bgs::protocol::EntityId* temp = member_id_; - member_id_ = NULL; - return temp; -} -inline void UnsubscribeMemberRequest::set_allocated_member_id(::bgs::protocol::EntityId* member_id) { - delete member_id_; - member_id_ = member_id; - if (member_id) { - set_has_member_id(); - } else { - clear_has_member_id(); - } - // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.UnsubscribeMemberRequest.member_id) -} - -// ------------------------------------------------------------------- - // SendMessageRequest // optional .bgs.protocol.EntityId agent_id = 1; @@ -2596,111 +1986,6 @@ inline void DissolveRequest::set_reason(::google::protobuf::uint32 value) { // ------------------------------------------------------------------- -// SetRolesRequest - -// optional .bgs.protocol.EntityId agent_id = 1; -inline bool SetRolesRequest::has_agent_id() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void SetRolesRequest::set_has_agent_id() { - _has_bits_[0] |= 0x00000001u; -} -inline void SetRolesRequest::clear_has_agent_id() { - _has_bits_[0] &= ~0x00000001u; -} -inline void SetRolesRequest::clear_agent_id() { - if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); - clear_has_agent_id(); -} -inline const ::bgs::protocol::EntityId& SetRolesRequest::agent_id() const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SetRolesRequest.agent_id) - return agent_id_ != NULL ? *agent_id_ : *default_instance_->agent_id_; -} -inline ::bgs::protocol::EntityId* SetRolesRequest::mutable_agent_id() { - set_has_agent_id(); - if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId; - // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.SetRolesRequest.agent_id) - return agent_id_; -} -inline ::bgs::protocol::EntityId* SetRolesRequest::release_agent_id() { - clear_has_agent_id(); - ::bgs::protocol::EntityId* temp = agent_id_; - agent_id_ = NULL; - return temp; -} -inline void SetRolesRequest::set_allocated_agent_id(::bgs::protocol::EntityId* agent_id) { - delete agent_id_; - agent_id_ = agent_id; - if (agent_id) { - set_has_agent_id(); - } else { - clear_has_agent_id(); - } - // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.SetRolesRequest.agent_id) -} - -// repeated uint32 role = 2 [packed = true]; -inline int SetRolesRequest::role_size() const { - return role_.size(); -} -inline void SetRolesRequest::clear_role() { - role_.Clear(); -} -inline ::google::protobuf::uint32 SetRolesRequest::role(int index) const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SetRolesRequest.role) - return role_.Get(index); -} -inline void SetRolesRequest::set_role(int index, ::google::protobuf::uint32 value) { - role_.Set(index, value); - // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.SetRolesRequest.role) -} -inline void SetRolesRequest::add_role(::google::protobuf::uint32 value) { - role_.Add(value); - // @@protoc_insertion_point(field_add:bgs.protocol.channel.v1.SetRolesRequest.role) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -SetRolesRequest::role() const { - // @@protoc_insertion_point(field_list:bgs.protocol.channel.v1.SetRolesRequest.role) - return role_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -SetRolesRequest::mutable_role() { - // @@protoc_insertion_point(field_mutable_list:bgs.protocol.channel.v1.SetRolesRequest.role) - return &role_; -} - -// repeated .bgs.protocol.EntityId member_id = 3; -inline int SetRolesRequest::member_id_size() const { - return member_id_.size(); -} -inline void SetRolesRequest::clear_member_id() { - member_id_.Clear(); -} -inline const ::bgs::protocol::EntityId& SetRolesRequest::member_id(int index) const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SetRolesRequest.member_id) - return member_id_.Get(index); -} -inline ::bgs::protocol::EntityId* SetRolesRequest::mutable_member_id(int index) { - // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.SetRolesRequest.member_id) - return member_id_.Mutable(index); -} -inline ::bgs::protocol::EntityId* SetRolesRequest::add_member_id() { - // @@protoc_insertion_point(field_add:bgs.protocol.channel.v1.SetRolesRequest.member_id) - return member_id_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EntityId >& -SetRolesRequest::member_id() const { - // @@protoc_insertion_point(field_list:bgs.protocol.channel.v1.SetRolesRequest.member_id) - return member_id_; -} -inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EntityId >* -SetRolesRequest::mutable_member_id() { - // @@protoc_insertion_point(field_mutable_list:bgs.protocol.channel.v1.SetRolesRequest.member_id) - return &member_id_; -} - -// ------------------------------------------------------------------- - // JoinNotification // optional .bgs.protocol.channel.v1.Member self = 1; @@ -3069,7 +2354,7 @@ inline void LeaveNotification::set_allocated_agent_id(::bgs::protocol::EntityId* // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.LeaveNotification.agent_id) } -// required .bgs.protocol.EntityId member_id = 2; +// required .bgs.protocol.EntityId member_id = 2 [deprecated = true]; inline bool LeaveNotification::has_member_id() const { return (_has_bits_[0] & 0x00000002u) != 0; } @@ -3518,80 +2803,80 @@ inline void SendMessageNotification::set_required_privileges(::google::protobuf: // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.SendMessageNotification.required_privileges) } -// optional string identity = 4; -inline bool SendMessageNotification::has_identity() const { +// optional string battle_tag = 4; +inline bool SendMessageNotification::has_battle_tag() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void SendMessageNotification::set_has_identity() { +inline void SendMessageNotification::set_has_battle_tag() { _has_bits_[0] |= 0x00000008u; } -inline void SendMessageNotification::clear_has_identity() { +inline void SendMessageNotification::clear_has_battle_tag() { _has_bits_[0] &= ~0x00000008u; } -inline void SendMessageNotification::clear_identity() { - if (identity_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - identity_->clear(); +inline void SendMessageNotification::clear_battle_tag() { + if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_->clear(); } - clear_has_identity(); + clear_has_battle_tag(); } -inline const ::std::string& SendMessageNotification::identity() const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SendMessageNotification.identity) - return *identity_; +inline const ::std::string& SendMessageNotification::battle_tag() const { + // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SendMessageNotification.battle_tag) + return *battle_tag_; } -inline void SendMessageNotification::set_identity(const ::std::string& value) { - set_has_identity(); - if (identity_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - identity_ = new ::std::string; +inline void SendMessageNotification::set_battle_tag(const ::std::string& value) { + set_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_ = new ::std::string; } - identity_->assign(value); - // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.SendMessageNotification.identity) + battle_tag_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.SendMessageNotification.battle_tag) } -inline void SendMessageNotification::set_identity(const char* value) { - set_has_identity(); - if (identity_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - identity_ = new ::std::string; +inline void SendMessageNotification::set_battle_tag(const char* value) { + set_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_ = new ::std::string; } - identity_->assign(value); - // @@protoc_insertion_point(field_set_char:bgs.protocol.channel.v1.SendMessageNotification.identity) + battle_tag_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.channel.v1.SendMessageNotification.battle_tag) } -inline void SendMessageNotification::set_identity(const char* value, size_t size) { - set_has_identity(); - if (identity_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - identity_ = new ::std::string; +inline void SendMessageNotification::set_battle_tag(const char* value, size_t size) { + set_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_ = new ::std::string; } - identity_->assign(reinterpret_cast<const char*>(value), size); - // @@protoc_insertion_point(field_set_pointer:bgs.protocol.channel.v1.SendMessageNotification.identity) + battle_tag_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.channel.v1.SendMessageNotification.battle_tag) } -inline ::std::string* SendMessageNotification::mutable_identity() { - set_has_identity(); - if (identity_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - identity_ = new ::std::string; +inline ::std::string* SendMessageNotification::mutable_battle_tag() { + set_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_ = new ::std::string; } - // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.SendMessageNotification.identity) - return identity_; + // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.SendMessageNotification.battle_tag) + return battle_tag_; } -inline ::std::string* SendMessageNotification::release_identity() { - clear_has_identity(); - if (identity_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { +inline ::std::string* SendMessageNotification::release_battle_tag() { + clear_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { return NULL; } else { - ::std::string* temp = identity_; - identity_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::std::string* temp = battle_tag_; + battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); return temp; } } -inline void SendMessageNotification::set_allocated_identity(::std::string* identity) { - if (identity_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete identity_; +inline void SendMessageNotification::set_allocated_battle_tag(::std::string* battle_tag) { + if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete battle_tag_; } - if (identity) { - set_has_identity(); - identity_ = identity; + if (battle_tag) { + set_has_battle_tag(); + battle_tag_ = battle_tag; } else { - clear_has_identity(); - identity_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_battle_tag(); + battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.SendMessageNotification.identity) + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.SendMessageNotification.battle_tag) } // optional .bgs.protocol.channel.v1.ChannelId channel_id = 5; @@ -3919,45 +3204,15 @@ UpdateMemberStateNotification::mutable_state_change() { return &state_change_; } -// repeated uint32 removed_role = 3 [packed = true]; -inline int UpdateMemberStateNotification::removed_role_size() const { - return removed_role_.size(); -} -inline void UpdateMemberStateNotification::clear_removed_role() { - removed_role_.Clear(); -} -inline ::google::protobuf::uint32 UpdateMemberStateNotification::removed_role(int index) const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.UpdateMemberStateNotification.removed_role) - return removed_role_.Get(index); -} -inline void UpdateMemberStateNotification::set_removed_role(int index, ::google::protobuf::uint32 value) { - removed_role_.Set(index, value); - // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.UpdateMemberStateNotification.removed_role) -} -inline void UpdateMemberStateNotification::add_removed_role(::google::protobuf::uint32 value) { - removed_role_.Add(value); - // @@protoc_insertion_point(field_add:bgs.protocol.channel.v1.UpdateMemberStateNotification.removed_role) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -UpdateMemberStateNotification::removed_role() const { - // @@protoc_insertion_point(field_list:bgs.protocol.channel.v1.UpdateMemberStateNotification.removed_role) - return removed_role_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -UpdateMemberStateNotification::mutable_removed_role() { - // @@protoc_insertion_point(field_mutable_list:bgs.protocol.channel.v1.UpdateMemberStateNotification.removed_role) - return &removed_role_; -} - // optional .bgs.protocol.channel.v1.ChannelId channel_id = 4; inline bool UpdateMemberStateNotification::has_channel_id() const { - return (_has_bits_[0] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void UpdateMemberStateNotification::set_has_channel_id() { - _has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000004u; } inline void UpdateMemberStateNotification::clear_has_channel_id() { - _has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000004u; } inline void UpdateMemberStateNotification::clear_channel_id() { if (channel_id_ != NULL) channel_id_->::bgs::protocol::channel::v1::ChannelId::Clear(); @@ -3992,13 +3247,13 @@ inline void UpdateMemberStateNotification::set_allocated_channel_id(::bgs::proto // optional .bgs.protocol.account.v1.Identity subscriber = 5; inline bool UpdateMemberStateNotification::has_subscriber() const { - return (_has_bits_[0] & 0x00000010u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void UpdateMemberStateNotification::set_has_subscriber() { - _has_bits_[0] |= 0x00000010u; + _has_bits_[0] |= 0x00000008u; } inline void UpdateMemberStateNotification::clear_has_subscriber() { - _has_bits_[0] &= ~0x00000010u; + _has_bits_[0] &= ~0x00000008u; } inline void UpdateMemberStateNotification::clear_subscriber() { if (subscriber_ != NULL) subscriber_->::bgs::protocol::account::v1::Identity::Clear(); diff --git a/src/server/proto/Client/channel_types.pb.cc b/src/server/proto/Client/channel_types.pb.cc index b7f3bd56cc6..e17ccb48dd4 100644 --- a/src/server/proto/Client/channel_types.pb.cc +++ b/src/server/proto/Client/channel_types.pb.cc @@ -30,9 +30,6 @@ namespace v1 { namespace { -const ::google::protobuf::Descriptor* ChannelId_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ChannelId_reflection_ = NULL; const ::google::protobuf::Descriptor* Message_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* Message_reflection_ = NULL; @@ -49,6 +46,9 @@ const ::google::protobuf::Descriptor* ChannelState_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* ChannelState_reflection_ = NULL; const ::google::protobuf::EnumDescriptor* ChannelState_PrivacyLevel_descriptor_ = NULL; +const ::google::protobuf::Descriptor* MemberAccountInfo_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MemberAccountInfo_reflection_ = NULL; const ::google::protobuf::Descriptor* MemberState_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* MemberState_reflection_ = NULL; @@ -65,27 +65,9 @@ void protobuf_AssignDesc_channel_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( "channel_types.proto"); GOOGLE_CHECK(file != NULL); - ChannelId_descriptor_ = file->message_type(0); - static const int ChannelId_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelId, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelId, host_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelId, id_), - }; - ChannelId_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - ChannelId_descriptor_, - ChannelId::default_instance_, - ChannelId_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelId, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelId, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(ChannelId)); - Message_descriptor_ = file->message_type(1); - static const int Message_offsets_[2] = { + Message_descriptor_ = file->message_type(0); + static const int Message_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, attribute_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, role_), }; Message_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( @@ -98,7 +80,7 @@ void protobuf_AssignDesc_channel_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(Message)); - ListChannelsOptions_descriptor_ = file->message_type(2); + ListChannelsOptions_descriptor_ = file->message_type(1); static const int ListChannelsOptions_offsets_[8] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListChannelsOptions, start_index_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListChannelsOptions, max_results_), @@ -116,11 +98,11 @@ void protobuf_AssignDesc_channel_5ftypes_2eproto() { ListChannelsOptions_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListChannelsOptions, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListChannelsOptions, _unknown_fields_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListChannelsOptions, _extensions_), + -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(ListChannelsOptions)); - ChannelDescription_descriptor_ = file->message_type(3); + ChannelDescription_descriptor_ = file->message_type(2); static const int ChannelDescription_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelDescription, channel_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelDescription, current_members_), @@ -137,7 +119,7 @@ void protobuf_AssignDesc_channel_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(ChannelDescription)); - ChannelInfo_descriptor_ = file->message_type(4); + ChannelInfo_descriptor_ = file->message_type(3); static const int ChannelInfo_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelInfo, description_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelInfo, member_), @@ -149,26 +131,22 @@ void protobuf_AssignDesc_channel_5ftypes_2eproto() { ChannelInfo_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelInfo, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelInfo, _unknown_fields_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelInfo, _extensions_), + -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(ChannelInfo)); - ChannelState_descriptor_ = file->message_type(5); - static const int ChannelState_offsets_[14] = { + ChannelState_descriptor_ = file->message_type(4); + static const int ChannelState_offsets_[10] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelState, max_members_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelState, min_members_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelState, attribute_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelState, invitation_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelState, max_invitations_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelState, reason_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelState, privacy_level_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelState, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelState, delegate_name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelState, channel_type_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelState, program_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelState, allow_offline_members_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelState, subscribe_to_presence_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelState, destroy_on_founder_leave_), }; ChannelState_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( @@ -182,13 +160,27 @@ void protobuf_AssignDesc_channel_5ftypes_2eproto() { ::google::protobuf::MessageFactory::generated_factory(), sizeof(ChannelState)); ChannelState_PrivacyLevel_descriptor_ = ChannelState_descriptor_->enum_type(0); + MemberAccountInfo_descriptor_ = file->message_type(5); + static const int MemberAccountInfo_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberAccountInfo, battle_tag_), + }; + MemberAccountInfo_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MemberAccountInfo_descriptor_, + MemberAccountInfo::default_instance_, + MemberAccountInfo_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberAccountInfo, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberAccountInfo, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MemberAccountInfo)); MemberState_descriptor_ = file->message_type(6); - static const int MemberState_offsets_[5] = { + static const int MemberState_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberState, attribute_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberState, role_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberState, privileges_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberState, info_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberState, deprecated_hidden_), }; MemberState_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( @@ -197,7 +189,7 @@ void protobuf_AssignDesc_channel_5ftypes_2eproto() { MemberState_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberState, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberState, _unknown_fields_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberState, _extensions_), + -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(MemberState)); @@ -230,8 +222,6 @@ inline void protobuf_AssignDescriptorsOnce() { void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ChannelId_descriptor_, &ChannelId::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( Message_descriptor_, &Message::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( ListChannelsOptions_descriptor_, &ListChannelsOptions::default_instance()); @@ -242,6 +232,8 @@ void protobuf_RegisterTypes(const ::std::string&) { ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( ChannelState_descriptor_, &ChannelState::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MemberAccountInfo_descriptor_, &MemberAccountInfo::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( MemberState_descriptor_, &MemberState::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( Member_descriptor_, &Member::default_instance()); @@ -250,8 +242,6 @@ void protobuf_RegisterTypes(const ::std::string&) { } // namespace void protobuf_ShutdownFile_channel_5ftypes_2eproto() { - delete ChannelId::default_instance_; - delete ChannelId_reflection_; delete Message::default_instance_; delete Message_reflection_; delete ListChannelsOptions::default_instance_; @@ -263,6 +253,8 @@ void protobuf_ShutdownFile_channel_5ftypes_2eproto() { delete ChannelState::default_instance_; delete ChannelState_reflection_; delete ChannelState::_default_channel_type_; + delete MemberAccountInfo::default_instance_; + delete MemberAccountInfo_reflection_; delete MemberState::default_instance_; delete MemberState_reflection_; delete Member::default_instance_; @@ -275,58 +267,53 @@ void protobuf_AddDesc_channel_5ftypes_2eproto() { already_here = true; GOOGLE_PROTOBUF_VERIFY_VERSION; + ::bgs::protocol::channel::v1::protobuf_AddDesc_client_2fv1_2fchannel_5fid_2eproto(); ::bgs::protocol::protobuf_AddDesc_attribute_5ftypes_2eproto(); ::bgs::protocol::protobuf_AddDesc_entity_5ftypes_2eproto(); ::bgs::protocol::protobuf_AddDesc_invitation_5ftypes_2eproto(); ::bgs::protocol::protobuf_AddDesc_rpc_5ftypes_2eproto(); ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( "\n\023channel_types.proto\022\027bgs.protocol.chan" - "nel.v1\032\025attribute_types.proto\032\022entity_ty" - "pes.proto\032\026invitation_types.proto\032\017rpc_t" - "ypes.proto\"L\n\tChannelId\022\014\n\004type\030\001 \001(\r\022%\n" - "\004host\030\002 \001(\0132\027.bgs.protocol.ProcessId\022\n\n\002" - "id\030\003 \001(\007\"J\n\007Message\022*\n\tattribute\030\001 \003(\0132\027" - ".bgs.protocol.Attribute\022\014\n\004role\030\002 \001(\r*\005\010" - "d\020\220N\"\342\001\n\023ListChannelsOptions\022\026\n\013start_in" - "dex\030\001 \001(\r:\0010\022\027\n\013max_results\030\002 \001(\r:\00216\022\014\n" - "\004name\030\003 \001(\t\022\017\n\007program\030\004 \001(\007\022\016\n\006locale\030\005" - " \001(\007\022\025\n\rcapacity_full\030\006 \001(\r\0227\n\020attribute" - "_filter\030\007 \002(\0132\035.bgs.protocol.AttributeFi" - "lter\022\024\n\014channel_type\030\010 \001(\t*\005\010d\020\220N\"\217\001\n\022Ch" - "annelDescription\022*\n\nchannel_id\030\001 \002(\0132\026.b" - "gs.protocol.EntityId\022\027\n\017current_members\030" - "\002 \001(\r\0224\n\005state\030\003 \001(\0132%.bgs.protocol.chan" - "nel.v1.ChannelState\"\207\001\n\013ChannelInfo\022@\n\013d" - "escription\030\001 \002(\0132+.bgs.protocol.channel." - "v1.ChannelDescription\022/\n\006member\030\002 \003(\0132\037." - "bgs.protocol.channel.v1.Member*\005\010d\020\220N\"\201\005" - "\n\014ChannelState\022\023\n\013max_members\030\001 \001(\r\022\023\n\013m" - "in_members\030\002 \001(\r\022*\n\tattribute\030\003 \003(\0132\027.bg" - "s.protocol.Attribute\022,\n\ninvitation\030\004 \003(\013" - "2\030.bgs.protocol.Invitation\022\027\n\017max_invita" - "tions\030\005 \001(\r\022\016\n\006reason\030\006 \001(\r\022]\n\rprivacy_l" - "evel\030\007 \001(\01622.bgs.protocol.channel.v1.Cha" - "nnelState.PrivacyLevel:\022PRIVACY_LEVEL_OP" - "EN\022\014\n\004name\030\010 \001(\t\022\025\n\rdelegate_name\030\t \001(\t\022" - "\035\n\014channel_type\030\n \001(\t:\007default\022\022\n\007progra" - "m\030\013 \001(\007:\0010\022$\n\025allow_offline_members\030\014 \001(" - "\010:\005false\022#\n\025subscribe_to_presence\030\r \001(\010:" - "\004true\022\'\n\030destroy_on_founder_leave\030\016 \001(\010:" - "\005false\"\221\001\n\014PrivacyLevel\022\026\n\022PRIVACY_LEVEL" - "_OPEN\020\001\022,\n(PRIVACY_LEVEL_OPEN_INVITATION" - "_AND_FRIEND\020\002\022!\n\035PRIVACY_LEVEL_OPEN_INVI" - "TATION\020\003\022\030\n\024PRIVACY_LEVEL_CLOSED\020\004*\005\010d\020\220" - "N\"\270\001\n\013MemberState\022*\n\tattribute\030\001 \003(\0132\027.b" - "gs.protocol.Attribute\022\020\n\004role\030\002 \003(\rB\002\020\001\022" - "\025\n\nprivileges\030\003 \001(\004:\0010\022\'\n\004info\030\004 \001(\0132\031.b" - "gs.protocol.AccountInfo\022$\n\021DEPRECATED_hi" - "dden\030\005 \001(\010:\005falseB\002\030\001*\005\010d\020\220N\"g\n\006Member\022(" - "\n\010identity\030\001 \002(\0132\026.bgs.protocol.Identity" - "\0223\n\005state\030\002 \002(\0132$.bgs.protocol.channel.v" - "1.MemberStateB\002H\001", 1737); + "nel.v1\032\032client/v1/channel_id.proto\032\025attr" + "ibute_types.proto\032\022entity_types.proto\032\026i" + "nvitation_types.proto\032\017rpc_types.proto\"<" + "\n\007Message\022*\n\tattribute\030\001 \003(\0132\027.bgs.proto" + "col.Attribute*\005\010d\020\220N\"\333\001\n\023ListChannelsOpt" + "ions\022\026\n\013start_index\030\001 \001(\r:\0010\022\027\n\013max_resu" + "lts\030\002 \001(\r:\00216\022\014\n\004name\030\003 \001(\t\022\017\n\007program\030\004" + " \001(\007\022\016\n\006locale\030\005 \001(\007\022\025\n\rcapacity_full\030\006 " + "\001(\r\0227\n\020attribute_filter\030\007 \002(\0132\035.bgs.prot" + "ocol.AttributeFilter\022\024\n\014channel_type\030\010 \001" + "(\t\"\217\001\n\022ChannelDescription\022*\n\nchannel_id\030" + "\001 \002(\0132\026.bgs.protocol.EntityId\022\027\n\017current" + "_members\030\002 \001(\r\0224\n\005state\030\003 \001(\0132%.bgs.prot" + "ocol.channel.v1.ChannelState\"\200\001\n\013Channel" + "Info\022@\n\013description\030\001 \002(\0132+.bgs.protocol" + ".channel.v1.ChannelDescription\022/\n\006member" + "\030\002 \003(\0132\037.bgs.protocol.channel.v1.Member\"" + "\202\004\n\014ChannelState\022\023\n\013max_members\030\001 \001(\r\022\023\n" + "\013min_members\030\002 \001(\r\022*\n\tattribute\030\003 \003(\0132\027." + "bgs.protocol.Attribute\022,\n\ninvitation\030\004 \003" + "(\0132\030.bgs.protocol.Invitation\022\016\n\006reason\030\006" + " \001(\r\022]\n\rprivacy_level\030\007 \001(\01622.bgs.protoc" + "ol.channel.v1.ChannelState.PrivacyLevel:" + "\022PRIVACY_LEVEL_OPEN\022\014\n\004name\030\010 \001(\t\022\035\n\014cha" + "nnel_type\030\n \001(\t:\007default\022\022\n\007program\030\013 \001(" + "\007:\0010\022#\n\025subscribe_to_presence\030\r \001(\010:\004tru" + "e\"\221\001\n\014PrivacyLevel\022\026\n\022PRIVACY_LEVEL_OPEN" + "\020\001\022,\n(PRIVACY_LEVEL_OPEN_INVITATION_AND_" + "FRIEND\020\002\022!\n\035PRIVACY_LEVEL_OPEN_INVITATIO" + "N\020\003\022\030\n\024PRIVACY_LEVEL_CLOSED\020\004*\005\010d\020\220N\"\'\n\021" + "MemberAccountInfo\022\022\n\nbattle_tag\030\003 \001(\t\"\234\001" + "\n\013MemberState\022*\n\tattribute\030\001 \003(\0132\027.bgs.p" + "rotocol.Attribute\022\020\n\004role\030\002 \003(\rB\002\020\001\022\025\n\np" + "rivileges\030\003 \001(\004:\0010\0228\n\004info\030\004 \001(\0132*.bgs.p" + "rotocol.channel.v1.MemberAccountInfo\"g\n\006" + "Member\022(\n\010identity\030\001 \002(\0132\026.bgs.protocol." + "Identity\0223\n\005state\030\002 \002(\0132$.bgs.protocol.c" + "hannel.v1.MemberStateB\002H\001P\000", 1547); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "channel_types.proto", &protobuf_RegisterTypes); - ChannelId::default_instance_ = new ChannelId(); Message::default_instance_ = new Message(); ListChannelsOptions::default_instance_ = new ListChannelsOptions(); ChannelDescription::default_instance_ = new ChannelDescription(); @@ -334,14 +321,15 @@ void protobuf_AddDesc_channel_5ftypes_2eproto() { ChannelState::_default_channel_type_ = new ::std::string("default", 7); ChannelState::default_instance_ = new ChannelState(); + MemberAccountInfo::default_instance_ = new MemberAccountInfo(); MemberState::default_instance_ = new MemberState(); Member::default_instance_ = new Member(); - ChannelId::default_instance_->InitAsDefaultInstance(); Message::default_instance_->InitAsDefaultInstance(); ListChannelsOptions::default_instance_->InitAsDefaultInstance(); ChannelDescription::default_instance_->InitAsDefaultInstance(); ChannelInfo::default_instance_->InitAsDefaultInstance(); ChannelState::default_instance_->InitAsDefaultInstance(); + MemberAccountInfo::default_instance_->InitAsDefaultInstance(); MemberState::default_instance_->InitAsDefaultInstance(); Member::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_channel_5ftypes_2eproto); @@ -357,329 +345,7 @@ struct StaticDescriptorInitializer_channel_5ftypes_2eproto { // =================================================================== #ifndef _MSC_VER -const int ChannelId::kTypeFieldNumber; -const int ChannelId::kHostFieldNumber; -const int ChannelId::kIdFieldNumber; -#endif // !_MSC_VER - -ChannelId::ChannelId() - : ::google::protobuf::Message() { - SharedCtor(); - // @@protoc_insertion_point(constructor:bgs.protocol.channel.v1.ChannelId) -} - -void ChannelId::InitAsDefaultInstance() { - host_ = const_cast< ::bgs::protocol::ProcessId*>(&::bgs::protocol::ProcessId::default_instance()); -} - -ChannelId::ChannelId(const ChannelId& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:bgs.protocol.channel.v1.ChannelId) -} - -void ChannelId::SharedCtor() { - _cached_size_ = 0; - type_ = 0u; - host_ = NULL; - id_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ChannelId::~ChannelId() { - // @@protoc_insertion_point(destructor:bgs.protocol.channel.v1.ChannelId) - SharedDtor(); -} - -void ChannelId::SharedDtor() { - if (this != default_instance_) { - delete host_; - } -} - -void ChannelId::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* ChannelId::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ChannelId_descriptor_; -} - -const ChannelId& ChannelId::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_channel_5ftypes_2eproto(); - return *default_instance_; -} - -ChannelId* ChannelId::default_instance_ = NULL; - -ChannelId* ChannelId::New() const { - return new ChannelId; -} - -void ChannelId::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ - &reinterpret_cast<ChannelId*>(16)->f) - \ - reinterpret_cast<char*>(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 7) { - ZR_(type_, id_); - if (has_host()) { - if (host_ != NULL) host_->::bgs::protocol::ProcessId::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool ChannelId::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.channel.v1.ChannelId) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 type = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &type_))); - set_has_type(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_host; - break; - } - - // optional .bgs.protocol.ProcessId host = 2; - case 2: { - if (tag == 18) { - parse_host: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_host())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(29)) goto parse_id; - break; - } - - // optional fixed32 id = 3; - case 3: { - if (tag == 29) { - parse_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( - input, &id_))); - set_has_id(); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:bgs.protocol.channel.v1.ChannelId) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.channel.v1.ChannelId) - return false; -#undef DO_ -} - -void ChannelId::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.channel.v1.ChannelId) - // optional uint32 type = 1; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->type(), output); - } - - // optional .bgs.protocol.ProcessId host = 2; - if (has_host()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->host(), output); - } - - // optional fixed32 id = 3; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed32(3, this->id(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.channel.v1.ChannelId) -} - -::google::protobuf::uint8* ChannelId::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.channel.v1.ChannelId) - // optional uint32 type = 1; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->type(), target); - } - - // optional .bgs.protocol.ProcessId host = 2; - if (has_host()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->host(), target); - } - - // optional fixed32 id = 3; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(3, this->id(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.channel.v1.ChannelId) - return target; -} - -int ChannelId::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint32 type = 1; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->type()); - } - - // optional .bgs.protocol.ProcessId host = 2; - if (has_host()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->host()); - } - - // optional fixed32 id = 3; - if (has_id()) { - total_size += 1 + 4; - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ChannelId::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const ChannelId* source = - ::google::protobuf::internal::dynamic_cast_if_available<const ChannelId*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void ChannelId::MergeFrom(const ChannelId& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_type()) { - set_type(from.type()); - } - if (from.has_host()) { - mutable_host()->::bgs::protocol::ProcessId::MergeFrom(from.host()); - } - if (from.has_id()) { - set_id(from.id()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void ChannelId::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ChannelId::CopyFrom(const ChannelId& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ChannelId::IsInitialized() const { - - if (has_host()) { - if (!this->host().IsInitialized()) return false; - } - return true; -} - -void ChannelId::Swap(ChannelId* other) { - if (other != this) { - std::swap(type_, other->type_); - std::swap(host_, other->host_); - std::swap(id_, other->id_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata ChannelId::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ChannelId_descriptor_; - metadata.reflection = ChannelId_reflection_; - return metadata; -} - - -// =================================================================== - -#ifndef _MSC_VER const int Message::kAttributeFieldNumber; -const int Message::kRoleFieldNumber; #endif // !_MSC_VER Message::Message() @@ -700,7 +366,6 @@ Message::Message(const Message& from) void Message::SharedCtor() { _cached_size_ = 0; - role_ = 0u; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -737,7 +402,6 @@ Message* Message::New() const { void Message::Clear() { _extensions_.Clear(); - role_ = 0u; attribute_.Clear(); ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); @@ -763,21 +427,6 @@ bool Message::MergePartialFromCodedStream( goto handle_unusual; } if (input->ExpectTag(10)) goto parse_attribute; - if (input->ExpectTag(16)) goto parse_role; - break; - } - - // optional uint32 role = 2; - case 2: { - if (tag == 16) { - parse_role: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &role_))); - set_has_role(); - } else { - goto handle_unusual; - } if (input->ExpectAtEnd()) goto success; break; } @@ -818,11 +467,6 @@ void Message::SerializeWithCachedSizes( 1, this->attribute(i), output); } - // optional uint32 role = 2; - if (has_role()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->role(), output); - } - // Extension range [100, 10000) _extensions_.SerializeWithCachedSizes( 100, 10000, output); @@ -844,11 +488,6 @@ void Message::SerializeWithCachedSizes( 1, this->attribute(i), target); } - // optional uint32 role = 2; - if (has_role()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->role(), target); - } - // Extension range [100, 10000) target = _extensions_.SerializeWithCachedSizesToArray( 100, 10000, target); @@ -864,15 +503,6 @@ void Message::SerializeWithCachedSizes( int Message::ByteSize() const { int total_size = 0; - if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { - // optional uint32 role = 2; - if (has_role()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->role()); - } - - } // repeated .bgs.protocol.Attribute attribute = 1; total_size += 1 * this->attribute_size(); for (int i = 0; i < this->attribute_size(); i++) { @@ -909,11 +539,6 @@ void Message::MergeFrom(const ::google::protobuf::Message& from) { void Message::MergeFrom(const Message& from) { GOOGLE_CHECK_NE(&from, this); attribute_.MergeFrom(from.attribute_); - if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { - if (from.has_role()) { - set_role(from.role()); - } - } _extensions_.MergeFrom(from._extensions_); mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } @@ -940,7 +565,6 @@ bool Message::IsInitialized() const { void Message::Swap(Message* other) { if (other != this) { attribute_.Swap(&other->attribute_); - std::swap(role_, other->role_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); @@ -1040,7 +664,6 @@ ListChannelsOptions* ListChannelsOptions::New() const { } void ListChannelsOptions::Clear() { - _extensions_.Clear(); #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ &reinterpret_cast<ListChannelsOptions*>(16)->f) - \ reinterpret_cast<char*>(16)) @@ -1216,11 +839,6 @@ bool ListChannelsOptions::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - if ((800u <= tag && tag < 80000u)) { - DO_(_extensions_.ParseField(tag, input, default_instance_, - mutable_unknown_fields())); - continue; - } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; @@ -1290,10 +908,6 @@ void ListChannelsOptions::SerializeWithCachedSizes( 8, this->channel_type(), output); } - // Extension range [100, 10000) - _extensions_.SerializeWithCachedSizes( - 100, 10000, output); - if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); @@ -1358,10 +972,6 @@ void ListChannelsOptions::SerializeWithCachedSizes( 8, this->channel_type(), target); } - // Extension range [100, 10000) - target = _extensions_.SerializeWithCachedSizesToArray( - 100, 10000, target); - if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); @@ -1427,8 +1037,6 @@ int ListChannelsOptions::ByteSize() const { } } - total_size += _extensions_.ByteSize(); - if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( @@ -1480,7 +1088,6 @@ void ListChannelsOptions::MergeFrom(const ListChannelsOptions& from) { set_channel_type(from.channel_type()); } } - _extensions_.MergeFrom(from._extensions_); mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } @@ -1502,8 +1109,7 @@ bool ListChannelsOptions::IsInitialized() const { if (has_attribute_filter()) { if (!this->attribute_filter().IsInitialized()) return false; } - - if (!_extensions_.IsInitialized()) return false; return true; + return true; } void ListChannelsOptions::Swap(ListChannelsOptions* other) { @@ -1519,7 +1125,6 @@ void ListChannelsOptions::Swap(ListChannelsOptions* other) { std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); - _extensions_.Swap(&other->_extensions_); } } @@ -1914,7 +1519,6 @@ ChannelInfo* ChannelInfo::New() const { } void ChannelInfo::Clear() { - _extensions_.Clear(); if (has_description()) { if (description_ != NULL) description_->::bgs::protocol::channel::v1::ChannelDescription::Clear(); } @@ -1966,11 +1570,6 @@ bool ChannelInfo::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - if ((800u <= tag && tag < 80000u)) { - DO_(_extensions_.ParseField(tag, input, default_instance_, - mutable_unknown_fields())); - continue; - } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; @@ -2001,10 +1600,6 @@ void ChannelInfo::SerializeWithCachedSizes( 2, this->member(i), output); } - // Extension range [100, 10000) - _extensions_.SerializeWithCachedSizes( - 100, 10000, output); - if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); @@ -2029,10 +1624,6 @@ void ChannelInfo::SerializeWithCachedSizes( 2, this->member(i), target); } - // Extension range [100, 10000) - target = _extensions_.SerializeWithCachedSizesToArray( - 100, 10000, target); - if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); @@ -2061,8 +1652,6 @@ int ChannelInfo::ByteSize() const { this->member(i)); } - total_size += _extensions_.ByteSize(); - if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( @@ -2094,7 +1683,6 @@ void ChannelInfo::MergeFrom(const ChannelInfo& from) { mutable_description()->::bgs::protocol::channel::v1::ChannelDescription::MergeFrom(from.description()); } } - _extensions_.MergeFrom(from._extensions_); mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } @@ -2117,8 +1705,7 @@ bool ChannelInfo::IsInitialized() const { if (!this->description().IsInitialized()) return false; } if (!::google::protobuf::internal::AllAreInitialized(this->member())) return false; - - if (!_extensions_.IsInitialized()) return false; return true; + return true; } void ChannelInfo::Swap(ChannelInfo* other) { @@ -2128,7 +1715,6 @@ void ChannelInfo::Swap(ChannelInfo* other) { std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); - _extensions_.Swap(&other->_extensions_); } } @@ -2174,16 +1760,12 @@ const int ChannelState::kMaxMembersFieldNumber; const int ChannelState::kMinMembersFieldNumber; const int ChannelState::kAttributeFieldNumber; const int ChannelState::kInvitationFieldNumber; -const int ChannelState::kMaxInvitationsFieldNumber; const int ChannelState::kReasonFieldNumber; const int ChannelState::kPrivacyLevelFieldNumber; const int ChannelState::kNameFieldNumber; -const int ChannelState::kDelegateNameFieldNumber; const int ChannelState::kChannelTypeFieldNumber; const int ChannelState::kProgramFieldNumber; -const int ChannelState::kAllowOfflineMembersFieldNumber; const int ChannelState::kSubscribeToPresenceFieldNumber; -const int ChannelState::kDestroyOnFounderLeaveFieldNumber; #endif // !_MSC_VER ChannelState::ChannelState() @@ -2207,16 +1789,12 @@ void ChannelState::SharedCtor() { _cached_size_ = 0; max_members_ = 0u; min_members_ = 0u; - max_invitations_ = 0u; reason_ = 0u; privacy_level_ = 1; name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - delegate_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); channel_type_ = const_cast< ::std::string*>(_default_channel_type_); program_ = 0u; - allow_offline_members_ = false; subscribe_to_presence_ = true; - destroy_on_founder_leave_ = false; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -2229,9 +1807,6 @@ void ChannelState::SharedDtor() { if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete name_; } - if (delegate_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete delegate_name_; - } if (channel_type_ != _default_channel_type_) { delete channel_type_; } @@ -2274,29 +1849,22 @@ void ChannelState::Clear() { if (_has_bits_[0 / 32] & 243) { ZR_(max_members_, min_members_); - ZR_(max_invitations_, reason_); + reason_ = 0u; privacy_level_ = 1; if (has_name()) { if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { name_->clear(); } } - } - if (_has_bits_[8 / 32] & 16128) { - if (has_delegate_name()) { - if (delegate_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delegate_name_->clear(); - } - } if (has_channel_type()) { if (channel_type_ != _default_channel_type_) { channel_type_->assign(*_default_channel_type_); } } + } + if (_has_bits_[8 / 32] & 768) { program_ = 0u; - allow_offline_members_ = false; subscribe_to_presence_ = true; - destroy_on_founder_leave_ = false; } #undef OFFSET_OF_FIELD_ @@ -2371,21 +1939,6 @@ bool ChannelState::MergePartialFromCodedStream( goto handle_unusual; } if (input->ExpectTag(34)) goto parse_invitation; - if (input->ExpectTag(40)) goto parse_max_invitations; - break; - } - - // optional uint32 max_invitations = 5; - case 5: { - if (tag == 40) { - parse_max_invitations: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &max_invitations_))); - set_has_max_invitations(); - } else { - goto handle_unusual; - } if (input->ExpectTag(48)) goto parse_reason; break; } @@ -2438,23 +1991,6 @@ bool ChannelState::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(74)) goto parse_delegate_name; - break; - } - - // optional string delegate_name = 9; - case 9: { - if (tag == 74) { - parse_delegate_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_delegate_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->delegate_name().data(), this->delegate_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "delegate_name"); - } else { - goto handle_unusual; - } if (input->ExpectTag(82)) goto parse_channel_type; break; } @@ -2487,21 +2023,6 @@ bool ChannelState::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(96)) goto parse_allow_offline_members; - break; - } - - // optional bool allow_offline_members = 12 [default = false]; - case 12: { - if (tag == 96) { - parse_allow_offline_members: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &allow_offline_members_))); - set_has_allow_offline_members(); - } else { - goto handle_unusual; - } if (input->ExpectTag(104)) goto parse_subscribe_to_presence; break; } @@ -2517,21 +2038,6 @@ bool ChannelState::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(112)) goto parse_destroy_on_founder_leave; - break; - } - - // optional bool destroy_on_founder_leave = 14 [default = false]; - case 14: { - if (tag == 112) { - parse_destroy_on_founder_leave: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &destroy_on_founder_leave_))); - set_has_destroy_on_founder_leave(); - } else { - goto handle_unusual; - } if (input->ExpectAtEnd()) goto success; break; } @@ -2588,11 +2094,6 @@ void ChannelState::SerializeWithCachedSizes( 4, this->invitation(i), output); } - // optional uint32 max_invitations = 5; - if (has_max_invitations()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->max_invitations(), output); - } - // optional uint32 reason = 6; if (has_reason()) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->reason(), output); @@ -2614,16 +2115,6 @@ void ChannelState::SerializeWithCachedSizes( 8, this->name(), output); } - // optional string delegate_name = 9; - if (has_delegate_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->delegate_name().data(), this->delegate_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "delegate_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 9, this->delegate_name(), output); - } - // optional string channel_type = 10 [default = "default"]; if (has_channel_type()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( @@ -2639,21 +2130,11 @@ void ChannelState::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteFixed32(11, this->program(), output); } - // optional bool allow_offline_members = 12 [default = false]; - if (has_allow_offline_members()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->allow_offline_members(), output); - } - // optional bool subscribe_to_presence = 13 [default = true]; if (has_subscribe_to_presence()) { ::google::protobuf::internal::WireFormatLite::WriteBool(13, this->subscribe_to_presence(), output); } - // optional bool destroy_on_founder_leave = 14 [default = false]; - if (has_destroy_on_founder_leave()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(14, this->destroy_on_founder_leave(), output); - } - // Extension range [100, 10000) _extensions_.SerializeWithCachedSizes( 100, 10000, output); @@ -2692,11 +2173,6 @@ void ChannelState::SerializeWithCachedSizes( 4, this->invitation(i), target); } - // optional uint32 max_invitations = 5; - if (has_max_invitations()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->max_invitations(), target); - } - // optional uint32 reason = 6; if (has_reason()) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->reason(), target); @@ -2719,17 +2195,6 @@ void ChannelState::SerializeWithCachedSizes( 8, this->name(), target); } - // optional string delegate_name = 9; - if (has_delegate_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->delegate_name().data(), this->delegate_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "delegate_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 9, this->delegate_name(), target); - } - // optional string channel_type = 10 [default = "default"]; if (has_channel_type()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( @@ -2746,21 +2211,11 @@ void ChannelState::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(11, this->program(), target); } - // optional bool allow_offline_members = 12 [default = false]; - if (has_allow_offline_members()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->allow_offline_members(), target); - } - // optional bool subscribe_to_presence = 13 [default = true]; if (has_subscribe_to_presence()) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(13, this->subscribe_to_presence(), target); } - // optional bool destroy_on_founder_leave = 14 [default = false]; - if (has_destroy_on_founder_leave()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(14, this->destroy_on_founder_leave(), target); - } - // Extension range [100, 10000) target = _extensions_.SerializeWithCachedSizesToArray( 100, 10000, target); @@ -2791,13 +2246,6 @@ int ChannelState::ByteSize() const { this->min_members()); } - // optional uint32 max_invitations = 5; - if (has_max_invitations()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->max_invitations()); - } - // optional uint32 reason = 6; if (has_reason()) { total_size += 1 + @@ -2818,15 +2266,6 @@ int ChannelState::ByteSize() const { this->name()); } - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional string delegate_name = 9; - if (has_delegate_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->delegate_name()); - } - // optional string channel_type = 10 [default = "default"]; if (has_channel_type()) { total_size += 1 + @@ -2834,26 +2273,18 @@ int ChannelState::ByteSize() const { this->channel_type()); } + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { // optional fixed32 program = 11 [default = 0]; if (has_program()) { total_size += 1 + 4; } - // optional bool allow_offline_members = 12 [default = false]; - if (has_allow_offline_members()) { - total_size += 1 + 1; - } - // optional bool subscribe_to_presence = 13 [default = true]; if (has_subscribe_to_presence()) { total_size += 1 + 1; } - // optional bool destroy_on_founder_leave = 14 [default = false]; - if (has_destroy_on_founder_leave()) { - total_size += 1 + 1; - } - } // repeated .bgs.protocol.Attribute attribute = 3; total_size += 1 * this->attribute_size(); @@ -2907,9 +2338,6 @@ void ChannelState::MergeFrom(const ChannelState& from) { if (from.has_min_members()) { set_min_members(from.min_members()); } - if (from.has_max_invitations()) { - set_max_invitations(from.max_invitations()); - } if (from.has_reason()) { set_reason(from.reason()); } @@ -2919,26 +2347,17 @@ void ChannelState::MergeFrom(const ChannelState& from) { if (from.has_name()) { set_name(from.name()); } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_delegate_name()) { - set_delegate_name(from.delegate_name()); - } if (from.has_channel_type()) { set_channel_type(from.channel_type()); } + } + if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { if (from.has_program()) { set_program(from.program()); } - if (from.has_allow_offline_members()) { - set_allow_offline_members(from.allow_offline_members()); - } if (from.has_subscribe_to_presence()) { set_subscribe_to_presence(from.subscribe_to_presence()); } - if (from.has_destroy_on_founder_leave()) { - set_destroy_on_founder_leave(from.destroy_on_founder_leave()); - } } _extensions_.MergeFrom(from._extensions_); mutable_unknown_fields()->MergeFrom(from.unknown_fields()); @@ -2970,16 +2389,12 @@ void ChannelState::Swap(ChannelState* other) { std::swap(min_members_, other->min_members_); attribute_.Swap(&other->attribute_); invitation_.Swap(&other->invitation_); - std::swap(max_invitations_, other->max_invitations_); std::swap(reason_, other->reason_); std::swap(privacy_level_, other->privacy_level_); std::swap(name_, other->name_); - std::swap(delegate_name_, other->delegate_name_); std::swap(channel_type_, other->channel_type_); std::swap(program_, other->program_); - std::swap(allow_offline_members_, other->allow_offline_members_); std::swap(subscribe_to_presence_, other->subscribe_to_presence_); - std::swap(destroy_on_founder_leave_, other->destroy_on_founder_leave_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); @@ -2999,11 +2414,253 @@ void ChannelState::Swap(ChannelState* other) { // =================================================================== #ifndef _MSC_VER +const int MemberAccountInfo::kBattleTagFieldNumber; +#endif // !_MSC_VER + +MemberAccountInfo::MemberAccountInfo() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.channel.v1.MemberAccountInfo) +} + +void MemberAccountInfo::InitAsDefaultInstance() { +} + +MemberAccountInfo::MemberAccountInfo(const MemberAccountInfo& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.channel.v1.MemberAccountInfo) +} + +void MemberAccountInfo::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MemberAccountInfo::~MemberAccountInfo() { + // @@protoc_insertion_point(destructor:bgs.protocol.channel.v1.MemberAccountInfo) + SharedDtor(); +} + +void MemberAccountInfo::SharedDtor() { + if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete battle_tag_; + } + if (this != default_instance_) { + } +} + +void MemberAccountInfo::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MemberAccountInfo::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MemberAccountInfo_descriptor_; +} + +const MemberAccountInfo& MemberAccountInfo::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_channel_5ftypes_2eproto(); + return *default_instance_; +} + +MemberAccountInfo* MemberAccountInfo::default_instance_ = NULL; + +MemberAccountInfo* MemberAccountInfo::New() const { + return new MemberAccountInfo; +} + +void MemberAccountInfo::Clear() { + if (has_battle_tag()) { + if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_->clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MemberAccountInfo::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.channel.v1.MemberAccountInfo) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string battle_tag = 3; + case 3: { + if (tag == 26) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_battle_tag())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->battle_tag().data(), this->battle_tag().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "battle_tag"); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.channel.v1.MemberAccountInfo) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.channel.v1.MemberAccountInfo) + return false; +#undef DO_ +} + +void MemberAccountInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.channel.v1.MemberAccountInfo) + // optional string battle_tag = 3; + if (has_battle_tag()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->battle_tag().data(), this->battle_tag().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "battle_tag"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->battle_tag(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.channel.v1.MemberAccountInfo) +} + +::google::protobuf::uint8* MemberAccountInfo::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.channel.v1.MemberAccountInfo) + // optional string battle_tag = 3; + if (has_battle_tag()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->battle_tag().data(), this->battle_tag().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "battle_tag"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->battle_tag(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.channel.v1.MemberAccountInfo) + return target; +} + +int MemberAccountInfo::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional string battle_tag = 3; + if (has_battle_tag()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->battle_tag()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MemberAccountInfo::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MemberAccountInfo* source = + ::google::protobuf::internal::dynamic_cast_if_available<const MemberAccountInfo*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MemberAccountInfo::MergeFrom(const MemberAccountInfo& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_battle_tag()) { + set_battle_tag(from.battle_tag()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MemberAccountInfo::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MemberAccountInfo::CopyFrom(const MemberAccountInfo& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MemberAccountInfo::IsInitialized() const { + + return true; +} + +void MemberAccountInfo::Swap(MemberAccountInfo* other) { + if (other != this) { + std::swap(battle_tag_, other->battle_tag_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MemberAccountInfo::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MemberAccountInfo_descriptor_; + metadata.reflection = MemberAccountInfo_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER const int MemberState::kAttributeFieldNumber; const int MemberState::kRoleFieldNumber; const int MemberState::kPrivilegesFieldNumber; const int MemberState::kInfoFieldNumber; -const int MemberState::kDEPRECATEDHiddenFieldNumber; #endif // !_MSC_VER MemberState::MemberState() @@ -3013,7 +2670,7 @@ MemberState::MemberState() } void MemberState::InitAsDefaultInstance() { - info_ = const_cast< ::bgs::protocol::AccountInfo*>(&::bgs::protocol::AccountInfo::default_instance()); + info_ = const_cast< ::bgs::protocol::channel::v1::MemberAccountInfo*>(&::bgs::protocol::channel::v1::MemberAccountInfo::default_instance()); } MemberState::MemberState(const MemberState& from) @@ -3025,9 +2682,9 @@ MemberState::MemberState(const MemberState& from) void MemberState::SharedCtor() { _cached_size_ = 0; + _role_cached_byte_size_ = 0; privileges_ = GOOGLE_ULONGLONG(0); info_ = NULL; - deprecated_hidden_ = false; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -3064,13 +2721,11 @@ MemberState* MemberState::New() const { } void MemberState::Clear() { - _extensions_.Clear(); - if (_has_bits_[0 / 32] & 28) { + if (_has_bits_[0 / 32] & 12) { privileges_ = GOOGLE_ULONGLONG(0); if (has_info()) { - if (info_ != NULL) info_->::bgs::protocol::AccountInfo::Clear(); + if (info_ != NULL) info_->::bgs::protocol::channel::v1::MemberAccountInfo::Clear(); } - deprecated_hidden_ = false; } attribute_.Clear(); role_.Clear(); @@ -3135,7 +2790,7 @@ bool MemberState::MergePartialFromCodedStream( break; } - // optional .bgs.protocol.AccountInfo info = 4; + // optional .bgs.protocol.channel.v1.MemberAccountInfo info = 4; case 4: { if (tag == 34) { parse_info: @@ -3144,21 +2799,6 @@ bool MemberState::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(40)) goto parse_DEPRECATED_hidden; - break; - } - - // optional bool DEPRECATED_hidden = 5 [default = false, deprecated = true]; - case 5: { - if (tag == 40) { - parse_DEPRECATED_hidden: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &deprecated_hidden_))); - set_has_deprecated_hidden(); - } else { - goto handle_unusual; - } if (input->ExpectAtEnd()) goto success; break; } @@ -3170,11 +2810,6 @@ bool MemberState::MergePartialFromCodedStream( ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - if ((800u <= tag && tag < 80000u)) { - DO_(_extensions_.ParseField(tag, input, default_instance_, - mutable_unknown_fields())); - continue; - } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; @@ -3214,21 +2849,12 @@ void MemberState::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->privileges(), output); } - // optional .bgs.protocol.AccountInfo info = 4; + // optional .bgs.protocol.channel.v1.MemberAccountInfo info = 4; if (has_info()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->info(), output); } - // optional bool DEPRECATED_hidden = 5 [default = false, deprecated = true]; - if (has_deprecated_hidden()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->deprecated_hidden(), output); - } - - // Extension range [100, 10000) - _extensions_.SerializeWithCachedSizes( - 100, 10000, output); - if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); @@ -3265,22 +2891,13 @@ void MemberState::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->privileges(), target); } - // optional .bgs.protocol.AccountInfo info = 4; + // optional .bgs.protocol.channel.v1.MemberAccountInfo info = 4; if (has_info()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( 4, this->info(), target); } - // optional bool DEPRECATED_hidden = 5 [default = false, deprecated = true]; - if (has_deprecated_hidden()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->deprecated_hidden(), target); - } - - // Extension range [100, 10000) - target = _extensions_.SerializeWithCachedSizesToArray( - 100, 10000, target); - if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); @@ -3300,18 +2917,13 @@ int MemberState::ByteSize() const { this->privileges()); } - // optional .bgs.protocol.AccountInfo info = 4; + // optional .bgs.protocol.channel.v1.MemberAccountInfo info = 4; if (has_info()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->info()); } - // optional bool DEPRECATED_hidden = 5 [default = false, deprecated = true]; - if (has_deprecated_hidden()) { - total_size += 1 + 1; - } - } // repeated .bgs.protocol.Attribute attribute = 1; total_size += 1 * this->attribute_size(); @@ -3338,8 +2950,6 @@ int MemberState::ByteSize() const { total_size += data_size; } - total_size += _extensions_.ByteSize(); - if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( @@ -3372,13 +2982,9 @@ void MemberState::MergeFrom(const MemberState& from) { set_privileges(from.privileges()); } if (from.has_info()) { - mutable_info()->::bgs::protocol::AccountInfo::MergeFrom(from.info()); - } - if (from.has_deprecated_hidden()) { - set_deprecated_hidden(from.deprecated_hidden()); + mutable_info()->::bgs::protocol::channel::v1::MemberAccountInfo::MergeFrom(from.info()); } } - _extensions_.MergeFrom(from._extensions_); mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } @@ -3397,11 +3003,7 @@ void MemberState::CopyFrom(const MemberState& from) { bool MemberState::IsInitialized() const { if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; - if (has_info()) { - if (!this->info().IsInitialized()) return false; - } - - if (!_extensions_.IsInitialized()) return false; return true; + return true; } void MemberState::Swap(MemberState* other) { @@ -3410,11 +3012,9 @@ void MemberState::Swap(MemberState* other) { role_.Swap(&other->role_); std::swap(privileges_, other->privileges_); std::swap(info_, other->info_); - std::swap(deprecated_hidden_, other->deprecated_hidden_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); - _extensions_.Swap(&other->_extensions_); } } diff --git a/src/server/proto/Client/channel_types.pb.h b/src/server/proto/Client/channel_types.pb.h index 3f20de04d63..407e68e73c6 100644 --- a/src/server/proto/Client/channel_types.pb.h +++ b/src/server/proto/Client/channel_types.pb.h @@ -25,6 +25,7 @@ #include <google/protobuf/extension_set.h> #include <google/protobuf/generated_enum_reflection.h> #include <google/protobuf/unknown_field_set.h> +#include "client/v1/channel_id.pb.h" // IWYU pragma: export #include "attribute_types.pb.h" #include "entity_types.pb.h" #include "invitation_types.pb.h" @@ -42,12 +43,12 @@ void TC_PROTO_API protobuf_AddDesc_channel_5ftypes_2eproto(); void protobuf_AssignDesc_channel_5ftypes_2eproto(); void protobuf_ShutdownFile_channel_5ftypes_2eproto(); -class ChannelId; class Message; class ListChannelsOptions; class ChannelDescription; class ChannelInfo; class ChannelState; +class MemberAccountInfo; class MemberState; class Member; @@ -74,107 +75,6 @@ inline bool ChannelState_PrivacyLevel_Parse( } // =================================================================== -class TC_PROTO_API ChannelId : public ::google::protobuf::Message { - public: - ChannelId(); - virtual ~ChannelId(); - - ChannelId(const ChannelId& from); - - inline ChannelId& operator=(const ChannelId& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const ChannelId& default_instance(); - - void Swap(ChannelId* other); - - // implements Message ---------------------------------------------- - - ChannelId* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ChannelId& from); - void MergeFrom(const ChannelId& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional uint32 type = 1; - inline bool has_type() const; - inline void clear_type(); - static const int kTypeFieldNumber = 1; - inline ::google::protobuf::uint32 type() const; - inline void set_type(::google::protobuf::uint32 value); - - // optional .bgs.protocol.ProcessId host = 2; - inline bool has_host() const; - inline void clear_host(); - static const int kHostFieldNumber = 2; - inline const ::bgs::protocol::ProcessId& host() const; - inline ::bgs::protocol::ProcessId* mutable_host(); - inline ::bgs::protocol::ProcessId* release_host(); - inline void set_allocated_host(::bgs::protocol::ProcessId* host); - - // optional fixed32 id = 3; - inline bool has_id() const; - inline void clear_id(); - static const int kIdFieldNumber = 3; - inline ::google::protobuf::uint32 id() const; - inline void set_id(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.ChannelId) - private: - inline void set_has_type(); - inline void clear_has_type(); - inline void set_has_host(); - inline void clear_has_host(); - inline void set_has_id(); - inline void clear_has_id(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::bgs::protocol::ProcessId* host_; - ::google::protobuf::uint32 type_; - ::google::protobuf::uint32 id_; - friend void TC_PROTO_API protobuf_AddDesc_channel_5ftypes_2eproto(); - friend void protobuf_AssignDesc_channel_5ftypes_2eproto(); - friend void protobuf_ShutdownFile_channel_5ftypes_2eproto(); - - void InitAsDefaultInstance(); - static ChannelId* default_instance_; -}; -// ------------------------------------------------------------------- - class TC_PROTO_API Message : public ::google::protobuf::Message { public: Message(); @@ -240,18 +140,9 @@ class TC_PROTO_API Message : public ::google::protobuf::Message { inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >* mutable_attribute(); - // optional uint32 role = 2; - inline bool has_role() const; - inline void clear_role(); - static const int kRoleFieldNumber = 2; - inline ::google::protobuf::uint32 role() const; - inline void set_role(::google::protobuf::uint32 value); - GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(Message) // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.Message) private: - inline void set_has_role(); - inline void clear_has_role(); ::google::protobuf::internal::ExtensionSet _extensions_; @@ -260,7 +151,6 @@ class TC_PROTO_API Message : public ::google::protobuf::Message { ::google::protobuf::uint32 _has_bits_[1]; mutable int _cached_size_; ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_; - ::google::protobuf::uint32 role_; friend void TC_PROTO_API protobuf_AddDesc_channel_5ftypes_2eproto(); friend void protobuf_AssignDesc_channel_5ftypes_2eproto(); friend void protobuf_ShutdownFile_channel_5ftypes_2eproto(); @@ -391,7 +281,6 @@ class TC_PROTO_API ListChannelsOptions : public ::google::protobuf::Message { inline ::std::string* release_channel_type(); inline void set_allocated_channel_type(::std::string* channel_type); - GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ListChannelsOptions) // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.ListChannelsOptions) private: inline void set_has_start_index(); @@ -411,8 +300,6 @@ class TC_PROTO_API ListChannelsOptions : public ::google::protobuf::Message { inline void set_has_channel_type(); inline void clear_has_channel_type(); - ::google::protobuf::internal::ExtensionSet _extensions_; - ::google::protobuf::UnknownFieldSet _unknown_fields_; ::google::protobuf::uint32 _has_bits_[1]; @@ -611,14 +498,11 @@ class TC_PROTO_API ChannelInfo : public ::google::protobuf::Message { inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member >* mutable_member(); - GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ChannelInfo) // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.ChannelInfo) private: inline void set_has_description(); inline void clear_has_description(); - ::google::protobuf::internal::ExtensionSet _extensions_; - ::google::protobuf::UnknownFieldSet _unknown_fields_; ::google::protobuf::uint32 _has_bits_[1]; @@ -751,13 +635,6 @@ class TC_PROTO_API ChannelState : public ::google::protobuf::Message { inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >* mutable_invitation(); - // optional uint32 max_invitations = 5; - inline bool has_max_invitations() const; - inline void clear_max_invitations(); - static const int kMaxInvitationsFieldNumber = 5; - inline ::google::protobuf::uint32 max_invitations() const; - inline void set_max_invitations(::google::protobuf::uint32 value); - // optional uint32 reason = 6; inline bool has_reason() const; inline void clear_reason(); @@ -784,18 +661,6 @@ class TC_PROTO_API ChannelState : public ::google::protobuf::Message { inline ::std::string* release_name(); inline void set_allocated_name(::std::string* name); - // optional string delegate_name = 9; - inline bool has_delegate_name() const; - inline void clear_delegate_name(); - static const int kDelegateNameFieldNumber = 9; - inline const ::std::string& delegate_name() const; - inline void set_delegate_name(const ::std::string& value); - inline void set_delegate_name(const char* value); - inline void set_delegate_name(const char* value, size_t size); - inline ::std::string* mutable_delegate_name(); - inline ::std::string* release_delegate_name(); - inline void set_allocated_delegate_name(::std::string* delegate_name); - // optional string channel_type = 10 [default = "default"]; inline bool has_channel_type() const; inline void clear_channel_type(); @@ -815,13 +680,6 @@ class TC_PROTO_API ChannelState : public ::google::protobuf::Message { inline ::google::protobuf::uint32 program() const; inline void set_program(::google::protobuf::uint32 value); - // optional bool allow_offline_members = 12 [default = false]; - inline bool has_allow_offline_members() const; - inline void clear_allow_offline_members(); - static const int kAllowOfflineMembersFieldNumber = 12; - inline bool allow_offline_members() const; - inline void set_allow_offline_members(bool value); - // optional bool subscribe_to_presence = 13 [default = true]; inline bool has_subscribe_to_presence() const; inline void clear_subscribe_to_presence(); @@ -829,13 +687,6 @@ class TC_PROTO_API ChannelState : public ::google::protobuf::Message { inline bool subscribe_to_presence() const; inline void set_subscribe_to_presence(bool value); - // optional bool destroy_on_founder_leave = 14 [default = false]; - inline bool has_destroy_on_founder_leave() const; - inline void clear_destroy_on_founder_leave(); - static const int kDestroyOnFounderLeaveFieldNumber = 14; - inline bool destroy_on_founder_leave() const; - inline void set_destroy_on_founder_leave(bool value); - GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ChannelState) // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.ChannelState) private: @@ -843,26 +694,18 @@ class TC_PROTO_API ChannelState : public ::google::protobuf::Message { inline void clear_has_max_members(); inline void set_has_min_members(); inline void clear_has_min_members(); - inline void set_has_max_invitations(); - inline void clear_has_max_invitations(); inline void set_has_reason(); inline void clear_has_reason(); inline void set_has_privacy_level(); inline void clear_has_privacy_level(); inline void set_has_name(); inline void clear_has_name(); - inline void set_has_delegate_name(); - inline void clear_has_delegate_name(); inline void set_has_channel_type(); inline void clear_has_channel_type(); inline void set_has_program(); inline void clear_has_program(); - inline void set_has_allow_offline_members(); - inline void clear_has_allow_offline_members(); inline void set_has_subscribe_to_presence(); inline void clear_has_subscribe_to_presence(); - inline void set_has_destroy_on_founder_leave(); - inline void clear_has_destroy_on_founder_leave(); ::google::protobuf::internal::ExtensionSet _extensions_; @@ -874,17 +717,13 @@ class TC_PROTO_API ChannelState : public ::google::protobuf::Message { ::google::protobuf::uint32 min_members_; ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_; ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation > invitation_; - ::google::protobuf::uint32 max_invitations_; ::google::protobuf::uint32 reason_; - ::std::string* name_; - ::std::string* delegate_name_; int privacy_level_; - ::google::protobuf::uint32 program_; + ::std::string* name_; static ::std::string* _default_channel_type_; ::std::string* channel_type_; - bool allow_offline_members_; + ::google::protobuf::uint32 program_; bool subscribe_to_presence_; - bool destroy_on_founder_leave_; friend void TC_PROTO_API protobuf_AddDesc_channel_5ftypes_2eproto(); friend void protobuf_AssignDesc_channel_5ftypes_2eproto(); friend void protobuf_ShutdownFile_channel_5ftypes_2eproto(); @@ -894,6 +733,90 @@ class TC_PROTO_API ChannelState : public ::google::protobuf::Message { }; // ------------------------------------------------------------------- +class TC_PROTO_API MemberAccountInfo : public ::google::protobuf::Message { + public: + MemberAccountInfo(); + virtual ~MemberAccountInfo(); + + MemberAccountInfo(const MemberAccountInfo& from); + + inline MemberAccountInfo& operator=(const MemberAccountInfo& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MemberAccountInfo& default_instance(); + + void Swap(MemberAccountInfo* other); + + // implements Message ---------------------------------------------- + + MemberAccountInfo* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MemberAccountInfo& from); + void MergeFrom(const MemberAccountInfo& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string battle_tag = 3; + inline bool has_battle_tag() const; + inline void clear_battle_tag(); + static const int kBattleTagFieldNumber = 3; + inline const ::std::string& battle_tag() const; + inline void set_battle_tag(const ::std::string& value); + inline void set_battle_tag(const char* value); + inline void set_battle_tag(const char* value, size_t size); + inline ::std::string* mutable_battle_tag(); + inline ::std::string* release_battle_tag(); + inline void set_allocated_battle_tag(::std::string* battle_tag); + + // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.MemberAccountInfo) + private: + inline void set_has_battle_tag(); + inline void clear_has_battle_tag(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::std::string* battle_tag_; + friend void TC_PROTO_API protobuf_AddDesc_channel_5ftypes_2eproto(); + friend void protobuf_AssignDesc_channel_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_channel_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static MemberAccountInfo* default_instance_; +}; +// ------------------------------------------------------------------- + class TC_PROTO_API MemberState : public ::google::protobuf::Message { public: MemberState(); @@ -978,33 +901,21 @@ class TC_PROTO_API MemberState : public ::google::protobuf::Message { inline ::google::protobuf::uint64 privileges() const; inline void set_privileges(::google::protobuf::uint64 value); - // optional .bgs.protocol.AccountInfo info = 4; + // optional .bgs.protocol.channel.v1.MemberAccountInfo info = 4; inline bool has_info() const; inline void clear_info(); static const int kInfoFieldNumber = 4; - inline const ::bgs::protocol::AccountInfo& info() const; - inline ::bgs::protocol::AccountInfo* mutable_info(); - inline ::bgs::protocol::AccountInfo* release_info(); - inline void set_allocated_info(::bgs::protocol::AccountInfo* info); - - // optional bool DEPRECATED_hidden = 5 [default = false, deprecated = true]; - inline bool has_deprecated_hidden() const PROTOBUF_DEPRECATED; - inline void clear_deprecated_hidden() PROTOBUF_DEPRECATED; - static const int kDEPRECATEDHiddenFieldNumber = 5; - inline bool deprecated_hidden() const PROTOBUF_DEPRECATED; - inline void set_deprecated_hidden(bool value) PROTOBUF_DEPRECATED; - - GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(MemberState) + inline const ::bgs::protocol::channel::v1::MemberAccountInfo& info() const; + inline ::bgs::protocol::channel::v1::MemberAccountInfo* mutable_info(); + inline ::bgs::protocol::channel::v1::MemberAccountInfo* release_info(); + inline void set_allocated_info(::bgs::protocol::channel::v1::MemberAccountInfo* info); + // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.MemberState) private: inline void set_has_privileges(); inline void clear_has_privileges(); inline void set_has_info(); inline void clear_has_info(); - inline void set_has_deprecated_hidden(); - inline void clear_has_deprecated_hidden(); - - ::google::protobuf::internal::ExtensionSet _extensions_; ::google::protobuf::UnknownFieldSet _unknown_fields_; @@ -1014,8 +925,7 @@ class TC_PROTO_API MemberState : public ::google::protobuf::Message { ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > role_; mutable int _role_cached_byte_size_; ::google::protobuf::uint64 privileges_; - ::bgs::protocol::AccountInfo* info_; - bool deprecated_hidden_; + ::bgs::protocol::channel::v1::MemberAccountInfo* info_; friend void TC_PROTO_API protobuf_AddDesc_channel_5ftypes_2eproto(); friend void protobuf_AssignDesc_channel_5ftypes_2eproto(); friend void protobuf_ShutdownFile_channel_5ftypes_2eproto(); @@ -1124,99 +1034,6 @@ class TC_PROTO_API Member : public ::google::protobuf::Message { // =================================================================== -// ChannelId - -// optional uint32 type = 1; -inline bool ChannelId::has_type() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ChannelId::set_has_type() { - _has_bits_[0] |= 0x00000001u; -} -inline void ChannelId::clear_has_type() { - _has_bits_[0] &= ~0x00000001u; -} -inline void ChannelId::clear_type() { - type_ = 0u; - clear_has_type(); -} -inline ::google::protobuf::uint32 ChannelId::type() const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelId.type) - return type_; -} -inline void ChannelId::set_type(::google::protobuf::uint32 value) { - set_has_type(); - type_ = value; - // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelId.type) -} - -// optional .bgs.protocol.ProcessId host = 2; -inline bool ChannelId::has_host() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ChannelId::set_has_host() { - _has_bits_[0] |= 0x00000002u; -} -inline void ChannelId::clear_has_host() { - _has_bits_[0] &= ~0x00000002u; -} -inline void ChannelId::clear_host() { - if (host_ != NULL) host_->::bgs::protocol::ProcessId::Clear(); - clear_has_host(); -} -inline const ::bgs::protocol::ProcessId& ChannelId::host() const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelId.host) - return host_ != NULL ? *host_ : *default_instance_->host_; -} -inline ::bgs::protocol::ProcessId* ChannelId::mutable_host() { - set_has_host(); - if (host_ == NULL) host_ = new ::bgs::protocol::ProcessId; - // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.ChannelId.host) - return host_; -} -inline ::bgs::protocol::ProcessId* ChannelId::release_host() { - clear_has_host(); - ::bgs::protocol::ProcessId* temp = host_; - host_ = NULL; - return temp; -} -inline void ChannelId::set_allocated_host(::bgs::protocol::ProcessId* host) { - delete host_; - host_ = host; - if (host) { - set_has_host(); - } else { - clear_has_host(); - } - // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.ChannelId.host) -} - -// optional fixed32 id = 3; -inline bool ChannelId::has_id() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void ChannelId::set_has_id() { - _has_bits_[0] |= 0x00000004u; -} -inline void ChannelId::clear_has_id() { - _has_bits_[0] &= ~0x00000004u; -} -inline void ChannelId::clear_id() { - id_ = 0u; - clear_has_id(); -} -inline ::google::protobuf::uint32 ChannelId::id() const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelId.id) - return id_; -} -inline void ChannelId::set_id(::google::protobuf::uint32 value) { - set_has_id(); - id_ = value; - // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelId.id) -} - -// ------------------------------------------------------------------- - // Message // repeated .bgs.protocol.Attribute attribute = 1; @@ -1249,30 +1066,6 @@ Message::mutable_attribute() { return &attribute_; } -// optional uint32 role = 2; -inline bool Message::has_role() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void Message::set_has_role() { - _has_bits_[0] |= 0x00000002u; -} -inline void Message::clear_has_role() { - _has_bits_[0] &= ~0x00000002u; -} -inline void Message::clear_role() { - role_ = 0u; - clear_has_role(); -} -inline ::google::protobuf::uint32 Message::role() const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.Message.role) - return role_; -} -inline void Message::set_role(::google::protobuf::uint32 value) { - set_has_role(); - role_ = value; - // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.Message.role) -} - // ------------------------------------------------------------------- // ListChannelsOptions @@ -1887,39 +1680,15 @@ ChannelState::mutable_invitation() { return &invitation_; } -// optional uint32 max_invitations = 5; -inline bool ChannelState::has_max_invitations() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void ChannelState::set_has_max_invitations() { - _has_bits_[0] |= 0x00000010u; -} -inline void ChannelState::clear_has_max_invitations() { - _has_bits_[0] &= ~0x00000010u; -} -inline void ChannelState::clear_max_invitations() { - max_invitations_ = 0u; - clear_has_max_invitations(); -} -inline ::google::protobuf::uint32 ChannelState::max_invitations() const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelState.max_invitations) - return max_invitations_; -} -inline void ChannelState::set_max_invitations(::google::protobuf::uint32 value) { - set_has_max_invitations(); - max_invitations_ = value; - // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelState.max_invitations) -} - // optional uint32 reason = 6; inline bool ChannelState::has_reason() const { - return (_has_bits_[0] & 0x00000020u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void ChannelState::set_has_reason() { - _has_bits_[0] |= 0x00000020u; + _has_bits_[0] |= 0x00000010u; } inline void ChannelState::clear_has_reason() { - _has_bits_[0] &= ~0x00000020u; + _has_bits_[0] &= ~0x00000010u; } inline void ChannelState::clear_reason() { reason_ = 0u; @@ -1937,13 +1706,13 @@ inline void ChannelState::set_reason(::google::protobuf::uint32 value) { // optional .bgs.protocol.channel.v1.ChannelState.PrivacyLevel privacy_level = 7 [default = PRIVACY_LEVEL_OPEN]; inline bool ChannelState::has_privacy_level() const { - return (_has_bits_[0] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void ChannelState::set_has_privacy_level() { - _has_bits_[0] |= 0x00000040u; + _has_bits_[0] |= 0x00000020u; } inline void ChannelState::clear_has_privacy_level() { - _has_bits_[0] &= ~0x00000040u; + _has_bits_[0] &= ~0x00000020u; } inline void ChannelState::clear_privacy_level() { privacy_level_ = 1; @@ -1962,13 +1731,13 @@ inline void ChannelState::set_privacy_level(::bgs::protocol::channel::v1::Channe // optional string name = 8; inline bool ChannelState::has_name() const { - return (_has_bits_[0] & 0x00000080u) != 0; + return (_has_bits_[0] & 0x00000040u) != 0; } inline void ChannelState::set_has_name() { - _has_bits_[0] |= 0x00000080u; + _has_bits_[0] |= 0x00000040u; } inline void ChannelState::clear_has_name() { - _has_bits_[0] &= ~0x00000080u; + _has_bits_[0] &= ~0x00000040u; } inline void ChannelState::clear_name() { if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { @@ -2036,91 +1805,15 @@ inline void ChannelState::set_allocated_name(::std::string* name) { // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.ChannelState.name) } -// optional string delegate_name = 9; -inline bool ChannelState::has_delegate_name() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -inline void ChannelState::set_has_delegate_name() { - _has_bits_[0] |= 0x00000100u; -} -inline void ChannelState::clear_has_delegate_name() { - _has_bits_[0] &= ~0x00000100u; -} -inline void ChannelState::clear_delegate_name() { - if (delegate_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delegate_name_->clear(); - } - clear_has_delegate_name(); -} -inline const ::std::string& ChannelState::delegate_name() const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelState.delegate_name) - return *delegate_name_; -} -inline void ChannelState::set_delegate_name(const ::std::string& value) { - set_has_delegate_name(); - if (delegate_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delegate_name_ = new ::std::string; - } - delegate_name_->assign(value); - // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelState.delegate_name) -} -inline void ChannelState::set_delegate_name(const char* value) { - set_has_delegate_name(); - if (delegate_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delegate_name_ = new ::std::string; - } - delegate_name_->assign(value); - // @@protoc_insertion_point(field_set_char:bgs.protocol.channel.v1.ChannelState.delegate_name) -} -inline void ChannelState::set_delegate_name(const char* value, size_t size) { - set_has_delegate_name(); - if (delegate_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delegate_name_ = new ::std::string; - } - delegate_name_->assign(reinterpret_cast<const char*>(value), size); - // @@protoc_insertion_point(field_set_pointer:bgs.protocol.channel.v1.ChannelState.delegate_name) -} -inline ::std::string* ChannelState::mutable_delegate_name() { - set_has_delegate_name(); - if (delegate_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delegate_name_ = new ::std::string; - } - // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.ChannelState.delegate_name) - return delegate_name_; -} -inline ::std::string* ChannelState::release_delegate_name() { - clear_has_delegate_name(); - if (delegate_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = delegate_name_; - delegate_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; - } -} -inline void ChannelState::set_allocated_delegate_name(::std::string* delegate_name) { - if (delegate_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete delegate_name_; - } - if (delegate_name) { - set_has_delegate_name(); - delegate_name_ = delegate_name; - } else { - clear_has_delegate_name(); - delegate_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.ChannelState.delegate_name) -} - // optional string channel_type = 10 [default = "default"]; inline bool ChannelState::has_channel_type() const { - return (_has_bits_[0] & 0x00000200u) != 0; + return (_has_bits_[0] & 0x00000080u) != 0; } inline void ChannelState::set_has_channel_type() { - _has_bits_[0] |= 0x00000200u; + _has_bits_[0] |= 0x00000080u; } inline void ChannelState::clear_has_channel_type() { - _has_bits_[0] &= ~0x00000200u; + _has_bits_[0] &= ~0x00000080u; } inline void ChannelState::clear_channel_type() { if (channel_type_ != _default_channel_type_) { @@ -2190,13 +1883,13 @@ inline void ChannelState::set_allocated_channel_type(::std::string* channel_type // optional fixed32 program = 11 [default = 0]; inline bool ChannelState::has_program() const { - return (_has_bits_[0] & 0x00000400u) != 0; + return (_has_bits_[0] & 0x00000100u) != 0; } inline void ChannelState::set_has_program() { - _has_bits_[0] |= 0x00000400u; + _has_bits_[0] |= 0x00000100u; } inline void ChannelState::clear_has_program() { - _has_bits_[0] &= ~0x00000400u; + _has_bits_[0] &= ~0x00000100u; } inline void ChannelState::clear_program() { program_ = 0u; @@ -2212,39 +1905,15 @@ inline void ChannelState::set_program(::google::protobuf::uint32 value) { // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelState.program) } -// optional bool allow_offline_members = 12 [default = false]; -inline bool ChannelState::has_allow_offline_members() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -inline void ChannelState::set_has_allow_offline_members() { - _has_bits_[0] |= 0x00000800u; -} -inline void ChannelState::clear_has_allow_offline_members() { - _has_bits_[0] &= ~0x00000800u; -} -inline void ChannelState::clear_allow_offline_members() { - allow_offline_members_ = false; - clear_has_allow_offline_members(); -} -inline bool ChannelState::allow_offline_members() const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelState.allow_offline_members) - return allow_offline_members_; -} -inline void ChannelState::set_allow_offline_members(bool value) { - set_has_allow_offline_members(); - allow_offline_members_ = value; - // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelState.allow_offline_members) -} - // optional bool subscribe_to_presence = 13 [default = true]; inline bool ChannelState::has_subscribe_to_presence() const { - return (_has_bits_[0] & 0x00001000u) != 0; + return (_has_bits_[0] & 0x00000200u) != 0; } inline void ChannelState::set_has_subscribe_to_presence() { - _has_bits_[0] |= 0x00001000u; + _has_bits_[0] |= 0x00000200u; } inline void ChannelState::clear_has_subscribe_to_presence() { - _has_bits_[0] &= ~0x00001000u; + _has_bits_[0] &= ~0x00000200u; } inline void ChannelState::clear_subscribe_to_presence() { subscribe_to_presence_ = true; @@ -2260,28 +1929,84 @@ inline void ChannelState::set_subscribe_to_presence(bool value) { // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelState.subscribe_to_presence) } -// optional bool destroy_on_founder_leave = 14 [default = false]; -inline bool ChannelState::has_destroy_on_founder_leave() const { - return (_has_bits_[0] & 0x00002000u) != 0; +// ------------------------------------------------------------------- + +// MemberAccountInfo + +// optional string battle_tag = 3; +inline bool MemberAccountInfo::has_battle_tag() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MemberAccountInfo::set_has_battle_tag() { + _has_bits_[0] |= 0x00000001u; } -inline void ChannelState::set_has_destroy_on_founder_leave() { - _has_bits_[0] |= 0x00002000u; +inline void MemberAccountInfo::clear_has_battle_tag() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MemberAccountInfo::clear_battle_tag() { + if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_->clear(); + } + clear_has_battle_tag(); } -inline void ChannelState::clear_has_destroy_on_founder_leave() { - _has_bits_[0] &= ~0x00002000u; +inline const ::std::string& MemberAccountInfo::battle_tag() const { + // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.MemberAccountInfo.battle_tag) + return *battle_tag_; +} +inline void MemberAccountInfo::set_battle_tag(const ::std::string& value) { + set_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_ = new ::std::string; + } + battle_tag_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.MemberAccountInfo.battle_tag) +} +inline void MemberAccountInfo::set_battle_tag(const char* value) { + set_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_ = new ::std::string; + } + battle_tag_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.channel.v1.MemberAccountInfo.battle_tag) +} +inline void MemberAccountInfo::set_battle_tag(const char* value, size_t size) { + set_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_ = new ::std::string; + } + battle_tag_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.channel.v1.MemberAccountInfo.battle_tag) } -inline void ChannelState::clear_destroy_on_founder_leave() { - destroy_on_founder_leave_ = false; - clear_has_destroy_on_founder_leave(); +inline ::std::string* MemberAccountInfo::mutable_battle_tag() { + set_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.MemberAccountInfo.battle_tag) + return battle_tag_; } -inline bool ChannelState::destroy_on_founder_leave() const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelState.destroy_on_founder_leave) - return destroy_on_founder_leave_; +inline ::std::string* MemberAccountInfo::release_battle_tag() { + clear_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = battle_tag_; + battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } } -inline void ChannelState::set_destroy_on_founder_leave(bool value) { - set_has_destroy_on_founder_leave(); - destroy_on_founder_leave_ = value; - // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelState.destroy_on_founder_leave) +inline void MemberAccountInfo::set_allocated_battle_tag(::std::string* battle_tag) { + if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete battle_tag_; + } + if (battle_tag) { + set_has_battle_tag(); + battle_tag_ = battle_tag; + } else { + clear_has_battle_tag(); + battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.MemberAccountInfo.battle_tag) } // ------------------------------------------------------------------- @@ -2372,7 +2097,7 @@ inline void MemberState::set_privileges(::google::protobuf::uint64 value) { // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.MemberState.privileges) } -// optional .bgs.protocol.AccountInfo info = 4; +// optional .bgs.protocol.channel.v1.MemberAccountInfo info = 4; inline bool MemberState::has_info() const { return (_has_bits_[0] & 0x00000008u) != 0; } @@ -2383,26 +2108,26 @@ inline void MemberState::clear_has_info() { _has_bits_[0] &= ~0x00000008u; } inline void MemberState::clear_info() { - if (info_ != NULL) info_->::bgs::protocol::AccountInfo::Clear(); + if (info_ != NULL) info_->::bgs::protocol::channel::v1::MemberAccountInfo::Clear(); clear_has_info(); } -inline const ::bgs::protocol::AccountInfo& MemberState::info() const { +inline const ::bgs::protocol::channel::v1::MemberAccountInfo& MemberState::info() const { // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.MemberState.info) return info_ != NULL ? *info_ : *default_instance_->info_; } -inline ::bgs::protocol::AccountInfo* MemberState::mutable_info() { +inline ::bgs::protocol::channel::v1::MemberAccountInfo* MemberState::mutable_info() { set_has_info(); - if (info_ == NULL) info_ = new ::bgs::protocol::AccountInfo; + if (info_ == NULL) info_ = new ::bgs::protocol::channel::v1::MemberAccountInfo; // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.MemberState.info) return info_; } -inline ::bgs::protocol::AccountInfo* MemberState::release_info() { +inline ::bgs::protocol::channel::v1::MemberAccountInfo* MemberState::release_info() { clear_has_info(); - ::bgs::protocol::AccountInfo* temp = info_; + ::bgs::protocol::channel::v1::MemberAccountInfo* temp = info_; info_ = NULL; return temp; } -inline void MemberState::set_allocated_info(::bgs::protocol::AccountInfo* info) { +inline void MemberState::set_allocated_info(::bgs::protocol::channel::v1::MemberAccountInfo* info) { delete info_; info_ = info; if (info) { @@ -2413,30 +2138,6 @@ inline void MemberState::set_allocated_info(::bgs::protocol::AccountInfo* info) // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.MemberState.info) } -// optional bool DEPRECATED_hidden = 5 [default = false, deprecated = true]; -inline bool MemberState::has_deprecated_hidden() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void MemberState::set_has_deprecated_hidden() { - _has_bits_[0] |= 0x00000010u; -} -inline void MemberState::clear_has_deprecated_hidden() { - _has_bits_[0] &= ~0x00000010u; -} -inline void MemberState::clear_deprecated_hidden() { - deprecated_hidden_ = false; - clear_has_deprecated_hidden(); -} -inline bool MemberState::deprecated_hidden() const { - // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.MemberState.DEPRECATED_hidden) - return deprecated_hidden_; -} -inline void MemberState::set_deprecated_hidden(bool value) { - set_has_deprecated_hidden(); - deprecated_hidden_ = value; - // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.MemberState.DEPRECATED_hidden) -} - // ------------------------------------------------------------------- // Member diff --git a/src/server/proto/Client/client/v1/channel_id.pb.cc b/src/server/proto/Client/client/v1/channel_id.pb.cc new file mode 100644 index 00000000000..bd313efb61d --- /dev/null +++ b/src/server/proto/Client/client/v1/channel_id.pb.cc @@ -0,0 +1,440 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: client/v1/channel_id.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "client/v1/channel_id.pb.h" + +#include <algorithm> +#include <utility> + +#include <google/protobuf/stubs/common.h> +#include <google/protobuf/stubs/once.h> +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/wire_format_lite_inl.h> +#include <google/protobuf/descriptor.h> +#include <google/protobuf/generated_message_reflection.h> +#include <google/protobuf/reflection_ops.h> +#include <google/protobuf/wire_format.h> +#include "Log.h" +// @@protoc_insertion_point(includes) + +// Fix stupid windows.h included from Log.h->Common.h +#ifdef SendMessage +#undef SendMessage +#endif + +namespace bgs { +namespace protocol { +namespace channel { +namespace v1 { + +namespace { + +const ::google::protobuf::Descriptor* ChannelId_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ChannelId_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_client_2fv1_2fchannel_5fid_2eproto() { + protobuf_AddDesc_client_2fv1_2fchannel_5fid_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "client/v1/channel_id.proto"); + GOOGLE_CHECK(file != NULL); + ChannelId_descriptor_ = file->message_type(0); + static const int ChannelId_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelId, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelId, host_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelId, id_), + }; + ChannelId_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ChannelId_descriptor_, + ChannelId::default_instance_, + ChannelId_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelId, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChannelId, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ChannelId)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_client_2fv1_2fchannel_5fid_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ChannelId_descriptor_, &ChannelId::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_client_2fv1_2fchannel_5fid_2eproto() { + delete ChannelId::default_instance_; + delete ChannelId_reflection_; +} + +void protobuf_AddDesc_client_2fv1_2fchannel_5fid_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::bgs::protocol::protobuf_AddDesc_rpc_5ftypes_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\032client/v1/channel_id.proto\022\027bgs.protoc" + "ol.channel.v1\032\017rpc_types.proto\"L\n\tChanne" + "lId\022\014\n\004type\030\001 \001(\r\022%\n\004host\030\002 \001(\0132\027.bgs.pr" + "otocol.ProcessId\022\n\n\002id\030\003 \001(\007B\002H\001", 152); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "client/v1/channel_id.proto", &protobuf_RegisterTypes); + ChannelId::default_instance_ = new ChannelId(); + ChannelId::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_client_2fv1_2fchannel_5fid_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_client_2fv1_2fchannel_5fid_2eproto { + StaticDescriptorInitializer_client_2fv1_2fchannel_5fid_2eproto() { + protobuf_AddDesc_client_2fv1_2fchannel_5fid_2eproto(); + } +} static_descriptor_initializer_client_2fv1_2fchannel_5fid_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int ChannelId::kTypeFieldNumber; +const int ChannelId::kHostFieldNumber; +const int ChannelId::kIdFieldNumber; +#endif // !_MSC_VER + +ChannelId::ChannelId() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.channel.v1.ChannelId) +} + +void ChannelId::InitAsDefaultInstance() { + host_ = const_cast< ::bgs::protocol::ProcessId*>(&::bgs::protocol::ProcessId::default_instance()); +} + +ChannelId::ChannelId(const ChannelId& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.channel.v1.ChannelId) +} + +void ChannelId::SharedCtor() { + _cached_size_ = 0; + type_ = 0u; + host_ = NULL; + id_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ChannelId::~ChannelId() { + // @@protoc_insertion_point(destructor:bgs.protocol.channel.v1.ChannelId) + SharedDtor(); +} + +void ChannelId::SharedDtor() { + if (this != default_instance_) { + delete host_; + } +} + +void ChannelId::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ChannelId::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ChannelId_descriptor_; +} + +const ChannelId& ChannelId::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_client_2fv1_2fchannel_5fid_2eproto(); + return *default_instance_; +} + +ChannelId* ChannelId::default_instance_ = NULL; + +ChannelId* ChannelId::New() const { + return new ChannelId; +} + +void ChannelId::Clear() { +#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ + &reinterpret_cast<ChannelId*>(16)->f) - \ + reinterpret_cast<char*>(16)) + +#define ZR_(first, last) do { \ + size_t f = OFFSET_OF_FIELD_(first); \ + size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ + ::memset(&first, 0, n); \ + } while (0) + + if (_has_bits_[0 / 32] & 7) { + ZR_(type_, id_); + if (has_host()) { + if (host_ != NULL) host_->::bgs::protocol::ProcessId::Clear(); + } + } + +#undef OFFSET_OF_FIELD_ +#undef ZR_ + + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ChannelId::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.channel.v1.ChannelId) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 type = 1; + case 1: { + if (tag == 8) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &type_))); + set_has_type(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(18)) goto parse_host; + break; + } + + // optional .bgs.protocol.ProcessId host = 2; + case 2: { + if (tag == 18) { + parse_host: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_host())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(29)) goto parse_id; + break; + } + + // optional fixed32 id = 3; + case 3: { + if (tag == 29) { + parse_id: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( + input, &id_))); + set_has_id(); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.channel.v1.ChannelId) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.channel.v1.ChannelId) + return false; +#undef DO_ +} + +void ChannelId::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.channel.v1.ChannelId) + // optional uint32 type = 1; + if (has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->type(), output); + } + + // optional .bgs.protocol.ProcessId host = 2; + if (has_host()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->host(), output); + } + + // optional fixed32 id = 3; + if (has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteFixed32(3, this->id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.channel.v1.ChannelId) +} + +::google::protobuf::uint8* ChannelId::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.channel.v1.ChannelId) + // optional uint32 type = 1; + if (has_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->type(), target); + } + + // optional .bgs.protocol.ProcessId host = 2; + if (has_host()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->host(), target); + } + + // optional fixed32 id = 3; + if (has_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(3, this->id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.channel.v1.ChannelId) + return target; +} + +int ChannelId::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint32 type = 1; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->type()); + } + + // optional .bgs.protocol.ProcessId host = 2; + if (has_host()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->host()); + } + + // optional fixed32 id = 3; + if (has_id()) { + total_size += 1 + 4; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ChannelId::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ChannelId* source = + ::google::protobuf::internal::dynamic_cast_if_available<const ChannelId*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ChannelId::MergeFrom(const ChannelId& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_type()) { + set_type(from.type()); + } + if (from.has_host()) { + mutable_host()->::bgs::protocol::ProcessId::MergeFrom(from.host()); + } + if (from.has_id()) { + set_id(from.id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ChannelId::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ChannelId::CopyFrom(const ChannelId& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ChannelId::IsInitialized() const { + + if (has_host()) { + if (!this->host().IsInitialized()) return false; + } + return true; +} + +void ChannelId::Swap(ChannelId* other) { + if (other != this) { + std::swap(type_, other->type_); + std::swap(host_, other->host_); + std::swap(id_, other->id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ChannelId::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ChannelId_descriptor_; + metadata.reflection = ChannelId_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace channel +} // namespace protocol +} // namespace bgs + +// @@protoc_insertion_point(global_scope) diff --git a/src/server/proto/Client/client/v1/channel_id.pb.h b/src/server/proto/Client/client/v1/channel_id.pb.h new file mode 100644 index 00000000000..74795675ca2 --- /dev/null +++ b/src/server/proto/Client/client/v1/channel_id.pb.h @@ -0,0 +1,262 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: client/v1/channel_id.proto + +#ifndef PROTOBUF_client_2fv1_2fchannel_5fid_2eproto__INCLUDED +#define PROTOBUF_client_2fv1_2fchannel_5fid_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 2006000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> +#include <google/protobuf/extension_set.h> +#include <google/protobuf/unknown_field_set.h> +#include "rpc_types.pb.h" +#include "Define.h" // for TC_PROTO_API +// @@protoc_insertion_point(includes) + +namespace bgs { +namespace protocol { +namespace channel { +namespace v1 { + +// Internal implementation detail -- do not call these. +void TC_PROTO_API protobuf_AddDesc_client_2fv1_2fchannel_5fid_2eproto(); +void protobuf_AssignDesc_client_2fv1_2fchannel_5fid_2eproto(); +void protobuf_ShutdownFile_client_2fv1_2fchannel_5fid_2eproto(); + +class ChannelId; + +// =================================================================== + +class TC_PROTO_API ChannelId : public ::google::protobuf::Message { + public: + ChannelId(); + virtual ~ChannelId(); + + ChannelId(const ChannelId& from); + + inline ChannelId& operator=(const ChannelId& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ChannelId& default_instance(); + + void Swap(ChannelId* other); + + // implements Message ---------------------------------------------- + + ChannelId* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ChannelId& from); + void MergeFrom(const ChannelId& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 type = 1; + inline bool has_type() const; + inline void clear_type(); + static const int kTypeFieldNumber = 1; + inline ::google::protobuf::uint32 type() const; + inline void set_type(::google::protobuf::uint32 value); + + // optional .bgs.protocol.ProcessId host = 2; + inline bool has_host() const; + inline void clear_host(); + static const int kHostFieldNumber = 2; + inline const ::bgs::protocol::ProcessId& host() const; + inline ::bgs::protocol::ProcessId* mutable_host(); + inline ::bgs::protocol::ProcessId* release_host(); + inline void set_allocated_host(::bgs::protocol::ProcessId* host); + + // optional fixed32 id = 3; + inline bool has_id() const; + inline void clear_id(); + static const int kIdFieldNumber = 3; + inline ::google::protobuf::uint32 id() const; + inline void set_id(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.ChannelId) + private: + inline void set_has_type(); + inline void clear_has_type(); + inline void set_has_host(); + inline void clear_has_host(); + inline void set_has_id(); + inline void clear_has_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::ProcessId* host_; + ::google::protobuf::uint32 type_; + ::google::protobuf::uint32 id_; + friend void TC_PROTO_API protobuf_AddDesc_client_2fv1_2fchannel_5fid_2eproto(); + friend void protobuf_AssignDesc_client_2fv1_2fchannel_5fid_2eproto(); + friend void protobuf_ShutdownFile_client_2fv1_2fchannel_5fid_2eproto(); + + void InitAsDefaultInstance(); + static ChannelId* default_instance_; +}; +// =================================================================== + + +// =================================================================== + + +// =================================================================== + +// ChannelId + +// optional uint32 type = 1; +inline bool ChannelId::has_type() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ChannelId::set_has_type() { + _has_bits_[0] |= 0x00000001u; +} +inline void ChannelId::clear_has_type() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ChannelId::clear_type() { + type_ = 0u; + clear_has_type(); +} +inline ::google::protobuf::uint32 ChannelId::type() const { + // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelId.type) + return type_; +} +inline void ChannelId::set_type(::google::protobuf::uint32 value) { + set_has_type(); + type_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelId.type) +} + +// optional .bgs.protocol.ProcessId host = 2; +inline bool ChannelId::has_host() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ChannelId::set_has_host() { + _has_bits_[0] |= 0x00000002u; +} +inline void ChannelId::clear_has_host() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ChannelId::clear_host() { + if (host_ != NULL) host_->::bgs::protocol::ProcessId::Clear(); + clear_has_host(); +} +inline const ::bgs::protocol::ProcessId& ChannelId::host() const { + // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelId.host) + return host_ != NULL ? *host_ : *default_instance_->host_; +} +inline ::bgs::protocol::ProcessId* ChannelId::mutable_host() { + set_has_host(); + if (host_ == NULL) host_ = new ::bgs::protocol::ProcessId; + // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.ChannelId.host) + return host_; +} +inline ::bgs::protocol::ProcessId* ChannelId::release_host() { + clear_has_host(); + ::bgs::protocol::ProcessId* temp = host_; + host_ = NULL; + return temp; +} +inline void ChannelId::set_allocated_host(::bgs::protocol::ProcessId* host) { + delete host_; + host_ = host; + if (host) { + set_has_host(); + } else { + clear_has_host(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.ChannelId.host) +} + +// optional fixed32 id = 3; +inline bool ChannelId::has_id() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ChannelId::set_has_id() { + _has_bits_[0] |= 0x00000004u; +} +inline void ChannelId::clear_has_id() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ChannelId::clear_id() { + id_ = 0u; + clear_has_id(); +} +inline ::google::protobuf::uint32 ChannelId::id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelId.id) + return id_; +} +inline void ChannelId::set_id(::google::protobuf::uint32 value) { + set_has_id(); + id_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelId.id) +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace channel +} // namespace protocol +} // namespace bgs + +#ifndef SWIG +namespace google { +namespace protobuf { + + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_client_2fv1_2fchannel_5fid_2eproto__INCLUDED diff --git a/src/server/proto/Client/connection_service.pb.cc b/src/server/proto/Client/connection_service.pb.cc index 64e282fd1a6..8e4d5e5d1c3 100644 --- a/src/server/proto/Client/connection_service.pb.cc +++ b/src/server/proto/Client/connection_service.pb.cc @@ -1799,6 +1799,7 @@ BindRequest::BindRequest(const BindRequest& from) void BindRequest::SharedCtor() { _cached_size_ = 0; + _deprecated_imported_service_hash_cached_byte_size_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -2155,6 +2156,7 @@ BindResponse::BindResponse(const BindResponse& from) void BindResponse::SharedCtor() { _cached_size_ = 0; + _imported_service_id_cached_byte_size_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } diff --git a/src/server/proto/Client/friends_service.pb.cc b/src/server/proto/Client/friends_service.pb.cc index af490c596a6..23cdc43f354 100644 --- a/src/server/proto/Client/friends_service.pb.cc +++ b/src/server/proto/Client/friends_service.pb.cc @@ -34,9 +34,6 @@ namespace { const ::google::protobuf::Descriptor* SubscribeRequest_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* SubscribeRequest_reflection_ = NULL; -const ::google::protobuf::Descriptor* SubscribeResponse_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SubscribeResponse_reflection_ = NULL; const ::google::protobuf::Descriptor* UnsubscribeRequest_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* UnsubscribeRequest_reflection_ = NULL; @@ -58,6 +55,15 @@ const ::google::protobuf::internal::GeneratedMessageReflection* const ::google::protobuf::Descriptor* UpdateFriendStateRequest_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* UpdateFriendStateRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetFriendListRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetFriendListRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetFriendListResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetFriendListResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* CreateFriendshipRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CreateFriendshipRequest_reflection_ = NULL; const ::google::protobuf::Descriptor* FriendNotification_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* FriendNotification_reflection_ = NULL; @@ -95,28 +101,7 @@ void protobuf_AssignDesc_friends_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(SubscribeRequest)); - SubscribeResponse_descriptor_ = file->message_type(1); - static const int SubscribeResponse_offsets_[7] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscribeResponse, max_friends_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscribeResponse, max_received_invitations_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscribeResponse, max_sent_invitations_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscribeResponse, role_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscribeResponse, friends_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscribeResponse, sent_invitations_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscribeResponse, received_invitations_), - }; - SubscribeResponse_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - SubscribeResponse_descriptor_, - SubscribeResponse::default_instance_, - SubscribeResponse_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscribeResponse, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscribeResponse, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(SubscribeResponse)); - UnsubscribeRequest_descriptor_ = file->message_type(2); + UnsubscribeRequest_descriptor_ = file->message_type(1); static const int UnsubscribeRequest_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UnsubscribeRequest, agent_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UnsubscribeRequest, object_id_), @@ -132,7 +117,7 @@ void protobuf_AssignDesc_friends_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(UnsubscribeRequest)); - GenericFriendRequest_descriptor_ = file->message_type(3); + GenericFriendRequest_descriptor_ = file->message_type(2); static const int GenericFriendRequest_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GenericFriendRequest, agent_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GenericFriendRequest, target_id_), @@ -148,7 +133,7 @@ void protobuf_AssignDesc_friends_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GenericFriendRequest)); - GenericFriendResponse_descriptor_ = file->message_type(4); + GenericFriendResponse_descriptor_ = file->message_type(3); static const int GenericFriendResponse_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GenericFriendResponse, target_friend_), }; @@ -163,7 +148,7 @@ void protobuf_AssignDesc_friends_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(GenericFriendResponse)); - AssignRoleRequest_descriptor_ = file->message_type(5); + AssignRoleRequest_descriptor_ = file->message_type(4); static const int AssignRoleRequest_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AssignRoleRequest, agent_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AssignRoleRequest, target_id_), @@ -180,7 +165,7 @@ void protobuf_AssignDesc_friends_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(AssignRoleRequest)); - ViewFriendsRequest_descriptor_ = file->message_type(6); + ViewFriendsRequest_descriptor_ = file->message_type(5); static const int ViewFriendsRequest_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ViewFriendsRequest, agent_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ViewFriendsRequest, target_id_), @@ -197,7 +182,7 @@ void protobuf_AssignDesc_friends_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(ViewFriendsRequest)); - ViewFriendsResponse_descriptor_ = file->message_type(7); + ViewFriendsResponse_descriptor_ = file->message_type(6); static const int ViewFriendsResponse_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ViewFriendsResponse, friends_), }; @@ -212,7 +197,7 @@ void protobuf_AssignDesc_friends_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(ViewFriendsResponse)); - UpdateFriendStateRequest_descriptor_ = file->message_type(8); + UpdateFriendStateRequest_descriptor_ = file->message_type(7); static const int UpdateFriendStateRequest_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateFriendStateRequest, agent_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateFriendStateRequest, target_id_), @@ -230,7 +215,55 @@ void protobuf_AssignDesc_friends_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(UpdateFriendStateRequest)); - FriendNotification_descriptor_ = file->message_type(9); + GetFriendListRequest_descriptor_ = file->message_type(8); + static const int GetFriendListRequest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetFriendListRequest, agent_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetFriendListRequest, target_id_), + }; + GetFriendListRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetFriendListRequest_descriptor_, + GetFriendListRequest::default_instance_, + GetFriendListRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetFriendListRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetFriendListRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetFriendListRequest)); + GetFriendListResponse_descriptor_ = file->message_type(9); + static const int GetFriendListResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetFriendListResponse, friends_), + }; + GetFriendListResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetFriendListResponse_descriptor_, + GetFriendListResponse::default_instance_, + GetFriendListResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetFriendListResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetFriendListResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetFriendListResponse)); + CreateFriendshipRequest_descriptor_ = file->message_type(10); + static const int CreateFriendshipRequest_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateFriendshipRequest, inviter_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateFriendshipRequest, invitee_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateFriendshipRequest, role_), + }; + CreateFriendshipRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CreateFriendshipRequest_descriptor_, + CreateFriendshipRequest::default_instance_, + CreateFriendshipRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateFriendshipRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateFriendshipRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CreateFriendshipRequest)); + FriendNotification_descriptor_ = file->message_type(11); static const int FriendNotification_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FriendNotification, target_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FriendNotification, game_account_id_), @@ -248,7 +281,7 @@ void protobuf_AssignDesc_friends_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(FriendNotification)); - UpdateFriendStateNotification_descriptor_ = file->message_type(10); + UpdateFriendStateNotification_descriptor_ = file->message_type(12); static const int UpdateFriendStateNotification_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateFriendStateNotification, changed_friend_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateFriendStateNotification, game_account_id_), @@ -266,7 +299,7 @@ void protobuf_AssignDesc_friends_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(UpdateFriendStateNotification)); - InvitationNotification_descriptor_ = file->message_type(11); + InvitationNotification_descriptor_ = file->message_type(13); static const int InvitationNotification_offsets_[5] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InvitationNotification, invitation_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InvitationNotification, game_account_id_), @@ -302,8 +335,6 @@ void protobuf_RegisterTypes(const ::std::string&) { ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( SubscribeRequest_descriptor_, &SubscribeRequest::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SubscribeResponse_descriptor_, &SubscribeResponse::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( UnsubscribeRequest_descriptor_, &UnsubscribeRequest::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( GenericFriendRequest_descriptor_, &GenericFriendRequest::default_instance()); @@ -318,6 +349,12 @@ void protobuf_RegisterTypes(const ::std::string&) { ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( UpdateFriendStateRequest_descriptor_, &UpdateFriendStateRequest::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetFriendListRequest_descriptor_, &GetFriendListRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetFriendListResponse_descriptor_, &GetFriendListResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CreateFriendshipRequest_descriptor_, &CreateFriendshipRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( FriendNotification_descriptor_, &FriendNotification::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( UpdateFriendStateNotification_descriptor_, &UpdateFriendStateNotification::default_instance()); @@ -330,8 +367,6 @@ void protobuf_RegisterTypes(const ::std::string&) { void protobuf_ShutdownFile_friends_5fservice_2eproto() { delete SubscribeRequest::default_instance_; delete SubscribeRequest_reflection_; - delete SubscribeResponse::default_instance_; - delete SubscribeResponse_reflection_; delete UnsubscribeRequest::default_instance_; delete UnsubscribeRequest_reflection_; delete GenericFriendRequest::default_instance_; @@ -346,6 +381,12 @@ void protobuf_ShutdownFile_friends_5fservice_2eproto() { delete ViewFriendsResponse_reflection_; delete UpdateFriendStateRequest::default_instance_; delete UpdateFriendStateRequest_reflection_; + delete GetFriendListRequest::default_instance_; + delete GetFriendListRequest_reflection_; + delete GetFriendListResponse::default_instance_; + delete GetFriendListResponse_reflection_; + delete CreateFriendshipRequest::default_instance_; + delete CreateFriendshipRequest_reflection_; delete FriendNotification::default_instance_; delete FriendNotification_reflection_; delete UpdateFriendStateNotification::default_instance_; @@ -364,115 +405,118 @@ void protobuf_AddDesc_friends_5fservice_2eproto() { ::bgs::protocol::protobuf_AddDesc_entity_5ftypes_2eproto(); ::bgs::protocol::friends::v1::protobuf_AddDesc_friends_5ftypes_2eproto(); ::bgs::protocol::protobuf_AddDesc_invitation_5ftypes_2eproto(); - ::bgs::protocol::protobuf_AddDesc_role_5ftypes_2eproto(); ::bgs::protocol::protobuf_AddDesc_rpc_5ftypes_2eproto(); ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( "\n\025friends_service.proto\022\027bgs.protocol.fr" "iends.v1\032\025attribute_types.proto\032\022entity_" "types.proto\032\023friends_types.proto\032\026invita" - "tion_types.proto\032\020role_types.proto\032\017rpc_" - "types.proto\"O\n\020SubscribeRequest\022(\n\010agent" - "_id\030\001 \001(\0132\026.bgs.protocol.EntityId\022\021\n\tobj" - "ect_id\030\002 \002(\004\"\250\002\n\021SubscribeResponse\022\023\n\013ma" - "x_friends\030\001 \001(\r\022 \n\030max_received_invitati" - "ons\030\002 \001(\r\022\034\n\024max_sent_invitations\030\003 \001(\r\022" - " \n\004role\030\004 \003(\0132\022.bgs.protocol.Role\0220\n\007fri" - "ends\030\005 \003(\0132\037.bgs.protocol.friends.v1.Fri" - "end\0222\n\020sent_invitations\030\006 \003(\0132\030.bgs.prot" - "ocol.Invitation\0226\n\024received_invitations\030" - "\007 \003(\0132\030.bgs.protocol.Invitation\"Q\n\022Unsub" + "tion_types.proto\032\017rpc_types.proto\"O\n\020Sub" "scribeRequest\022(\n\010agent_id\030\001 \001(\0132\026.bgs.pr" - "otocol.EntityId\022\021\n\tobject_id\030\002 \001(\004\"k\n\024Ge" - "nericFriendRequest\022(\n\010agent_id\030\001 \001(\0132\026.b" - "gs.protocol.EntityId\022)\n\ttarget_id\030\002 \002(\0132" - "\026.bgs.protocol.EntityId\"O\n\025GenericFriend" - "Response\0226\n\rtarget_friend\030\001 \001(\0132\037.bgs.pr" - "otocol.friends.v1.Friend\"v\n\021AssignRoleRe" - "quest\022(\n\010agent_id\030\001 \001(\0132\026.bgs.protocol.E" - "ntityId\022)\n\ttarget_id\030\002 \002(\0132\026.bgs.protoco" - "l.EntityId\022\014\n\004role\030\003 \003(\005\"{\n\022ViewFriendsR" - "equest\022(\n\010agent_id\030\001 \001(\0132\026.bgs.protocol." - "EntityId\022)\n\ttarget_id\030\002 \002(\0132\026.bgs.protoc" - "ol.EntityId\022\020\n\004role\030\003 \003(\rB\002\020\001\"G\n\023ViewFri" - "endsResponse\0220\n\007friends\030\001 \003(\0132\037.bgs.prot" - "ocol.friends.v1.Friend\"\265\001\n\030UpdateFriendS" - "tateRequest\022(\n\010agent_id\030\001 \001(\0132\026.bgs.prot" - "ocol.EntityId\022)\n\ttarget_id\030\002 \002(\0132\026.bgs.p" - "rotocol.EntityId\022*\n\tattribute\030\003 \003(\0132\027.bg" - "s.protocol.Attribute\022\030\n\020attributes_epoch" - "\030\004 \001(\004\"\311\001\n\022FriendNotification\022/\n\006target\030" - "\001 \002(\0132\037.bgs.protocol.friends.v1.Friend\022/" - "\n\017game_account_id\030\002 \001(\0132\026.bgs.protocol.E" - "ntityId\022%\n\004peer\030\004 \001(\0132\027.bgs.protocol.Pro" - "cessId\022*\n\naccount_id\030\005 \001(\0132\026.bgs.protoco" - "l.EntityId\"\334\001\n\035UpdateFriendStateNotifica" - "tion\0227\n\016changed_friend\030\001 \002(\0132\037.bgs.proto" - "col.friends.v1.Friend\022/\n\017game_account_id" - "\030\002 \001(\0132\026.bgs.protocol.EntityId\022%\n\004peer\030\004" - " \001(\0132\027.bgs.protocol.ProcessId\022*\n\naccount" - "_id\030\005 \001(\0132\026.bgs.protocol.EntityId\"\335\001\n\026In" - "vitationNotification\022,\n\ninvitation\030\001 \002(\013" - "2\030.bgs.protocol.Invitation\022/\n\017game_accou" - "nt_id\030\002 \001(\0132\026.bgs.protocol.EntityId\022\021\n\006r" - "eason\030\003 \001(\r:\0010\022%\n\004peer\030\004 \001(\0132\027.bgs.proto" - "col.ProcessId\022*\n\naccount_id\030\005 \001(\0132\026.bgs." - "protocol.EntityId2\264\t\n\016FriendsService\022h\n\t" - "Subscribe\022).bgs.protocol.friends.v1.Subs" - "cribeRequest\032*.bgs.protocol.friends.v1.S" - "ubscribeResponse\"\004\200\265\030\001\022Q\n\016SendInvitation" - "\022#.bgs.protocol.SendInvitationRequest\032\024." - "bgs.protocol.NoData\"\004\200\265\030\002\022V\n\020AcceptInvit" - "ation\022&.bgs.protocol.GenericInvitationRe" - "quest\032\024.bgs.protocol.NoData\"\004\200\265\030\003\022Y\n\020Rev" - "okeInvitation\022&.bgs.protocol.GenericInvi" - "tationRequest\032\024.bgs.protocol.NoData\"\007\210\002\001" - "\200\265\030\004\022W\n\021DeclineInvitation\022&.bgs.protocol" - ".GenericInvitationRequest\032\024.bgs.protocol" - ".NoData\"\004\200\265\030\005\022V\n\020IgnoreInvitation\022&.bgs." - "protocol.GenericInvitationRequest\032\024.bgs." - "protocol.NoData\"\004\200\265\030\006\022T\n\nAssignRole\022*.bg" - "s.protocol.friends.v1.AssignRoleRequest\032" - "\024.bgs.protocol.NoData\"\004\200\265\030\007\022s\n\014RemoveFri" - "end\022-.bgs.protocol.friends.v1.GenericFri" - "endRequest\032..bgs.protocol.friends.v1.Gen" - "ericFriendResponse\"\004\200\265\030\010\022n\n\013ViewFriends\022" - "+.bgs.protocol.friends.v1.ViewFriendsReq" - "uest\032,.bgs.protocol.friends.v1.ViewFrien" - "dsResponse\"\004\200\265\030\t\022b\n\021UpdateFriendState\0221." - "bgs.protocol.friends.v1.UpdateFriendStat" - "eRequest\032\024.bgs.protocol.NoData\"\004\200\265\030\n\022V\n\013" - "Unsubscribe\022+.bgs.protocol.friends.v1.Un" - "subscribeRequest\032\024.bgs.protocol.NoData\"\004" - "\200\265\030\013\022a\n\024RevokeAllInvitations\022-.bgs.proto" - "col.friends.v1.GenericFriendRequest\032\024.bg" - "s.protocol.NoData\"\004\200\265\030\014\032\'\312>$bnet.protoco" - "l.friends.FriendsService2\247\006\n\017FriendsList" - "ener\022]\n\rOnFriendAdded\022+.bgs.protocol.fri" - "ends.v1.FriendNotification\032\031.bgs.protoco" - "l.NO_RESPONSE\"\004\200\265\030\001\022_\n\017OnFriendRemoved\022+" - ".bgs.protocol.friends.v1.FriendNotificat" - "ion\032\031.bgs.protocol.NO_RESPONSE\"\004\200\265\030\002\022m\n\031" - "OnReceivedInvitationAdded\022/.bgs.protocol" - ".friends.v1.InvitationNotification\032\031.bgs" - ".protocol.NO_RESPONSE\"\004\200\265\030\003\022o\n\033OnReceive" - "dInvitationRemoved\022/.bgs.protocol.friend" - "s.v1.InvitationNotification\032\031.bgs.protoc" - "ol.NO_RESPONSE\"\004\200\265\030\004\022l\n\025OnSentInvitation" - "Added\022/.bgs.protocol.friends.v1.Invitati" - "onNotification\032\031.bgs.protocol.NO_RESPONS" - "E\"\007\210\002\001\200\265\030\005\022n\n\027OnSentInvitationRemoved\022/." - "bgs.protocol.friends.v1.InvitationNotifi" - "cation\032\031.bgs.protocol.NO_RESPONSE\"\007\210\002\001\200\265" - "\030\006\022n\n\023OnUpdateFriendState\0226.bgs.protocol" - ".friends.v1.UpdateFriendStateNotificatio" - "n\032\031.bgs.protocol.NO_RESPONSE\"\004\200\265\030\007\032&\312>#b" - "net.protocol.friends.FriendsNotifyB7\n\030bn" - "et.protocol.friends.v1B\023FriendsServicePr" - "otoH\001\200\001\000\210\001\001", 4051); + "otocol.EntityId\022\021\n\tobject_id\030\002 \002(\004\"Q\n\022Un" + "subscribeRequest\022(\n\010agent_id\030\001 \001(\0132\026.bgs" + ".protocol.EntityId\022\021\n\tobject_id\030\002 \001(\004\"k\n" + "\024GenericFriendRequest\022(\n\010agent_id\030\001 \001(\0132" + "\026.bgs.protocol.EntityId\022)\n\ttarget_id\030\002 \002" + "(\0132\026.bgs.protocol.EntityId\"O\n\025GenericFri" + "endResponse\0226\n\rtarget_friend\030\001 \001(\0132\037.bgs" + ".protocol.friends.v1.Friend\"v\n\021AssignRol" + "eRequest\022(\n\010agent_id\030\001 \001(\0132\026.bgs.protoco" + "l.EntityId\022)\n\ttarget_id\030\002 \002(\0132\026.bgs.prot" + "ocol.EntityId\022\014\n\004role\030\003 \003(\005\"{\n\022ViewFrien" + "dsRequest\022(\n\010agent_id\030\001 \001(\0132\026.bgs.protoc" + "ol.EntityId\022)\n\ttarget_id\030\002 \002(\0132\026.bgs.pro" + "tocol.EntityId\022\020\n\004role\030\003 \003(\rB\002\020\001\"O\n\023View" + "FriendsResponse\0228\n\007friends\030\001 \003(\0132\'.bgs.p" + "rotocol.friends.v1.FriendOfFriend\"\265\001\n\030Up" + "dateFriendStateRequest\022(\n\010agent_id\030\001 \001(\013" + "2\026.bgs.protocol.EntityId\022)\n\ttarget_id\030\002 " + "\002(\0132\026.bgs.protocol.EntityId\022*\n\tattribute" + "\030\003 \003(\0132\027.bgs.protocol.Attribute\022\030\n\020attri" + "butes_epoch\030\004 \001(\004\"k\n\024GetFriendListReques" + "t\022(\n\010agent_id\030\001 \001(\0132\026.bgs.protocol.Entit" + "yId\022)\n\ttarget_id\030\002 \001(\0132\026.bgs.protocol.En" + "tityId\"I\n\025GetFriendListResponse\0220\n\007frien" + "ds\030\001 \003(\0132\037.bgs.protocol.friends.v1.Frien" + "d\"\203\001\n\027CreateFriendshipRequest\022*\n\ninviter" + "_id\030\001 \001(\0132\026.bgs.protocol.EntityId\022*\n\ninv" + "itee_id\030\002 \001(\0132\026.bgs.protocol.EntityId\022\020\n" + "\004role\030\003 \003(\rB\002\020\001\"\311\001\n\022FriendNotification\022/" + "\n\006target\030\001 \002(\0132\037.bgs.protocol.friends.v1" + ".Friend\022/\n\017game_account_id\030\002 \001(\0132\026.bgs.p" + "rotocol.EntityId\022%\n\004peer\030\004 \001(\0132\027.bgs.pro" + "tocol.ProcessId\022*\n\naccount_id\030\005 \001(\0132\026.bg" + "s.protocol.EntityId\"\334\001\n\035UpdateFriendStat" + "eNotification\0227\n\016changed_friend\030\001 \002(\0132\037." + "bgs.protocol.friends.v1.Friend\022/\n\017game_a" + "ccount_id\030\002 \001(\0132\026.bgs.protocol.EntityId\022" + "%\n\004peer\030\004 \001(\0132\027.bgs.protocol.ProcessId\022*" + "\n\naccount_id\030\005 \001(\0132\026.bgs.protocol.Entity" + "Id\"\335\001\n\026InvitationNotification\022,\n\ninvitat" + "ion\030\001 \002(\0132\030.bgs.protocol.Invitation\022/\n\017g" + "ame_account_id\030\002 \001(\0132\026.bgs.protocol.Enti" + "tyId\022\021\n\006reason\030\003 \001(\r:\0010\022%\n\004peer\030\004 \001(\0132\027." + "bgs.protocol.ProcessId\022*\n\naccount_id\030\005 \001" + "(\0132\026.bgs.protocol.EntityId2\214\013\n\016FriendsSe" + "rvice\022h\n\tSubscribe\022).bgs.protocol.friend" + "s.v1.SubscribeRequest\032*.bgs.protocol.fri" + "ends.v1.SubscribeResponse\"\004\200\265\030\001\022Q\n\016SendI" + "nvitation\022#.bgs.protocol.SendInvitationR" + "equest\032\024.bgs.protocol.NoData\"\004\200\265\030\002\022V\n\020Ac" + "ceptInvitation\022&.bgs.protocol.GenericInv" + "itationRequest\032\024.bgs.protocol.NoData\"\004\200\265" + "\030\003\022Y\n\020RevokeInvitation\022&.bgs.protocol.Ge" + "nericInvitationRequest\032\024.bgs.protocol.No" + "Data\"\007\210\002\001\200\265\030\004\022W\n\021DeclineInvitation\022&.bgs" + ".protocol.GenericInvitationRequest\032\024.bgs" + ".protocol.NoData\"\004\200\265\030\005\022V\n\020IgnoreInvitati" + "on\022&.bgs.protocol.GenericInvitationReque" + "st\032\024.bgs.protocol.NoData\"\004\200\265\030\006\022T\n\nAssign" + "Role\022*.bgs.protocol.friends.v1.AssignRol" + "eRequest\032\024.bgs.protocol.NoData\"\004\200\265\030\007\022s\n\014" + "RemoveFriend\022-.bgs.protocol.friends.v1.G" + "enericFriendRequest\032..bgs.protocol.frien" + "ds.v1.GenericFriendResponse\"\004\200\265\030\010\022n\n\013Vie" + "wFriends\022+.bgs.protocol.friends.v1.ViewF" + "riendsRequest\032,.bgs.protocol.friends.v1." + "ViewFriendsResponse\"\004\200\265\030\t\022b\n\021UpdateFrien" + "dState\0221.bgs.protocol.friends.v1.UpdateF" + "riendStateRequest\032\024.bgs.protocol.NoData\"" + "\004\200\265\030\n\022V\n\013Unsubscribe\022+.bgs.protocol.frie" + "nds.v1.UnsubscribeRequest\032\024.bgs.protocol" + ".NoData\"\004\200\265\030\013\022a\n\024RevokeAllInvitations\022-." + "bgs.protocol.friends.v1.GenericFriendReq" + "uest\032\024.bgs.protocol.NoData\"\004\200\265\030\014\022t\n\rGetF" + "riendList\022-.bgs.protocol.friends.v1.GetF" + "riendListRequest\032..bgs.protocol.friends." + "v1.GetFriendListResponse\"\004\200\265\030\r\022`\n\020Create" + "Friendship\0220.bgs.protocol.friends.v1.Cre" + "ateFriendshipRequest\032\024.bgs.protocol.NoDa" + "ta\"\004\200\265\030\016\032\'\312>$bnet.protocol.friends.Frien" + "dsService2\247\006\n\017FriendsListener\022]\n\rOnFrien" + "dAdded\022+.bgs.protocol.friends.v1.FriendN" + "otification\032\031.bgs.protocol.NO_RESPONSE\"\004" + "\200\265\030\001\022_\n\017OnFriendRemoved\022+.bgs.protocol.f" + "riends.v1.FriendNotification\032\031.bgs.proto" + "col.NO_RESPONSE\"\004\200\265\030\002\022m\n\031OnReceivedInvit" + "ationAdded\022/.bgs.protocol.friends.v1.Inv" + "itationNotification\032\031.bgs.protocol.NO_RE" + "SPONSE\"\004\200\265\030\003\022o\n\033OnReceivedInvitationRemo" + "ved\022/.bgs.protocol.friends.v1.Invitation" + "Notification\032\031.bgs.protocol.NO_RESPONSE\"" + "\004\200\265\030\004\022l\n\025OnSentInvitationAdded\022/.bgs.pro" + "tocol.friends.v1.InvitationNotification\032" + "\031.bgs.protocol.NO_RESPONSE\"\007\210\002\001\200\265\030\005\022n\n\027O" + "nSentInvitationRemoved\022/.bgs.protocol.fr" + "iends.v1.InvitationNotification\032\031.bgs.pr" + "otocol.NO_RESPONSE\"\007\210\002\001\200\265\030\006\022n\n\023OnUpdateF" + "riendState\0226.bgs.protocol.friends.v1.Upd" + "ateFriendStateNotification\032\031.bgs.protoco" + "l.NO_RESPONSE\"\004\200\265\030\007\032&\312>#bnet.protocol.fr" + "iends.FriendsNotifyB7\n\030bnet.protocol.fri" + "ends.v1B\023FriendsServiceProtoH\001\200\001\000\210\001\001", 4276); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "friends_service.proto", &protobuf_RegisterTypes); SubscribeRequest::default_instance_ = new SubscribeRequest(); - SubscribeResponse::default_instance_ = new SubscribeResponse(); UnsubscribeRequest::default_instance_ = new UnsubscribeRequest(); GenericFriendRequest::default_instance_ = new GenericFriendRequest(); GenericFriendResponse::default_instance_ = new GenericFriendResponse(); @@ -480,11 +524,13 @@ void protobuf_AddDesc_friends_5fservice_2eproto() { ViewFriendsRequest::default_instance_ = new ViewFriendsRequest(); ViewFriendsResponse::default_instance_ = new ViewFriendsResponse(); UpdateFriendStateRequest::default_instance_ = new UpdateFriendStateRequest(); + GetFriendListRequest::default_instance_ = new GetFriendListRequest(); + GetFriendListResponse::default_instance_ = new GetFriendListResponse(); + CreateFriendshipRequest::default_instance_ = new CreateFriendshipRequest(); FriendNotification::default_instance_ = new FriendNotification(); UpdateFriendStateNotification::default_instance_ = new UpdateFriendStateNotification(); InvitationNotification::default_instance_ = new InvitationNotification(); SubscribeRequest::default_instance_->InitAsDefaultInstance(); - SubscribeResponse::default_instance_->InitAsDefaultInstance(); UnsubscribeRequest::default_instance_->InitAsDefaultInstance(); GenericFriendRequest::default_instance_->InitAsDefaultInstance(); GenericFriendResponse::default_instance_->InitAsDefaultInstance(); @@ -492,6 +538,9 @@ void protobuf_AddDesc_friends_5fservice_2eproto() { ViewFriendsRequest::default_instance_->InitAsDefaultInstance(); ViewFriendsResponse::default_instance_->InitAsDefaultInstance(); UpdateFriendStateRequest::default_instance_->InitAsDefaultInstance(); + GetFriendListRequest::default_instance_->InitAsDefaultInstance(); + GetFriendListResponse::default_instance_->InitAsDefaultInstance(); + CreateFriendshipRequest::default_instance_->InitAsDefaultInstance(); FriendNotification::default_instance_->InitAsDefaultInstance(); UpdateFriendStateNotification::default_instance_->InitAsDefaultInstance(); InvitationNotification::default_instance_->InitAsDefaultInstance(); @@ -780,481 +829,6 @@ void SubscribeRequest::Swap(SubscribeRequest* other) { // =================================================================== #ifndef _MSC_VER -const int SubscribeResponse::kMaxFriendsFieldNumber; -const int SubscribeResponse::kMaxReceivedInvitationsFieldNumber; -const int SubscribeResponse::kMaxSentInvitationsFieldNumber; -const int SubscribeResponse::kRoleFieldNumber; -const int SubscribeResponse::kFriendsFieldNumber; -const int SubscribeResponse::kSentInvitationsFieldNumber; -const int SubscribeResponse::kReceivedInvitationsFieldNumber; -#endif // !_MSC_VER - -SubscribeResponse::SubscribeResponse() - : ::google::protobuf::Message() { - SharedCtor(); - // @@protoc_insertion_point(constructor:bgs.protocol.friends.v1.SubscribeResponse) -} - -void SubscribeResponse::InitAsDefaultInstance() { -} - -SubscribeResponse::SubscribeResponse(const SubscribeResponse& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:bgs.protocol.friends.v1.SubscribeResponse) -} - -void SubscribeResponse::SharedCtor() { - _cached_size_ = 0; - max_friends_ = 0u; - max_received_invitations_ = 0u; - max_sent_invitations_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -SubscribeResponse::~SubscribeResponse() { - // @@protoc_insertion_point(destructor:bgs.protocol.friends.v1.SubscribeResponse) - SharedDtor(); -} - -void SubscribeResponse::SharedDtor() { - if (this != default_instance_) { - } -} - -void SubscribeResponse::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SubscribeResponse::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SubscribeResponse_descriptor_; -} - -const SubscribeResponse& SubscribeResponse::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_friends_5fservice_2eproto(); - return *default_instance_; -} - -SubscribeResponse* SubscribeResponse::default_instance_ = NULL; - -SubscribeResponse* SubscribeResponse::New() const { - return new SubscribeResponse; -} - -void SubscribeResponse::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ - &reinterpret_cast<SubscribeResponse*>(16)->f) - \ - reinterpret_cast<char*>(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 7) { - ZR_(max_friends_, max_received_invitations_); - max_sent_invitations_ = 0u; - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - role_.Clear(); - friends_.Clear(); - sent_invitations_.Clear(); - received_invitations_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool SubscribeResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.friends.v1.SubscribeResponse) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 max_friends = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &max_friends_))); - set_has_max_friends(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_max_received_invitations; - break; - } - - // optional uint32 max_received_invitations = 2; - case 2: { - if (tag == 16) { - parse_max_received_invitations: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &max_received_invitations_))); - set_has_max_received_invitations(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_max_sent_invitations; - break; - } - - // optional uint32 max_sent_invitations = 3; - case 3: { - if (tag == 24) { - parse_max_sent_invitations: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &max_sent_invitations_))); - set_has_max_sent_invitations(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_role; - break; - } - - // repeated .bgs.protocol.Role role = 4; - case 4: { - if (tag == 34) { - parse_role: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_role())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_role; - if (input->ExpectTag(42)) goto parse_friends; - break; - } - - // repeated .bgs.protocol.friends.v1.Friend friends = 5; - case 5: { - if (tag == 42) { - parse_friends: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_friends())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_friends; - if (input->ExpectTag(50)) goto parse_sent_invitations; - break; - } - - // repeated .bgs.protocol.Invitation sent_invitations = 6; - case 6: { - if (tag == 50) { - parse_sent_invitations: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_sent_invitations())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_sent_invitations; - if (input->ExpectTag(58)) goto parse_received_invitations; - break; - } - - // repeated .bgs.protocol.Invitation received_invitations = 7; - case 7: { - if (tag == 58) { - parse_received_invitations: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_received_invitations())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_received_invitations; - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:bgs.protocol.friends.v1.SubscribeResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.SubscribeResponse) - return false; -#undef DO_ -} - -void SubscribeResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.SubscribeResponse) - // optional uint32 max_friends = 1; - if (has_max_friends()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->max_friends(), output); - } - - // optional uint32 max_received_invitations = 2; - if (has_max_received_invitations()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->max_received_invitations(), output); - } - - // optional uint32 max_sent_invitations = 3; - if (has_max_sent_invitations()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->max_sent_invitations(), output); - } - - // repeated .bgs.protocol.Role role = 4; - for (int i = 0; i < this->role_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->role(i), output); - } - - // repeated .bgs.protocol.friends.v1.Friend friends = 5; - for (int i = 0; i < this->friends_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->friends(i), output); - } - - // repeated .bgs.protocol.Invitation sent_invitations = 6; - for (int i = 0; i < this->sent_invitations_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->sent_invitations(i), output); - } - - // repeated .bgs.protocol.Invitation received_invitations = 7; - for (int i = 0; i < this->received_invitations_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->received_invitations(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.SubscribeResponse) -} - -::google::protobuf::uint8* SubscribeResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.SubscribeResponse) - // optional uint32 max_friends = 1; - if (has_max_friends()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->max_friends(), target); - } - - // optional uint32 max_received_invitations = 2; - if (has_max_received_invitations()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->max_received_invitations(), target); - } - - // optional uint32 max_sent_invitations = 3; - if (has_max_sent_invitations()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->max_sent_invitations(), target); - } - - // repeated .bgs.protocol.Role role = 4; - for (int i = 0; i < this->role_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->role(i), target); - } - - // repeated .bgs.protocol.friends.v1.Friend friends = 5; - for (int i = 0; i < this->friends_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->friends(i), target); - } - - // repeated .bgs.protocol.Invitation sent_invitations = 6; - for (int i = 0; i < this->sent_invitations_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->sent_invitations(i), target); - } - - // repeated .bgs.protocol.Invitation received_invitations = 7; - for (int i = 0; i < this->received_invitations_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 7, this->received_invitations(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.friends.v1.SubscribeResponse) - return target; -} - -int SubscribeResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint32 max_friends = 1; - if (has_max_friends()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->max_friends()); - } - - // optional uint32 max_received_invitations = 2; - if (has_max_received_invitations()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->max_received_invitations()); - } - - // optional uint32 max_sent_invitations = 3; - if (has_max_sent_invitations()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->max_sent_invitations()); - } - - } - // repeated .bgs.protocol.Role role = 4; - total_size += 1 * this->role_size(); - for (int i = 0; i < this->role_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->role(i)); - } - - // repeated .bgs.protocol.friends.v1.Friend friends = 5; - total_size += 1 * this->friends_size(); - for (int i = 0; i < this->friends_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->friends(i)); - } - - // repeated .bgs.protocol.Invitation sent_invitations = 6; - total_size += 1 * this->sent_invitations_size(); - for (int i = 0; i < this->sent_invitations_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->sent_invitations(i)); - } - - // repeated .bgs.protocol.Invitation received_invitations = 7; - total_size += 1 * this->received_invitations_size(); - for (int i = 0; i < this->received_invitations_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->received_invitations(i)); - } - - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SubscribeResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const SubscribeResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available<const SubscribeResponse*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void SubscribeResponse::MergeFrom(const SubscribeResponse& from) { - GOOGLE_CHECK_NE(&from, this); - role_.MergeFrom(from.role_); - friends_.MergeFrom(from.friends_); - sent_invitations_.MergeFrom(from.sent_invitations_); - received_invitations_.MergeFrom(from.received_invitations_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_max_friends()) { - set_max_friends(from.max_friends()); - } - if (from.has_max_received_invitations()) { - set_max_received_invitations(from.max_received_invitations()); - } - if (from.has_max_sent_invitations()) { - set_max_sent_invitations(from.max_sent_invitations()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void SubscribeResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SubscribeResponse::CopyFrom(const SubscribeResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubscribeResponse::IsInitialized() const { - - if (!::google::protobuf::internal::AllAreInitialized(this->role())) return false; - if (!::google::protobuf::internal::AllAreInitialized(this->friends())) return false; - if (!::google::protobuf::internal::AllAreInitialized(this->sent_invitations())) return false; - if (!::google::protobuf::internal::AllAreInitialized(this->received_invitations())) return false; - return true; -} - -void SubscribeResponse::Swap(SubscribeResponse* other) { - if (other != this) { - std::swap(max_friends_, other->max_friends_); - std::swap(max_received_invitations_, other->max_received_invitations_); - std::swap(max_sent_invitations_, other->max_sent_invitations_); - role_.Swap(&other->role_); - friends_.Swap(&other->friends_); - sent_invitations_.Swap(&other->sent_invitations_); - received_invitations_.Swap(&other->received_invitations_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata SubscribeResponse::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SubscribeResponse_descriptor_; - metadata.reflection = SubscribeResponse_reflection_; - return metadata; -} - - -// =================================================================== - -#ifndef _MSC_VER const int UnsubscribeRequest::kAgentIdFieldNumber; const int UnsubscribeRequest::kObjectIdFieldNumber; #endif // !_MSC_VER @@ -2388,6 +1962,7 @@ void ViewFriendsRequest::SharedCtor() { _cached_size_ = 0; agent_id_ = NULL; target_id_ = NULL; + _role_cached_byte_size_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -2775,7 +2350,7 @@ bool ViewFriendsResponse::MergePartialFromCodedStream( tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .bgs.protocol.friends.v1.Friend friends = 1; + // repeated .bgs.protocol.friends.v1.FriendOfFriend friends = 1; case 1: { if (tag == 10) { parse_friends: @@ -2814,7 +2389,7 @@ failure: void ViewFriendsResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.ViewFriendsResponse) - // repeated .bgs.protocol.friends.v1.Friend friends = 1; + // repeated .bgs.protocol.friends.v1.FriendOfFriend friends = 1; for (int i = 0; i < this->friends_size(); i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->friends(i), output); @@ -2830,7 +2405,7 @@ void ViewFriendsResponse::SerializeWithCachedSizes( ::google::protobuf::uint8* ViewFriendsResponse::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.ViewFriendsResponse) - // repeated .bgs.protocol.friends.v1.Friend friends = 1; + // repeated .bgs.protocol.friends.v1.FriendOfFriend friends = 1; for (int i = 0; i < this->friends_size(); i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( @@ -2848,7 +2423,7 @@ void ViewFriendsResponse::SerializeWithCachedSizes( int ViewFriendsResponse::ByteSize() const { int total_size = 0; - // repeated .bgs.protocol.friends.v1.Friend friends = 1; + // repeated .bgs.protocol.friends.v1.FriendOfFriend friends = 1; total_size += 1 * this->friends_size(); for (int i = 0; i < this->friends_size(); i++) { total_size += @@ -3283,6 +2858,848 @@ void UpdateFriendStateRequest::Swap(UpdateFriendStateRequest* other) { // =================================================================== #ifndef _MSC_VER +const int GetFriendListRequest::kAgentIdFieldNumber; +const int GetFriendListRequest::kTargetIdFieldNumber; +#endif // !_MSC_VER + +GetFriendListRequest::GetFriendListRequest() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.friends.v1.GetFriendListRequest) +} + +void GetFriendListRequest::InitAsDefaultInstance() { + agent_id_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); + target_id_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); +} + +GetFriendListRequest::GetFriendListRequest(const GetFriendListRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.friends.v1.GetFriendListRequest) +} + +void GetFriendListRequest::SharedCtor() { + _cached_size_ = 0; + agent_id_ = NULL; + target_id_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetFriendListRequest::~GetFriendListRequest() { + // @@protoc_insertion_point(destructor:bgs.protocol.friends.v1.GetFriendListRequest) + SharedDtor(); +} + +void GetFriendListRequest::SharedDtor() { + if (this != default_instance_) { + delete agent_id_; + delete target_id_; + } +} + +void GetFriendListRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetFriendListRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetFriendListRequest_descriptor_; +} + +const GetFriendListRequest& GetFriendListRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_friends_5fservice_2eproto(); + return *default_instance_; +} + +GetFriendListRequest* GetFriendListRequest::default_instance_ = NULL; + +GetFriendListRequest* GetFriendListRequest::New() const { + return new GetFriendListRequest; +} + +void GetFriendListRequest::Clear() { + if (_has_bits_[0 / 32] & 3) { + if (has_agent_id()) { + if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); + } + if (has_target_id()) { + if (target_id_ != NULL) target_id_->::bgs::protocol::EntityId::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetFriendListRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.friends.v1.GetFriendListRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .bgs.protocol.EntityId agent_id = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_agent_id())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(18)) goto parse_target_id; + break; + } + + // optional .bgs.protocol.EntityId target_id = 2; + case 2: { + if (tag == 18) { + parse_target_id: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_target_id())); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.friends.v1.GetFriendListRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.GetFriendListRequest) + return false; +#undef DO_ +} + +void GetFriendListRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.GetFriendListRequest) + // optional .bgs.protocol.EntityId agent_id = 1; + if (has_agent_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->agent_id(), output); + } + + // optional .bgs.protocol.EntityId target_id = 2; + if (has_target_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->target_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.GetFriendListRequest) +} + +::google::protobuf::uint8* GetFriendListRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.GetFriendListRequest) + // optional .bgs.protocol.EntityId agent_id = 1; + if (has_agent_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->agent_id(), target); + } + + // optional .bgs.protocol.EntityId target_id = 2; + if (has_target_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->target_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.friends.v1.GetFriendListRequest) + return target; +} + +int GetFriendListRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .bgs.protocol.EntityId agent_id = 1; + if (has_agent_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->agent_id()); + } + + // optional .bgs.protocol.EntityId target_id = 2; + if (has_target_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->target_id()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetFriendListRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetFriendListRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available<const GetFriendListRequest*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetFriendListRequest::MergeFrom(const GetFriendListRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_agent_id()) { + mutable_agent_id()->::bgs::protocol::EntityId::MergeFrom(from.agent_id()); + } + if (from.has_target_id()) { + mutable_target_id()->::bgs::protocol::EntityId::MergeFrom(from.target_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetFriendListRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetFriendListRequest::CopyFrom(const GetFriendListRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetFriendListRequest::IsInitialized() const { + + if (has_agent_id()) { + if (!this->agent_id().IsInitialized()) return false; + } + if (has_target_id()) { + if (!this->target_id().IsInitialized()) return false; + } + return true; +} + +void GetFriendListRequest::Swap(GetFriendListRequest* other) { + if (other != this) { + std::swap(agent_id_, other->agent_id_); + std::swap(target_id_, other->target_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetFriendListRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetFriendListRequest_descriptor_; + metadata.reflection = GetFriendListRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetFriendListResponse::kFriendsFieldNumber; +#endif // !_MSC_VER + +GetFriendListResponse::GetFriendListResponse() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.friends.v1.GetFriendListResponse) +} + +void GetFriendListResponse::InitAsDefaultInstance() { +} + +GetFriendListResponse::GetFriendListResponse(const GetFriendListResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.friends.v1.GetFriendListResponse) +} + +void GetFriendListResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetFriendListResponse::~GetFriendListResponse() { + // @@protoc_insertion_point(destructor:bgs.protocol.friends.v1.GetFriendListResponse) + SharedDtor(); +} + +void GetFriendListResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void GetFriendListResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetFriendListResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetFriendListResponse_descriptor_; +} + +const GetFriendListResponse& GetFriendListResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_friends_5fservice_2eproto(); + return *default_instance_; +} + +GetFriendListResponse* GetFriendListResponse::default_instance_ = NULL; + +GetFriendListResponse* GetFriendListResponse::New() const { + return new GetFriendListResponse; +} + +void GetFriendListResponse::Clear() { + friends_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetFriendListResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.friends.v1.GetFriendListResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .bgs.protocol.friends.v1.Friend friends = 1; + case 1: { + if (tag == 10) { + parse_friends: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_friends())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(10)) goto parse_friends; + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.friends.v1.GetFriendListResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.GetFriendListResponse) + return false; +#undef DO_ +} + +void GetFriendListResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.GetFriendListResponse) + // repeated .bgs.protocol.friends.v1.Friend friends = 1; + for (int i = 0; i < this->friends_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->friends(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.GetFriendListResponse) +} + +::google::protobuf::uint8* GetFriendListResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.GetFriendListResponse) + // repeated .bgs.protocol.friends.v1.Friend friends = 1; + for (int i = 0; i < this->friends_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->friends(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.friends.v1.GetFriendListResponse) + return target; +} + +int GetFriendListResponse::ByteSize() const { + int total_size = 0; + + // repeated .bgs.protocol.friends.v1.Friend friends = 1; + total_size += 1 * this->friends_size(); + for (int i = 0; i < this->friends_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->friends(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetFriendListResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetFriendListResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available<const GetFriendListResponse*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetFriendListResponse::MergeFrom(const GetFriendListResponse& from) { + GOOGLE_CHECK_NE(&from, this); + friends_.MergeFrom(from.friends_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetFriendListResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetFriendListResponse::CopyFrom(const GetFriendListResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetFriendListResponse::IsInitialized() const { + + if (!::google::protobuf::internal::AllAreInitialized(this->friends())) return false; + return true; +} + +void GetFriendListResponse::Swap(GetFriendListResponse* other) { + if (other != this) { + friends_.Swap(&other->friends_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetFriendListResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetFriendListResponse_descriptor_; + metadata.reflection = GetFriendListResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CreateFriendshipRequest::kInviterIdFieldNumber; +const int CreateFriendshipRequest::kInviteeIdFieldNumber; +const int CreateFriendshipRequest::kRoleFieldNumber; +#endif // !_MSC_VER + +CreateFriendshipRequest::CreateFriendshipRequest() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.friends.v1.CreateFriendshipRequest) +} + +void CreateFriendshipRequest::InitAsDefaultInstance() { + inviter_id_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); + invitee_id_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); +} + +CreateFriendshipRequest::CreateFriendshipRequest(const CreateFriendshipRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.friends.v1.CreateFriendshipRequest) +} + +void CreateFriendshipRequest::SharedCtor() { + _cached_size_ = 0; + inviter_id_ = NULL; + invitee_id_ = NULL; + _role_cached_byte_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CreateFriendshipRequest::~CreateFriendshipRequest() { + // @@protoc_insertion_point(destructor:bgs.protocol.friends.v1.CreateFriendshipRequest) + SharedDtor(); +} + +void CreateFriendshipRequest::SharedDtor() { + if (this != default_instance_) { + delete inviter_id_; + delete invitee_id_; + } +} + +void CreateFriendshipRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CreateFriendshipRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CreateFriendshipRequest_descriptor_; +} + +const CreateFriendshipRequest& CreateFriendshipRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_friends_5fservice_2eproto(); + return *default_instance_; +} + +CreateFriendshipRequest* CreateFriendshipRequest::default_instance_ = NULL; + +CreateFriendshipRequest* CreateFriendshipRequest::New() const { + return new CreateFriendshipRequest; +} + +void CreateFriendshipRequest::Clear() { + if (_has_bits_[0 / 32] & 3) { + if (has_inviter_id()) { + if (inviter_id_ != NULL) inviter_id_->::bgs::protocol::EntityId::Clear(); + } + if (has_invitee_id()) { + if (invitee_id_ != NULL) invitee_id_->::bgs::protocol::EntityId::Clear(); + } + } + role_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CreateFriendshipRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.friends.v1.CreateFriendshipRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .bgs.protocol.EntityId inviter_id = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_inviter_id())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(18)) goto parse_invitee_id; + break; + } + + // optional .bgs.protocol.EntityId invitee_id = 2; + case 2: { + if (tag == 18) { + parse_invitee_id: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_invitee_id())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(26)) goto parse_role; + break; + } + + // repeated uint32 role = 3 [packed = true]; + case 3: { + if (tag == 26) { + parse_role: + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_role()))); + } else if (tag == 24) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 26, input, this->mutable_role()))); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.friends.v1.CreateFriendshipRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.CreateFriendshipRequest) + return false; +#undef DO_ +} + +void CreateFriendshipRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.CreateFriendshipRequest) + // optional .bgs.protocol.EntityId inviter_id = 1; + if (has_inviter_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->inviter_id(), output); + } + + // optional .bgs.protocol.EntityId invitee_id = 2; + if (has_invitee_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->invitee_id(), output); + } + + // repeated uint32 role = 3 [packed = true]; + if (this->role_size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_role_cached_byte_size_); + } + for (int i = 0; i < this->role_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( + this->role(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.CreateFriendshipRequest) +} + +::google::protobuf::uint8* CreateFriendshipRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.CreateFriendshipRequest) + // optional .bgs.protocol.EntityId inviter_id = 1; + if (has_inviter_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->inviter_id(), target); + } + + // optional .bgs.protocol.EntityId invitee_id = 2; + if (has_invitee_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->invitee_id(), target); + } + + // repeated uint32 role = 3 [packed = true]; + if (this->role_size() > 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + 3, + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( + _role_cached_byte_size_, target); + } + for (int i = 0; i < this->role_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32NoTagToArray(this->role(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.friends.v1.CreateFriendshipRequest) + return target; +} + +int CreateFriendshipRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .bgs.protocol.EntityId inviter_id = 1; + if (has_inviter_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->inviter_id()); + } + + // optional .bgs.protocol.EntityId invitee_id = 2; + if (has_invitee_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->invitee_id()); + } + + } + // repeated uint32 role = 3 [packed = true]; + { + int data_size = 0; + for (int i = 0; i < this->role_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->role(i)); + } + if (data_size > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _role_cached_byte_size_ = data_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + total_size += data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CreateFriendshipRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CreateFriendshipRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available<const CreateFriendshipRequest*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CreateFriendshipRequest::MergeFrom(const CreateFriendshipRequest& from) { + GOOGLE_CHECK_NE(&from, this); + role_.MergeFrom(from.role_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_inviter_id()) { + mutable_inviter_id()->::bgs::protocol::EntityId::MergeFrom(from.inviter_id()); + } + if (from.has_invitee_id()) { + mutable_invitee_id()->::bgs::protocol::EntityId::MergeFrom(from.invitee_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CreateFriendshipRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateFriendshipRequest::CopyFrom(const CreateFriendshipRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateFriendshipRequest::IsInitialized() const { + + if (has_inviter_id()) { + if (!this->inviter_id().IsInitialized()) return false; + } + if (has_invitee_id()) { + if (!this->invitee_id().IsInitialized()) return false; + } + return true; +} + +void CreateFriendshipRequest::Swap(CreateFriendshipRequest* other) { + if (other != this) { + std::swap(inviter_id_, other->inviter_id_); + std::swap(invitee_id_, other->invitee_id_); + role_.Swap(&other->role_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CreateFriendshipRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CreateFriendshipRequest_descriptor_; + metadata.reflection = CreateFriendshipRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER const int FriendNotification::kTargetFieldNumber; const int FriendNotification::kGameAccountIdFieldNumber; const int FriendNotification::kPeerFieldNumber; @@ -4586,6 +5003,28 @@ void FriendsService::RevokeAllInvitations(::bgs::protocol::friends::v1::GenericF SendRequest(service_hash_, 12, request, std::move(callback)); } +void FriendsService::GetFriendList(::bgs::protocol::friends::v1::GetFriendListRequest const* request, std::function<void(::bgs::protocol::friends::v1::GetFriendListResponse const*)> responseCallback) { + TC_LOG_DEBUG("service.protobuf", "%s Server called client method FriendsService.GetFriendList(bgs.protocol.friends.v1.GetFriendListRequest{ %s })", + GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + std::function<void(MessageBuffer)> callback = [responseCallback](MessageBuffer buffer) -> void { + ::bgs::protocol::friends::v1::GetFriendListResponse response; + if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) + responseCallback(&response); + }; + SendRequest(service_hash_, 13, request, std::move(callback)); +} + +void FriendsService::CreateFriendship(::bgs::protocol::friends::v1::CreateFriendshipRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback) { + TC_LOG_DEBUG("service.protobuf", "%s Server called client method FriendsService.CreateFriendship(bgs.protocol.friends.v1.CreateFriendshipRequest{ %s })", + GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + std::function<void(MessageBuffer)> callback = [responseCallback](MessageBuffer buffer) -> void { + ::bgs::protocol::NoData response; + if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) + responseCallback(&response); + }; + SendRequest(service_hash_, 14, request, std::move(callback)); +} + void FriendsService::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) { switch(methodId) { case 1: { @@ -4804,6 +5243,42 @@ void FriendsService::CallServerMethod(uint32 token, uint32 methodId, MessageBuff SendResponse(service_hash_, 12, token, status); break; } + case 13: { + ::bgs::protocol::friends::v1::GetFriendListRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for FriendsService.GetFriendList server method call.", GetCallerInfo().c_str()); + SendResponse(service_hash_, 13, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + + ::bgs::protocol::friends::v1::GetFriendListResponse response; + uint32 status = HandleGetFriendList(&request, &response); + TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.GetFriendList(bgs.protocol.friends.v1.GetFriendListRequest{ %s }) returned bgs.protocol.friends.v1.GetFriendListResponse{ %s } status %u.", + GetCallerInfo().c_str(), request.ShortDebugString().c_str(), response.ShortDebugString().c_str(), status); + if (!status) + SendResponse(service_hash_, 13, token, &response); + else + SendResponse(service_hash_, 13, token, status); + break; + } + case 14: { + ::bgs::protocol::friends::v1::CreateFriendshipRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for FriendsService.CreateFriendship server method call.", GetCallerInfo().c_str()); + SendResponse(service_hash_, 14, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + + ::bgs::protocol::NoData response; + uint32 status = HandleCreateFriendship(&request, &response); + TC_LOG_DEBUG("service.protobuf", "%s Client called server method FriendsService.CreateFriendship(bgs.protocol.friends.v1.CreateFriendshipRequest{ %s }) returned bgs.protocol.NoData{ %s } status %u.", + GetCallerInfo().c_str(), request.ShortDebugString().c_str(), response.ShortDebugString().c_str(), status); + if (!status) + SendResponse(service_hash_, 14, token, &response); + else + SendResponse(service_hash_, 14, token, status); + break; + } default: TC_LOG_ERROR("service.protobuf", "Bad method id %u.", methodId); SendResponse(service_hash_, methodId, token, ERROR_RPC_INVALID_METHOD); @@ -4883,6 +5358,18 @@ uint32 FriendsService::HandleRevokeAllInvitations(::bgs::protocol::friends::v1:: return ERROR_RPC_NOT_IMPLEMENTED; } +uint32 FriendsService::HandleGetFriendList(::bgs::protocol::friends::v1::GetFriendListRequest const* request, ::bgs::protocol::friends::v1::GetFriendListResponse* response) { + TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method FriendsService.GetFriendList({ %s })", + GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + return ERROR_RPC_NOT_IMPLEMENTED; +} + +uint32 FriendsService::HandleCreateFriendship(::bgs::protocol::friends::v1::CreateFriendshipRequest const* request, ::bgs::protocol::NoData* response) { + TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method FriendsService.CreateFriendship({ %s })", + GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + return ERROR_RPC_NOT_IMPLEMENTED; +} + // =================================================================== FriendsListener::FriendsListener(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { diff --git a/src/server/proto/Client/friends_service.pb.h b/src/server/proto/Client/friends_service.pb.h index 50cd02e43fd..06161df0681 100644 --- a/src/server/proto/Client/friends_service.pb.h +++ b/src/server/proto/Client/friends_service.pb.h @@ -28,7 +28,6 @@ #include "entity_types.pb.h" #include "friends_types.pb.h" #include "invitation_types.pb.h" -#include "role_types.pb.h" #include "rpc_types.pb.h" #include "ServiceBase.h" #include "MessageBuffer.h" @@ -47,7 +46,6 @@ void protobuf_AssignDesc_friends_5fservice_2eproto(); void protobuf_ShutdownFile_friends_5fservice_2eproto(); class SubscribeRequest; -class SubscribeResponse; class UnsubscribeRequest; class GenericFriendRequest; class GenericFriendResponse; @@ -55,6 +53,9 @@ class AssignRoleRequest; class ViewFriendsRequest; class ViewFriendsResponse; class UpdateFriendStateRequest; +class GetFriendListRequest; +class GetFriendListResponse; +class CreateFriendshipRequest; class FriendNotification; class UpdateFriendStateNotification; class InvitationNotification; @@ -152,157 +153,6 @@ class TC_PROTO_API SubscribeRequest : public ::google::protobuf::Message { }; // ------------------------------------------------------------------- -class TC_PROTO_API SubscribeResponse : public ::google::protobuf::Message { - public: - SubscribeResponse(); - virtual ~SubscribeResponse(); - - SubscribeResponse(const SubscribeResponse& from); - - inline SubscribeResponse& operator=(const SubscribeResponse& from) { - CopyFrom(from); - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; - } - - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; - } - - static const ::google::protobuf::Descriptor* descriptor(); - static const SubscribeResponse& default_instance(); - - void Swap(SubscribeResponse* other); - - // implements Message ---------------------------------------------- - - SubscribeResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SubscribeResponse& from); - void MergeFrom(const SubscribeResponse& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional uint32 max_friends = 1; - inline bool has_max_friends() const; - inline void clear_max_friends(); - static const int kMaxFriendsFieldNumber = 1; - inline ::google::protobuf::uint32 max_friends() const; - inline void set_max_friends(::google::protobuf::uint32 value); - - // optional uint32 max_received_invitations = 2; - inline bool has_max_received_invitations() const; - inline void clear_max_received_invitations(); - static const int kMaxReceivedInvitationsFieldNumber = 2; - inline ::google::protobuf::uint32 max_received_invitations() const; - inline void set_max_received_invitations(::google::protobuf::uint32 value); - - // optional uint32 max_sent_invitations = 3; - inline bool has_max_sent_invitations() const; - inline void clear_max_sent_invitations(); - static const int kMaxSentInvitationsFieldNumber = 3; - inline ::google::protobuf::uint32 max_sent_invitations() const; - inline void set_max_sent_invitations(::google::protobuf::uint32 value); - - // repeated .bgs.protocol.Role role = 4; - inline int role_size() const; - inline void clear_role(); - static const int kRoleFieldNumber = 4; - inline const ::bgs::protocol::Role& role(int index) const; - inline ::bgs::protocol::Role* mutable_role(int index); - inline ::bgs::protocol::Role* add_role(); - inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Role >& - role() const; - inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Role >* - mutable_role(); - - // repeated .bgs.protocol.friends.v1.Friend friends = 5; - inline int friends_size() const; - inline void clear_friends(); - static const int kFriendsFieldNumber = 5; - inline const ::bgs::protocol::friends::v1::Friend& friends(int index) const; - inline ::bgs::protocol::friends::v1::Friend* mutable_friends(int index); - inline ::bgs::protocol::friends::v1::Friend* add_friends(); - inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >& - friends() const; - inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >* - mutable_friends(); - - // repeated .bgs.protocol.Invitation sent_invitations = 6; - inline int sent_invitations_size() const; - inline void clear_sent_invitations(); - static const int kSentInvitationsFieldNumber = 6; - inline const ::bgs::protocol::Invitation& sent_invitations(int index) const; - inline ::bgs::protocol::Invitation* mutable_sent_invitations(int index); - inline ::bgs::protocol::Invitation* add_sent_invitations(); - inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >& - sent_invitations() const; - inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >* - mutable_sent_invitations(); - - // repeated .bgs.protocol.Invitation received_invitations = 7; - inline int received_invitations_size() const; - inline void clear_received_invitations(); - static const int kReceivedInvitationsFieldNumber = 7; - inline const ::bgs::protocol::Invitation& received_invitations(int index) const; - inline ::bgs::protocol::Invitation* mutable_received_invitations(int index); - inline ::bgs::protocol::Invitation* add_received_invitations(); - inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >& - received_invitations() const; - inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >* - mutable_received_invitations(); - - // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.SubscribeResponse) - private: - inline void set_has_max_friends(); - inline void clear_has_max_friends(); - inline void set_has_max_received_invitations(); - inline void clear_has_max_received_invitations(); - inline void set_has_max_sent_invitations(); - inline void clear_has_max_sent_invitations(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::google::protobuf::uint32 max_friends_; - ::google::protobuf::uint32 max_received_invitations_; - ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Role > role_; - ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend > friends_; - ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation > sent_invitations_; - ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation > received_invitations_; - ::google::protobuf::uint32 max_sent_invitations_; - friend void TC_PROTO_API protobuf_AddDesc_friends_5fservice_2eproto(); - friend void protobuf_AssignDesc_friends_5fservice_2eproto(); - friend void protobuf_ShutdownFile_friends_5fservice_2eproto(); - - void InitAsDefaultInstance(); - static SubscribeResponse* default_instance_; -}; -// ------------------------------------------------------------------- - class TC_PROTO_API UnsubscribeRequest : public ::google::protobuf::Message { public: UnsubscribeRequest(); @@ -834,16 +684,16 @@ class TC_PROTO_API ViewFriendsResponse : public ::google::protobuf::Message { // accessors ------------------------------------------------------- - // repeated .bgs.protocol.friends.v1.Friend friends = 1; + // repeated .bgs.protocol.friends.v1.FriendOfFriend friends = 1; inline int friends_size() const; inline void clear_friends(); static const int kFriendsFieldNumber = 1; - inline const ::bgs::protocol::friends::v1::Friend& friends(int index) const; - inline ::bgs::protocol::friends::v1::Friend* mutable_friends(int index); - inline ::bgs::protocol::friends::v1::Friend* add_friends(); - inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >& + inline const ::bgs::protocol::friends::v1::FriendOfFriend& friends(int index) const; + inline ::bgs::protocol::friends::v1::FriendOfFriend* mutable_friends(int index); + inline ::bgs::protocol::friends::v1::FriendOfFriend* add_friends(); + inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::FriendOfFriend >& friends() const; - inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >* + inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::FriendOfFriend >* mutable_friends(); // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.ViewFriendsResponse) @@ -853,7 +703,7 @@ class TC_PROTO_API ViewFriendsResponse : public ::google::protobuf::Message { ::google::protobuf::uint32 _has_bits_[1]; mutable int _cached_size_; - ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend > friends_; + ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::FriendOfFriend > friends_; friend void TC_PROTO_API protobuf_AddDesc_friends_5fservice_2eproto(); friend void protobuf_AssignDesc_friends_5fservice_2eproto(); friend void protobuf_ShutdownFile_friends_5fservice_2eproto(); @@ -979,6 +829,288 @@ class TC_PROTO_API UpdateFriendStateRequest : public ::google::protobuf::Message }; // ------------------------------------------------------------------- +class TC_PROTO_API GetFriendListRequest : public ::google::protobuf::Message { + public: + GetFriendListRequest(); + virtual ~GetFriendListRequest(); + + GetFriendListRequest(const GetFriendListRequest& from); + + inline GetFriendListRequest& operator=(const GetFriendListRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetFriendListRequest& default_instance(); + + void Swap(GetFriendListRequest* other); + + // implements Message ---------------------------------------------- + + GetFriendListRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetFriendListRequest& from); + void MergeFrom(const GetFriendListRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .bgs.protocol.EntityId agent_id = 1; + inline bool has_agent_id() const; + inline void clear_agent_id(); + static const int kAgentIdFieldNumber = 1; + inline const ::bgs::protocol::EntityId& agent_id() const; + inline ::bgs::protocol::EntityId* mutable_agent_id(); + inline ::bgs::protocol::EntityId* release_agent_id(); + inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id); + + // optional .bgs.protocol.EntityId target_id = 2; + inline bool has_target_id() const; + inline void clear_target_id(); + static const int kTargetIdFieldNumber = 2; + inline const ::bgs::protocol::EntityId& target_id() const; + inline ::bgs::protocol::EntityId* mutable_target_id(); + inline ::bgs::protocol::EntityId* release_target_id(); + inline void set_allocated_target_id(::bgs::protocol::EntityId* target_id); + + // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.GetFriendListRequest) + private: + inline void set_has_agent_id(); + inline void clear_has_agent_id(); + inline void set_has_target_id(); + inline void clear_has_target_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::EntityId* agent_id_; + ::bgs::protocol::EntityId* target_id_; + friend void TC_PROTO_API protobuf_AddDesc_friends_5fservice_2eproto(); + friend void protobuf_AssignDesc_friends_5fservice_2eproto(); + friend void protobuf_ShutdownFile_friends_5fservice_2eproto(); + + void InitAsDefaultInstance(); + static GetFriendListRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API GetFriendListResponse : public ::google::protobuf::Message { + public: + GetFriendListResponse(); + virtual ~GetFriendListResponse(); + + GetFriendListResponse(const GetFriendListResponse& from); + + inline GetFriendListResponse& operator=(const GetFriendListResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetFriendListResponse& default_instance(); + + void Swap(GetFriendListResponse* other); + + // implements Message ---------------------------------------------- + + GetFriendListResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetFriendListResponse& from); + void MergeFrom(const GetFriendListResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .bgs.protocol.friends.v1.Friend friends = 1; + inline int friends_size() const; + inline void clear_friends(); + static const int kFriendsFieldNumber = 1; + inline const ::bgs::protocol::friends::v1::Friend& friends(int index) const; + inline ::bgs::protocol::friends::v1::Friend* mutable_friends(int index); + inline ::bgs::protocol::friends::v1::Friend* add_friends(); + inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >& + friends() const; + inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >* + mutable_friends(); + + // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.GetFriendListResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend > friends_; + friend void TC_PROTO_API protobuf_AddDesc_friends_5fservice_2eproto(); + friend void protobuf_AssignDesc_friends_5fservice_2eproto(); + friend void protobuf_ShutdownFile_friends_5fservice_2eproto(); + + void InitAsDefaultInstance(); + static GetFriendListResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API CreateFriendshipRequest : public ::google::protobuf::Message { + public: + CreateFriendshipRequest(); + virtual ~CreateFriendshipRequest(); + + CreateFriendshipRequest(const CreateFriendshipRequest& from); + + inline CreateFriendshipRequest& operator=(const CreateFriendshipRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CreateFriendshipRequest& default_instance(); + + void Swap(CreateFriendshipRequest* other); + + // implements Message ---------------------------------------------- + + CreateFriendshipRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CreateFriendshipRequest& from); + void MergeFrom(const CreateFriendshipRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .bgs.protocol.EntityId inviter_id = 1; + inline bool has_inviter_id() const; + inline void clear_inviter_id(); + static const int kInviterIdFieldNumber = 1; + inline const ::bgs::protocol::EntityId& inviter_id() const; + inline ::bgs::protocol::EntityId* mutable_inviter_id(); + inline ::bgs::protocol::EntityId* release_inviter_id(); + inline void set_allocated_inviter_id(::bgs::protocol::EntityId* inviter_id); + + // optional .bgs.protocol.EntityId invitee_id = 2; + inline bool has_invitee_id() const; + inline void clear_invitee_id(); + static const int kInviteeIdFieldNumber = 2; + inline const ::bgs::protocol::EntityId& invitee_id() const; + inline ::bgs::protocol::EntityId* mutable_invitee_id(); + inline ::bgs::protocol::EntityId* release_invitee_id(); + inline void set_allocated_invitee_id(::bgs::protocol::EntityId* invitee_id); + + // repeated uint32 role = 3 [packed = true]; + inline int role_size() const; + inline void clear_role(); + static const int kRoleFieldNumber = 3; + inline ::google::protobuf::uint32 role(int index) const; + inline void set_role(int index, ::google::protobuf::uint32 value); + inline void add_role(::google::protobuf::uint32 value); + inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + role() const; + inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_role(); + + // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.CreateFriendshipRequest) + private: + inline void set_has_inviter_id(); + inline void clear_has_inviter_id(); + inline void set_has_invitee_id(); + inline void clear_has_invitee_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::EntityId* inviter_id_; + ::bgs::protocol::EntityId* invitee_id_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > role_; + mutable int _role_cached_byte_size_; + friend void TC_PROTO_API protobuf_AddDesc_friends_5fservice_2eproto(); + friend void protobuf_AssignDesc_friends_5fservice_2eproto(); + friend void protobuf_ShutdownFile_friends_5fservice_2eproto(); + + void InitAsDefaultInstance(); + static CreateFriendshipRequest* default_instance_; +}; +// ------------------------------------------------------------------- + class TC_PROTO_API FriendNotification : public ::google::protobuf::Message { public: FriendNotification(); @@ -1366,6 +1498,8 @@ class TC_PROTO_API FriendsService : public ServiceBase void UpdateFriendState(::bgs::protocol::friends::v1::UpdateFriendStateRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback); void Unsubscribe(::bgs::protocol::friends::v1::UnsubscribeRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback); void RevokeAllInvitations(::bgs::protocol::friends::v1::GenericFriendRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback); + void GetFriendList(::bgs::protocol::friends::v1::GetFriendListRequest const* request, std::function<void(::bgs::protocol::friends::v1::GetFriendListResponse const*)> responseCallback); + void CreateFriendship(::bgs::protocol::friends::v1::CreateFriendshipRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback); // server methods -------------------------------------------------- void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) override final; @@ -1383,6 +1517,8 @@ class TC_PROTO_API FriendsService : public ServiceBase virtual uint32 HandleUpdateFriendState(::bgs::protocol::friends::v1::UpdateFriendStateRequest const* request, ::bgs::protocol::NoData* response); virtual uint32 HandleUnsubscribe(::bgs::protocol::friends::v1::UnsubscribeRequest const* request, ::bgs::protocol::NoData* response); virtual uint32 HandleRevokeAllInvitations(::bgs::protocol::friends::v1::GenericFriendRequest const* request, ::bgs::protocol::NoData* response); + virtual uint32 HandleGetFriendList(::bgs::protocol::friends::v1::GetFriendListRequest const* request, ::bgs::protocol::friends::v1::GetFriendListResponse* response); + virtual uint32 HandleCreateFriendship(::bgs::protocol::friends::v1::CreateFriendshipRequest const* request, ::bgs::protocol::NoData* response); private: uint32 service_hash_; @@ -1506,202 +1642,6 @@ inline void SubscribeRequest::set_object_id(::google::protobuf::uint64 value) { // ------------------------------------------------------------------- -// SubscribeResponse - -// optional uint32 max_friends = 1; -inline bool SubscribeResponse::has_max_friends() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void SubscribeResponse::set_has_max_friends() { - _has_bits_[0] |= 0x00000001u; -} -inline void SubscribeResponse::clear_has_max_friends() { - _has_bits_[0] &= ~0x00000001u; -} -inline void SubscribeResponse::clear_max_friends() { - max_friends_ = 0u; - clear_has_max_friends(); -} -inline ::google::protobuf::uint32 SubscribeResponse::max_friends() const { - // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.max_friends) - return max_friends_; -} -inline void SubscribeResponse::set_max_friends(::google::protobuf::uint32 value) { - set_has_max_friends(); - max_friends_ = value; - // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.SubscribeResponse.max_friends) -} - -// optional uint32 max_received_invitations = 2; -inline bool SubscribeResponse::has_max_received_invitations() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void SubscribeResponse::set_has_max_received_invitations() { - _has_bits_[0] |= 0x00000002u; -} -inline void SubscribeResponse::clear_has_max_received_invitations() { - _has_bits_[0] &= ~0x00000002u; -} -inline void SubscribeResponse::clear_max_received_invitations() { - max_received_invitations_ = 0u; - clear_has_max_received_invitations(); -} -inline ::google::protobuf::uint32 SubscribeResponse::max_received_invitations() const { - // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.max_received_invitations) - return max_received_invitations_; -} -inline void SubscribeResponse::set_max_received_invitations(::google::protobuf::uint32 value) { - set_has_max_received_invitations(); - max_received_invitations_ = value; - // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.SubscribeResponse.max_received_invitations) -} - -// optional uint32 max_sent_invitations = 3; -inline bool SubscribeResponse::has_max_sent_invitations() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void SubscribeResponse::set_has_max_sent_invitations() { - _has_bits_[0] |= 0x00000004u; -} -inline void SubscribeResponse::clear_has_max_sent_invitations() { - _has_bits_[0] &= ~0x00000004u; -} -inline void SubscribeResponse::clear_max_sent_invitations() { - max_sent_invitations_ = 0u; - clear_has_max_sent_invitations(); -} -inline ::google::protobuf::uint32 SubscribeResponse::max_sent_invitations() const { - // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.max_sent_invitations) - return max_sent_invitations_; -} -inline void SubscribeResponse::set_max_sent_invitations(::google::protobuf::uint32 value) { - set_has_max_sent_invitations(); - max_sent_invitations_ = value; - // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.SubscribeResponse.max_sent_invitations) -} - -// repeated .bgs.protocol.Role role = 4; -inline int SubscribeResponse::role_size() const { - return role_.size(); -} -inline void SubscribeResponse::clear_role() { - role_.Clear(); -} -inline const ::bgs::protocol::Role& SubscribeResponse::role(int index) const { - // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.role) - return role_.Get(index); -} -inline ::bgs::protocol::Role* SubscribeResponse::mutable_role(int index) { - // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.SubscribeResponse.role) - return role_.Mutable(index); -} -inline ::bgs::protocol::Role* SubscribeResponse::add_role() { - // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.SubscribeResponse.role) - return role_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Role >& -SubscribeResponse::role() const { - // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.SubscribeResponse.role) - return role_; -} -inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Role >* -SubscribeResponse::mutable_role() { - // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.SubscribeResponse.role) - return &role_; -} - -// repeated .bgs.protocol.friends.v1.Friend friends = 5; -inline int SubscribeResponse::friends_size() const { - return friends_.size(); -} -inline void SubscribeResponse::clear_friends() { - friends_.Clear(); -} -inline const ::bgs::protocol::friends::v1::Friend& SubscribeResponse::friends(int index) const { - // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.friends) - return friends_.Get(index); -} -inline ::bgs::protocol::friends::v1::Friend* SubscribeResponse::mutable_friends(int index) { - // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.SubscribeResponse.friends) - return friends_.Mutable(index); -} -inline ::bgs::protocol::friends::v1::Friend* SubscribeResponse::add_friends() { - // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.SubscribeResponse.friends) - return friends_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >& -SubscribeResponse::friends() const { - // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.SubscribeResponse.friends) - return friends_; -} -inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >* -SubscribeResponse::mutable_friends() { - // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.SubscribeResponse.friends) - return &friends_; -} - -// repeated .bgs.protocol.Invitation sent_invitations = 6; -inline int SubscribeResponse::sent_invitations_size() const { - return sent_invitations_.size(); -} -inline void SubscribeResponse::clear_sent_invitations() { - sent_invitations_.Clear(); -} -inline const ::bgs::protocol::Invitation& SubscribeResponse::sent_invitations(int index) const { - // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.sent_invitations) - return sent_invitations_.Get(index); -} -inline ::bgs::protocol::Invitation* SubscribeResponse::mutable_sent_invitations(int index) { - // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.SubscribeResponse.sent_invitations) - return sent_invitations_.Mutable(index); -} -inline ::bgs::protocol::Invitation* SubscribeResponse::add_sent_invitations() { - // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.SubscribeResponse.sent_invitations) - return sent_invitations_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >& -SubscribeResponse::sent_invitations() const { - // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.SubscribeResponse.sent_invitations) - return sent_invitations_; -} -inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >* -SubscribeResponse::mutable_sent_invitations() { - // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.SubscribeResponse.sent_invitations) - return &sent_invitations_; -} - -// repeated .bgs.protocol.Invitation received_invitations = 7; -inline int SubscribeResponse::received_invitations_size() const { - return received_invitations_.size(); -} -inline void SubscribeResponse::clear_received_invitations() { - received_invitations_.Clear(); -} -inline const ::bgs::protocol::Invitation& SubscribeResponse::received_invitations(int index) const { - // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.received_invitations) - return received_invitations_.Get(index); -} -inline ::bgs::protocol::Invitation* SubscribeResponse::mutable_received_invitations(int index) { - // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.SubscribeResponse.received_invitations) - return received_invitations_.Mutable(index); -} -inline ::bgs::protocol::Invitation* SubscribeResponse::add_received_invitations() { - // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.SubscribeResponse.received_invitations) - return received_invitations_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >& -SubscribeResponse::received_invitations() const { - // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.SubscribeResponse.received_invitations) - return received_invitations_; -} -inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >* -SubscribeResponse::mutable_received_invitations() { - // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.SubscribeResponse.received_invitations) - return &received_invitations_; -} - -// ------------------------------------------------------------------- - // UnsubscribeRequest // optional .bgs.protocol.EntityId agent_id = 1; @@ -2136,31 +2076,31 @@ ViewFriendsRequest::mutable_role() { // ViewFriendsResponse -// repeated .bgs.protocol.friends.v1.Friend friends = 1; +// repeated .bgs.protocol.friends.v1.FriendOfFriend friends = 1; inline int ViewFriendsResponse::friends_size() const { return friends_.size(); } inline void ViewFriendsResponse::clear_friends() { friends_.Clear(); } -inline const ::bgs::protocol::friends::v1::Friend& ViewFriendsResponse::friends(int index) const { +inline const ::bgs::protocol::friends::v1::FriendOfFriend& ViewFriendsResponse::friends(int index) const { // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.ViewFriendsResponse.friends) return friends_.Get(index); } -inline ::bgs::protocol::friends::v1::Friend* ViewFriendsResponse::mutable_friends(int index) { +inline ::bgs::protocol::friends::v1::FriendOfFriend* ViewFriendsResponse::mutable_friends(int index) { // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.ViewFriendsResponse.friends) return friends_.Mutable(index); } -inline ::bgs::protocol::friends::v1::Friend* ViewFriendsResponse::add_friends() { +inline ::bgs::protocol::friends::v1::FriendOfFriend* ViewFriendsResponse::add_friends() { // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.ViewFriendsResponse.friends) return friends_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >& +inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::FriendOfFriend >& ViewFriendsResponse::friends() const { // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.ViewFriendsResponse.friends) return friends_; } -inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >* +inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::FriendOfFriend >* ViewFriendsResponse::mutable_friends() { // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.ViewFriendsResponse.friends) return &friends_; @@ -2308,6 +2248,242 @@ inline void UpdateFriendStateRequest::set_attributes_epoch(::google::protobuf::u // ------------------------------------------------------------------- +// GetFriendListRequest + +// optional .bgs.protocol.EntityId agent_id = 1; +inline bool GetFriendListRequest::has_agent_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetFriendListRequest::set_has_agent_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetFriendListRequest::clear_has_agent_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetFriendListRequest::clear_agent_id() { + if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear(); + clear_has_agent_id(); +} +inline const ::bgs::protocol::EntityId& GetFriendListRequest::agent_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.GetFriendListRequest.agent_id) + return agent_id_ != NULL ? *agent_id_ : *default_instance_->agent_id_; +} +inline ::bgs::protocol::EntityId* GetFriendListRequest::mutable_agent_id() { + set_has_agent_id(); + if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId; + // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.GetFriendListRequest.agent_id) + return agent_id_; +} +inline ::bgs::protocol::EntityId* GetFriendListRequest::release_agent_id() { + clear_has_agent_id(); + ::bgs::protocol::EntityId* temp = agent_id_; + agent_id_ = NULL; + return temp; +} +inline void GetFriendListRequest::set_allocated_agent_id(::bgs::protocol::EntityId* agent_id) { + delete agent_id_; + agent_id_ = agent_id; + if (agent_id) { + set_has_agent_id(); + } else { + clear_has_agent_id(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.GetFriendListRequest.agent_id) +} + +// optional .bgs.protocol.EntityId target_id = 2; +inline bool GetFriendListRequest::has_target_id() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GetFriendListRequest::set_has_target_id() { + _has_bits_[0] |= 0x00000002u; +} +inline void GetFriendListRequest::clear_has_target_id() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GetFriendListRequest::clear_target_id() { + if (target_id_ != NULL) target_id_->::bgs::protocol::EntityId::Clear(); + clear_has_target_id(); +} +inline const ::bgs::protocol::EntityId& GetFriendListRequest::target_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.GetFriendListRequest.target_id) + return target_id_ != NULL ? *target_id_ : *default_instance_->target_id_; +} +inline ::bgs::protocol::EntityId* GetFriendListRequest::mutable_target_id() { + set_has_target_id(); + if (target_id_ == NULL) target_id_ = new ::bgs::protocol::EntityId; + // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.GetFriendListRequest.target_id) + return target_id_; +} +inline ::bgs::protocol::EntityId* GetFriendListRequest::release_target_id() { + clear_has_target_id(); + ::bgs::protocol::EntityId* temp = target_id_; + target_id_ = NULL; + return temp; +} +inline void GetFriendListRequest::set_allocated_target_id(::bgs::protocol::EntityId* target_id) { + delete target_id_; + target_id_ = target_id; + if (target_id) { + set_has_target_id(); + } else { + clear_has_target_id(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.GetFriendListRequest.target_id) +} + +// ------------------------------------------------------------------- + +// GetFriendListResponse + +// repeated .bgs.protocol.friends.v1.Friend friends = 1; +inline int GetFriendListResponse::friends_size() const { + return friends_.size(); +} +inline void GetFriendListResponse::clear_friends() { + friends_.Clear(); +} +inline const ::bgs::protocol::friends::v1::Friend& GetFriendListResponse::friends(int index) const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.GetFriendListResponse.friends) + return friends_.Get(index); +} +inline ::bgs::protocol::friends::v1::Friend* GetFriendListResponse::mutable_friends(int index) { + // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.GetFriendListResponse.friends) + return friends_.Mutable(index); +} +inline ::bgs::protocol::friends::v1::Friend* GetFriendListResponse::add_friends() { + // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.GetFriendListResponse.friends) + return friends_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >& +GetFriendListResponse::friends() const { + // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.GetFriendListResponse.friends) + return friends_; +} +inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >* +GetFriendListResponse::mutable_friends() { + // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.GetFriendListResponse.friends) + return &friends_; +} + +// ------------------------------------------------------------------- + +// CreateFriendshipRequest + +// optional .bgs.protocol.EntityId inviter_id = 1; +inline bool CreateFriendshipRequest::has_inviter_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CreateFriendshipRequest::set_has_inviter_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void CreateFriendshipRequest::clear_has_inviter_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CreateFriendshipRequest::clear_inviter_id() { + if (inviter_id_ != NULL) inviter_id_->::bgs::protocol::EntityId::Clear(); + clear_has_inviter_id(); +} +inline const ::bgs::protocol::EntityId& CreateFriendshipRequest::inviter_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.CreateFriendshipRequest.inviter_id) + return inviter_id_ != NULL ? *inviter_id_ : *default_instance_->inviter_id_; +} +inline ::bgs::protocol::EntityId* CreateFriendshipRequest::mutable_inviter_id() { + set_has_inviter_id(); + if (inviter_id_ == NULL) inviter_id_ = new ::bgs::protocol::EntityId; + // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.CreateFriendshipRequest.inviter_id) + return inviter_id_; +} +inline ::bgs::protocol::EntityId* CreateFriendshipRequest::release_inviter_id() { + clear_has_inviter_id(); + ::bgs::protocol::EntityId* temp = inviter_id_; + inviter_id_ = NULL; + return temp; +} +inline void CreateFriendshipRequest::set_allocated_inviter_id(::bgs::protocol::EntityId* inviter_id) { + delete inviter_id_; + inviter_id_ = inviter_id; + if (inviter_id) { + set_has_inviter_id(); + } else { + clear_has_inviter_id(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.CreateFriendshipRequest.inviter_id) +} + +// optional .bgs.protocol.EntityId invitee_id = 2; +inline bool CreateFriendshipRequest::has_invitee_id() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CreateFriendshipRequest::set_has_invitee_id() { + _has_bits_[0] |= 0x00000002u; +} +inline void CreateFriendshipRequest::clear_has_invitee_id() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CreateFriendshipRequest::clear_invitee_id() { + if (invitee_id_ != NULL) invitee_id_->::bgs::protocol::EntityId::Clear(); + clear_has_invitee_id(); +} +inline const ::bgs::protocol::EntityId& CreateFriendshipRequest::invitee_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.CreateFriendshipRequest.invitee_id) + return invitee_id_ != NULL ? *invitee_id_ : *default_instance_->invitee_id_; +} +inline ::bgs::protocol::EntityId* CreateFriendshipRequest::mutable_invitee_id() { + set_has_invitee_id(); + if (invitee_id_ == NULL) invitee_id_ = new ::bgs::protocol::EntityId; + // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.CreateFriendshipRequest.invitee_id) + return invitee_id_; +} +inline ::bgs::protocol::EntityId* CreateFriendshipRequest::release_invitee_id() { + clear_has_invitee_id(); + ::bgs::protocol::EntityId* temp = invitee_id_; + invitee_id_ = NULL; + return temp; +} +inline void CreateFriendshipRequest::set_allocated_invitee_id(::bgs::protocol::EntityId* invitee_id) { + delete invitee_id_; + invitee_id_ = invitee_id; + if (invitee_id) { + set_has_invitee_id(); + } else { + clear_has_invitee_id(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.CreateFriendshipRequest.invitee_id) +} + +// repeated uint32 role = 3 [packed = true]; +inline int CreateFriendshipRequest::role_size() const { + return role_.size(); +} +inline void CreateFriendshipRequest::clear_role() { + role_.Clear(); +} +inline ::google::protobuf::uint32 CreateFriendshipRequest::role(int index) const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.CreateFriendshipRequest.role) + return role_.Get(index); +} +inline void CreateFriendshipRequest::set_role(int index, ::google::protobuf::uint32 value) { + role_.Set(index, value); + // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.CreateFriendshipRequest.role) +} +inline void CreateFriendshipRequest::add_role(::google::protobuf::uint32 value) { + role_.Add(value); + // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.CreateFriendshipRequest.role) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +CreateFriendshipRequest::role() const { + // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.CreateFriendshipRequest.role) + return role_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +CreateFriendshipRequest::mutable_role() { + // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.CreateFriendshipRequest.role) + return &role_; +} + +// ------------------------------------------------------------------- + // FriendNotification // required .bgs.protocol.friends.v1.Friend target = 1; diff --git a/src/server/proto/Client/friends_types.pb.cc b/src/server/proto/Client/friends_types.pb.cc index 8017012c08d..fca4bfed6d3 100644 --- a/src/server/proto/Client/friends_types.pb.cc +++ b/src/server/proto/Client/friends_types.pb.cc @@ -33,12 +33,18 @@ namespace { const ::google::protobuf::Descriptor* Friend_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* Friend_reflection_ = NULL; +const ::google::protobuf::Descriptor* FriendOfFriend_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + FriendOfFriend_reflection_ = NULL; const ::google::protobuf::Descriptor* FriendInvitation_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* FriendInvitation_reflection_ = NULL; const ::google::protobuf::Descriptor* FriendInvitationParams_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* FriendInvitationParams_reflection_ = NULL; +const ::google::protobuf::Descriptor* SubscribeResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SubscribeResponse_reflection_ = NULL; } // namespace @@ -50,14 +56,12 @@ void protobuf_AssignDesc_friends_5ftypes_2eproto() { "friends_types.proto"); GOOGLE_CHECK(file != NULL); Friend_descriptor_ = file->message_type(0); - static const int Friend_offsets_[7] = { + static const int Friend_offsets_[5] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Friend, account_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Friend, attribute_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Friend, role_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Friend, privileges_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Friend, attributes_epoch_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Friend, full_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Friend, battle_tag_), }; Friend_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( @@ -70,7 +74,28 @@ void protobuf_AssignDesc_friends_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(Friend)); - FriendInvitation_descriptor_ = file->message_type(1); + FriendOfFriend_descriptor_ = file->message_type(1); + static const int FriendOfFriend_offsets_[7] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FriendOfFriend, account_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FriendOfFriend, attribute_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FriendOfFriend, role_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FriendOfFriend, privileges_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FriendOfFriend, attributes_epoch_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FriendOfFriend, full_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FriendOfFriend, battle_tag_), + }; + FriendOfFriend_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + FriendOfFriend_descriptor_, + FriendOfFriend::default_instance_, + FriendOfFriend_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FriendOfFriend, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FriendOfFriend, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(FriendOfFriend)); + FriendInvitation_descriptor_ = file->message_type(2); static const int FriendInvitation_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FriendInvitation, first_received_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FriendInvitation, role_), @@ -86,7 +111,7 @@ void protobuf_AssignDesc_friends_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(FriendInvitation)); - FriendInvitationParams_descriptor_ = file->message_type(2); + FriendInvitationParams_descriptor_ = file->message_type(3); static const int FriendInvitationParams_offsets_[7] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FriendInvitationParams, target_email_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FriendInvitationParams, target_battle_tag_), @@ -107,6 +132,27 @@ void protobuf_AssignDesc_friends_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(FriendInvitationParams)); + SubscribeResponse_descriptor_ = file->message_type(4); + static const int SubscribeResponse_offsets_[7] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscribeResponse, max_friends_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscribeResponse, max_received_invitations_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscribeResponse, max_sent_invitations_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscribeResponse, role_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscribeResponse, friends_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscribeResponse, sent_invitations_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscribeResponse, received_invitations_), + }; + SubscribeResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SubscribeResponse_descriptor_, + SubscribeResponse::default_instance_, + SubscribeResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscribeResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscribeResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SubscribeResponse)); } namespace { @@ -122,9 +168,13 @@ void protobuf_RegisterTypes(const ::std::string&) { ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( Friend_descriptor_, &Friend::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + FriendOfFriend_descriptor_, &FriendOfFriend::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( FriendInvitation_descriptor_, &FriendInvitation::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( FriendInvitationParams_descriptor_, &FriendInvitationParams::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SubscribeResponse_descriptor_, &SubscribeResponse::default_instance()); } } // namespace @@ -132,10 +182,14 @@ void protobuf_RegisterTypes(const ::std::string&) { void protobuf_ShutdownFile_friends_5ftypes_2eproto() { delete Friend::default_instance_; delete Friend_reflection_; + delete FriendOfFriend::default_instance_; + delete FriendOfFriend_reflection_; delete FriendInvitation::default_instance_; delete FriendInvitation_reflection_; delete FriendInvitationParams::default_instance_; delete FriendInvitationParams_reflection_; + delete SubscribeResponse::default_instance_; + delete SubscribeResponse_reflection_; } void protobuf_AddDesc_friends_5ftypes_2eproto() { @@ -147,35 +201,51 @@ void protobuf_AddDesc_friends_5ftypes_2eproto() { ::bgs::protocol::protobuf_AddDesc_attribute_5ftypes_2eproto(); ::bgs::protocol::protobuf_AddDesc_entity_5ftypes_2eproto(); ::bgs::protocol::protobuf_AddDesc_invitation_5ftypes_2eproto(); + ::bgs::protocol::protobuf_AddDesc_role_5ftypes_2eproto(); ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( "\n\023friends_types.proto\022\027bgs.protocol.frie" "nds.v1\032\025attribute_types.proto\032\022entity_ty" - "pes.proto\032\026invitation_types.proto\"\312\001\n\006Fr" - "iend\022*\n\naccount_id\030\001 \002(\0132\026.bgs.protocol." - "EntityId\022*\n\tattribute\030\002 \003(\0132\027.bgs.protoc" - "ol.Attribute\022\020\n\004role\030\003 \003(\rB\002\020\001\022\025\n\nprivil" - "eges\030\004 \001(\004:\0010\022\030\n\020attributes_epoch\030\005 \001(\004\022" - "\021\n\tfull_name\030\006 \001(\t\022\022\n\nbattle_tag\030\007 \001(\t\"\243" - "\001\n\020FriendInvitation\022\035\n\016first_received\030\001 " - "\001(\010:\005false\022\020\n\004role\030\002 \003(\rB\002\020\0012^\n\021friend_i" - "nvitation\022\030.bgs.protocol.Invitation\030g \001(" - "\0132).bgs.protocol.friends.v1.FriendInvita" - "tion\"\300\002\n\026FriendInvitationParams\022\024\n\014targe" - "t_email\030\001 \001(\t\022\031\n\021target_battle_tag\030\002 \001(\t" - "\022\032\n\022inviter_battle_tag\030\003 \001(\t\022\031\n\021inviter_" - "full_name\030\004 \001(\t\022\034\n\024invitee_display_name\030" - "\005 \001(\t\022\020\n\004role\030\006 \003(\rB\002\020\001\022&\n\030previous_role" - "_deprecated\030\007 \003(\rB\004\020\001\030\0012f\n\rfriend_params" - "\022\036.bgs.protocol.InvitationParams\030g \001(\0132/" - ".bgs.protocol.friends.v1.FriendInvitatio" - "nParamsB/\n\030bnet.protocol.friends.v1B\021Fri" - "endsTypesProtoH\001", 856); + "pes.proto\032\026invitation_types.proto\032\020role_" + "types.proto\"\243\001\n\006Friend\022*\n\naccount_id\030\001 \002" + "(\0132\026.bgs.protocol.EntityId\022*\n\tattribute\030" + "\002 \003(\0132\027.bgs.protocol.Attribute\022\020\n\004role\030\003" + " \003(\rB\002\020\001\022\025\n\nprivileges\030\004 \001(\004:\0010\022\030\n\020attri" + "butes_epoch\030\005 \001(\004\"\322\001\n\016FriendOfFriend\022*\n\n" + "account_id\030\001 \001(\0132\026.bgs.protocol.EntityId" + "\022*\n\tattribute\030\002 \003(\0132\027.bgs.protocol.Attri" + "bute\022\020\n\004role\030\003 \003(\rB\002\020\001\022\025\n\nprivileges\030\004 \001" + "(\004:\0010\022\030\n\020attributes_epoch\030\005 \001(\004\022\021\n\tfull_" + "name\030\006 \001(\t\022\022\n\nbattle_tag\030\007 \001(\t\"\243\001\n\020Frien" + "dInvitation\022\035\n\016first_received\030\001 \001(\010:\005fal" + "se\022\020\n\004role\030\002 \003(\rB\002\020\0012^\n\021friend_invitatio" + "n\022\030.bgs.protocol.Invitation\030g \001(\0132).bgs." + "protocol.friends.v1.FriendInvitation\"\300\002\n" + "\026FriendInvitationParams\022\024\n\014target_email\030" + "\001 \001(\t\022\031\n\021target_battle_tag\030\002 \001(\t\022\032\n\022invi" + "ter_battle_tag\030\003 \001(\t\022\031\n\021inviter_full_nam" + "e\030\004 \001(\t\022\034\n\024invitee_display_name\030\005 \001(\t\022\020\n" + "\004role\030\006 \003(\rB\002\020\001\022&\n\030previous_role_depreca" + "ted\030\007 \003(\rB\004\020\001\030\0012f\n\rfriend_params\022\036.bgs.p" + "rotocol.InvitationParams\030g \001(\0132/.bgs.pro" + "tocol.friends.v1.FriendInvitationParams\"" + "\250\002\n\021SubscribeResponse\022\023\n\013max_friends\030\001 \001" + "(\r\022 \n\030max_received_invitations\030\002 \001(\r\022\034\n\024" + "max_sent_invitations\030\003 \001(\r\022 \n\004role\030\004 \003(\013" + "2\022.bgs.protocol.Role\0220\n\007friends\030\005 \003(\0132\037." + "bgs.protocol.friends.v1.Friend\0222\n\020sent_i" + "nvitations\030\006 \003(\0132\030.bgs.protocol.Invitati" + "on\0226\n\024received_invitations\030\007 \003(\0132\030.bgs.p" + "rotocol.InvitationB/\n\030bnet.protocol.frie" + "nds.v1B\021FriendsTypesProtoH\001", 1347); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "friends_types.proto", &protobuf_RegisterTypes); Friend::default_instance_ = new Friend(); + FriendOfFriend::default_instance_ = new FriendOfFriend(); FriendInvitation::default_instance_ = new FriendInvitation(); FriendInvitationParams::default_instance_ = new FriendInvitationParams(); + SubscribeResponse::default_instance_ = new SubscribeResponse(); Friend::default_instance_->InitAsDefaultInstance(); + FriendOfFriend::default_instance_->InitAsDefaultInstance(); FriendInvitation::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::ExtensionSet::RegisterMessageExtension( &::bgs::protocol::Invitation::default_instance(), @@ -186,6 +256,7 @@ void protobuf_AddDesc_friends_5ftypes_2eproto() { &::bgs::protocol::InvitationParams::default_instance(), 103, 11, false, false, &::bgs::protocol::friends::v1::FriendInvitationParams::default_instance()); + SubscribeResponse::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_friends_5ftypes_2eproto); } @@ -204,8 +275,6 @@ const int Friend::kAttributeFieldNumber; const int Friend::kRoleFieldNumber; const int Friend::kPrivilegesFieldNumber; const int Friend::kAttributesEpochFieldNumber; -const int Friend::kFullNameFieldNumber; -const int Friend::kBattleTagFieldNumber; #endif // !_MSC_VER Friend::Friend() @@ -226,13 +295,11 @@ Friend::Friend(const Friend& from) } void Friend::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; account_id_ = NULL; + _role_cached_byte_size_ = 0; privileges_ = GOOGLE_ULONGLONG(0); attributes_epoch_ = GOOGLE_ULONGLONG(0); - full_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -242,12 +309,6 @@ Friend::~Friend() { } void Friend::SharedDtor() { - if (full_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete full_name_; - } - if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete battle_tag_; - } if (this != default_instance_) { delete account_id_; } @@ -285,6 +346,445 @@ void Friend::Clear() { ::memset(&first, 0, n); \ } while (0) + if (_has_bits_[0 / 32] & 25) { + ZR_(privileges_, attributes_epoch_); + if (has_account_id()) { + if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear(); + } + } + +#undef OFFSET_OF_FIELD_ +#undef ZR_ + + attribute_.Clear(); + role_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Friend::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.friends.v1.Friend) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .bgs.protocol.EntityId account_id = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_account_id())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(18)) goto parse_attribute; + break; + } + + // repeated .bgs.protocol.Attribute attribute = 2; + case 2: { + if (tag == 18) { + parse_attribute: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_attribute())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(18)) goto parse_attribute; + if (input->ExpectTag(26)) goto parse_role; + break; + } + + // repeated uint32 role = 3 [packed = true]; + case 3: { + if (tag == 26) { + parse_role: + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_role()))); + } else if (tag == 24) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 26, input, this->mutable_role()))); + } else { + goto handle_unusual; + } + if (input->ExpectTag(32)) goto parse_privileges; + break; + } + + // optional uint64 privileges = 4 [default = 0]; + case 4: { + if (tag == 32) { + parse_privileges: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &privileges_))); + set_has_privileges(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(40)) goto parse_attributes_epoch; + break; + } + + // optional uint64 attributes_epoch = 5; + case 5: { + if (tag == 40) { + parse_attributes_epoch: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &attributes_epoch_))); + set_has_attributes_epoch(); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.friends.v1.Friend) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.Friend) + return false; +#undef DO_ +} + +void Friend::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.Friend) + // required .bgs.protocol.EntityId account_id = 1; + if (has_account_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->account_id(), output); + } + + // repeated .bgs.protocol.Attribute attribute = 2; + for (int i = 0; i < this->attribute_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->attribute(i), output); + } + + // repeated uint32 role = 3 [packed = true]; + if (this->role_size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_role_cached_byte_size_); + } + for (int i = 0; i < this->role_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( + this->role(i), output); + } + + // optional uint64 privileges = 4 [default = 0]; + if (has_privileges()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->privileges(), output); + } + + // optional uint64 attributes_epoch = 5; + if (has_attributes_epoch()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->attributes_epoch(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.Friend) +} + +::google::protobuf::uint8* Friend::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.Friend) + // required .bgs.protocol.EntityId account_id = 1; + if (has_account_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->account_id(), target); + } + + // repeated .bgs.protocol.Attribute attribute = 2; + for (int i = 0; i < this->attribute_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->attribute(i), target); + } + + // repeated uint32 role = 3 [packed = true]; + if (this->role_size() > 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + 3, + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( + _role_cached_byte_size_, target); + } + for (int i = 0; i < this->role_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32NoTagToArray(this->role(i), target); + } + + // optional uint64 privileges = 4 [default = 0]; + if (has_privileges()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->privileges(), target); + } + + // optional uint64 attributes_epoch = 5; + if (has_attributes_epoch()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->attributes_epoch(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.friends.v1.Friend) + return target; +} + +int Friend::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .bgs.protocol.EntityId account_id = 1; + if (has_account_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->account_id()); + } + + // optional uint64 privileges = 4 [default = 0]; + if (has_privileges()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->privileges()); + } + + // optional uint64 attributes_epoch = 5; + if (has_attributes_epoch()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->attributes_epoch()); + } + + } + // repeated .bgs.protocol.Attribute attribute = 2; + total_size += 1 * this->attribute_size(); + for (int i = 0; i < this->attribute_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->attribute(i)); + } + + // repeated uint32 role = 3 [packed = true]; + { + int data_size = 0; + for (int i = 0; i < this->role_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->role(i)); + } + if (data_size > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _role_cached_byte_size_ = data_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + total_size += data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Friend::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Friend* source = + ::google::protobuf::internal::dynamic_cast_if_available<const Friend*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Friend::MergeFrom(const Friend& from) { + GOOGLE_CHECK_NE(&from, this); + attribute_.MergeFrom(from.attribute_); + role_.MergeFrom(from.role_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_account_id()) { + mutable_account_id()->::bgs::protocol::EntityId::MergeFrom(from.account_id()); + } + if (from.has_privileges()) { + set_privileges(from.privileges()); + } + if (from.has_attributes_epoch()) { + set_attributes_epoch(from.attributes_epoch()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Friend::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Friend::CopyFrom(const Friend& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Friend::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_account_id()) { + if (!this->account_id().IsInitialized()) return false; + } + if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; + return true; +} + +void Friend::Swap(Friend* other) { + if (other != this) { + std::swap(account_id_, other->account_id_); + attribute_.Swap(&other->attribute_); + role_.Swap(&other->role_); + std::swap(privileges_, other->privileges_); + std::swap(attributes_epoch_, other->attributes_epoch_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Friend::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Friend_descriptor_; + metadata.reflection = Friend_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int FriendOfFriend::kAccountIdFieldNumber; +const int FriendOfFriend::kAttributeFieldNumber; +const int FriendOfFriend::kRoleFieldNumber; +const int FriendOfFriend::kPrivilegesFieldNumber; +const int FriendOfFriend::kAttributesEpochFieldNumber; +const int FriendOfFriend::kFullNameFieldNumber; +const int FriendOfFriend::kBattleTagFieldNumber; +#endif // !_MSC_VER + +FriendOfFriend::FriendOfFriend() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.friends.v1.FriendOfFriend) +} + +void FriendOfFriend::InitAsDefaultInstance() { + account_id_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); +} + +FriendOfFriend::FriendOfFriend(const FriendOfFriend& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.friends.v1.FriendOfFriend) +} + +void FriendOfFriend::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + account_id_ = NULL; + _role_cached_byte_size_ = 0; + privileges_ = GOOGLE_ULONGLONG(0); + attributes_epoch_ = GOOGLE_ULONGLONG(0); + full_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +FriendOfFriend::~FriendOfFriend() { + // @@protoc_insertion_point(destructor:bgs.protocol.friends.v1.FriendOfFriend) + SharedDtor(); +} + +void FriendOfFriend::SharedDtor() { + if (full_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete full_name_; + } + if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete battle_tag_; + } + if (this != default_instance_) { + delete account_id_; + } +} + +void FriendOfFriend::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* FriendOfFriend::descriptor() { + protobuf_AssignDescriptorsOnce(); + return FriendOfFriend_descriptor_; +} + +const FriendOfFriend& FriendOfFriend::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_friends_5ftypes_2eproto(); + return *default_instance_; +} + +FriendOfFriend* FriendOfFriend::default_instance_ = NULL; + +FriendOfFriend* FriendOfFriend::New() const { + return new FriendOfFriend; +} + +void FriendOfFriend::Clear() { +#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ + &reinterpret_cast<FriendOfFriend*>(16)->f) - \ + reinterpret_cast<char*>(16)) + +#define ZR_(first, last) do { \ + size_t f = OFFSET_OF_FIELD_(first); \ + size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ + ::memset(&first, 0, n); \ + } while (0) + if (_has_bits_[0 / 32] & 121) { ZR_(privileges_, attributes_epoch_); if (has_account_id()) { @@ -311,17 +811,17 @@ void Friend::Clear() { mutable_unknown_fields()->Clear(); } -bool Friend::MergePartialFromCodedStream( +bool FriendOfFriend::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.friends.v1.Friend) + // @@protoc_insertion_point(parse_start:bgs.protocol.friends.v1.FriendOfFriend) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .bgs.protocol.EntityId account_id = 1; + // optional .bgs.protocol.EntityId account_id = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( @@ -443,18 +943,18 @@ bool Friend::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:bgs.protocol.friends.v1.Friend) + // @@protoc_insertion_point(parse_success:bgs.protocol.friends.v1.FriendOfFriend) return true; failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.Friend) + // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.FriendOfFriend) return false; #undef DO_ } -void Friend::SerializeWithCachedSizes( +void FriendOfFriend::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.Friend) - // required .bgs.protocol.EntityId account_id = 1; + // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.FriendOfFriend) + // optional .bgs.protocol.EntityId account_id = 1; if (has_account_id()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->account_id(), output); @@ -510,13 +1010,13 @@ void Friend::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.Friend) + // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.FriendOfFriend) } -::google::protobuf::uint8* Friend::SerializeWithCachedSizesToArray( +::google::protobuf::uint8* FriendOfFriend::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.Friend) - // required .bgs.protocol.EntityId account_id = 1; + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.FriendOfFriend) + // optional .bgs.protocol.EntityId account_id = 1; if (has_account_id()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( @@ -580,15 +1080,15 @@ void Friend::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.friends.v1.Friend) + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.friends.v1.FriendOfFriend) return target; } -int Friend::ByteSize() const { +int FriendOfFriend::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.EntityId account_id = 1; + // optional .bgs.protocol.EntityId account_id = 1; if (has_account_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( @@ -660,10 +1160,10 @@ int Friend::ByteSize() const { return total_size; } -void Friend::MergeFrom(const ::google::protobuf::Message& from) { +void FriendOfFriend::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); - const Friend* source = - ::google::protobuf::internal::dynamic_cast_if_available<const Friend*>( + const FriendOfFriend* source = + ::google::protobuf::internal::dynamic_cast_if_available<const FriendOfFriend*>( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); @@ -672,7 +1172,7 @@ void Friend::MergeFrom(const ::google::protobuf::Message& from) { } } -void Friend::MergeFrom(const Friend& from) { +void FriendOfFriend::MergeFrom(const FriendOfFriend& from) { GOOGLE_CHECK_NE(&from, this); attribute_.MergeFrom(from.attribute_); role_.MergeFrom(from.role_); @@ -696,20 +1196,19 @@ void Friend::MergeFrom(const Friend& from) { mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } -void Friend::CopyFrom(const ::google::protobuf::Message& from) { +void FriendOfFriend::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } -void Friend::CopyFrom(const Friend& from) { +void FriendOfFriend::CopyFrom(const FriendOfFriend& from) { if (&from == this) return; Clear(); MergeFrom(from); } -bool Friend::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; +bool FriendOfFriend::IsInitialized() const { if (has_account_id()) { if (!this->account_id().IsInitialized()) return false; @@ -718,7 +1217,7 @@ bool Friend::IsInitialized() const { return true; } -void Friend::Swap(Friend* other) { +void FriendOfFriend::Swap(FriendOfFriend* other) { if (other != this) { std::swap(account_id_, other->account_id_); attribute_.Swap(&other->attribute_); @@ -733,11 +1232,11 @@ void Friend::Swap(Friend* other) { } } -::google::protobuf::Metadata Friend::GetMetadata() const { +::google::protobuf::Metadata FriendOfFriend::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; - metadata.descriptor = Friend_descriptor_; - metadata.reflection = Friend_reflection_; + metadata.descriptor = FriendOfFriend_descriptor_; + metadata.reflection = FriendOfFriend_reflection_; return metadata; } @@ -774,6 +1273,7 @@ FriendInvitation::FriendInvitation(const FriendInvitation& from) void FriendInvitation::SharedCtor() { _cached_size_ = 0; first_received_ = false; + _role_cached_byte_size_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -1073,6 +1573,8 @@ void FriendInvitationParams::SharedCtor() { inviter_battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); inviter_full_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); invitee_display_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _role_cached_byte_size_ = 0; + _previous_role_deprecated_cached_byte_size_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -1644,6 +2146,481 @@ void FriendInvitationParams::Swap(FriendInvitationParams* other) { } +// =================================================================== + +#ifndef _MSC_VER +const int SubscribeResponse::kMaxFriendsFieldNumber; +const int SubscribeResponse::kMaxReceivedInvitationsFieldNumber; +const int SubscribeResponse::kMaxSentInvitationsFieldNumber; +const int SubscribeResponse::kRoleFieldNumber; +const int SubscribeResponse::kFriendsFieldNumber; +const int SubscribeResponse::kSentInvitationsFieldNumber; +const int SubscribeResponse::kReceivedInvitationsFieldNumber; +#endif // !_MSC_VER + +SubscribeResponse::SubscribeResponse() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.friends.v1.SubscribeResponse) +} + +void SubscribeResponse::InitAsDefaultInstance() { +} + +SubscribeResponse::SubscribeResponse(const SubscribeResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.friends.v1.SubscribeResponse) +} + +void SubscribeResponse::SharedCtor() { + _cached_size_ = 0; + max_friends_ = 0u; + max_received_invitations_ = 0u; + max_sent_invitations_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SubscribeResponse::~SubscribeResponse() { + // @@protoc_insertion_point(destructor:bgs.protocol.friends.v1.SubscribeResponse) + SharedDtor(); +} + +void SubscribeResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void SubscribeResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SubscribeResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SubscribeResponse_descriptor_; +} + +const SubscribeResponse& SubscribeResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_friends_5ftypes_2eproto(); + return *default_instance_; +} + +SubscribeResponse* SubscribeResponse::default_instance_ = NULL; + +SubscribeResponse* SubscribeResponse::New() const { + return new SubscribeResponse; +} + +void SubscribeResponse::Clear() { +#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ + &reinterpret_cast<SubscribeResponse*>(16)->f) - \ + reinterpret_cast<char*>(16)) + +#define ZR_(first, last) do { \ + size_t f = OFFSET_OF_FIELD_(first); \ + size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ + ::memset(&first, 0, n); \ + } while (0) + + if (_has_bits_[0 / 32] & 7) { + ZR_(max_friends_, max_received_invitations_); + max_sent_invitations_ = 0u; + } + +#undef OFFSET_OF_FIELD_ +#undef ZR_ + + role_.Clear(); + friends_.Clear(); + sent_invitations_.Clear(); + received_invitations_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SubscribeResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.friends.v1.SubscribeResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 max_friends = 1; + case 1: { + if (tag == 8) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &max_friends_))); + set_has_max_friends(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(16)) goto parse_max_received_invitations; + break; + } + + // optional uint32 max_received_invitations = 2; + case 2: { + if (tag == 16) { + parse_max_received_invitations: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &max_received_invitations_))); + set_has_max_received_invitations(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(24)) goto parse_max_sent_invitations; + break; + } + + // optional uint32 max_sent_invitations = 3; + case 3: { + if (tag == 24) { + parse_max_sent_invitations: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &max_sent_invitations_))); + set_has_max_sent_invitations(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(34)) goto parse_role; + break; + } + + // repeated .bgs.protocol.Role role = 4; + case 4: { + if (tag == 34) { + parse_role: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_role())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(34)) goto parse_role; + if (input->ExpectTag(42)) goto parse_friends; + break; + } + + // repeated .bgs.protocol.friends.v1.Friend friends = 5; + case 5: { + if (tag == 42) { + parse_friends: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_friends())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(42)) goto parse_friends; + if (input->ExpectTag(50)) goto parse_sent_invitations; + break; + } + + // repeated .bgs.protocol.Invitation sent_invitations = 6; + case 6: { + if (tag == 50) { + parse_sent_invitations: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_sent_invitations())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(50)) goto parse_sent_invitations; + if (input->ExpectTag(58)) goto parse_received_invitations; + break; + } + + // repeated .bgs.protocol.Invitation received_invitations = 7; + case 7: { + if (tag == 58) { + parse_received_invitations: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_received_invitations())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(58)) goto parse_received_invitations; + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.friends.v1.SubscribeResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.friends.v1.SubscribeResponse) + return false; +#undef DO_ +} + +void SubscribeResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.friends.v1.SubscribeResponse) + // optional uint32 max_friends = 1; + if (has_max_friends()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->max_friends(), output); + } + + // optional uint32 max_received_invitations = 2; + if (has_max_received_invitations()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->max_received_invitations(), output); + } + + // optional uint32 max_sent_invitations = 3; + if (has_max_sent_invitations()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->max_sent_invitations(), output); + } + + // repeated .bgs.protocol.Role role = 4; + for (int i = 0; i < this->role_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->role(i), output); + } + + // repeated .bgs.protocol.friends.v1.Friend friends = 5; + for (int i = 0; i < this->friends_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->friends(i), output); + } + + // repeated .bgs.protocol.Invitation sent_invitations = 6; + for (int i = 0; i < this->sent_invitations_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->sent_invitations(i), output); + } + + // repeated .bgs.protocol.Invitation received_invitations = 7; + for (int i = 0; i < this->received_invitations_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, this->received_invitations(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.friends.v1.SubscribeResponse) +} + +::google::protobuf::uint8* SubscribeResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.friends.v1.SubscribeResponse) + // optional uint32 max_friends = 1; + if (has_max_friends()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->max_friends(), target); + } + + // optional uint32 max_received_invitations = 2; + if (has_max_received_invitations()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->max_received_invitations(), target); + } + + // optional uint32 max_sent_invitations = 3; + if (has_max_sent_invitations()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->max_sent_invitations(), target); + } + + // repeated .bgs.protocol.Role role = 4; + for (int i = 0; i < this->role_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->role(i), target); + } + + // repeated .bgs.protocol.friends.v1.Friend friends = 5; + for (int i = 0; i < this->friends_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->friends(i), target); + } + + // repeated .bgs.protocol.Invitation sent_invitations = 6; + for (int i = 0; i < this->sent_invitations_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 6, this->sent_invitations(i), target); + } + + // repeated .bgs.protocol.Invitation received_invitations = 7; + for (int i = 0; i < this->received_invitations_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 7, this->received_invitations(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.friends.v1.SubscribeResponse) + return target; +} + +int SubscribeResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint32 max_friends = 1; + if (has_max_friends()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->max_friends()); + } + + // optional uint32 max_received_invitations = 2; + if (has_max_received_invitations()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->max_received_invitations()); + } + + // optional uint32 max_sent_invitations = 3; + if (has_max_sent_invitations()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->max_sent_invitations()); + } + + } + // repeated .bgs.protocol.Role role = 4; + total_size += 1 * this->role_size(); + for (int i = 0; i < this->role_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->role(i)); + } + + // repeated .bgs.protocol.friends.v1.Friend friends = 5; + total_size += 1 * this->friends_size(); + for (int i = 0; i < this->friends_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->friends(i)); + } + + // repeated .bgs.protocol.Invitation sent_invitations = 6; + total_size += 1 * this->sent_invitations_size(); + for (int i = 0; i < this->sent_invitations_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->sent_invitations(i)); + } + + // repeated .bgs.protocol.Invitation received_invitations = 7; + total_size += 1 * this->received_invitations_size(); + for (int i = 0; i < this->received_invitations_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->received_invitations(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SubscribeResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SubscribeResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available<const SubscribeResponse*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SubscribeResponse::MergeFrom(const SubscribeResponse& from) { + GOOGLE_CHECK_NE(&from, this); + role_.MergeFrom(from.role_); + friends_.MergeFrom(from.friends_); + sent_invitations_.MergeFrom(from.sent_invitations_); + received_invitations_.MergeFrom(from.received_invitations_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_max_friends()) { + set_max_friends(from.max_friends()); + } + if (from.has_max_received_invitations()) { + set_max_received_invitations(from.max_received_invitations()); + } + if (from.has_max_sent_invitations()) { + set_max_sent_invitations(from.max_sent_invitations()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SubscribeResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SubscribeResponse::CopyFrom(const SubscribeResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SubscribeResponse::IsInitialized() const { + + if (!::google::protobuf::internal::AllAreInitialized(this->role())) return false; + if (!::google::protobuf::internal::AllAreInitialized(this->friends())) return false; + if (!::google::protobuf::internal::AllAreInitialized(this->sent_invitations())) return false; + if (!::google::protobuf::internal::AllAreInitialized(this->received_invitations())) return false; + return true; +} + +void SubscribeResponse::Swap(SubscribeResponse* other) { + if (other != this) { + std::swap(max_friends_, other->max_friends_); + std::swap(max_received_invitations_, other->max_received_invitations_); + std::swap(max_sent_invitations_, other->max_sent_invitations_); + role_.Swap(&other->role_); + friends_.Swap(&other->friends_); + sent_invitations_.Swap(&other->sent_invitations_); + received_invitations_.Swap(&other->received_invitations_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SubscribeResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SubscribeResponse_descriptor_; + metadata.reflection = SubscribeResponse_reflection_; + return metadata; +} + + // @@protoc_insertion_point(namespace_scope) } // namespace v1 diff --git a/src/server/proto/Client/friends_types.pb.h b/src/server/proto/Client/friends_types.pb.h index ad9f0597ae2..8304a3f38cb 100644 --- a/src/server/proto/Client/friends_types.pb.h +++ b/src/server/proto/Client/friends_types.pb.h @@ -27,6 +27,7 @@ #include "attribute_types.pb.h" #include "entity_types.pb.h" #include "invitation_types.pb.h" +#include "role_types.pb.h" #include "Define.h" // for TC_PROTO_API // @@protoc_insertion_point(includes) @@ -41,8 +42,10 @@ void protobuf_AssignDesc_friends_5ftypes_2eproto(); void protobuf_ShutdownFile_friends_5ftypes_2eproto(); class Friend; +class FriendOfFriend; class FriendInvitation; class FriendInvitationParams; +class SubscribeResponse; // =================================================================== @@ -146,6 +149,134 @@ class TC_PROTO_API Friend : public ::google::protobuf::Message { inline ::google::protobuf::uint64 attributes_epoch() const; inline void set_attributes_epoch(::google::protobuf::uint64 value); + // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.Friend) + private: + inline void set_has_account_id(); + inline void clear_has_account_id(); + inline void set_has_privileges(); + inline void clear_has_privileges(); + inline void set_has_attributes_epoch(); + inline void clear_has_attributes_epoch(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::EntityId* account_id_; + ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > role_; + mutable int _role_cached_byte_size_; + ::google::protobuf::uint64 privileges_; + ::google::protobuf::uint64 attributes_epoch_; + friend void TC_PROTO_API protobuf_AddDesc_friends_5ftypes_2eproto(); + friend void protobuf_AssignDesc_friends_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_friends_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static Friend* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API FriendOfFriend : public ::google::protobuf::Message { + public: + FriendOfFriend(); + virtual ~FriendOfFriend(); + + FriendOfFriend(const FriendOfFriend& from); + + inline FriendOfFriend& operator=(const FriendOfFriend& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const FriendOfFriend& default_instance(); + + void Swap(FriendOfFriend* other); + + // implements Message ---------------------------------------------- + + FriendOfFriend* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const FriendOfFriend& from); + void MergeFrom(const FriendOfFriend& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .bgs.protocol.EntityId account_id = 1; + inline bool has_account_id() const; + inline void clear_account_id(); + static const int kAccountIdFieldNumber = 1; + inline const ::bgs::protocol::EntityId& account_id() const; + inline ::bgs::protocol::EntityId* mutable_account_id(); + inline ::bgs::protocol::EntityId* release_account_id(); + inline void set_allocated_account_id(::bgs::protocol::EntityId* account_id); + + // repeated .bgs.protocol.Attribute attribute = 2; + inline int attribute_size() const; + inline void clear_attribute(); + static const int kAttributeFieldNumber = 2; + inline const ::bgs::protocol::Attribute& attribute(int index) const; + inline ::bgs::protocol::Attribute* mutable_attribute(int index); + inline ::bgs::protocol::Attribute* add_attribute(); + inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >& + attribute() const; + inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >* + mutable_attribute(); + + // repeated uint32 role = 3 [packed = true]; + inline int role_size() const; + inline void clear_role(); + static const int kRoleFieldNumber = 3; + inline ::google::protobuf::uint32 role(int index) const; + inline void set_role(int index, ::google::protobuf::uint32 value); + inline void add_role(::google::protobuf::uint32 value); + inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + role() const; + inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_role(); + + // optional uint64 privileges = 4 [default = 0]; + inline bool has_privileges() const; + inline void clear_privileges(); + static const int kPrivilegesFieldNumber = 4; + inline ::google::protobuf::uint64 privileges() const; + inline void set_privileges(::google::protobuf::uint64 value); + + // optional uint64 attributes_epoch = 5; + inline bool has_attributes_epoch() const; + inline void clear_attributes_epoch(); + static const int kAttributesEpochFieldNumber = 5; + inline ::google::protobuf::uint64 attributes_epoch() const; + inline void set_attributes_epoch(::google::protobuf::uint64 value); + // optional string full_name = 6; inline bool has_full_name() const; inline void clear_full_name(); @@ -170,7 +301,7 @@ class TC_PROTO_API Friend : public ::google::protobuf::Message { inline ::std::string* release_battle_tag(); inline void set_allocated_battle_tag(::std::string* battle_tag); - // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.Friend) + // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.FriendOfFriend) private: inline void set_has_account_id(); inline void clear_has_account_id(); @@ -200,7 +331,7 @@ class TC_PROTO_API Friend : public ::google::protobuf::Message { friend void protobuf_ShutdownFile_friends_5ftypes_2eproto(); void InitAsDefaultInstance(); - static Friend* default_instance_; + static FriendOfFriend* default_instance_; }; // ------------------------------------------------------------------- @@ -475,6 +606,157 @@ class TC_PROTO_API FriendInvitationParams : public ::google::protobuf::Message { void InitAsDefaultInstance(); static FriendInvitationParams* default_instance_; }; +// ------------------------------------------------------------------- + +class TC_PROTO_API SubscribeResponse : public ::google::protobuf::Message { + public: + SubscribeResponse(); + virtual ~SubscribeResponse(); + + SubscribeResponse(const SubscribeResponse& from); + + inline SubscribeResponse& operator=(const SubscribeResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SubscribeResponse& default_instance(); + + void Swap(SubscribeResponse* other); + + // implements Message ---------------------------------------------- + + SubscribeResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SubscribeResponse& from); + void MergeFrom(const SubscribeResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 max_friends = 1; + inline bool has_max_friends() const; + inline void clear_max_friends(); + static const int kMaxFriendsFieldNumber = 1; + inline ::google::protobuf::uint32 max_friends() const; + inline void set_max_friends(::google::protobuf::uint32 value); + + // optional uint32 max_received_invitations = 2; + inline bool has_max_received_invitations() const; + inline void clear_max_received_invitations(); + static const int kMaxReceivedInvitationsFieldNumber = 2; + inline ::google::protobuf::uint32 max_received_invitations() const; + inline void set_max_received_invitations(::google::protobuf::uint32 value); + + // optional uint32 max_sent_invitations = 3; + inline bool has_max_sent_invitations() const; + inline void clear_max_sent_invitations(); + static const int kMaxSentInvitationsFieldNumber = 3; + inline ::google::protobuf::uint32 max_sent_invitations() const; + inline void set_max_sent_invitations(::google::protobuf::uint32 value); + + // repeated .bgs.protocol.Role role = 4; + inline int role_size() const; + inline void clear_role(); + static const int kRoleFieldNumber = 4; + inline const ::bgs::protocol::Role& role(int index) const; + inline ::bgs::protocol::Role* mutable_role(int index); + inline ::bgs::protocol::Role* add_role(); + inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Role >& + role() const; + inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Role >* + mutable_role(); + + // repeated .bgs.protocol.friends.v1.Friend friends = 5; + inline int friends_size() const; + inline void clear_friends(); + static const int kFriendsFieldNumber = 5; + inline const ::bgs::protocol::friends::v1::Friend& friends(int index) const; + inline ::bgs::protocol::friends::v1::Friend* mutable_friends(int index); + inline ::bgs::protocol::friends::v1::Friend* add_friends(); + inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >& + friends() const; + inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >* + mutable_friends(); + + // repeated .bgs.protocol.Invitation sent_invitations = 6; + inline int sent_invitations_size() const; + inline void clear_sent_invitations(); + static const int kSentInvitationsFieldNumber = 6; + inline const ::bgs::protocol::Invitation& sent_invitations(int index) const; + inline ::bgs::protocol::Invitation* mutable_sent_invitations(int index); + inline ::bgs::protocol::Invitation* add_sent_invitations(); + inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >& + sent_invitations() const; + inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >* + mutable_sent_invitations(); + + // repeated .bgs.protocol.Invitation received_invitations = 7; + inline int received_invitations_size() const; + inline void clear_received_invitations(); + static const int kReceivedInvitationsFieldNumber = 7; + inline const ::bgs::protocol::Invitation& received_invitations(int index) const; + inline ::bgs::protocol::Invitation* mutable_received_invitations(int index); + inline ::bgs::protocol::Invitation* add_received_invitations(); + inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >& + received_invitations() const; + inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >* + mutable_received_invitations(); + + // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.SubscribeResponse) + private: + inline void set_has_max_friends(); + inline void clear_has_max_friends(); + inline void set_has_max_received_invitations(); + inline void clear_has_max_received_invitations(); + inline void set_has_max_sent_invitations(); + inline void clear_has_max_sent_invitations(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::google::protobuf::uint32 max_friends_; + ::google::protobuf::uint32 max_received_invitations_; + ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Role > role_; + ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend > friends_; + ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation > sent_invitations_; + ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation > received_invitations_; + ::google::protobuf::uint32 max_sent_invitations_; + friend void TC_PROTO_API protobuf_AddDesc_friends_5ftypes_2eproto(); + friend void protobuf_AssignDesc_friends_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_friends_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static SubscribeResponse* default_instance_; +}; // =================================================================== @@ -634,59 +916,212 @@ inline void Friend::set_attributes_epoch(::google::protobuf::uint64 value) { // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.Friend.attributes_epoch) } +// ------------------------------------------------------------------- + +// FriendOfFriend + +// optional .bgs.protocol.EntityId account_id = 1; +inline bool FriendOfFriend::has_account_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void FriendOfFriend::set_has_account_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void FriendOfFriend::clear_has_account_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void FriendOfFriend::clear_account_id() { + if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear(); + clear_has_account_id(); +} +inline const ::bgs::protocol::EntityId& FriendOfFriend::account_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.FriendOfFriend.account_id) + return account_id_ != NULL ? *account_id_ : *default_instance_->account_id_; +} +inline ::bgs::protocol::EntityId* FriendOfFriend::mutable_account_id() { + set_has_account_id(); + if (account_id_ == NULL) account_id_ = new ::bgs::protocol::EntityId; + // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.FriendOfFriend.account_id) + return account_id_; +} +inline ::bgs::protocol::EntityId* FriendOfFriend::release_account_id() { + clear_has_account_id(); + ::bgs::protocol::EntityId* temp = account_id_; + account_id_ = NULL; + return temp; +} +inline void FriendOfFriend::set_allocated_account_id(::bgs::protocol::EntityId* account_id) { + delete account_id_; + account_id_ = account_id; + if (account_id) { + set_has_account_id(); + } else { + clear_has_account_id(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.FriendOfFriend.account_id) +} + +// repeated .bgs.protocol.Attribute attribute = 2; +inline int FriendOfFriend::attribute_size() const { + return attribute_.size(); +} +inline void FriendOfFriend::clear_attribute() { + attribute_.Clear(); +} +inline const ::bgs::protocol::Attribute& FriendOfFriend::attribute(int index) const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.FriendOfFriend.attribute) + return attribute_.Get(index); +} +inline ::bgs::protocol::Attribute* FriendOfFriend::mutable_attribute(int index) { + // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.FriendOfFriend.attribute) + return attribute_.Mutable(index); +} +inline ::bgs::protocol::Attribute* FriendOfFriend::add_attribute() { + // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.FriendOfFriend.attribute) + return attribute_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >& +FriendOfFriend::attribute() const { + // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.FriendOfFriend.attribute) + return attribute_; +} +inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >* +FriendOfFriend::mutable_attribute() { + // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.FriendOfFriend.attribute) + return &attribute_; +} + +// repeated uint32 role = 3 [packed = true]; +inline int FriendOfFriend::role_size() const { + return role_.size(); +} +inline void FriendOfFriend::clear_role() { + role_.Clear(); +} +inline ::google::protobuf::uint32 FriendOfFriend::role(int index) const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.FriendOfFriend.role) + return role_.Get(index); +} +inline void FriendOfFriend::set_role(int index, ::google::protobuf::uint32 value) { + role_.Set(index, value); + // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.FriendOfFriend.role) +} +inline void FriendOfFriend::add_role(::google::protobuf::uint32 value) { + role_.Add(value); + // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.FriendOfFriend.role) +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +FriendOfFriend::role() const { + // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.FriendOfFriend.role) + return role_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +FriendOfFriend::mutable_role() { + // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.FriendOfFriend.role) + return &role_; +} + +// optional uint64 privileges = 4 [default = 0]; +inline bool FriendOfFriend::has_privileges() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void FriendOfFriend::set_has_privileges() { + _has_bits_[0] |= 0x00000008u; +} +inline void FriendOfFriend::clear_has_privileges() { + _has_bits_[0] &= ~0x00000008u; +} +inline void FriendOfFriend::clear_privileges() { + privileges_ = GOOGLE_ULONGLONG(0); + clear_has_privileges(); +} +inline ::google::protobuf::uint64 FriendOfFriend::privileges() const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.FriendOfFriend.privileges) + return privileges_; +} +inline void FriendOfFriend::set_privileges(::google::protobuf::uint64 value) { + set_has_privileges(); + privileges_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.FriendOfFriend.privileges) +} + +// optional uint64 attributes_epoch = 5; +inline bool FriendOfFriend::has_attributes_epoch() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void FriendOfFriend::set_has_attributes_epoch() { + _has_bits_[0] |= 0x00000010u; +} +inline void FriendOfFriend::clear_has_attributes_epoch() { + _has_bits_[0] &= ~0x00000010u; +} +inline void FriendOfFriend::clear_attributes_epoch() { + attributes_epoch_ = GOOGLE_ULONGLONG(0); + clear_has_attributes_epoch(); +} +inline ::google::protobuf::uint64 FriendOfFriend::attributes_epoch() const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.FriendOfFriend.attributes_epoch) + return attributes_epoch_; +} +inline void FriendOfFriend::set_attributes_epoch(::google::protobuf::uint64 value) { + set_has_attributes_epoch(); + attributes_epoch_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.FriendOfFriend.attributes_epoch) +} + // optional string full_name = 6; -inline bool Friend::has_full_name() const { +inline bool FriendOfFriend::has_full_name() const { return (_has_bits_[0] & 0x00000020u) != 0; } -inline void Friend::set_has_full_name() { +inline void FriendOfFriend::set_has_full_name() { _has_bits_[0] |= 0x00000020u; } -inline void Friend::clear_has_full_name() { +inline void FriendOfFriend::clear_has_full_name() { _has_bits_[0] &= ~0x00000020u; } -inline void Friend::clear_full_name() { +inline void FriendOfFriend::clear_full_name() { if (full_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { full_name_->clear(); } clear_has_full_name(); } -inline const ::std::string& Friend::full_name() const { - // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.Friend.full_name) +inline const ::std::string& FriendOfFriend::full_name() const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.FriendOfFriend.full_name) return *full_name_; } -inline void Friend::set_full_name(const ::std::string& value) { +inline void FriendOfFriend::set_full_name(const ::std::string& value) { set_has_full_name(); if (full_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { full_name_ = new ::std::string; } full_name_->assign(value); - // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.Friend.full_name) + // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.FriendOfFriend.full_name) } -inline void Friend::set_full_name(const char* value) { +inline void FriendOfFriend::set_full_name(const char* value) { set_has_full_name(); if (full_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { full_name_ = new ::std::string; } full_name_->assign(value); - // @@protoc_insertion_point(field_set_char:bgs.protocol.friends.v1.Friend.full_name) + // @@protoc_insertion_point(field_set_char:bgs.protocol.friends.v1.FriendOfFriend.full_name) } -inline void Friend::set_full_name(const char* value, size_t size) { +inline void FriendOfFriend::set_full_name(const char* value, size_t size) { set_has_full_name(); if (full_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { full_name_ = new ::std::string; } full_name_->assign(reinterpret_cast<const char*>(value), size); - // @@protoc_insertion_point(field_set_pointer:bgs.protocol.friends.v1.Friend.full_name) + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.friends.v1.FriendOfFriend.full_name) } -inline ::std::string* Friend::mutable_full_name() { +inline ::std::string* FriendOfFriend::mutable_full_name() { set_has_full_name(); if (full_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { full_name_ = new ::std::string; } - // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.Friend.full_name) + // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.FriendOfFriend.full_name) return full_name_; } -inline ::std::string* Friend::release_full_name() { +inline ::std::string* FriendOfFriend::release_full_name() { clear_has_full_name(); if (full_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { return NULL; @@ -696,7 +1131,7 @@ inline ::std::string* Friend::release_full_name() { return temp; } } -inline void Friend::set_allocated_full_name(::std::string* full_name) { +inline void FriendOfFriend::set_allocated_full_name(::std::string* full_name) { if (full_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete full_name_; } @@ -707,62 +1142,62 @@ inline void Friend::set_allocated_full_name(::std::string* full_name) { clear_has_full_name(); full_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.Friend.full_name) + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.FriendOfFriend.full_name) } // optional string battle_tag = 7; -inline bool Friend::has_battle_tag() const { +inline bool FriendOfFriend::has_battle_tag() const { return (_has_bits_[0] & 0x00000040u) != 0; } -inline void Friend::set_has_battle_tag() { +inline void FriendOfFriend::set_has_battle_tag() { _has_bits_[0] |= 0x00000040u; } -inline void Friend::clear_has_battle_tag() { +inline void FriendOfFriend::clear_has_battle_tag() { _has_bits_[0] &= ~0x00000040u; } -inline void Friend::clear_battle_tag() { +inline void FriendOfFriend::clear_battle_tag() { if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { battle_tag_->clear(); } clear_has_battle_tag(); } -inline const ::std::string& Friend::battle_tag() const { - // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.Friend.battle_tag) +inline const ::std::string& FriendOfFriend::battle_tag() const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.FriendOfFriend.battle_tag) return *battle_tag_; } -inline void Friend::set_battle_tag(const ::std::string& value) { +inline void FriendOfFriend::set_battle_tag(const ::std::string& value) { set_has_battle_tag(); if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { battle_tag_ = new ::std::string; } battle_tag_->assign(value); - // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.Friend.battle_tag) + // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.FriendOfFriend.battle_tag) } -inline void Friend::set_battle_tag(const char* value) { +inline void FriendOfFriend::set_battle_tag(const char* value) { set_has_battle_tag(); if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { battle_tag_ = new ::std::string; } battle_tag_->assign(value); - // @@protoc_insertion_point(field_set_char:bgs.protocol.friends.v1.Friend.battle_tag) + // @@protoc_insertion_point(field_set_char:bgs.protocol.friends.v1.FriendOfFriend.battle_tag) } -inline void Friend::set_battle_tag(const char* value, size_t size) { +inline void FriendOfFriend::set_battle_tag(const char* value, size_t size) { set_has_battle_tag(); if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { battle_tag_ = new ::std::string; } battle_tag_->assign(reinterpret_cast<const char*>(value), size); - // @@protoc_insertion_point(field_set_pointer:bgs.protocol.friends.v1.Friend.battle_tag) + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.friends.v1.FriendOfFriend.battle_tag) } -inline ::std::string* Friend::mutable_battle_tag() { +inline ::std::string* FriendOfFriend::mutable_battle_tag() { set_has_battle_tag(); if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { battle_tag_ = new ::std::string; } - // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.Friend.battle_tag) + // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.FriendOfFriend.battle_tag) return battle_tag_; } -inline ::std::string* Friend::release_battle_tag() { +inline ::std::string* FriendOfFriend::release_battle_tag() { clear_has_battle_tag(); if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { return NULL; @@ -772,7 +1207,7 @@ inline ::std::string* Friend::release_battle_tag() { return temp; } } -inline void Friend::set_allocated_battle_tag(::std::string* battle_tag) { +inline void FriendOfFriend::set_allocated_battle_tag(::std::string* battle_tag) { if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete battle_tag_; } @@ -783,7 +1218,7 @@ inline void Friend::set_allocated_battle_tag(::std::string* battle_tag) { clear_has_battle_tag(); battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.Friend.battle_tag) + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.FriendOfFriend.battle_tag) } // ------------------------------------------------------------------- @@ -1288,6 +1723,202 @@ FriendInvitationParams::mutable_previous_role_deprecated() { return &previous_role_deprecated_; } +// ------------------------------------------------------------------- + +// SubscribeResponse + +// optional uint32 max_friends = 1; +inline bool SubscribeResponse::has_max_friends() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SubscribeResponse::set_has_max_friends() { + _has_bits_[0] |= 0x00000001u; +} +inline void SubscribeResponse::clear_has_max_friends() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SubscribeResponse::clear_max_friends() { + max_friends_ = 0u; + clear_has_max_friends(); +} +inline ::google::protobuf::uint32 SubscribeResponse::max_friends() const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.max_friends) + return max_friends_; +} +inline void SubscribeResponse::set_max_friends(::google::protobuf::uint32 value) { + set_has_max_friends(); + max_friends_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.SubscribeResponse.max_friends) +} + +// optional uint32 max_received_invitations = 2; +inline bool SubscribeResponse::has_max_received_invitations() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void SubscribeResponse::set_has_max_received_invitations() { + _has_bits_[0] |= 0x00000002u; +} +inline void SubscribeResponse::clear_has_max_received_invitations() { + _has_bits_[0] &= ~0x00000002u; +} +inline void SubscribeResponse::clear_max_received_invitations() { + max_received_invitations_ = 0u; + clear_has_max_received_invitations(); +} +inline ::google::protobuf::uint32 SubscribeResponse::max_received_invitations() const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.max_received_invitations) + return max_received_invitations_; +} +inline void SubscribeResponse::set_max_received_invitations(::google::protobuf::uint32 value) { + set_has_max_received_invitations(); + max_received_invitations_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.SubscribeResponse.max_received_invitations) +} + +// optional uint32 max_sent_invitations = 3; +inline bool SubscribeResponse::has_max_sent_invitations() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void SubscribeResponse::set_has_max_sent_invitations() { + _has_bits_[0] |= 0x00000004u; +} +inline void SubscribeResponse::clear_has_max_sent_invitations() { + _has_bits_[0] &= ~0x00000004u; +} +inline void SubscribeResponse::clear_max_sent_invitations() { + max_sent_invitations_ = 0u; + clear_has_max_sent_invitations(); +} +inline ::google::protobuf::uint32 SubscribeResponse::max_sent_invitations() const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.max_sent_invitations) + return max_sent_invitations_; +} +inline void SubscribeResponse::set_max_sent_invitations(::google::protobuf::uint32 value) { + set_has_max_sent_invitations(); + max_sent_invitations_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.SubscribeResponse.max_sent_invitations) +} + +// repeated .bgs.protocol.Role role = 4; +inline int SubscribeResponse::role_size() const { + return role_.size(); +} +inline void SubscribeResponse::clear_role() { + role_.Clear(); +} +inline const ::bgs::protocol::Role& SubscribeResponse::role(int index) const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.role) + return role_.Get(index); +} +inline ::bgs::protocol::Role* SubscribeResponse::mutable_role(int index) { + // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.SubscribeResponse.role) + return role_.Mutable(index); +} +inline ::bgs::protocol::Role* SubscribeResponse::add_role() { + // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.SubscribeResponse.role) + return role_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Role >& +SubscribeResponse::role() const { + // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.SubscribeResponse.role) + return role_; +} +inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Role >* +SubscribeResponse::mutable_role() { + // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.SubscribeResponse.role) + return &role_; +} + +// repeated .bgs.protocol.friends.v1.Friend friends = 5; +inline int SubscribeResponse::friends_size() const { + return friends_.size(); +} +inline void SubscribeResponse::clear_friends() { + friends_.Clear(); +} +inline const ::bgs::protocol::friends::v1::Friend& SubscribeResponse::friends(int index) const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.friends) + return friends_.Get(index); +} +inline ::bgs::protocol::friends::v1::Friend* SubscribeResponse::mutable_friends(int index) { + // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.SubscribeResponse.friends) + return friends_.Mutable(index); +} +inline ::bgs::protocol::friends::v1::Friend* SubscribeResponse::add_friends() { + // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.SubscribeResponse.friends) + return friends_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >& +SubscribeResponse::friends() const { + // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.SubscribeResponse.friends) + return friends_; +} +inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >* +SubscribeResponse::mutable_friends() { + // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.SubscribeResponse.friends) + return &friends_; +} + +// repeated .bgs.protocol.Invitation sent_invitations = 6; +inline int SubscribeResponse::sent_invitations_size() const { + return sent_invitations_.size(); +} +inline void SubscribeResponse::clear_sent_invitations() { + sent_invitations_.Clear(); +} +inline const ::bgs::protocol::Invitation& SubscribeResponse::sent_invitations(int index) const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.sent_invitations) + return sent_invitations_.Get(index); +} +inline ::bgs::protocol::Invitation* SubscribeResponse::mutable_sent_invitations(int index) { + // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.SubscribeResponse.sent_invitations) + return sent_invitations_.Mutable(index); +} +inline ::bgs::protocol::Invitation* SubscribeResponse::add_sent_invitations() { + // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.SubscribeResponse.sent_invitations) + return sent_invitations_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >& +SubscribeResponse::sent_invitations() const { + // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.SubscribeResponse.sent_invitations) + return sent_invitations_; +} +inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >* +SubscribeResponse::mutable_sent_invitations() { + // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.SubscribeResponse.sent_invitations) + return &sent_invitations_; +} + +// repeated .bgs.protocol.Invitation received_invitations = 7; +inline int SubscribeResponse::received_invitations_size() const { + return received_invitations_.size(); +} +inline void SubscribeResponse::clear_received_invitations() { + received_invitations_.Clear(); +} +inline const ::bgs::protocol::Invitation& SubscribeResponse::received_invitations(int index) const { + // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.received_invitations) + return received_invitations_.Get(index); +} +inline ::bgs::protocol::Invitation* SubscribeResponse::mutable_received_invitations(int index) { + // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.SubscribeResponse.received_invitations) + return received_invitations_.Mutable(index); +} +inline ::bgs::protocol::Invitation* SubscribeResponse::add_received_invitations() { + // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.SubscribeResponse.received_invitations) + return received_invitations_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >& +SubscribeResponse::received_invitations() const { + // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.SubscribeResponse.received_invitations) + return received_invitations_; +} +inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >* +SubscribeResponse::mutable_received_invitations() { + // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.SubscribeResponse.received_invitations) + return &received_invitations_; +} + // @@protoc_insertion_point(namespace_scope) diff --git a/src/server/proto/Client/global_extensions/field_options.pb.h b/src/server/proto/Client/global_extensions/field_options.pb.h index 0ef3a837a19..7dc0ddabf64 100644 --- a/src/server/proto/Client/global_extensions/field_options.pb.h +++ b/src/server/proto/Client/global_extensions/field_options.pb.h @@ -24,7 +24,7 @@ #include <google/protobuf/extension_set.h> #include <google/protobuf/generated_enum_reflection.h> #include "google/protobuf/descriptor.pb.h" -#include "Define.h" // for TRINITY_SHARED_API +#include "Define.h" // for TC_PROTO_API // @@protoc_insertion_point(includes) namespace bgs { diff --git a/src/server/proto/Client/global_extensions/method_options.pb.h b/src/server/proto/Client/global_extensions/method_options.pb.h index b3669564651..0ca06be0c9d 100644 --- a/src/server/proto/Client/global_extensions/method_options.pb.h +++ b/src/server/proto/Client/global_extensions/method_options.pb.h @@ -23,7 +23,7 @@ #include <google/protobuf/repeated_field.h> #include <google/protobuf/extension_set.h> #include "google/protobuf/descriptor.pb.h" -#include "Define.h" // for TRINITY_SHARED_API +#include "Define.h" // for TC_PROTO_API // @@protoc_insertion_point(includes) namespace bgs { diff --git a/src/server/proto/Client/global_extensions/service_options.pb.h b/src/server/proto/Client/global_extensions/service_options.pb.h index d026d3c1cfb..5a8a1f6a8a6 100644 --- a/src/server/proto/Client/global_extensions/service_options.pb.h +++ b/src/server/proto/Client/global_extensions/service_options.pb.h @@ -23,7 +23,7 @@ #include <google/protobuf/repeated_field.h> #include <google/protobuf/extension_set.h> #include "google/protobuf/descriptor.pb.h" -#include "Define.h" // for TRINITY_SHARED_API +#include "Define.h" // for TC_PROTO_API // @@protoc_insertion_point(includes) namespace bgs { diff --git a/src/server/proto/Client/invitation_types.pb.cc b/src/server/proto/Client/invitation_types.pb.cc index f166d4bd280..ba3ff70e8da 100644 --- a/src/server/proto/Client/invitation_types.pb.cc +++ b/src/server/proto/Client/invitation_types.pb.cc @@ -85,13 +85,12 @@ void protobuf_AssignDesc_invitation_5ftypes_2eproto() { ::google::protobuf::MessageFactory::generated_factory(), sizeof(Invitation)); InvitationSuggestion_descriptor_ = file->message_type(1); - static const int InvitationSuggestion_offsets_[6] = { + static const int InvitationSuggestion_offsets_[5] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InvitationSuggestion, channel_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InvitationSuggestion, suggester_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InvitationSuggestion, suggestee_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InvitationSuggestion, suggester_name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InvitationSuggestion, suggestee_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InvitationSuggestion, suggester_account_id_), }; InvitationSuggestion_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( @@ -158,7 +157,6 @@ void protobuf_AssignDesc_invitation_5ftypes_2eproto() { sizeof(SendInvitationRequest)); SendInvitationResponse_descriptor_ = file->message_type(5); static const int SendInvitationResponse_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendInvitationResponse, invitation_), }; SendInvitationResponse_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( @@ -276,38 +274,35 @@ void protobuf_AddDesc_invitation_5ftypes_2eproto() { "\0132\026.bgs.protocol.Identity\022\024\n\014inviter_nam" "e\030\004 \001(\t\022\024\n\014invitee_name\030\005 \001(\t\022\032\n\022invitat" "ion_message\030\006 \001(\t\022\025\n\rcreation_time\030\007 \001(\004" - "\022\027\n\017expiration_time\030\010 \001(\004*\005\010d\020\220N\"\204\002\n\024Inv" + "\022\027\n\017expiration_time\030\010 \001(\004*\005\010d\020\220N\"\316\001\n\024Inv" "itationSuggestion\022*\n\nchannel_id\030\001 \001(\0132\026." "bgs.protocol.EntityId\022,\n\014suggester_id\030\002 " "\002(\0132\026.bgs.protocol.EntityId\022,\n\014suggestee" "_id\030\003 \002(\0132\026.bgs.protocol.EntityId\022\026\n\016sug" "gester_name\030\004 \001(\t\022\026\n\016suggestee_name\030\005 \001(" - "\t\0224\n\024suggester_account_id\030\006 \001(\0132\026.bgs.pr" - "otocol.EntityId\"f\n\020InvitationTarget\022(\n\010i" - "dentity\030\001 \001(\0132\026.bgs.protocol.Identity\022\r\n" - "\005email\030\002 \001(\t\022\022\n\nbattle_tag\030\003 \001(\t*\005\010d\020\220N\"" - "Q\n\020InvitationParams\022\032\n\022invitation_messag" - "e\030\001 \001(\t\022\032\n\017expiration_time\030\002 \001(\004:\0010*\005\010d\020" - "\220N\"\205\002\n\025SendInvitationRequest\022.\n\016agent_id" - "entity\030\001 \001(\0132\026.bgs.protocol.Identity\022-\n\t" - "target_id\030\002 \002(\0132\026.bgs.protocol.EntityIdB" - "\002\030\001\022.\n\006params\030\003 \002(\0132\036.bgs.protocol.Invit" - "ationParams\022-\n\nagent_info\030\004 \001(\0132\031.bgs.pr" - "otocol.AccountInfo\022.\n\006target\030\005 \001(\0132\036.bgs" - ".protocol.InvitationTarget\"F\n\026SendInvita" - "tionResponse\022,\n\ninvitation\030\002 \001(\0132\030.bgs.p" - "rotocol.Invitation\"\220\001\n\027UpdateInvitationR" - "equest\022.\n\016agent_identity\030\001 \001(\0132\026.bgs.pro" - "tocol.Identity\022\025\n\rinvitation_id\030\002 \002(\006\022.\n" - "\006params\030\003 \002(\0132\036.bgs.protocol.InvitationP" - "arams\"\367\001\n\030GenericInvitationRequest\022(\n\010ag" - "ent_id\030\001 \001(\0132\026.bgs.protocol.EntityId\022)\n\t" - "target_id\030\002 \001(\0132\026.bgs.protocol.EntityId\022" - "\025\n\rinvitation_id\030\003 \002(\006\022\024\n\014invitee_name\030\004" - " \001(\t\022\024\n\014inviter_name\030\005 \001(\t\022\031\n\rprevious_r" - "ole\030\006 \003(\rB\002\020\001\022\030\n\014desired_role\030\007 \003(\rB\002\020\001\022" - "\016\n\006reason\030\010 \001(\rB\'\n\rbnet.protocolB\024Invita" - "tionTypesProtoH\001", 1536); + "\t\"f\n\020InvitationTarget\022(\n\010identity\030\001 \001(\0132" + "\026.bgs.protocol.Identity\022\r\n\005email\030\002 \001(\t\022\022" + "\n\nbattle_tag\030\003 \001(\t*\005\010d\020\220N\"Q\n\020InvitationP" + "arams\022\032\n\022invitation_message\030\001 \001(\t\022\032\n\017exp" + "iration_time\030\002 \001(\004:\0010*\005\010d\020\220N\"\205\002\n\025SendInv" + "itationRequest\022.\n\016agent_identity\030\001 \001(\0132\026" + ".bgs.protocol.Identity\022-\n\ttarget_id\030\002 \002(" + "\0132\026.bgs.protocol.EntityIdB\002\030\001\022.\n\006params\030" + "\003 \002(\0132\036.bgs.protocol.InvitationParams\022-\n" + "\nagent_info\030\004 \001(\0132\031.bgs.protocol.Account" + "Info\022.\n\006target\030\005 \001(\0132\036.bgs.protocol.Invi" + "tationTarget\"\030\n\026SendInvitationResponse\"\220" + "\001\n\027UpdateInvitationRequest\022.\n\016agent_iden" + "tity\030\001 \001(\0132\026.bgs.protocol.Identity\022\025\n\rin" + "vitation_id\030\002 \002(\006\022.\n\006params\030\003 \002(\0132\036.bgs." + "protocol.InvitationParams\"\367\001\n\030GenericInv" + "itationRequest\022(\n\010agent_id\030\001 \001(\0132\026.bgs.p" + "rotocol.EntityId\022)\n\ttarget_id\030\002 \001(\0132\026.bg" + "s.protocol.EntityId\022\025\n\rinvitation_id\030\003 \002" + "(\006\022\024\n\014invitee_name\030\004 \001(\t\022\024\n\014inviter_name" + "\030\005 \001(\t\022\031\n\rprevious_role\030\006 \003(\rB\002\020\001\022\030\n\014des" + "ired_role\030\007 \003(\rB\002\020\001\022\016\n\006reason\030\010 \001(\rB\'\n\rb" + "net.protocolB\024InvitationTypesProtoH\001", 1436); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "invitation_types.proto", &protobuf_RegisterTypes); Invitation::default_instance_ = new Invitation(); @@ -949,7 +944,6 @@ const int InvitationSuggestion::kSuggesterIdFieldNumber; const int InvitationSuggestion::kSuggesteeIdFieldNumber; const int InvitationSuggestion::kSuggesterNameFieldNumber; const int InvitationSuggestion::kSuggesteeNameFieldNumber; -const int InvitationSuggestion::kSuggesterAccountIdFieldNumber; #endif // !_MSC_VER InvitationSuggestion::InvitationSuggestion() @@ -962,7 +956,6 @@ void InvitationSuggestion::InitAsDefaultInstance() { channel_id_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); suggester_id_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); suggestee_id_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); - suggester_account_id_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); } InvitationSuggestion::InvitationSuggestion(const InvitationSuggestion& from) @@ -980,7 +973,6 @@ void InvitationSuggestion::SharedCtor() { suggestee_id_ = NULL; suggester_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); suggestee_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - suggester_account_id_ = NULL; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -1000,7 +992,6 @@ void InvitationSuggestion::SharedDtor() { delete channel_id_; delete suggester_id_; delete suggestee_id_; - delete suggester_account_id_; } } @@ -1026,7 +1017,7 @@ InvitationSuggestion* InvitationSuggestion::New() const { } void InvitationSuggestion::Clear() { - if (_has_bits_[0 / 32] & 63) { + if (_has_bits_[0 / 32] & 31) { if (has_channel_id()) { if (channel_id_ != NULL) channel_id_->::bgs::protocol::EntityId::Clear(); } @@ -1046,9 +1037,6 @@ void InvitationSuggestion::Clear() { suggestee_name_->clear(); } } - if (has_suggester_account_id()) { - if (suggester_account_id_ != NULL) suggester_account_id_->::bgs::protocol::EntityId::Clear(); - } } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); @@ -1132,19 +1120,6 @@ bool InvitationSuggestion::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(50)) goto parse_suggester_account_id; - break; - } - - // optional .bgs.protocol.EntityId suggester_account_id = 6; - case 6: { - if (tag == 50) { - parse_suggester_account_id: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_suggester_account_id())); - } else { - goto handle_unusual; - } if (input->ExpectAtEnd()) goto success; break; } @@ -1212,12 +1187,6 @@ void InvitationSuggestion::SerializeWithCachedSizes( 5, this->suggestee_name(), output); } - // optional .bgs.protocol.EntityId suggester_account_id = 6; - if (has_suggester_account_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->suggester_account_id(), output); - } - if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); @@ -1271,13 +1240,6 @@ void InvitationSuggestion::SerializeWithCachedSizes( 5, this->suggestee_name(), target); } - // optional .bgs.protocol.EntityId suggester_account_id = 6; - if (has_suggester_account_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->suggester_account_id(), target); - } - if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); @@ -1325,13 +1287,6 @@ int InvitationSuggestion::ByteSize() const { this->suggestee_name()); } - // optional .bgs.protocol.EntityId suggester_account_id = 6; - if (has_suggester_account_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->suggester_account_id()); - } - } if (!unknown_fields().empty()) { total_size += @@ -1374,9 +1329,6 @@ void InvitationSuggestion::MergeFrom(const InvitationSuggestion& from) { if (from.has_suggestee_name()) { set_suggestee_name(from.suggestee_name()); } - if (from.has_suggester_account_id()) { - mutable_suggester_account_id()->::bgs::protocol::EntityId::MergeFrom(from.suggester_account_id()); - } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } @@ -1405,9 +1357,6 @@ bool InvitationSuggestion::IsInitialized() const { if (has_suggestee_id()) { if (!this->suggestee_id().IsInitialized()) return false; } - if (has_suggester_account_id()) { - if (!this->suggester_account_id().IsInitialized()) return false; - } return true; } @@ -1418,7 +1367,6 @@ void InvitationSuggestion::Swap(InvitationSuggestion* other) { std::swap(suggestee_id_, other->suggestee_id_); std::swap(suggester_name_, other->suggester_name_); std::swap(suggestee_name_, other->suggestee_name_); - std::swap(suggester_account_id_, other->suggester_account_id_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); @@ -2531,7 +2479,6 @@ void SendInvitationRequest::Swap(SendInvitationRequest* other) { // =================================================================== #ifndef _MSC_VER -const int SendInvitationResponse::kInvitationFieldNumber; #endif // !_MSC_VER SendInvitationResponse::SendInvitationResponse() @@ -2541,7 +2488,6 @@ SendInvitationResponse::SendInvitationResponse() } void SendInvitationResponse::InitAsDefaultInstance() { - invitation_ = const_cast< ::bgs::protocol::Invitation*>(&::bgs::protocol::Invitation::default_instance()); } SendInvitationResponse::SendInvitationResponse(const SendInvitationResponse& from) @@ -2553,7 +2499,6 @@ SendInvitationResponse::SendInvitationResponse(const SendInvitationResponse& fro void SendInvitationResponse::SharedCtor() { _cached_size_ = 0; - invitation_ = NULL; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -2564,7 +2509,6 @@ SendInvitationResponse::~SendInvitationResponse() { void SendInvitationResponse::SharedDtor() { if (this != default_instance_) { - delete invitation_; } } @@ -2590,9 +2534,6 @@ SendInvitationResponse* SendInvitationResponse::New() const { } void SendInvitationResponse::Clear() { - if (has_invitation()) { - if (invitation_ != NULL) invitation_->::bgs::protocol::Invitation::Clear(); - } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } @@ -2606,31 +2547,14 @@ bool SendInvitationResponse::MergePartialFromCodedStream( ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .bgs.protocol.Invitation invitation = 2; - case 2: { - if (tag == 18) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_invitation())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); } success: // @@protoc_insertion_point(parse_success:bgs.protocol.SendInvitationResponse) @@ -2644,12 +2568,6 @@ failure: void SendInvitationResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:bgs.protocol.SendInvitationResponse) - // optional .bgs.protocol.Invitation invitation = 2; - if (has_invitation()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->invitation(), output); - } - if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); @@ -2660,13 +2578,6 @@ void SendInvitationResponse::SerializeWithCachedSizes( ::google::protobuf::uint8* SendInvitationResponse::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.SendInvitationResponse) - // optional .bgs.protocol.Invitation invitation = 2; - if (has_invitation()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->invitation(), target); - } - if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); @@ -2678,15 +2589,6 @@ void SendInvitationResponse::SerializeWithCachedSizes( int SendInvitationResponse::ByteSize() const { int total_size = 0; - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional .bgs.protocol.Invitation invitation = 2; - if (has_invitation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->invitation()); - } - - } if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( @@ -2712,11 +2614,6 @@ void SendInvitationResponse::MergeFrom(const ::google::protobuf::Message& from) void SendInvitationResponse::MergeFrom(const SendInvitationResponse& from) { GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_invitation()) { - mutable_invitation()->::bgs::protocol::Invitation::MergeFrom(from.invitation()); - } - } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } @@ -2734,16 +2631,11 @@ void SendInvitationResponse::CopyFrom(const SendInvitationResponse& from) { bool SendInvitationResponse::IsInitialized() const { - if (has_invitation()) { - if (!this->invitation().IsInitialized()) return false; - } return true; } void SendInvitationResponse::Swap(SendInvitationResponse* other) { if (other != this) { - std::swap(invitation_, other->invitation_); - std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } @@ -3114,6 +3006,8 @@ void GenericInvitationRequest::SharedCtor() { invitation_id_ = GOOGLE_ULONGLONG(0); invitee_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); inviter_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _previous_role_cached_byte_size_ = 0; + _desired_role_cached_byte_size_ = 0; reason_ = 0u; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } diff --git a/src/server/proto/Client/invitation_types.pb.h b/src/server/proto/Client/invitation_types.pb.h index 98dc13e1bbb..b24816549b0 100644 --- a/src/server/proto/Client/invitation_types.pb.h +++ b/src/server/proto/Client/invitation_types.pb.h @@ -322,15 +322,6 @@ class TC_PROTO_API InvitationSuggestion : public ::google::protobuf::Message { inline ::std::string* release_suggestee_name(); inline void set_allocated_suggestee_name(::std::string* suggestee_name); - // optional .bgs.protocol.EntityId suggester_account_id = 6; - inline bool has_suggester_account_id() const; - inline void clear_suggester_account_id(); - static const int kSuggesterAccountIdFieldNumber = 6; - inline const ::bgs::protocol::EntityId& suggester_account_id() const; - inline ::bgs::protocol::EntityId* mutable_suggester_account_id(); - inline ::bgs::protocol::EntityId* release_suggester_account_id(); - inline void set_allocated_suggester_account_id(::bgs::protocol::EntityId* suggester_account_id); - // @@protoc_insertion_point(class_scope:bgs.protocol.InvitationSuggestion) private: inline void set_has_channel_id(); @@ -343,8 +334,6 @@ class TC_PROTO_API InvitationSuggestion : public ::google::protobuf::Message { inline void clear_has_suggester_name(); inline void set_has_suggestee_name(); inline void clear_has_suggestee_name(); - inline void set_has_suggester_account_id(); - inline void clear_has_suggester_account_id(); ::google::protobuf::UnknownFieldSet _unknown_fields_; @@ -355,7 +344,6 @@ class TC_PROTO_API InvitationSuggestion : public ::google::protobuf::Message { ::bgs::protocol::EntityId* suggestee_id_; ::std::string* suggester_name_; ::std::string* suggestee_name_; - ::bgs::protocol::EntityId* suggester_account_id_; friend void TC_PROTO_API protobuf_AddDesc_invitation_5ftypes_2eproto(); friend void protobuf_AssignDesc_invitation_5ftypes_2eproto(); friend void protobuf_ShutdownFile_invitation_5ftypes_2eproto(); @@ -758,25 +746,13 @@ class TC_PROTO_API SendInvitationResponse : public ::google::protobuf::Message { // accessors ------------------------------------------------------- - // optional .bgs.protocol.Invitation invitation = 2; - inline bool has_invitation() const; - inline void clear_invitation(); - static const int kInvitationFieldNumber = 2; - inline const ::bgs::protocol::Invitation& invitation() const; - inline ::bgs::protocol::Invitation* mutable_invitation(); - inline ::bgs::protocol::Invitation* release_invitation(); - inline void set_allocated_invitation(::bgs::protocol::Invitation* invitation); - // @@protoc_insertion_point(class_scope:bgs.protocol.SendInvitationResponse) private: - inline void set_has_invitation(); - inline void clear_has_invitation(); ::google::protobuf::UnknownFieldSet _unknown_fields_; ::google::protobuf::uint32 _has_bits_[1]; mutable int _cached_size_; - ::bgs::protocol::Invitation* invitation_; friend void TC_PROTO_API protobuf_AddDesc_invitation_5ftypes_2eproto(); friend void protobuf_AssignDesc_invitation_5ftypes_2eproto(); friend void protobuf_ShutdownFile_invitation_5ftypes_2eproto(); @@ -1729,47 +1705,6 @@ inline void InvitationSuggestion::set_allocated_suggestee_name(::std::string* su // @@protoc_insertion_point(field_set_allocated:bgs.protocol.InvitationSuggestion.suggestee_name) } -// optional .bgs.protocol.EntityId suggester_account_id = 6; -inline bool InvitationSuggestion::has_suggester_account_id() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void InvitationSuggestion::set_has_suggester_account_id() { - _has_bits_[0] |= 0x00000020u; -} -inline void InvitationSuggestion::clear_has_suggester_account_id() { - _has_bits_[0] &= ~0x00000020u; -} -inline void InvitationSuggestion::clear_suggester_account_id() { - if (suggester_account_id_ != NULL) suggester_account_id_->::bgs::protocol::EntityId::Clear(); - clear_has_suggester_account_id(); -} -inline const ::bgs::protocol::EntityId& InvitationSuggestion::suggester_account_id() const { - // @@protoc_insertion_point(field_get:bgs.protocol.InvitationSuggestion.suggester_account_id) - return suggester_account_id_ != NULL ? *suggester_account_id_ : *default_instance_->suggester_account_id_; -} -inline ::bgs::protocol::EntityId* InvitationSuggestion::mutable_suggester_account_id() { - set_has_suggester_account_id(); - if (suggester_account_id_ == NULL) suggester_account_id_ = new ::bgs::protocol::EntityId; - // @@protoc_insertion_point(field_mutable:bgs.protocol.InvitationSuggestion.suggester_account_id) - return suggester_account_id_; -} -inline ::bgs::protocol::EntityId* InvitationSuggestion::release_suggester_account_id() { - clear_has_suggester_account_id(); - ::bgs::protocol::EntityId* temp = suggester_account_id_; - suggester_account_id_ = NULL; - return temp; -} -inline void InvitationSuggestion::set_allocated_suggester_account_id(::bgs::protocol::EntityId* suggester_account_id) { - delete suggester_account_id_; - suggester_account_id_ = suggester_account_id; - if (suggester_account_id) { - set_has_suggester_account_id(); - } else { - clear_has_suggester_account_id(); - } - // @@protoc_insertion_point(field_set_allocated:bgs.protocol.InvitationSuggestion.suggester_account_id) -} - // ------------------------------------------------------------------- // InvitationTarget @@ -2284,47 +2219,6 @@ inline void SendInvitationRequest::set_allocated_target(::bgs::protocol::Invitat // SendInvitationResponse -// optional .bgs.protocol.Invitation invitation = 2; -inline bool SendInvitationResponse::has_invitation() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void SendInvitationResponse::set_has_invitation() { - _has_bits_[0] |= 0x00000001u; -} -inline void SendInvitationResponse::clear_has_invitation() { - _has_bits_[0] &= ~0x00000001u; -} -inline void SendInvitationResponse::clear_invitation() { - if (invitation_ != NULL) invitation_->::bgs::protocol::Invitation::Clear(); - clear_has_invitation(); -} -inline const ::bgs::protocol::Invitation& SendInvitationResponse::invitation() const { - // @@protoc_insertion_point(field_get:bgs.protocol.SendInvitationResponse.invitation) - return invitation_ != NULL ? *invitation_ : *default_instance_->invitation_; -} -inline ::bgs::protocol::Invitation* SendInvitationResponse::mutable_invitation() { - set_has_invitation(); - if (invitation_ == NULL) invitation_ = new ::bgs::protocol::Invitation; - // @@protoc_insertion_point(field_mutable:bgs.protocol.SendInvitationResponse.invitation) - return invitation_; -} -inline ::bgs::protocol::Invitation* SendInvitationResponse::release_invitation() { - clear_has_invitation(); - ::bgs::protocol::Invitation* temp = invitation_; - invitation_ = NULL; - return temp; -} -inline void SendInvitationResponse::set_allocated_invitation(::bgs::protocol::Invitation* invitation) { - delete invitation_; - invitation_ = invitation; - if (invitation) { - set_has_invitation(); - } else { - clear_has_invitation(); - } - // @@protoc_insertion_point(field_set_allocated:bgs.protocol.SendInvitationResponse.invitation) -} - // ------------------------------------------------------------------- // UpdateInvitationRequest diff --git a/src/server/proto/Client/presence_service.pb.cc b/src/server/proto/Client/presence_service.pb.cc index 5642e97e115..14ee7fe2f4e 100644 --- a/src/server/proto/Client/presence_service.pb.cc +++ b/src/server/proto/Client/presence_service.pb.cc @@ -52,6 +52,12 @@ const ::google::protobuf::internal::GeneratedMessageReflection* const ::google::protobuf::Descriptor* OwnershipRequest_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* OwnershipRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* MigrateOlympusCustomMessageRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MigrateOlympusCustomMessageRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* MigrateOlympusCustomMessageResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MigrateOlympusCustomMessageResponse_reflection_ = NULL; const ::google::protobuf::ServiceDescriptor* PresenceService_descriptor_ = NULL; } // namespace @@ -180,6 +186,37 @@ void protobuf_AssignDesc_presence_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(OwnershipRequest)); + MigrateOlympusCustomMessageRequest_descriptor_ = file->message_type(7); + static const int MigrateOlympusCustomMessageRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MigrateOlympusCustomMessageRequest, account_), + }; + MigrateOlympusCustomMessageRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MigrateOlympusCustomMessageRequest_descriptor_, + MigrateOlympusCustomMessageRequest::default_instance_, + MigrateOlympusCustomMessageRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MigrateOlympusCustomMessageRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MigrateOlympusCustomMessageRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MigrateOlympusCustomMessageRequest)); + MigrateOlympusCustomMessageResponse_descriptor_ = file->message_type(8); + static const int MigrateOlympusCustomMessageResponse_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MigrateOlympusCustomMessageResponse, custom_message_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MigrateOlympusCustomMessageResponse, custom_message_time_epoch_), + }; + MigrateOlympusCustomMessageResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MigrateOlympusCustomMessageResponse_descriptor_, + MigrateOlympusCustomMessageResponse::default_instance_, + MigrateOlympusCustomMessageResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MigrateOlympusCustomMessageResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MigrateOlympusCustomMessageResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MigrateOlympusCustomMessageResponse)); PresenceService_descriptor_ = file->service(0); } @@ -207,6 +244,10 @@ void protobuf_RegisterTypes(const ::std::string&) { QueryResponse_descriptor_, &QueryResponse::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( OwnershipRequest_descriptor_, &OwnershipRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MigrateOlympusCustomMessageRequest_descriptor_, &MigrateOlympusCustomMessageRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MigrateOlympusCustomMessageResponse_descriptor_, &MigrateOlympusCustomMessageResponse::default_instance()); } } // namespace @@ -226,6 +267,10 @@ void protobuf_ShutdownFile_presence_5fservice_2eproto() { delete QueryResponse_reflection_; delete OwnershipRequest::default_instance_; delete OwnershipRequest_reflection_; + delete MigrateOlympusCustomMessageRequest::default_instance_; + delete MigrateOlympusCustomMessageRequest_reflection_; + delete MigrateOlympusCustomMessageResponse::default_instance_; + delete MigrateOlympusCustomMessageResponse_reflection_; } void protobuf_AddDesc_presence_5fservice_2eproto() { @@ -262,23 +307,31 @@ void protobuf_AddDesc_presence_5fservice_2eproto() { "esponse\022.\n\005field\030\002 \003(\0132\037.bgs.protocol.pr" "esence.v1.Field\"_\n\020OwnershipRequest\022)\n\te" "ntity_id\030\001 \002(\0132\026.bgs.protocol.EntityId\022 " - "\n\021release_ownership\030\002 \001(\010:\005false2\333\004\n\017Pre" - "senceService\022S\n\tSubscribe\022*.bgs.protocol" - ".presence.v1.SubscribeRequest\032\024.bgs.prot" - "ocol.NoData\"\004\200\265\030\001\022W\n\013Unsubscribe\022,.bgs.p" - "rotocol.presence.v1.UnsubscribeRequest\032\024" - ".bgs.protocol.NoData\"\004\200\265\030\002\022M\n\006Update\022\'.b" - "gs.protocol.presence.v1.UpdateRequest\032\024." - "bgs.protocol.NoData\"\004\200\265\030\003\022^\n\005Query\022&.bgs" - ".protocol.presence.v1.QueryRequest\032\'.bgs" - ".protocol.presence.v1.QueryResponse\"\004\200\265\030" - "\004\022S\n\tOwnership\022*.bgs.protocol.presence.v" - "1.OwnershipRequest\032\024.bgs.protocol.NoData" - "\"\004\200\265\030\005\022k\n\025SubscribeNotification\0226.bgs.pr" - "otocol.presence.v1.SubscribeNotification" - "Request\032\024.bgs.protocol.NoData\"\004\200\265\030\007\032)\312>&" - "bnet.protocol.presence.PresenceServiceB\005" - "H\001\200\001\000", 1605); + "\n\021release_ownership\030\002 \001(\010:\005false\"M\n\"Migr" + "ateOlympusCustomMessageRequest\022\'\n\007accoun" + "t\030\001 \002(\0132\026.bgs.protocol.EntityId\"`\n#Migra" + "teOlympusCustomMessageResponse\022\026\n\016custom" + "_message\030\001 \001(\t\022!\n\031custom_message_time_ep" + "och\030\002 \001(\r2\376\005\n\017PresenceService\022S\n\tSubscri" + "be\022*.bgs.protocol.presence.v1.SubscribeR" + "equest\032\024.bgs.protocol.NoData\"\004\200\265\030\001\022W\n\013Un" + "subscribe\022,.bgs.protocol.presence.v1.Uns" + "ubscribeRequest\032\024.bgs.protocol.NoData\"\004\200" + "\265\030\002\022M\n\006Update\022\'.bgs.protocol.presence.v1" + ".UpdateRequest\032\024.bgs.protocol.NoData\"\004\200\265" + "\030\003\022^\n\005Query\022&.bgs.protocol.presence.v1.Q" + "ueryRequest\032\'.bgs.protocol.presence.v1.Q" + "ueryResponse\"\004\200\265\030\004\022S\n\tOwnership\022*.bgs.pr" + "otocol.presence.v1.OwnershipRequest\032\024.bg" + "s.protocol.NoData\"\004\200\265\030\005\022k\n\025SubscribeNoti" + "fication\0226.bgs.protocol.presence.v1.Subs" + "cribeNotificationRequest\032\024.bgs.protocol." + "NoData\"\004\200\265\030\007\022\240\001\n\033MigrateOlympusCustomMes" + "sage\022<.bgs.protocol.presence.v1.MigrateO" + "lympusCustomMessageRequest\032=.bgs.protoco" + "l.presence.v1.MigrateOlympusCustomMessag" + "eResponse\"\004\200\265\030\010\032)\312>&bnet.protocol.presen" + "ce.PresenceServiceB\005H\001\200\001\000", 1945); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "presence_service.proto", &protobuf_RegisterTypes); SubscribeRequest::default_instance_ = new SubscribeRequest(); @@ -288,6 +341,8 @@ void protobuf_AddDesc_presence_5fservice_2eproto() { QueryRequest::default_instance_ = new QueryRequest(); QueryResponse::default_instance_ = new QueryResponse(); OwnershipRequest::default_instance_ = new OwnershipRequest(); + MigrateOlympusCustomMessageRequest::default_instance_ = new MigrateOlympusCustomMessageRequest(); + MigrateOlympusCustomMessageResponse::default_instance_ = new MigrateOlympusCustomMessageResponse(); SubscribeRequest::default_instance_->InitAsDefaultInstance(); SubscribeNotificationRequest::default_instance_->InitAsDefaultInstance(); UnsubscribeRequest::default_instance_->InitAsDefaultInstance(); @@ -295,6 +350,8 @@ void protobuf_AddDesc_presence_5fservice_2eproto() { QueryRequest::default_instance_->InitAsDefaultInstance(); QueryResponse::default_instance_->InitAsDefaultInstance(); OwnershipRequest::default_instance_->InitAsDefaultInstance(); + MigrateOlympusCustomMessageRequest::default_instance_->InitAsDefaultInstance(); + MigrateOlympusCustomMessageResponse::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_presence_5fservice_2eproto); } @@ -2422,6 +2479,521 @@ void OwnershipRequest::Swap(OwnershipRequest* other) { // =================================================================== +#ifndef _MSC_VER +const int MigrateOlympusCustomMessageRequest::kAccountFieldNumber; +#endif // !_MSC_VER + +MigrateOlympusCustomMessageRequest::MigrateOlympusCustomMessageRequest() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.presence.v1.MigrateOlympusCustomMessageRequest) +} + +void MigrateOlympusCustomMessageRequest::InitAsDefaultInstance() { + account_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); +} + +MigrateOlympusCustomMessageRequest::MigrateOlympusCustomMessageRequest(const MigrateOlympusCustomMessageRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.presence.v1.MigrateOlympusCustomMessageRequest) +} + +void MigrateOlympusCustomMessageRequest::SharedCtor() { + _cached_size_ = 0; + account_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MigrateOlympusCustomMessageRequest::~MigrateOlympusCustomMessageRequest() { + // @@protoc_insertion_point(destructor:bgs.protocol.presence.v1.MigrateOlympusCustomMessageRequest) + SharedDtor(); +} + +void MigrateOlympusCustomMessageRequest::SharedDtor() { + if (this != default_instance_) { + delete account_; + } +} + +void MigrateOlympusCustomMessageRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MigrateOlympusCustomMessageRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MigrateOlympusCustomMessageRequest_descriptor_; +} + +const MigrateOlympusCustomMessageRequest& MigrateOlympusCustomMessageRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_presence_5fservice_2eproto(); + return *default_instance_; +} + +MigrateOlympusCustomMessageRequest* MigrateOlympusCustomMessageRequest::default_instance_ = NULL; + +MigrateOlympusCustomMessageRequest* MigrateOlympusCustomMessageRequest::New() const { + return new MigrateOlympusCustomMessageRequest; +} + +void MigrateOlympusCustomMessageRequest::Clear() { + if (has_account()) { + if (account_ != NULL) account_->::bgs::protocol::EntityId::Clear(); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MigrateOlympusCustomMessageRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.presence.v1.MigrateOlympusCustomMessageRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .bgs.protocol.EntityId account = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_account())); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.presence.v1.MigrateOlympusCustomMessageRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.presence.v1.MigrateOlympusCustomMessageRequest) + return false; +#undef DO_ +} + +void MigrateOlympusCustomMessageRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.presence.v1.MigrateOlympusCustomMessageRequest) + // required .bgs.protocol.EntityId account = 1; + if (has_account()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->account(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.presence.v1.MigrateOlympusCustomMessageRequest) +} + +::google::protobuf::uint8* MigrateOlympusCustomMessageRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.presence.v1.MigrateOlympusCustomMessageRequest) + // required .bgs.protocol.EntityId account = 1; + if (has_account()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->account(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.presence.v1.MigrateOlympusCustomMessageRequest) + return target; +} + +int MigrateOlympusCustomMessageRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .bgs.protocol.EntityId account = 1; + if (has_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->account()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MigrateOlympusCustomMessageRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MigrateOlympusCustomMessageRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available<const MigrateOlympusCustomMessageRequest*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MigrateOlympusCustomMessageRequest::MergeFrom(const MigrateOlympusCustomMessageRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_account()) { + mutable_account()->::bgs::protocol::EntityId::MergeFrom(from.account()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MigrateOlympusCustomMessageRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MigrateOlympusCustomMessageRequest::CopyFrom(const MigrateOlympusCustomMessageRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MigrateOlympusCustomMessageRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_account()) { + if (!this->account().IsInitialized()) return false; + } + return true; +} + +void MigrateOlympusCustomMessageRequest::Swap(MigrateOlympusCustomMessageRequest* other) { + if (other != this) { + std::swap(account_, other->account_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MigrateOlympusCustomMessageRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MigrateOlympusCustomMessageRequest_descriptor_; + metadata.reflection = MigrateOlympusCustomMessageRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int MigrateOlympusCustomMessageResponse::kCustomMessageFieldNumber; +const int MigrateOlympusCustomMessageResponse::kCustomMessageTimeEpochFieldNumber; +#endif // !_MSC_VER + +MigrateOlympusCustomMessageResponse::MigrateOlympusCustomMessageResponse() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse) +} + +void MigrateOlympusCustomMessageResponse::InitAsDefaultInstance() { +} + +MigrateOlympusCustomMessageResponse::MigrateOlympusCustomMessageResponse(const MigrateOlympusCustomMessageResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse) +} + +void MigrateOlympusCustomMessageResponse::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + custom_message_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + custom_message_time_epoch_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MigrateOlympusCustomMessageResponse::~MigrateOlympusCustomMessageResponse() { + // @@protoc_insertion_point(destructor:bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse) + SharedDtor(); +} + +void MigrateOlympusCustomMessageResponse::SharedDtor() { + if (custom_message_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete custom_message_; + } + if (this != default_instance_) { + } +} + +void MigrateOlympusCustomMessageResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MigrateOlympusCustomMessageResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MigrateOlympusCustomMessageResponse_descriptor_; +} + +const MigrateOlympusCustomMessageResponse& MigrateOlympusCustomMessageResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_presence_5fservice_2eproto(); + return *default_instance_; +} + +MigrateOlympusCustomMessageResponse* MigrateOlympusCustomMessageResponse::default_instance_ = NULL; + +MigrateOlympusCustomMessageResponse* MigrateOlympusCustomMessageResponse::New() const { + return new MigrateOlympusCustomMessageResponse; +} + +void MigrateOlympusCustomMessageResponse::Clear() { + if (_has_bits_[0 / 32] & 3) { + if (has_custom_message()) { + if (custom_message_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + custom_message_->clear(); + } + } + custom_message_time_epoch_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MigrateOlympusCustomMessageResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string custom_message = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_custom_message())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->custom_message().data(), this->custom_message().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "custom_message"); + } else { + goto handle_unusual; + } + if (input->ExpectTag(16)) goto parse_custom_message_time_epoch; + break; + } + + // optional uint32 custom_message_time_epoch = 2; + case 2: { + if (tag == 16) { + parse_custom_message_time_epoch: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &custom_message_time_epoch_))); + set_has_custom_message_time_epoch(); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse) + return false; +#undef DO_ +} + +void MigrateOlympusCustomMessageResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse) + // optional string custom_message = 1; + if (has_custom_message()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->custom_message().data(), this->custom_message().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "custom_message"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->custom_message(), output); + } + + // optional uint32 custom_message_time_epoch = 2; + if (has_custom_message_time_epoch()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->custom_message_time_epoch(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse) +} + +::google::protobuf::uint8* MigrateOlympusCustomMessageResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse) + // optional string custom_message = 1; + if (has_custom_message()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->custom_message().data(), this->custom_message().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "custom_message"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->custom_message(), target); + } + + // optional uint32 custom_message_time_epoch = 2; + if (has_custom_message_time_epoch()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->custom_message_time_epoch(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse) + return target; +} + +int MigrateOlympusCustomMessageResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional string custom_message = 1; + if (has_custom_message()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->custom_message()); + } + + // optional uint32 custom_message_time_epoch = 2; + if (has_custom_message_time_epoch()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->custom_message_time_epoch()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MigrateOlympusCustomMessageResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MigrateOlympusCustomMessageResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available<const MigrateOlympusCustomMessageResponse*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MigrateOlympusCustomMessageResponse::MergeFrom(const MigrateOlympusCustomMessageResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_custom_message()) { + set_custom_message(from.custom_message()); + } + if (from.has_custom_message_time_epoch()) { + set_custom_message_time_epoch(from.custom_message_time_epoch()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MigrateOlympusCustomMessageResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MigrateOlympusCustomMessageResponse::CopyFrom(const MigrateOlympusCustomMessageResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MigrateOlympusCustomMessageResponse::IsInitialized() const { + + return true; +} + +void MigrateOlympusCustomMessageResponse::Swap(MigrateOlympusCustomMessageResponse* other) { + if (other != this) { + std::swap(custom_message_, other->custom_message_); + std::swap(custom_message_time_epoch_, other->custom_message_time_epoch_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MigrateOlympusCustomMessageResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MigrateOlympusCustomMessageResponse_descriptor_; + metadata.reflection = MigrateOlympusCustomMessageResponse_reflection_; + return metadata; +} + + +// =================================================================== + PresenceService::PresenceService(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) { } @@ -2499,6 +3071,17 @@ void PresenceService::SubscribeNotification(::bgs::protocol::presence::v1::Subsc SendRequest(service_hash_, 7, request, std::move(callback)); } +void PresenceService::MigrateOlympusCustomMessage(::bgs::protocol::presence::v1::MigrateOlympusCustomMessageRequest const* request, std::function<void(::bgs::protocol::presence::v1::MigrateOlympusCustomMessageResponse const*)> responseCallback) { + TC_LOG_DEBUG("service.protobuf", "%s Server called client method PresenceService.MigrateOlympusCustomMessage(bgs.protocol.presence.v1.MigrateOlympusCustomMessageRequest{ %s })", + GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + std::function<void(MessageBuffer)> callback = [responseCallback](MessageBuffer buffer) -> void { + ::bgs::protocol::presence::v1::MigrateOlympusCustomMessageResponse response; + if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) + responseCallback(&response); + }; + SendRequest(service_hash_, 8, request, std::move(callback)); +} + void PresenceService::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) { switch(methodId) { case 1: { @@ -2609,6 +3192,24 @@ void PresenceService::CallServerMethod(uint32 token, uint32 methodId, MessageBuf SendResponse(service_hash_, 7, token, status); break; } + case 8: { + ::bgs::protocol::presence::v1::MigrateOlympusCustomMessageRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for PresenceService.MigrateOlympusCustomMessage server method call.", GetCallerInfo().c_str()); + SendResponse(service_hash_, 8, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + + ::bgs::protocol::presence::v1::MigrateOlympusCustomMessageResponse response; + uint32 status = HandleMigrateOlympusCustomMessage(&request, &response); + TC_LOG_DEBUG("service.protobuf", "%s Client called server method PresenceService.MigrateOlympusCustomMessage(bgs.protocol.presence.v1.MigrateOlympusCustomMessageRequest{ %s }) returned bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse{ %s } status %u.", + GetCallerInfo().c_str(), request.ShortDebugString().c_str(), response.ShortDebugString().c_str(), status); + if (!status) + SendResponse(service_hash_, 8, token, &response); + else + SendResponse(service_hash_, 8, token, status); + break; + } default: TC_LOG_ERROR("service.protobuf", "Bad method id %u.", methodId); SendResponse(service_hash_, methodId, token, ERROR_RPC_INVALID_METHOD); @@ -2652,6 +3253,12 @@ uint32 PresenceService::HandleSubscribeNotification(::bgs::protocol::presence::v return ERROR_RPC_NOT_IMPLEMENTED; } +uint32 PresenceService::HandleMigrateOlympusCustomMessage(::bgs::protocol::presence::v1::MigrateOlympusCustomMessageRequest const* request, ::bgs::protocol::presence::v1::MigrateOlympusCustomMessageResponse* response) { + TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method PresenceService.MigrateOlympusCustomMessage({ %s })", + GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + return ERROR_RPC_NOT_IMPLEMENTED; +} + // @@protoc_insertion_point(namespace_scope) diff --git a/src/server/proto/Client/presence_service.pb.h b/src/server/proto/Client/presence_service.pb.h index a29caef0f2e..af264f58b08 100644 --- a/src/server/proto/Client/presence_service.pb.h +++ b/src/server/proto/Client/presence_service.pb.h @@ -50,6 +50,8 @@ class UpdateRequest; class QueryRequest; class QueryResponse; class OwnershipRequest; +class MigrateOlympusCustomMessageRequest; +class MigrateOlympusCustomMessageResponse; // =================================================================== @@ -756,6 +758,181 @@ class TC_PROTO_API OwnershipRequest : public ::google::protobuf::Message { void InitAsDefaultInstance(); static OwnershipRequest* default_instance_; }; +// ------------------------------------------------------------------- + +class TC_PROTO_API MigrateOlympusCustomMessageRequest : public ::google::protobuf::Message { + public: + MigrateOlympusCustomMessageRequest(); + virtual ~MigrateOlympusCustomMessageRequest(); + + MigrateOlympusCustomMessageRequest(const MigrateOlympusCustomMessageRequest& from); + + inline MigrateOlympusCustomMessageRequest& operator=(const MigrateOlympusCustomMessageRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MigrateOlympusCustomMessageRequest& default_instance(); + + void Swap(MigrateOlympusCustomMessageRequest* other); + + // implements Message ---------------------------------------------- + + MigrateOlympusCustomMessageRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MigrateOlympusCustomMessageRequest& from); + void MergeFrom(const MigrateOlympusCustomMessageRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .bgs.protocol.EntityId account = 1; + inline bool has_account() const; + inline void clear_account(); + static const int kAccountFieldNumber = 1; + inline const ::bgs::protocol::EntityId& account() const; + inline ::bgs::protocol::EntityId* mutable_account(); + inline ::bgs::protocol::EntityId* release_account(); + inline void set_allocated_account(::bgs::protocol::EntityId* account); + + // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v1.MigrateOlympusCustomMessageRequest) + private: + inline void set_has_account(); + inline void clear_has_account(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::EntityId* account_; + friend void TC_PROTO_API protobuf_AddDesc_presence_5fservice_2eproto(); + friend void protobuf_AssignDesc_presence_5fservice_2eproto(); + friend void protobuf_ShutdownFile_presence_5fservice_2eproto(); + + void InitAsDefaultInstance(); + static MigrateOlympusCustomMessageRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API MigrateOlympusCustomMessageResponse : public ::google::protobuf::Message { + public: + MigrateOlympusCustomMessageResponse(); + virtual ~MigrateOlympusCustomMessageResponse(); + + MigrateOlympusCustomMessageResponse(const MigrateOlympusCustomMessageResponse& from); + + inline MigrateOlympusCustomMessageResponse& operator=(const MigrateOlympusCustomMessageResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MigrateOlympusCustomMessageResponse& default_instance(); + + void Swap(MigrateOlympusCustomMessageResponse* other); + + // implements Message ---------------------------------------------- + + MigrateOlympusCustomMessageResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MigrateOlympusCustomMessageResponse& from); + void MergeFrom(const MigrateOlympusCustomMessageResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string custom_message = 1; + inline bool has_custom_message() const; + inline void clear_custom_message(); + static const int kCustomMessageFieldNumber = 1; + inline const ::std::string& custom_message() const; + inline void set_custom_message(const ::std::string& value); + inline void set_custom_message(const char* value); + inline void set_custom_message(const char* value, size_t size); + inline ::std::string* mutable_custom_message(); + inline ::std::string* release_custom_message(); + inline void set_allocated_custom_message(::std::string* custom_message); + + // optional uint32 custom_message_time_epoch = 2; + inline bool has_custom_message_time_epoch() const; + inline void clear_custom_message_time_epoch(); + static const int kCustomMessageTimeEpochFieldNumber = 2; + inline ::google::protobuf::uint32 custom_message_time_epoch() const; + inline void set_custom_message_time_epoch(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse) + private: + inline void set_has_custom_message(); + inline void clear_has_custom_message(); + inline void set_has_custom_message_time_epoch(); + inline void clear_has_custom_message_time_epoch(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::std::string* custom_message_; + ::google::protobuf::uint32 custom_message_time_epoch_; + friend void TC_PROTO_API protobuf_AddDesc_presence_5fservice_2eproto(); + friend void protobuf_AssignDesc_presence_5fservice_2eproto(); + friend void protobuf_ShutdownFile_presence_5fservice_2eproto(); + + void InitAsDefaultInstance(); + static MigrateOlympusCustomMessageResponse* default_instance_; +}; // =================================================================== class TC_PROTO_API PresenceService : public ServiceBase @@ -778,6 +955,7 @@ class TC_PROTO_API PresenceService : public ServiceBase void Query(::bgs::protocol::presence::v1::QueryRequest const* request, std::function<void(::bgs::protocol::presence::v1::QueryResponse const*)> responseCallback); void Ownership(::bgs::protocol::presence::v1::OwnershipRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback); void SubscribeNotification(::bgs::protocol::presence::v1::SubscribeNotificationRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback); + void MigrateOlympusCustomMessage(::bgs::protocol::presence::v1::MigrateOlympusCustomMessageRequest const* request, std::function<void(::bgs::protocol::presence::v1::MigrateOlympusCustomMessageResponse const*)> responseCallback); // server methods -------------------------------------------------- void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) override final; @@ -789,6 +967,7 @@ class TC_PROTO_API PresenceService : public ServiceBase virtual uint32 HandleQuery(::bgs::protocol::presence::v1::QueryRequest const* request, ::bgs::protocol::presence::v1::QueryResponse* response); virtual uint32 HandleOwnership(::bgs::protocol::presence::v1::OwnershipRequest const* request, ::bgs::protocol::NoData* response); virtual uint32 HandleSubscribeNotification(::bgs::protocol::presence::v1::SubscribeNotificationRequest const* request, ::bgs::protocol::NoData* response); + virtual uint32 HandleMigrateOlympusCustomMessage(::bgs::protocol::presence::v1::MigrateOlympusCustomMessageRequest const* request, ::bgs::protocol::presence::v1::MigrateOlympusCustomMessageResponse* response); private: uint32 service_hash_; @@ -1477,6 +1656,155 @@ inline void OwnershipRequest::set_release_ownership(bool value) { // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.OwnershipRequest.release_ownership) } +// ------------------------------------------------------------------- + +// MigrateOlympusCustomMessageRequest + +// required .bgs.protocol.EntityId account = 1; +inline bool MigrateOlympusCustomMessageRequest::has_account() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MigrateOlympusCustomMessageRequest::set_has_account() { + _has_bits_[0] |= 0x00000001u; +} +inline void MigrateOlympusCustomMessageRequest::clear_has_account() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MigrateOlympusCustomMessageRequest::clear_account() { + if (account_ != NULL) account_->::bgs::protocol::EntityId::Clear(); + clear_has_account(); +} +inline const ::bgs::protocol::EntityId& MigrateOlympusCustomMessageRequest::account() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.MigrateOlympusCustomMessageRequest.account) + return account_ != NULL ? *account_ : *default_instance_->account_; +} +inline ::bgs::protocol::EntityId* MigrateOlympusCustomMessageRequest::mutable_account() { + set_has_account(); + if (account_ == NULL) account_ = new ::bgs::protocol::EntityId; + // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v1.MigrateOlympusCustomMessageRequest.account) + return account_; +} +inline ::bgs::protocol::EntityId* MigrateOlympusCustomMessageRequest::release_account() { + clear_has_account(); + ::bgs::protocol::EntityId* temp = account_; + account_ = NULL; + return temp; +} +inline void MigrateOlympusCustomMessageRequest::set_allocated_account(::bgs::protocol::EntityId* account) { + delete account_; + account_ = account; + if (account) { + set_has_account(); + } else { + clear_has_account(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v1.MigrateOlympusCustomMessageRequest.account) +} + +// ------------------------------------------------------------------- + +// MigrateOlympusCustomMessageResponse + +// optional string custom_message = 1; +inline bool MigrateOlympusCustomMessageResponse::has_custom_message() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MigrateOlympusCustomMessageResponse::set_has_custom_message() { + _has_bits_[0] |= 0x00000001u; +} +inline void MigrateOlympusCustomMessageResponse::clear_has_custom_message() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MigrateOlympusCustomMessageResponse::clear_custom_message() { + if (custom_message_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + custom_message_->clear(); + } + clear_has_custom_message(); +} +inline const ::std::string& MigrateOlympusCustomMessageResponse::custom_message() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse.custom_message) + return *custom_message_; +} +inline void MigrateOlympusCustomMessageResponse::set_custom_message(const ::std::string& value) { + set_has_custom_message(); + if (custom_message_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + custom_message_ = new ::std::string; + } + custom_message_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse.custom_message) +} +inline void MigrateOlympusCustomMessageResponse::set_custom_message(const char* value) { + set_has_custom_message(); + if (custom_message_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + custom_message_ = new ::std::string; + } + custom_message_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse.custom_message) +} +inline void MigrateOlympusCustomMessageResponse::set_custom_message(const char* value, size_t size) { + set_has_custom_message(); + if (custom_message_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + custom_message_ = new ::std::string; + } + custom_message_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse.custom_message) +} +inline ::std::string* MigrateOlympusCustomMessageResponse::mutable_custom_message() { + set_has_custom_message(); + if (custom_message_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + custom_message_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse.custom_message) + return custom_message_; +} +inline ::std::string* MigrateOlympusCustomMessageResponse::release_custom_message() { + clear_has_custom_message(); + if (custom_message_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = custom_message_; + custom_message_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void MigrateOlympusCustomMessageResponse::set_allocated_custom_message(::std::string* custom_message) { + if (custom_message_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete custom_message_; + } + if (custom_message) { + set_has_custom_message(); + custom_message_ = custom_message; + } else { + clear_has_custom_message(); + custom_message_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse.custom_message) +} + +// optional uint32 custom_message_time_epoch = 2; +inline bool MigrateOlympusCustomMessageResponse::has_custom_message_time_epoch() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MigrateOlympusCustomMessageResponse::set_has_custom_message_time_epoch() { + _has_bits_[0] |= 0x00000002u; +} +inline void MigrateOlympusCustomMessageResponse::clear_has_custom_message_time_epoch() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MigrateOlympusCustomMessageResponse::clear_custom_message_time_epoch() { + custom_message_time_epoch_ = 0u; + clear_has_custom_message_time_epoch(); +} +inline ::google::protobuf::uint32 MigrateOlympusCustomMessageResponse::custom_message_time_epoch() const { + // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse.custom_message_time_epoch) + return custom_message_time_epoch_; +} +inline void MigrateOlympusCustomMessageResponse::set_custom_message_time_epoch(::google::protobuf::uint32 value) { + set_has_custom_message_time_epoch(); + custom_message_time_epoch_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.MigrateOlympusCustomMessageResponse.custom_message_time_epoch) +} + // @@protoc_insertion_point(namespace_scope) diff --git a/src/server/proto/Client/report_service.pb.cc b/src/server/proto/Client/report_service.pb.cc index 209339f4be0..21d4e8733bb 100644 --- a/src/server/proto/Client/report_service.pb.cc +++ b/src/server/proto/Client/report_service.pb.cc @@ -31,12 +31,12 @@ namespace v1 { namespace { -const ::google::protobuf::Descriptor* Report_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - Report_reflection_ = NULL; const ::google::protobuf::Descriptor* SendReportRequest_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* SendReportRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* SubmitReportRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SubmitReportRequest_reflection_ = NULL; const ::google::protobuf::ServiceDescriptor* ReportService_descriptor_ = NULL; } // namespace @@ -48,27 +48,7 @@ void protobuf_AssignDesc_report_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( "report_service.proto"); GOOGLE_CHECK(file != NULL); - Report_descriptor_ = file->message_type(0); - static const int Report_offsets_[6] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Report, report_type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Report, attribute_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Report, report_qos_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Report, reporting_account_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Report, reporting_game_account_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Report, report_timestamp_), - }; - Report_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - Report_descriptor_, - Report::default_instance_, - Report_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Report, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Report, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(Report)); - SendReportRequest_descriptor_ = file->message_type(1); + SendReportRequest_descriptor_ = file->message_type(0); static const int SendReportRequest_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendReportRequest, report_), }; @@ -83,6 +63,22 @@ void protobuf_AssignDesc_report_5fservice_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(SendReportRequest)); + SubmitReportRequest_descriptor_ = file->message_type(1); + static const int SubmitReportRequest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubmitReportRequest, agent_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubmitReportRequest, report_type_), + }; + SubmitReportRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SubmitReportRequest_descriptor_, + SubmitReportRequest::default_instance_, + SubmitReportRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubmitReportRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubmitReportRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SubmitReportRequest)); ReportService_descriptor_ = file->service(0); } @@ -97,18 +93,18 @@ inline void protobuf_AssignDescriptorsOnce() { void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Report_descriptor_, &Report::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( SendReportRequest_descriptor_, &SendReportRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SubmitReportRequest_descriptor_, &SubmitReportRequest::default_instance()); } } // namespace void protobuf_ShutdownFile_report_5fservice_2eproto() { - delete Report::default_instance_; - delete Report_reflection_; delete SendReportRequest::default_instance_; delete SendReportRequest_reflection_; + delete SubmitReportRequest::default_instance_; + delete SubmitReportRequest_reflection_; } void protobuf_AddDesc_report_5fservice_2eproto() { @@ -117,30 +113,30 @@ void protobuf_AddDesc_report_5fservice_2eproto() { already_here = true; GOOGLE_PROTOBUF_VERIFY_VERSION; - ::bgs::protocol::protobuf_AddDesc_attribute_5ftypes_2eproto(); - ::bgs::protocol::protobuf_AddDesc_entity_5ftypes_2eproto(); + ::bgs::protocol::account::v1::protobuf_AddDesc_account_5ftypes_2eproto(); + ::bgs::protocol::report::v1::protobuf_AddDesc_report_5ftypes_2eproto(); ::bgs::protocol::protobuf_AddDesc_rpc_5ftypes_2eproto(); ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( "\n\024report_service.proto\022\026bgs.protocol.rep" - "ort.v1\032\025attribute_types.proto\032\022entity_ty" - "pes.proto\032\017rpc_types.proto\"\345\001\n\006Report\022\023\n" - "\013report_type\030\001 \002(\t\022*\n\tattribute\030\002 \003(\0132\027." - "bgs.protocol.Attribute\022\025\n\nreport_qos\030\003 \001" - "(\005:\0010\0221\n\021reporting_account\030\004 \001(\0132\026.bgs.p" - "rotocol.EntityId\0226\n\026reporting_game_accou" - "nt\030\005 \001(\0132\026.bgs.protocol.EntityId\022\030\n\020repo" - "rt_timestamp\030\006 \001(\006\"C\n\021SendReportRequest\022" - ".\n\006report\030\001 \002(\0132\036.bgs.protocol.report.v1" - ".Report2\213\001\n\rReportService\022S\n\nSendReport\022" - ").bgs.protocol.report.v1.SendReportReque" - "st\032\024.bgs.protocol.NoData\"\004\200\265\030\001\032%\312>\"bnet." - "protocol.report.ReportServiceB\005H\001\200\001\000", 556); + "ort.v1\032\023account_types.proto\032\022report_type" + "s.proto\032\017rpc_types.proto\"C\n\021SendReportRe" + "quest\022.\n\006report\030\001 \002(\0132\036.bgs.protocol.rep" + "ort.v1.Report\"\214\001\n\023SubmitReportRequest\022<\n" + "\010agent_id\030\001 \001(\0132*.bgs.protocol.account.v" + "1.GameAccountHandle\0227\n\013report_type\030\002 \001(\013" + "2\".bgs.protocol.report.v1.ReportType2\344\001\n" + "\rReportService\022S\n\nSendReport\022).bgs.proto" + "col.report.v1.SendReportRequest\032\024.bgs.pr" + "otocol.NoData\"\004\200\265\030\001\022W\n\014SubmitReport\022+.bg" + "s.protocol.report.v1.SubmitReportRequest" + "\032\024.bgs.protocol.NoData\"\004\200\265\030\002\032%\312>\"bnet.pr" + "otocol.report.ReportServiceB\005H\001\200\001\000", 554); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "report_service.proto", &protobuf_RegisterTypes); - Report::default_instance_ = new Report(); SendReportRequest::default_instance_ = new SendReportRequest(); - Report::default_instance_->InitAsDefaultInstance(); + SubmitReportRequest::default_instance_ = new SubmitReportRequest(); SendReportRequest::default_instance_->InitAsDefaultInstance(); + SubmitReportRequest::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_report_5fservice_2eproto); } @@ -154,202 +150,87 @@ struct StaticDescriptorInitializer_report_5fservice_2eproto { // =================================================================== #ifndef _MSC_VER -const int Report::kReportTypeFieldNumber; -const int Report::kAttributeFieldNumber; -const int Report::kReportQosFieldNumber; -const int Report::kReportingAccountFieldNumber; -const int Report::kReportingGameAccountFieldNumber; -const int Report::kReportTimestampFieldNumber; +const int SendReportRequest::kReportFieldNumber; #endif // !_MSC_VER -Report::Report() +SendReportRequest::SendReportRequest() : ::google::protobuf::Message() { SharedCtor(); - // @@protoc_insertion_point(constructor:bgs.protocol.report.v1.Report) + // @@protoc_insertion_point(constructor:bgs.protocol.report.v1.SendReportRequest) } -void Report::InitAsDefaultInstance() { - reporting_account_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); - reporting_game_account_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); +void SendReportRequest::InitAsDefaultInstance() { + report_ = const_cast< ::bgs::protocol::report::v1::Report*>(&::bgs::protocol::report::v1::Report::default_instance()); } -Report::Report(const Report& from) +SendReportRequest::SendReportRequest(const SendReportRequest& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:bgs.protocol.report.v1.Report) + // @@protoc_insertion_point(copy_constructor:bgs.protocol.report.v1.SendReportRequest) } -void Report::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); +void SendReportRequest::SharedCtor() { _cached_size_ = 0; - report_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - report_qos_ = 0; - reporting_account_ = NULL; - reporting_game_account_ = NULL; - report_timestamp_ = GOOGLE_ULONGLONG(0); + report_ = NULL; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -Report::~Report() { - // @@protoc_insertion_point(destructor:bgs.protocol.report.v1.Report) +SendReportRequest::~SendReportRequest() { + // @@protoc_insertion_point(destructor:bgs.protocol.report.v1.SendReportRequest) SharedDtor(); } -void Report::SharedDtor() { - if (report_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete report_type_; - } +void SendReportRequest::SharedDtor() { if (this != default_instance_) { - delete reporting_account_; - delete reporting_game_account_; + delete report_; } } -void Report::SetCachedSize(int size) const { +void SendReportRequest::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* Report::descriptor() { +const ::google::protobuf::Descriptor* SendReportRequest::descriptor() { protobuf_AssignDescriptorsOnce(); - return Report_descriptor_; + return SendReportRequest_descriptor_; } -const Report& Report::default_instance() { +const SendReportRequest& SendReportRequest::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_report_5fservice_2eproto(); return *default_instance_; } -Report* Report::default_instance_ = NULL; +SendReportRequest* SendReportRequest::default_instance_ = NULL; -Report* Report::New() const { - return new Report; +SendReportRequest* SendReportRequest::New() const { + return new SendReportRequest; } -void Report::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ - &reinterpret_cast<Report*>(16)->f) - \ - reinterpret_cast<char*>(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 61) { - ZR_(report_timestamp_, report_qos_); - if (has_report_type()) { - if (report_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - report_type_->clear(); - } - } - if (has_reporting_account()) { - if (reporting_account_ != NULL) reporting_account_->::bgs::protocol::EntityId::Clear(); - } - if (has_reporting_game_account()) { - if (reporting_game_account_ != NULL) reporting_game_account_->::bgs::protocol::EntityId::Clear(); - } +void SendReportRequest::Clear() { + if (has_report()) { + if (report_ != NULL) report_->::bgs::protocol::report::v1::Report::Clear(); } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - attribute_.Clear(); ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } -bool Report::MergePartialFromCodedStream( +bool SendReportRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.report.v1.Report) + // @@protoc_insertion_point(parse_start:bgs.protocol.report.v1.SendReportRequest) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required string report_type = 1; + // required .bgs.protocol.report.v1.Report report = 1; case 1: { if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_report_type())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->report_type().data(), this->report_type().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "report_type"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_attribute; - break; - } - - // repeated .bgs.protocol.Attribute attribute = 2; - case 2: { - if (tag == 18) { - parse_attribute: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_attribute())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_attribute; - if (input->ExpectTag(24)) goto parse_report_qos; - break; - } - - // optional int32 report_qos = 3 [default = 0]; - case 3: { - if (tag == 24) { - parse_report_qos: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &report_qos_))); - set_has_report_qos(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_reporting_account; - break; - } - - // optional .bgs.protocol.EntityId reporting_account = 4; - case 4: { - if (tag == 34) { - parse_reporting_account: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_reporting_account())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_reporting_game_account; - break; - } - - // optional .bgs.protocol.EntityId reporting_game_account = 5; - case 5: { - if (tag == 42) { - parse_reporting_game_account: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_reporting_game_account())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(49)) goto parse_report_timestamp; - break; - } - - // optional fixed64 report_timestamp = 6; - case 6: { - if (tag == 49) { - parse_report_timestamp: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( - input, &report_timestamp_))); - set_has_report_timestamp(); + input, mutable_report())); } else { goto handle_unusual; } @@ -371,161 +252,60 @@ bool Report::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:bgs.protocol.report.v1.Report) + // @@protoc_insertion_point(parse_success:bgs.protocol.report.v1.SendReportRequest) return true; failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v1.Report) + // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v1.SendReportRequest) return false; #undef DO_ } -void Report::SerializeWithCachedSizes( +void SendReportRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.report.v1.Report) - // required string report_type = 1; - if (has_report_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->report_type().data(), this->report_type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "report_type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->report_type(), output); - } - - // repeated .bgs.protocol.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->attribute(i), output); - } - - // optional int32 report_qos = 3 [default = 0]; - if (has_report_qos()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->report_qos(), output); - } - - // optional .bgs.protocol.EntityId reporting_account = 4; - if (has_reporting_account()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->reporting_account(), output); - } - - // optional .bgs.protocol.EntityId reporting_game_account = 5; - if (has_reporting_game_account()) { + // @@protoc_insertion_point(serialize_start:bgs.protocol.report.v1.SendReportRequest) + // required .bgs.protocol.report.v1.Report report = 1; + if (has_report()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->reporting_game_account(), output); - } - - // optional fixed64 report_timestamp = 6; - if (has_report_timestamp()) { - ::google::protobuf::internal::WireFormatLite::WriteFixed64(6, this->report_timestamp(), output); + 1, this->report(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:bgs.protocol.report.v1.Report) + // @@protoc_insertion_point(serialize_end:bgs.protocol.report.v1.SendReportRequest) } -::google::protobuf::uint8* Report::SerializeWithCachedSizesToArray( +::google::protobuf::uint8* SendReportRequest::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.report.v1.Report) - // required string report_type = 1; - if (has_report_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->report_type().data(), this->report_type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "report_type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->report_type(), target); - } - - // repeated .bgs.protocol.Attribute attribute = 2; - for (int i = 0; i < this->attribute_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->attribute(i), target); - } - - // optional int32 report_qos = 3 [default = 0]; - if (has_report_qos()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->report_qos(), target); - } - - // optional .bgs.protocol.EntityId reporting_account = 4; - if (has_reporting_account()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->reporting_account(), target); - } - - // optional .bgs.protocol.EntityId reporting_game_account = 5; - if (has_reporting_game_account()) { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.report.v1.SendReportRequest) + // required .bgs.protocol.report.v1.Report report = 1; + if (has_report()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( - 5, this->reporting_game_account(), target); - } - - // optional fixed64 report_timestamp = 6; - if (has_report_timestamp()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(6, this->report_timestamp(), target); + 1, this->report(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.report.v1.Report) + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.report.v1.SendReportRequest) return target; } -int Report::ByteSize() const { +int SendReportRequest::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required string report_type = 1; - if (has_report_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->report_type()); - } - - // optional int32 report_qos = 3 [default = 0]; - if (has_report_qos()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->report_qos()); - } - - // optional .bgs.protocol.EntityId reporting_account = 4; - if (has_reporting_account()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->reporting_account()); - } - - // optional .bgs.protocol.EntityId reporting_game_account = 5; - if (has_reporting_game_account()) { + // required .bgs.protocol.report.v1.Report report = 1; + if (has_report()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->reporting_game_account()); - } - - // optional fixed64 report_timestamp = 6; - if (has_report_timestamp()) { - total_size += 1 + 8; + this->report()); } } - // repeated .bgs.protocol.Attribute attribute = 2; - total_size += 1 * this->attribute_size(); - for (int i = 0; i < this->attribute_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->attribute(i)); - } - if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( @@ -537,10 +317,10 @@ int Report::ByteSize() const { return total_size; } -void Report::MergeFrom(const ::google::protobuf::Message& from) { +void SendReportRequest::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); - const Report* source = - ::google::protobuf::internal::dynamic_cast_if_available<const Report*>( + const SendReportRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available<const SendReportRequest*>( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); @@ -549,73 +329,51 @@ void Report::MergeFrom(const ::google::protobuf::Message& from) { } } -void Report::MergeFrom(const Report& from) { +void SendReportRequest::MergeFrom(const SendReportRequest& from) { GOOGLE_CHECK_NE(&from, this); - attribute_.MergeFrom(from.attribute_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_report_type()) { - set_report_type(from.report_type()); - } - if (from.has_report_qos()) { - set_report_qos(from.report_qos()); - } - if (from.has_reporting_account()) { - mutable_reporting_account()->::bgs::protocol::EntityId::MergeFrom(from.reporting_account()); - } - if (from.has_reporting_game_account()) { - mutable_reporting_game_account()->::bgs::protocol::EntityId::MergeFrom(from.reporting_game_account()); - } - if (from.has_report_timestamp()) { - set_report_timestamp(from.report_timestamp()); + if (from.has_report()) { + mutable_report()->::bgs::protocol::report::v1::Report::MergeFrom(from.report()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } -void Report::CopyFrom(const ::google::protobuf::Message& from) { +void SendReportRequest::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } -void Report::CopyFrom(const Report& from) { +void SendReportRequest::CopyFrom(const SendReportRequest& from) { if (&from == this) return; Clear(); MergeFrom(from); } -bool Report::IsInitialized() const { +bool SendReportRequest::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; - if (has_reporting_account()) { - if (!this->reporting_account().IsInitialized()) return false; - } - if (has_reporting_game_account()) { - if (!this->reporting_game_account().IsInitialized()) return false; + if (has_report()) { + if (!this->report().IsInitialized()) return false; } return true; } -void Report::Swap(Report* other) { +void SendReportRequest::Swap(SendReportRequest* other) { if (other != this) { - std::swap(report_type_, other->report_type_); - attribute_.Swap(&other->attribute_); - std::swap(report_qos_, other->report_qos_); - std::swap(reporting_account_, other->reporting_account_); - std::swap(reporting_game_account_, other->reporting_game_account_); - std::swap(report_timestamp_, other->report_timestamp_); + std::swap(report_, other->report_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } -::google::protobuf::Metadata Report::GetMetadata() const { +::google::protobuf::Metadata SendReportRequest::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; - metadata.descriptor = Report_descriptor_; - metadata.reflection = Report_reflection_; + metadata.descriptor = SendReportRequest_descriptor_; + metadata.reflection = SendReportRequest_reflection_; return metadata; } @@ -623,87 +381,109 @@ void Report::Swap(Report* other) { // =================================================================== #ifndef _MSC_VER -const int SendReportRequest::kReportFieldNumber; +const int SubmitReportRequest::kAgentIdFieldNumber; +const int SubmitReportRequest::kReportTypeFieldNumber; #endif // !_MSC_VER -SendReportRequest::SendReportRequest() +SubmitReportRequest::SubmitReportRequest() : ::google::protobuf::Message() { SharedCtor(); - // @@protoc_insertion_point(constructor:bgs.protocol.report.v1.SendReportRequest) + // @@protoc_insertion_point(constructor:bgs.protocol.report.v1.SubmitReportRequest) } -void SendReportRequest::InitAsDefaultInstance() { - report_ = const_cast< ::bgs::protocol::report::v1::Report*>(&::bgs::protocol::report::v1::Report::default_instance()); +void SubmitReportRequest::InitAsDefaultInstance() { + agent_id_ = const_cast< ::bgs::protocol::account::v1::GameAccountHandle*>(&::bgs::protocol::account::v1::GameAccountHandle::default_instance()); + report_type_ = const_cast< ::bgs::protocol::report::v1::ReportType*>(&::bgs::protocol::report::v1::ReportType::default_instance()); } -SendReportRequest::SendReportRequest(const SendReportRequest& from) +SubmitReportRequest::SubmitReportRequest(const SubmitReportRequest& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:bgs.protocol.report.v1.SendReportRequest) + // @@protoc_insertion_point(copy_constructor:bgs.protocol.report.v1.SubmitReportRequest) } -void SendReportRequest::SharedCtor() { +void SubmitReportRequest::SharedCtor() { _cached_size_ = 0; - report_ = NULL; + agent_id_ = NULL; + report_type_ = NULL; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -SendReportRequest::~SendReportRequest() { - // @@protoc_insertion_point(destructor:bgs.protocol.report.v1.SendReportRequest) +SubmitReportRequest::~SubmitReportRequest() { + // @@protoc_insertion_point(destructor:bgs.protocol.report.v1.SubmitReportRequest) SharedDtor(); } -void SendReportRequest::SharedDtor() { +void SubmitReportRequest::SharedDtor() { if (this != default_instance_) { - delete report_; + delete agent_id_; + delete report_type_; } } -void SendReportRequest::SetCachedSize(int size) const { +void SubmitReportRequest::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* SendReportRequest::descriptor() { +const ::google::protobuf::Descriptor* SubmitReportRequest::descriptor() { protobuf_AssignDescriptorsOnce(); - return SendReportRequest_descriptor_; + return SubmitReportRequest_descriptor_; } -const SendReportRequest& SendReportRequest::default_instance() { +const SubmitReportRequest& SubmitReportRequest::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_report_5fservice_2eproto(); return *default_instance_; } -SendReportRequest* SendReportRequest::default_instance_ = NULL; +SubmitReportRequest* SubmitReportRequest::default_instance_ = NULL; -SendReportRequest* SendReportRequest::New() const { - return new SendReportRequest; +SubmitReportRequest* SubmitReportRequest::New() const { + return new SubmitReportRequest; } -void SendReportRequest::Clear() { - if (has_report()) { - if (report_ != NULL) report_->::bgs::protocol::report::v1::Report::Clear(); +void SubmitReportRequest::Clear() { + if (_has_bits_[0 / 32] & 3) { + if (has_agent_id()) { + if (agent_id_ != NULL) agent_id_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + } + if (has_report_type()) { + if (report_type_ != NULL) report_type_->::bgs::protocol::report::v1::ReportType::Clear(); + } } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } -bool SendReportRequest::MergePartialFromCodedStream( +bool SubmitReportRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:bgs.protocol.report.v1.SendReportRequest) + // @@protoc_insertion_point(parse_start:bgs.protocol.report.v1.SubmitReportRequest) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .bgs.protocol.report.v1.Report report = 1; + // optional .bgs.protocol.account.v1.GameAccountHandle agent_id = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_report())); + input, mutable_agent_id())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(18)) goto parse_report_type; + break; + } + + // optional .bgs.protocol.report.v1.ReportType report_type = 2; + case 2: { + if (tag == 18) { + parse_report_type: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_report_type())); } else { goto handle_unusual; } @@ -725,57 +505,77 @@ bool SendReportRequest::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:bgs.protocol.report.v1.SendReportRequest) + // @@protoc_insertion_point(parse_success:bgs.protocol.report.v1.SubmitReportRequest) return true; failure: - // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v1.SendReportRequest) + // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v1.SubmitReportRequest) return false; #undef DO_ } -void SendReportRequest::SerializeWithCachedSizes( +void SubmitReportRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:bgs.protocol.report.v1.SendReportRequest) - // required .bgs.protocol.report.v1.Report report = 1; - if (has_report()) { + // @@protoc_insertion_point(serialize_start:bgs.protocol.report.v1.SubmitReportRequest) + // optional .bgs.protocol.account.v1.GameAccountHandle agent_id = 1; + if (has_agent_id()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->report(), output); + 1, this->agent_id(), output); + } + + // optional .bgs.protocol.report.v1.ReportType report_type = 2; + if (has_report_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->report_type(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:bgs.protocol.report.v1.SendReportRequest) + // @@protoc_insertion_point(serialize_end:bgs.protocol.report.v1.SubmitReportRequest) } -::google::protobuf::uint8* SendReportRequest::SerializeWithCachedSizesToArray( +::google::protobuf::uint8* SubmitReportRequest::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.report.v1.SendReportRequest) - // required .bgs.protocol.report.v1.Report report = 1; - if (has_report()) { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.report.v1.SubmitReportRequest) + // optional .bgs.protocol.account.v1.GameAccountHandle agent_id = 1; + if (has_agent_id()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( - 1, this->report(), target); + 1, this->agent_id(), target); + } + + // optional .bgs.protocol.report.v1.ReportType report_type = 2; + if (has_report_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->report_type(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.report.v1.SendReportRequest) + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.report.v1.SubmitReportRequest) return target; } -int SendReportRequest::ByteSize() const { +int SubmitReportRequest::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .bgs.protocol.report.v1.Report report = 1; - if (has_report()) { + // optional .bgs.protocol.account.v1.GameAccountHandle agent_id = 1; + if (has_agent_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->report()); + this->agent_id()); + } + + // optional .bgs.protocol.report.v1.ReportType report_type = 2; + if (has_report_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->report_type()); } } @@ -790,10 +590,10 @@ int SendReportRequest::ByteSize() const { return total_size; } -void SendReportRequest::MergeFrom(const ::google::protobuf::Message& from) { +void SubmitReportRequest::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); - const SendReportRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available<const SendReportRequest*>( + const SubmitReportRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available<const SubmitReportRequest*>( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); @@ -802,51 +602,57 @@ void SendReportRequest::MergeFrom(const ::google::protobuf::Message& from) { } } -void SendReportRequest::MergeFrom(const SendReportRequest& from) { +void SubmitReportRequest::MergeFrom(const SubmitReportRequest& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_report()) { - mutable_report()->::bgs::protocol::report::v1::Report::MergeFrom(from.report()); + if (from.has_agent_id()) { + mutable_agent_id()->::bgs::protocol::account::v1::GameAccountHandle::MergeFrom(from.agent_id()); + } + if (from.has_report_type()) { + mutable_report_type()->::bgs::protocol::report::v1::ReportType::MergeFrom(from.report_type()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } -void SendReportRequest::CopyFrom(const ::google::protobuf::Message& from) { +void SubmitReportRequest::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } -void SendReportRequest::CopyFrom(const SendReportRequest& from) { +void SubmitReportRequest::CopyFrom(const SubmitReportRequest& from) { if (&from == this) return; Clear(); MergeFrom(from); } -bool SendReportRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; +bool SubmitReportRequest::IsInitialized() const { - if (has_report()) { - if (!this->report().IsInitialized()) return false; + if (has_agent_id()) { + if (!this->agent_id().IsInitialized()) return false; + } + if (has_report_type()) { + if (!this->report_type().IsInitialized()) return false; } return true; } -void SendReportRequest::Swap(SendReportRequest* other) { +void SubmitReportRequest::Swap(SubmitReportRequest* other) { if (other != this) { - std::swap(report_, other->report_); + std::swap(agent_id_, other->agent_id_); + std::swap(report_type_, other->report_type_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } -::google::protobuf::Metadata SendReportRequest::GetMetadata() const { +::google::protobuf::Metadata SubmitReportRequest::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; - metadata.descriptor = SendReportRequest_descriptor_; - metadata.reflection = SendReportRequest_reflection_; + metadata.descriptor = SubmitReportRequest_descriptor_; + metadata.reflection = SubmitReportRequest_reflection_; return metadata; } @@ -875,6 +681,17 @@ void ReportService::SendReport(::bgs::protocol::report::v1::SendReportRequest co SendRequest(service_hash_, 1, request, std::move(callback)); } +void ReportService::SubmitReport(::bgs::protocol::report::v1::SubmitReportRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback) { + TC_LOG_DEBUG("service.protobuf", "%s Server called client method ReportService.SubmitReport(bgs.protocol.report.v1.SubmitReportRequest{ %s })", + GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + std::function<void(MessageBuffer)> callback = [responseCallback](MessageBuffer buffer) -> void { + ::bgs::protocol::NoData response; + if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) + responseCallback(&response); + }; + SendRequest(service_hash_, 2, request, std::move(callback)); +} + void ReportService::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) { switch(methodId) { case 1: { @@ -895,6 +712,24 @@ void ReportService::CallServerMethod(uint32 token, uint32 methodId, MessageBuffe SendResponse(service_hash_, 1, token, status); break; } + case 2: { + ::bgs::protocol::report::v1::SubmitReportRequest request; + if (!request.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize())) { + TC_LOG_DEBUG("service.protobuf", "%s Failed to parse request for ReportService.SubmitReport server method call.", GetCallerInfo().c_str()); + SendResponse(service_hash_, 2, token, ERROR_RPC_MALFORMED_REQUEST); + return; + } + + ::bgs::protocol::NoData response; + uint32 status = HandleSubmitReport(&request, &response); + TC_LOG_DEBUG("service.protobuf", "%s Client called server method ReportService.SubmitReport(bgs.protocol.report.v1.SubmitReportRequest{ %s }) returned bgs.protocol.NoData{ %s } status %u.", + GetCallerInfo().c_str(), request.ShortDebugString().c_str(), response.ShortDebugString().c_str(), status); + if (!status) + SendResponse(service_hash_, 2, token, &response); + else + SendResponse(service_hash_, 2, token, status); + break; + } default: TC_LOG_ERROR("service.protobuf", "Bad method id %u.", methodId); SendResponse(service_hash_, methodId, token, ERROR_RPC_INVALID_METHOD); @@ -908,6 +743,12 @@ uint32 ReportService::HandleSendReport(::bgs::protocol::report::v1::SendReportRe return ERROR_RPC_NOT_IMPLEMENTED; } +uint32 ReportService::HandleSubmitReport(::bgs::protocol::report::v1::SubmitReportRequest const* request, ::bgs::protocol::NoData* response) { + TC_LOG_ERROR("service.protobuf", "%s Client tried to call not implemented method ReportService.SubmitReport({ %s })", + GetCallerInfo().c_str(), request->ShortDebugString().c_str()); + return ERROR_RPC_NOT_IMPLEMENTED; +} + // @@protoc_insertion_point(namespace_scope) diff --git a/src/server/proto/Client/report_service.pb.h b/src/server/proto/Client/report_service.pb.h index 677e9665e14..65ff6e9f877 100644 --- a/src/server/proto/Client/report_service.pb.h +++ b/src/server/proto/Client/report_service.pb.h @@ -24,8 +24,8 @@ #include <google/protobuf/repeated_field.h> #include <google/protobuf/extension_set.h> #include <google/protobuf/unknown_field_set.h> -#include "attribute_types.pb.h" -#include "entity_types.pb.h" +#include "account_types.pb.h" +#include "report_types.pb.h" #include "rpc_types.pb.h" #include "ServiceBase.h" #include "MessageBuffer.h" @@ -43,19 +43,19 @@ void TC_PROTO_API protobuf_AddDesc_report_5fservice_2eproto(); void protobuf_AssignDesc_report_5fservice_2eproto(); void protobuf_ShutdownFile_report_5fservice_2eproto(); -class Report; class SendReportRequest; +class SubmitReportRequest; // =================================================================== -class TC_PROTO_API Report : public ::google::protobuf::Message { +class TC_PROTO_API SendReportRequest : public ::google::protobuf::Message { public: - Report(); - virtual ~Report(); + SendReportRequest(); + virtual ~SendReportRequest(); - Report(const Report& from); + SendReportRequest(const SendReportRequest& from); - inline Report& operator=(const Report& from) { + inline SendReportRequest& operator=(const SendReportRequest& from) { CopyFrom(from); return *this; } @@ -69,17 +69,17 @@ class TC_PROTO_API Report : public ::google::protobuf::Message { } static const ::google::protobuf::Descriptor* descriptor(); - static const Report& default_instance(); + static const SendReportRequest& default_instance(); - void Swap(Report* other); + void Swap(SendReportRequest* other); // implements Message ---------------------------------------------- - Report* New() const; + SendReportRequest* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Report& from); - void MergeFrom(const Report& from); + void CopyFrom(const SendReportRequest& from); + void MergeFrom(const SendReportRequest& from); void Clear(); bool IsInitialized() const; @@ -101,102 +101,42 @@ class TC_PROTO_API Report : public ::google::protobuf::Message { // accessors ------------------------------------------------------- - // required string report_type = 1; - inline bool has_report_type() const; - inline void clear_report_type(); - static const int kReportTypeFieldNumber = 1; - inline const ::std::string& report_type() const; - inline void set_report_type(const ::std::string& value); - inline void set_report_type(const char* value); - inline void set_report_type(const char* value, size_t size); - inline ::std::string* mutable_report_type(); - inline ::std::string* release_report_type(); - inline void set_allocated_report_type(::std::string* report_type); - - // repeated .bgs.protocol.Attribute attribute = 2; - inline int attribute_size() const; - inline void clear_attribute(); - static const int kAttributeFieldNumber = 2; - inline const ::bgs::protocol::Attribute& attribute(int index) const; - inline ::bgs::protocol::Attribute* mutable_attribute(int index); - inline ::bgs::protocol::Attribute* add_attribute(); - inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >& - attribute() const; - inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >* - mutable_attribute(); - - // optional int32 report_qos = 3 [default = 0]; - inline bool has_report_qos() const; - inline void clear_report_qos(); - static const int kReportQosFieldNumber = 3; - inline ::google::protobuf::int32 report_qos() const; - inline void set_report_qos(::google::protobuf::int32 value); - - // optional .bgs.protocol.EntityId reporting_account = 4; - inline bool has_reporting_account() const; - inline void clear_reporting_account(); - static const int kReportingAccountFieldNumber = 4; - inline const ::bgs::protocol::EntityId& reporting_account() const; - inline ::bgs::protocol::EntityId* mutable_reporting_account(); - inline ::bgs::protocol::EntityId* release_reporting_account(); - inline void set_allocated_reporting_account(::bgs::protocol::EntityId* reporting_account); - - // optional .bgs.protocol.EntityId reporting_game_account = 5; - inline bool has_reporting_game_account() const; - inline void clear_reporting_game_account(); - static const int kReportingGameAccountFieldNumber = 5; - inline const ::bgs::protocol::EntityId& reporting_game_account() const; - inline ::bgs::protocol::EntityId* mutable_reporting_game_account(); - inline ::bgs::protocol::EntityId* release_reporting_game_account(); - inline void set_allocated_reporting_game_account(::bgs::protocol::EntityId* reporting_game_account); - - // optional fixed64 report_timestamp = 6; - inline bool has_report_timestamp() const; - inline void clear_report_timestamp(); - static const int kReportTimestampFieldNumber = 6; - inline ::google::protobuf::uint64 report_timestamp() const; - inline void set_report_timestamp(::google::protobuf::uint64 value); - - // @@protoc_insertion_point(class_scope:bgs.protocol.report.v1.Report) + // required .bgs.protocol.report.v1.Report report = 1; + inline bool has_report() const; + inline void clear_report(); + static const int kReportFieldNumber = 1; + inline const ::bgs::protocol::report::v1::Report& report() const; + inline ::bgs::protocol::report::v1::Report* mutable_report(); + inline ::bgs::protocol::report::v1::Report* release_report(); + inline void set_allocated_report(::bgs::protocol::report::v1::Report* report); + + // @@protoc_insertion_point(class_scope:bgs.protocol.report.v1.SendReportRequest) private: - inline void set_has_report_type(); - inline void clear_has_report_type(); - inline void set_has_report_qos(); - inline void clear_has_report_qos(); - inline void set_has_reporting_account(); - inline void clear_has_reporting_account(); - inline void set_has_reporting_game_account(); - inline void clear_has_reporting_game_account(); - inline void set_has_report_timestamp(); - inline void clear_has_report_timestamp(); + inline void set_has_report(); + inline void clear_has_report(); ::google::protobuf::UnknownFieldSet _unknown_fields_; ::google::protobuf::uint32 _has_bits_[1]; mutable int _cached_size_; - ::std::string* report_type_; - ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_; - ::bgs::protocol::EntityId* reporting_account_; - ::bgs::protocol::EntityId* reporting_game_account_; - ::google::protobuf::uint64 report_timestamp_; - ::google::protobuf::int32 report_qos_; + ::bgs::protocol::report::v1::Report* report_; friend void TC_PROTO_API protobuf_AddDesc_report_5fservice_2eproto(); friend void protobuf_AssignDesc_report_5fservice_2eproto(); friend void protobuf_ShutdownFile_report_5fservice_2eproto(); void InitAsDefaultInstance(); - static Report* default_instance_; + static SendReportRequest* default_instance_; }; // ------------------------------------------------------------------- -class TC_PROTO_API SendReportRequest : public ::google::protobuf::Message { +class TC_PROTO_API SubmitReportRequest : public ::google::protobuf::Message { public: - SendReportRequest(); - virtual ~SendReportRequest(); + SubmitReportRequest(); + virtual ~SubmitReportRequest(); - SendReportRequest(const SendReportRequest& from); + SubmitReportRequest(const SubmitReportRequest& from); - inline SendReportRequest& operator=(const SendReportRequest& from) { + inline SubmitReportRequest& operator=(const SubmitReportRequest& from) { CopyFrom(from); return *this; } @@ -210,17 +150,17 @@ class TC_PROTO_API SendReportRequest : public ::google::protobuf::Message { } static const ::google::protobuf::Descriptor* descriptor(); - static const SendReportRequest& default_instance(); + static const SubmitReportRequest& default_instance(); - void Swap(SendReportRequest* other); + void Swap(SubmitReportRequest* other); // implements Message ---------------------------------------------- - SendReportRequest* New() const; + SubmitReportRequest* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const SendReportRequest& from); - void MergeFrom(const SendReportRequest& from); + void CopyFrom(const SubmitReportRequest& from); + void MergeFrom(const SubmitReportRequest& from); void Clear(); bool IsInitialized() const; @@ -242,31 +182,43 @@ class TC_PROTO_API SendReportRequest : public ::google::protobuf::Message { // accessors ------------------------------------------------------- - // required .bgs.protocol.report.v1.Report report = 1; - inline bool has_report() const; - inline void clear_report(); - static const int kReportFieldNumber = 1; - inline const ::bgs::protocol::report::v1::Report& report() const; - inline ::bgs::protocol::report::v1::Report* mutable_report(); - inline ::bgs::protocol::report::v1::Report* release_report(); - inline void set_allocated_report(::bgs::protocol::report::v1::Report* report); + // optional .bgs.protocol.account.v1.GameAccountHandle agent_id = 1; + inline bool has_agent_id() const; + inline void clear_agent_id(); + static const int kAgentIdFieldNumber = 1; + inline const ::bgs::protocol::account::v1::GameAccountHandle& agent_id() const; + inline ::bgs::protocol::account::v1::GameAccountHandle* mutable_agent_id(); + inline ::bgs::protocol::account::v1::GameAccountHandle* release_agent_id(); + inline void set_allocated_agent_id(::bgs::protocol::account::v1::GameAccountHandle* agent_id); - // @@protoc_insertion_point(class_scope:bgs.protocol.report.v1.SendReportRequest) + // optional .bgs.protocol.report.v1.ReportType report_type = 2; + inline bool has_report_type() const; + inline void clear_report_type(); + static const int kReportTypeFieldNumber = 2; + inline const ::bgs::protocol::report::v1::ReportType& report_type() const; + inline ::bgs::protocol::report::v1::ReportType* mutable_report_type(); + inline ::bgs::protocol::report::v1::ReportType* release_report_type(); + inline void set_allocated_report_type(::bgs::protocol::report::v1::ReportType* report_type); + + // @@protoc_insertion_point(class_scope:bgs.protocol.report.v1.SubmitReportRequest) private: - inline void set_has_report(); - inline void clear_has_report(); + inline void set_has_agent_id(); + inline void clear_has_agent_id(); + inline void set_has_report_type(); + inline void clear_has_report_type(); ::google::protobuf::UnknownFieldSet _unknown_fields_; ::google::protobuf::uint32 _has_bits_[1]; mutable int _cached_size_; - ::bgs::protocol::report::v1::Report* report_; + ::bgs::protocol::account::v1::GameAccountHandle* agent_id_; + ::bgs::protocol::report::v1::ReportType* report_type_; friend void TC_PROTO_API protobuf_AddDesc_report_5fservice_2eproto(); friend void protobuf_AssignDesc_report_5fservice_2eproto(); friend void protobuf_ShutdownFile_report_5fservice_2eproto(); void InitAsDefaultInstance(); - static SendReportRequest* default_instance_; + static SubmitReportRequest* default_instance_; }; // =================================================================== @@ -285,12 +237,14 @@ class TC_PROTO_API ReportService : public ServiceBase // client methods -------------------------------------------------- void SendReport(::bgs::protocol::report::v1::SendReportRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback); + void SubmitReport(::bgs::protocol::report::v1::SubmitReportRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback); // server methods -------------------------------------------------- void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) override final; protected: virtual uint32 HandleSendReport(::bgs::protocol::report::v1::SendReportRequest const* request, ::bgs::protocol::NoData* response); + virtual uint32 HandleSubmitReport(::bgs::protocol::report::v1::SubmitReportRequest const* request, ::bgs::protocol::NoData* response); private: uint32 service_hash_; @@ -303,246 +257,6 @@ class TC_PROTO_API ReportService : public ServiceBase // =================================================================== -// Report - -// required string report_type = 1; -inline bool Report::has_report_type() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void Report::set_has_report_type() { - _has_bits_[0] |= 0x00000001u; -} -inline void Report::clear_has_report_type() { - _has_bits_[0] &= ~0x00000001u; -} -inline void Report::clear_report_type() { - if (report_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - report_type_->clear(); - } - clear_has_report_type(); -} -inline const ::std::string& Report::report_type() const { - // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.Report.report_type) - return *report_type_; -} -inline void Report::set_report_type(const ::std::string& value) { - set_has_report_type(); - if (report_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - report_type_ = new ::std::string; - } - report_type_->assign(value); - // @@protoc_insertion_point(field_set:bgs.protocol.report.v1.Report.report_type) -} -inline void Report::set_report_type(const char* value) { - set_has_report_type(); - if (report_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - report_type_ = new ::std::string; - } - report_type_->assign(value); - // @@protoc_insertion_point(field_set_char:bgs.protocol.report.v1.Report.report_type) -} -inline void Report::set_report_type(const char* value, size_t size) { - set_has_report_type(); - if (report_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - report_type_ = new ::std::string; - } - report_type_->assign(reinterpret_cast<const char*>(value), size); - // @@protoc_insertion_point(field_set_pointer:bgs.protocol.report.v1.Report.report_type) -} -inline ::std::string* Report::mutable_report_type() { - set_has_report_type(); - if (report_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - report_type_ = new ::std::string; - } - // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.Report.report_type) - return report_type_; -} -inline ::std::string* Report::release_report_type() { - clear_has_report_type(); - if (report_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = report_type_; - report_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; - } -} -inline void Report::set_allocated_report_type(::std::string* report_type) { - if (report_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete report_type_; - } - if (report_type) { - set_has_report_type(); - report_type_ = report_type; - } else { - clear_has_report_type(); - report_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.Report.report_type) -} - -// repeated .bgs.protocol.Attribute attribute = 2; -inline int Report::attribute_size() const { - return attribute_.size(); -} -inline void Report::clear_attribute() { - attribute_.Clear(); -} -inline const ::bgs::protocol::Attribute& Report::attribute(int index) const { - // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.Report.attribute) - return attribute_.Get(index); -} -inline ::bgs::protocol::Attribute* Report::mutable_attribute(int index) { - // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.Report.attribute) - return attribute_.Mutable(index); -} -inline ::bgs::protocol::Attribute* Report::add_attribute() { - // @@protoc_insertion_point(field_add:bgs.protocol.report.v1.Report.attribute) - return attribute_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >& -Report::attribute() const { - // @@protoc_insertion_point(field_list:bgs.protocol.report.v1.Report.attribute) - return attribute_; -} -inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >* -Report::mutable_attribute() { - // @@protoc_insertion_point(field_mutable_list:bgs.protocol.report.v1.Report.attribute) - return &attribute_; -} - -// optional int32 report_qos = 3 [default = 0]; -inline bool Report::has_report_qos() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void Report::set_has_report_qos() { - _has_bits_[0] |= 0x00000004u; -} -inline void Report::clear_has_report_qos() { - _has_bits_[0] &= ~0x00000004u; -} -inline void Report::clear_report_qos() { - report_qos_ = 0; - clear_has_report_qos(); -} -inline ::google::protobuf::int32 Report::report_qos() const { - // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.Report.report_qos) - return report_qos_; -} -inline void Report::set_report_qos(::google::protobuf::int32 value) { - set_has_report_qos(); - report_qos_ = value; - // @@protoc_insertion_point(field_set:bgs.protocol.report.v1.Report.report_qos) -} - -// optional .bgs.protocol.EntityId reporting_account = 4; -inline bool Report::has_reporting_account() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void Report::set_has_reporting_account() { - _has_bits_[0] |= 0x00000008u; -} -inline void Report::clear_has_reporting_account() { - _has_bits_[0] &= ~0x00000008u; -} -inline void Report::clear_reporting_account() { - if (reporting_account_ != NULL) reporting_account_->::bgs::protocol::EntityId::Clear(); - clear_has_reporting_account(); -} -inline const ::bgs::protocol::EntityId& Report::reporting_account() const { - // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.Report.reporting_account) - return reporting_account_ != NULL ? *reporting_account_ : *default_instance_->reporting_account_; -} -inline ::bgs::protocol::EntityId* Report::mutable_reporting_account() { - set_has_reporting_account(); - if (reporting_account_ == NULL) reporting_account_ = new ::bgs::protocol::EntityId; - // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.Report.reporting_account) - return reporting_account_; -} -inline ::bgs::protocol::EntityId* Report::release_reporting_account() { - clear_has_reporting_account(); - ::bgs::protocol::EntityId* temp = reporting_account_; - reporting_account_ = NULL; - return temp; -} -inline void Report::set_allocated_reporting_account(::bgs::protocol::EntityId* reporting_account) { - delete reporting_account_; - reporting_account_ = reporting_account; - if (reporting_account) { - set_has_reporting_account(); - } else { - clear_has_reporting_account(); - } - // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.Report.reporting_account) -} - -// optional .bgs.protocol.EntityId reporting_game_account = 5; -inline bool Report::has_reporting_game_account() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void Report::set_has_reporting_game_account() { - _has_bits_[0] |= 0x00000010u; -} -inline void Report::clear_has_reporting_game_account() { - _has_bits_[0] &= ~0x00000010u; -} -inline void Report::clear_reporting_game_account() { - if (reporting_game_account_ != NULL) reporting_game_account_->::bgs::protocol::EntityId::Clear(); - clear_has_reporting_game_account(); -} -inline const ::bgs::protocol::EntityId& Report::reporting_game_account() const { - // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.Report.reporting_game_account) - return reporting_game_account_ != NULL ? *reporting_game_account_ : *default_instance_->reporting_game_account_; -} -inline ::bgs::protocol::EntityId* Report::mutable_reporting_game_account() { - set_has_reporting_game_account(); - if (reporting_game_account_ == NULL) reporting_game_account_ = new ::bgs::protocol::EntityId; - // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.Report.reporting_game_account) - return reporting_game_account_; -} -inline ::bgs::protocol::EntityId* Report::release_reporting_game_account() { - clear_has_reporting_game_account(); - ::bgs::protocol::EntityId* temp = reporting_game_account_; - reporting_game_account_ = NULL; - return temp; -} -inline void Report::set_allocated_reporting_game_account(::bgs::protocol::EntityId* reporting_game_account) { - delete reporting_game_account_; - reporting_game_account_ = reporting_game_account; - if (reporting_game_account) { - set_has_reporting_game_account(); - } else { - clear_has_reporting_game_account(); - } - // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.Report.reporting_game_account) -} - -// optional fixed64 report_timestamp = 6; -inline bool Report::has_report_timestamp() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void Report::set_has_report_timestamp() { - _has_bits_[0] |= 0x00000020u; -} -inline void Report::clear_has_report_timestamp() { - _has_bits_[0] &= ~0x00000020u; -} -inline void Report::clear_report_timestamp() { - report_timestamp_ = GOOGLE_ULONGLONG(0); - clear_has_report_timestamp(); -} -inline ::google::protobuf::uint64 Report::report_timestamp() const { - // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.Report.report_timestamp) - return report_timestamp_; -} -inline void Report::set_report_timestamp(::google::protobuf::uint64 value) { - set_has_report_timestamp(); - report_timestamp_ = value; - // @@protoc_insertion_point(field_set:bgs.protocol.report.v1.Report.report_timestamp) -} - -// ------------------------------------------------------------------- - // SendReportRequest // required .bgs.protocol.report.v1.Report report = 1; @@ -586,6 +300,92 @@ inline void SendReportRequest::set_allocated_report(::bgs::protocol::report::v1: // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.SendReportRequest.report) } +// ------------------------------------------------------------------- + +// SubmitReportRequest + +// optional .bgs.protocol.account.v1.GameAccountHandle agent_id = 1; +inline bool SubmitReportRequest::has_agent_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SubmitReportRequest::set_has_agent_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void SubmitReportRequest::clear_has_agent_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SubmitReportRequest::clear_agent_id() { + if (agent_id_ != NULL) agent_id_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + clear_has_agent_id(); +} +inline const ::bgs::protocol::account::v1::GameAccountHandle& SubmitReportRequest::agent_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.SubmitReportRequest.agent_id) + return agent_id_ != NULL ? *agent_id_ : *default_instance_->agent_id_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* SubmitReportRequest::mutable_agent_id() { + set_has_agent_id(); + if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::account::v1::GameAccountHandle; + // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.SubmitReportRequest.agent_id) + return agent_id_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* SubmitReportRequest::release_agent_id() { + clear_has_agent_id(); + ::bgs::protocol::account::v1::GameAccountHandle* temp = agent_id_; + agent_id_ = NULL; + return temp; +} +inline void SubmitReportRequest::set_allocated_agent_id(::bgs::protocol::account::v1::GameAccountHandle* agent_id) { + delete agent_id_; + agent_id_ = agent_id; + if (agent_id) { + set_has_agent_id(); + } else { + clear_has_agent_id(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.SubmitReportRequest.agent_id) +} + +// optional .bgs.protocol.report.v1.ReportType report_type = 2; +inline bool SubmitReportRequest::has_report_type() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void SubmitReportRequest::set_has_report_type() { + _has_bits_[0] |= 0x00000002u; +} +inline void SubmitReportRequest::clear_has_report_type() { + _has_bits_[0] &= ~0x00000002u; +} +inline void SubmitReportRequest::clear_report_type() { + if (report_type_ != NULL) report_type_->::bgs::protocol::report::v1::ReportType::Clear(); + clear_has_report_type(); +} +inline const ::bgs::protocol::report::v1::ReportType& SubmitReportRequest::report_type() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.SubmitReportRequest.report_type) + return report_type_ != NULL ? *report_type_ : *default_instance_->report_type_; +} +inline ::bgs::protocol::report::v1::ReportType* SubmitReportRequest::mutable_report_type() { + set_has_report_type(); + if (report_type_ == NULL) report_type_ = new ::bgs::protocol::report::v1::ReportType; + // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.SubmitReportRequest.report_type) + return report_type_; +} +inline ::bgs::protocol::report::v1::ReportType* SubmitReportRequest::release_report_type() { + clear_has_report_type(); + ::bgs::protocol::report::v1::ReportType* temp = report_type_; + report_type_ = NULL; + return temp; +} +inline void SubmitReportRequest::set_allocated_report_type(::bgs::protocol::report::v1::ReportType* report_type) { + delete report_type_; + report_type_ = report_type; + if (report_type) { + set_has_report_type(); + } else { + clear_has_report_type(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.SubmitReportRequest.report_type) +} + // @@protoc_insertion_point(namespace_scope) diff --git a/src/server/proto/Client/report_types.pb.cc b/src/server/proto/Client/report_types.pb.cc new file mode 100644 index 00000000000..6e195461ba8 --- /dev/null +++ b/src/server/proto/Client/report_types.pb.cc @@ -0,0 +1,3427 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: report_types.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "report_types.pb.h" + +#include <algorithm> +#include <utility> + +#include <google/protobuf/stubs/common.h> +#include <google/protobuf/stubs/once.h> +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/wire_format_lite_inl.h> +#include <google/protobuf/descriptor.h> +#include <google/protobuf/generated_message_reflection.h> +#include <google/protobuf/reflection_ops.h> +#include <google/protobuf/wire_format.h> +#include "Log.h" +// @@protoc_insertion_point(includes) + +// Fix stupid windows.h included from Log.h->Common.h +#ifdef SendMessage +#undef SendMessage +#endif + +namespace bgs { +namespace protocol { +namespace report { +namespace v1 { + +namespace { + +const ::google::protobuf::Descriptor* ReportType_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ReportType_reflection_ = NULL; +struct ReportTypeOneofInstance { + const ::bgs::protocol::report::v1::CustomReport* custom_report_; + const ::bgs::protocol::report::v1::SpamReport* spam_report_; + const ::bgs::protocol::report::v1::HarassmentReport* harassment_report_; + const ::bgs::protocol::report::v1::RealLifeThreatReport* real_life_threat_report_; + const ::bgs::protocol::report::v1::InappropriateBattleTagReport* inappropriate_battle_tag_report_; + const ::bgs::protocol::report::v1::HackingReport* hacking_report_; + const ::bgs::protocol::report::v1::BottingReport* botting_report_; +}* ReportType_default_oneof_instance_ = NULL; +const ::google::protobuf::Descriptor* CustomReport_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CustomReport_reflection_ = NULL; +const ::google::protobuf::Descriptor* SpamReport_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SpamReport_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* SpamReport_SpamSource_descriptor_ = NULL; +const ::google::protobuf::Descriptor* HarassmentReport_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + HarassmentReport_reflection_ = NULL; +const ::google::protobuf::Descriptor* RealLifeThreatReport_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RealLifeThreatReport_reflection_ = NULL; +const ::google::protobuf::Descriptor* InappropriateBattleTagReport_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + InappropriateBattleTagReport_reflection_ = NULL; +const ::google::protobuf::Descriptor* HackingReport_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + HackingReport_reflection_ = NULL; +const ::google::protobuf::Descriptor* BottingReport_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + BottingReport_reflection_ = NULL; +const ::google::protobuf::Descriptor* Report_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + Report_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_report_5ftypes_2eproto() { + protobuf_AddDesc_report_5ftypes_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "report_types.proto"); + GOOGLE_CHECK(file != NULL); + ReportType_descriptor_ = file->message_type(0); + static const int ReportType_offsets_[9] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportType, note_), + PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(ReportType_default_oneof_instance_, custom_report_), + PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(ReportType_default_oneof_instance_, spam_report_), + PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(ReportType_default_oneof_instance_, harassment_report_), + PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(ReportType_default_oneof_instance_, real_life_threat_report_), + PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(ReportType_default_oneof_instance_, inappropriate_battle_tag_report_), + PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(ReportType_default_oneof_instance_, hacking_report_), + PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(ReportType_default_oneof_instance_, botting_report_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportType, type_), + }; + ReportType_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ReportType_descriptor_, + ReportType::default_instance_, + ReportType_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportType, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportType, _unknown_fields_), + -1, + ReportType_default_oneof_instance_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportType, _oneof_case_[0]), + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ReportType)); + CustomReport_descriptor_ = file->message_type(1); + static const int CustomReport_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CustomReport, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CustomReport, programid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CustomReport, attribute_), + }; + CustomReport_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CustomReport_descriptor_, + CustomReport::default_instance_, + CustomReport_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CustomReport, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CustomReport, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CustomReport)); + SpamReport_descriptor_ = file->message_type(2); + static const int SpamReport_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SpamReport, target_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SpamReport, source_), + }; + SpamReport_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SpamReport_descriptor_, + SpamReport::default_instance_, + SpamReport_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SpamReport, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SpamReport, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SpamReport)); + SpamReport_SpamSource_descriptor_ = SpamReport_descriptor_->enum_type(0); + HarassmentReport_descriptor_ = file->message_type(3); + static const int HarassmentReport_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HarassmentReport, target_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HarassmentReport, text_), + }; + HarassmentReport_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + HarassmentReport_descriptor_, + HarassmentReport::default_instance_, + HarassmentReport_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HarassmentReport, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HarassmentReport, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(HarassmentReport)); + RealLifeThreatReport_descriptor_ = file->message_type(4); + static const int RealLifeThreatReport_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RealLifeThreatReport, target_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RealLifeThreatReport, text_), + }; + RealLifeThreatReport_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RealLifeThreatReport_descriptor_, + RealLifeThreatReport::default_instance_, + RealLifeThreatReport_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RealLifeThreatReport, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RealLifeThreatReport, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RealLifeThreatReport)); + InappropriateBattleTagReport_descriptor_ = file->message_type(5); + static const int InappropriateBattleTagReport_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InappropriateBattleTagReport, target_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InappropriateBattleTagReport, battle_tag_), + }; + InappropriateBattleTagReport_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + InappropriateBattleTagReport_descriptor_, + InappropriateBattleTagReport::default_instance_, + InappropriateBattleTagReport_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InappropriateBattleTagReport, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InappropriateBattleTagReport, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(InappropriateBattleTagReport)); + HackingReport_descriptor_ = file->message_type(6); + static const int HackingReport_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HackingReport, target_), + }; + HackingReport_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + HackingReport_descriptor_, + HackingReport::default_instance_, + HackingReport_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HackingReport, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HackingReport, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(HackingReport)); + BottingReport_descriptor_ = file->message_type(7); + static const int BottingReport_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BottingReport, target_), + }; + BottingReport_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + BottingReport_descriptor_, + BottingReport::default_instance_, + BottingReport_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BottingReport, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BottingReport, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(BottingReport)); + Report_descriptor_ = file->message_type(8); + static const int Report_offsets_[6] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Report, report_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Report, attribute_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Report, report_qos_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Report, reporting_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Report, reporting_game_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Report, report_timestamp_), + }; + Report_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + Report_descriptor_, + Report::default_instance_, + Report_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Report, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Report, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(Report)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_report_5ftypes_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ReportType_descriptor_, &ReportType::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CustomReport_descriptor_, &CustomReport::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SpamReport_descriptor_, &SpamReport::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + HarassmentReport_descriptor_, &HarassmentReport::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RealLifeThreatReport_descriptor_, &RealLifeThreatReport::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + InappropriateBattleTagReport_descriptor_, &InappropriateBattleTagReport::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + HackingReport_descriptor_, &HackingReport::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + BottingReport_descriptor_, &BottingReport::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + Report_descriptor_, &Report::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_report_5ftypes_2eproto() { + delete ReportType::default_instance_; + delete ReportType_default_oneof_instance_; + delete ReportType_reflection_; + delete CustomReport::default_instance_; + delete CustomReport_reflection_; + delete SpamReport::default_instance_; + delete SpamReport_reflection_; + delete HarassmentReport::default_instance_; + delete HarassmentReport_reflection_; + delete RealLifeThreatReport::default_instance_; + delete RealLifeThreatReport_reflection_; + delete InappropriateBattleTagReport::default_instance_; + delete InappropriateBattleTagReport_reflection_; + delete HackingReport::default_instance_; + delete HackingReport_reflection_; + delete BottingReport::default_instance_; + delete BottingReport_reflection_; + delete Report::default_instance_; + delete Report_reflection_; +} + +void protobuf_AddDesc_report_5ftypes_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::bgs::protocol::account::v1::protobuf_AddDesc_account_5ftypes_2eproto(); + ::bgs::protocol::protobuf_AddDesc_attribute_5ftypes_2eproto(); + ::bgs::protocol::protobuf_AddDesc_entity_5ftypes_2eproto(); + ::bgs::protocol::protobuf_AddDesc_rpc_5ftypes_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\022report_types.proto\022\026bgs.protocol.repor" + "t.v1\032\023account_types.proto\032\025attribute_typ" + "es.proto\032\022entity_types.proto\032\017rpc_types." + "proto\"\227\004\n\nReportType\022\014\n\004note\030\001 \001(\t\022=\n\rcu" + "stom_report\030\n \001(\0132$.bgs.protocol.report." + "v1.CustomReportH\000\0229\n\013spam_report\030\013 \001(\0132\"" + ".bgs.protocol.report.v1.SpamReportH\000\022E\n\021" + "harassment_report\030\014 \001(\0132(.bgs.protocol.r" + "eport.v1.HarassmentReportH\000\022O\n\027real_life" + "_threat_report\030\r \001(\0132,.bgs.protocol.repo" + "rt.v1.RealLifeThreatReportH\000\022_\n\037inapprop" + "riate_battle_tag_report\030\016 \001(\01324.bgs.prot" + "ocol.report.v1.InappropriateBattleTagRep" + "ortH\000\022\?\n\016hacking_report\030\017 \001(\0132%.bgs.prot" + "ocol.report.v1.HackingReportH\000\022\?\n\016bottin" + "g_report\030\020 \001(\0132%.bgs.protocol.report.v1." + "BottingReportH\000B\006\n\004type\"[\n\014CustomReport\022" + "\014\n\004type\030\001 \001(\t\022\021\n\tprogramId\030\002 \001(\t\022*\n\tattr" + "ibute\030\003 \003(\0132\027.bgs.protocol.Attribute\"\321\001\n" + "\nSpamReport\022:\n\006target\030\001 \001(\0132*.bgs.protoc" + "ol.account.v1.GameAccountHandle\022D\n\006sourc" + "e\030\002 \001(\0162-.bgs.protocol.report.v1.SpamRep" + "ort.SpamSource:\005OTHER\"A\n\nSpamSource\022\t\n\005O" + "THER\020\001\022\021\n\rFRIEND_INVITE\020\002\022\013\n\007WHISPER\020\003\022\010" + "\n\004CHAT\020\004\"\\\n\020HarassmentReport\022:\n\006target\030\001" + " \001(\0132*.bgs.protocol.account.v1.GameAccou" + "ntHandle\022\014\n\004text\030\002 \001(\t\"`\n\024RealLifeThreat" + "Report\022:\n\006target\030\001 \001(\0132*.bgs.protocol.ac" + "count.v1.GameAccountHandle\022\014\n\004text\030\002 \001(\t" + "\"n\n\034InappropriateBattleTagReport\022:\n\006targ" + "et\030\001 \001(\0132*.bgs.protocol.account.v1.GameA" + "ccountHandle\022\022\n\nbattle_tag\030\002 \001(\t\"K\n\rHack" + "ingReport\022:\n\006target\030\001 \001(\0132*.bgs.protocol" + ".account.v1.GameAccountHandle\"K\n\rBotting" + "Report\022:\n\006target\030\001 \001(\0132*.bgs.protocol.ac" + "count.v1.GameAccountHandle\"\345\001\n\006Report\022\023\n" + "\013report_type\030\001 \002(\t\022*\n\tattribute\030\002 \003(\0132\027." + "bgs.protocol.Attribute\022\025\n\nreport_qos\030\003 \001" + "(\005:\0010\0221\n\021reporting_account\030\004 \001(\0132\026.bgs.p" + "rotocol.EntityId\0226\n\026reporting_game_accou" + "nt\030\005 \001(\0132\026.bgs.protocol.EntityId\022\030\n\020repo" + "rt_timestamp\030\006 \001(\006B\005H\001\200\001\000", 1665); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "report_types.proto", &protobuf_RegisterTypes); + ReportType::default_instance_ = new ReportType(); + ReportType_default_oneof_instance_ = new ReportTypeOneofInstance; + CustomReport::default_instance_ = new CustomReport(); + SpamReport::default_instance_ = new SpamReport(); + HarassmentReport::default_instance_ = new HarassmentReport(); + RealLifeThreatReport::default_instance_ = new RealLifeThreatReport(); + InappropriateBattleTagReport::default_instance_ = new InappropriateBattleTagReport(); + HackingReport::default_instance_ = new HackingReport(); + BottingReport::default_instance_ = new BottingReport(); + Report::default_instance_ = new Report(); + ReportType::default_instance_->InitAsDefaultInstance(); + CustomReport::default_instance_->InitAsDefaultInstance(); + SpamReport::default_instance_->InitAsDefaultInstance(); + HarassmentReport::default_instance_->InitAsDefaultInstance(); + RealLifeThreatReport::default_instance_->InitAsDefaultInstance(); + InappropriateBattleTagReport::default_instance_->InitAsDefaultInstance(); + HackingReport::default_instance_->InitAsDefaultInstance(); + BottingReport::default_instance_->InitAsDefaultInstance(); + Report::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_report_5ftypes_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_report_5ftypes_2eproto { + StaticDescriptorInitializer_report_5ftypes_2eproto() { + protobuf_AddDesc_report_5ftypes_2eproto(); + } +} static_descriptor_initializer_report_5ftypes_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int ReportType::kNoteFieldNumber; +const int ReportType::kCustomReportFieldNumber; +const int ReportType::kSpamReportFieldNumber; +const int ReportType::kHarassmentReportFieldNumber; +const int ReportType::kRealLifeThreatReportFieldNumber; +const int ReportType::kInappropriateBattleTagReportFieldNumber; +const int ReportType::kHackingReportFieldNumber; +const int ReportType::kBottingReportFieldNumber; +#endif // !_MSC_VER + +ReportType::ReportType() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.report.v1.ReportType) +} + +void ReportType::InitAsDefaultInstance() { + ReportType_default_oneof_instance_->custom_report_ = const_cast< ::bgs::protocol::report::v1::CustomReport*>(&::bgs::protocol::report::v1::CustomReport::default_instance()); + ReportType_default_oneof_instance_->spam_report_ = const_cast< ::bgs::protocol::report::v1::SpamReport*>(&::bgs::protocol::report::v1::SpamReport::default_instance()); + ReportType_default_oneof_instance_->harassment_report_ = const_cast< ::bgs::protocol::report::v1::HarassmentReport*>(&::bgs::protocol::report::v1::HarassmentReport::default_instance()); + ReportType_default_oneof_instance_->real_life_threat_report_ = const_cast< ::bgs::protocol::report::v1::RealLifeThreatReport*>(&::bgs::protocol::report::v1::RealLifeThreatReport::default_instance()); + ReportType_default_oneof_instance_->inappropriate_battle_tag_report_ = const_cast< ::bgs::protocol::report::v1::InappropriateBattleTagReport*>(&::bgs::protocol::report::v1::InappropriateBattleTagReport::default_instance()); + ReportType_default_oneof_instance_->hacking_report_ = const_cast< ::bgs::protocol::report::v1::HackingReport*>(&::bgs::protocol::report::v1::HackingReport::default_instance()); + ReportType_default_oneof_instance_->botting_report_ = const_cast< ::bgs::protocol::report::v1::BottingReport*>(&::bgs::protocol::report::v1::BottingReport::default_instance()); +} + +ReportType::ReportType(const ReportType& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.report.v1.ReportType) +} + +void ReportType::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + note_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + clear_has_type(); +} + +ReportType::~ReportType() { + // @@protoc_insertion_point(destructor:bgs.protocol.report.v1.ReportType) + SharedDtor(); +} + +void ReportType::SharedDtor() { + if (note_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete note_; + } + if (has_type()) { + clear_type(); + } + if (this != default_instance_) { + } +} + +void ReportType::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReportType::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReportType_descriptor_; +} + +const ReportType& ReportType::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_report_5ftypes_2eproto(); + return *default_instance_; +} + +ReportType* ReportType::default_instance_ = NULL; + +ReportType* ReportType::New() const { + return new ReportType; +} + +void ReportType::clear_type() { + switch(type_case()) { + case kCustomReport: { + delete type_.custom_report_; + break; + } + case kSpamReport: { + delete type_.spam_report_; + break; + } + case kHarassmentReport: { + delete type_.harassment_report_; + break; + } + case kRealLifeThreatReport: { + delete type_.real_life_threat_report_; + break; + } + case kInappropriateBattleTagReport: { + delete type_.inappropriate_battle_tag_report_; + break; + } + case kHackingReport: { + delete type_.hacking_report_; + break; + } + case kBottingReport: { + delete type_.botting_report_; + break; + } + case TYPE_NOT_SET: { + break; + } + } + _oneof_case_[0] = TYPE_NOT_SET; +} + + +void ReportType::Clear() { + if (has_note()) { + if (note_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + note_->clear(); + } + } + clear_type(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ReportType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.report.v1.ReportType) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string note = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_note())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->note().data(), this->note().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "note"); + } else { + goto handle_unusual; + } + if (input->ExpectTag(82)) goto parse_custom_report; + break; + } + + // optional .bgs.protocol.report.v1.CustomReport custom_report = 10; + case 10: { + if (tag == 82) { + parse_custom_report: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_custom_report())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(90)) goto parse_spam_report; + break; + } + + // optional .bgs.protocol.report.v1.SpamReport spam_report = 11; + case 11: { + if (tag == 90) { + parse_spam_report: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_spam_report())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(98)) goto parse_harassment_report; + break; + } + + // optional .bgs.protocol.report.v1.HarassmentReport harassment_report = 12; + case 12: { + if (tag == 98) { + parse_harassment_report: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_harassment_report())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(106)) goto parse_real_life_threat_report; + break; + } + + // optional .bgs.protocol.report.v1.RealLifeThreatReport real_life_threat_report = 13; + case 13: { + if (tag == 106) { + parse_real_life_threat_report: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_real_life_threat_report())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(114)) goto parse_inappropriate_battle_tag_report; + break; + } + + // optional .bgs.protocol.report.v1.InappropriateBattleTagReport inappropriate_battle_tag_report = 14; + case 14: { + if (tag == 114) { + parse_inappropriate_battle_tag_report: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_inappropriate_battle_tag_report())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(122)) goto parse_hacking_report; + break; + } + + // optional .bgs.protocol.report.v1.HackingReport hacking_report = 15; + case 15: { + if (tag == 122) { + parse_hacking_report: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_hacking_report())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(130)) goto parse_botting_report; + break; + } + + // optional .bgs.protocol.report.v1.BottingReport botting_report = 16; + case 16: { + if (tag == 130) { + parse_botting_report: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_botting_report())); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.report.v1.ReportType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v1.ReportType) + return false; +#undef DO_ +} + +void ReportType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.report.v1.ReportType) + // optional string note = 1; + if (has_note()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->note().data(), this->note().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "note"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->note(), output); + } + + // optional .bgs.protocol.report.v1.CustomReport custom_report = 10; + if (has_custom_report()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 10, this->custom_report(), output); + } + + // optional .bgs.protocol.report.v1.SpamReport spam_report = 11; + if (has_spam_report()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 11, this->spam_report(), output); + } + + // optional .bgs.protocol.report.v1.HarassmentReport harassment_report = 12; + if (has_harassment_report()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 12, this->harassment_report(), output); + } + + // optional .bgs.protocol.report.v1.RealLifeThreatReport real_life_threat_report = 13; + if (has_real_life_threat_report()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 13, this->real_life_threat_report(), output); + } + + // optional .bgs.protocol.report.v1.InappropriateBattleTagReport inappropriate_battle_tag_report = 14; + if (has_inappropriate_battle_tag_report()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 14, this->inappropriate_battle_tag_report(), output); + } + + // optional .bgs.protocol.report.v1.HackingReport hacking_report = 15; + if (has_hacking_report()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 15, this->hacking_report(), output); + } + + // optional .bgs.protocol.report.v1.BottingReport botting_report = 16; + if (has_botting_report()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 16, this->botting_report(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.report.v1.ReportType) +} + +::google::protobuf::uint8* ReportType::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.report.v1.ReportType) + // optional string note = 1; + if (has_note()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->note().data(), this->note().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "note"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->note(), target); + } + + // optional .bgs.protocol.report.v1.CustomReport custom_report = 10; + if (has_custom_report()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 10, this->custom_report(), target); + } + + // optional .bgs.protocol.report.v1.SpamReport spam_report = 11; + if (has_spam_report()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 11, this->spam_report(), target); + } + + // optional .bgs.protocol.report.v1.HarassmentReport harassment_report = 12; + if (has_harassment_report()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 12, this->harassment_report(), target); + } + + // optional .bgs.protocol.report.v1.RealLifeThreatReport real_life_threat_report = 13; + if (has_real_life_threat_report()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 13, this->real_life_threat_report(), target); + } + + // optional .bgs.protocol.report.v1.InappropriateBattleTagReport inappropriate_battle_tag_report = 14; + if (has_inappropriate_battle_tag_report()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 14, this->inappropriate_battle_tag_report(), target); + } + + // optional .bgs.protocol.report.v1.HackingReport hacking_report = 15; + if (has_hacking_report()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 15, this->hacking_report(), target); + } + + // optional .bgs.protocol.report.v1.BottingReport botting_report = 16; + if (has_botting_report()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 16, this->botting_report(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.report.v1.ReportType) + return target; +} + +int ReportType::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional string note = 1; + if (has_note()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->note()); + } + + } + switch (type_case()) { + // optional .bgs.protocol.report.v1.CustomReport custom_report = 10; + case kCustomReport: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->custom_report()); + break; + } + // optional .bgs.protocol.report.v1.SpamReport spam_report = 11; + case kSpamReport: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->spam_report()); + break; + } + // optional .bgs.protocol.report.v1.HarassmentReport harassment_report = 12; + case kHarassmentReport: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->harassment_report()); + break; + } + // optional .bgs.protocol.report.v1.RealLifeThreatReport real_life_threat_report = 13; + case kRealLifeThreatReport: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->real_life_threat_report()); + break; + } + // optional .bgs.protocol.report.v1.InappropriateBattleTagReport inappropriate_battle_tag_report = 14; + case kInappropriateBattleTagReport: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->inappropriate_battle_tag_report()); + break; + } + // optional .bgs.protocol.report.v1.HackingReport hacking_report = 15; + case kHackingReport: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->hacking_report()); + break; + } + // optional .bgs.protocol.report.v1.BottingReport botting_report = 16; + case kBottingReport: { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->botting_report()); + break; + } + case TYPE_NOT_SET: { + break; + } + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReportType::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ReportType* source = + ::google::protobuf::internal::dynamic_cast_if_available<const ReportType*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ReportType::MergeFrom(const ReportType& from) { + GOOGLE_CHECK_NE(&from, this); + switch (from.type_case()) { + case kCustomReport: { + mutable_custom_report()->::bgs::protocol::report::v1::CustomReport::MergeFrom(from.custom_report()); + break; + } + case kSpamReport: { + mutable_spam_report()->::bgs::protocol::report::v1::SpamReport::MergeFrom(from.spam_report()); + break; + } + case kHarassmentReport: { + mutable_harassment_report()->::bgs::protocol::report::v1::HarassmentReport::MergeFrom(from.harassment_report()); + break; + } + case kRealLifeThreatReport: { + mutable_real_life_threat_report()->::bgs::protocol::report::v1::RealLifeThreatReport::MergeFrom(from.real_life_threat_report()); + break; + } + case kInappropriateBattleTagReport: { + mutable_inappropriate_battle_tag_report()->::bgs::protocol::report::v1::InappropriateBattleTagReport::MergeFrom(from.inappropriate_battle_tag_report()); + break; + } + case kHackingReport: { + mutable_hacking_report()->::bgs::protocol::report::v1::HackingReport::MergeFrom(from.hacking_report()); + break; + } + case kBottingReport: { + mutable_botting_report()->::bgs::protocol::report::v1::BottingReport::MergeFrom(from.botting_report()); + break; + } + case TYPE_NOT_SET: { + break; + } + } + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_note()) { + set_note(from.note()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ReportType::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReportType::CopyFrom(const ReportType& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReportType::IsInitialized() const { + + if (has_custom_report()) { + if (!this->custom_report().IsInitialized()) return false; + } + if (has_spam_report()) { + if (!this->spam_report().IsInitialized()) return false; + } + if (has_harassment_report()) { + if (!this->harassment_report().IsInitialized()) return false; + } + if (has_real_life_threat_report()) { + if (!this->real_life_threat_report().IsInitialized()) return false; + } + if (has_inappropriate_battle_tag_report()) { + if (!this->inappropriate_battle_tag_report().IsInitialized()) return false; + } + if (has_hacking_report()) { + if (!this->hacking_report().IsInitialized()) return false; + } + if (has_botting_report()) { + if (!this->botting_report().IsInitialized()) return false; + } + return true; +} + +void ReportType::Swap(ReportType* other) { + if (other != this) { + std::swap(note_, other->note_); + std::swap(type_, other->type_); + std::swap(_oneof_case_[0], other->_oneof_case_[0]); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ReportType::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ReportType_descriptor_; + metadata.reflection = ReportType_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CustomReport::kTypeFieldNumber; +const int CustomReport::kProgramIdFieldNumber; +const int CustomReport::kAttributeFieldNumber; +#endif // !_MSC_VER + +CustomReport::CustomReport() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.report.v1.CustomReport) +} + +void CustomReport::InitAsDefaultInstance() { +} + +CustomReport::CustomReport(const CustomReport& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.report.v1.CustomReport) +} + +void CustomReport::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + programid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CustomReport::~CustomReport() { + // @@protoc_insertion_point(destructor:bgs.protocol.report.v1.CustomReport) + SharedDtor(); +} + +void CustomReport::SharedDtor() { + if (type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete type_; + } + if (programid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete programid_; + } + if (this != default_instance_) { + } +} + +void CustomReport::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CustomReport::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CustomReport_descriptor_; +} + +const CustomReport& CustomReport::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_report_5ftypes_2eproto(); + return *default_instance_; +} + +CustomReport* CustomReport::default_instance_ = NULL; + +CustomReport* CustomReport::New() const { + return new CustomReport; +} + +void CustomReport::Clear() { + if (_has_bits_[0 / 32] & 3) { + if (has_type()) { + if (type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + type_->clear(); + } + } + if (has_programid()) { + if (programid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + programid_->clear(); + } + } + } + attribute_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CustomReport::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.report.v1.CustomReport) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string type = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_type())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->type().data(), this->type().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "type"); + } else { + goto handle_unusual; + } + if (input->ExpectTag(18)) goto parse_programId; + break; + } + + // optional string programId = 2; + case 2: { + if (tag == 18) { + parse_programId: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_programid())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->programid().data(), this->programid().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "programid"); + } else { + goto handle_unusual; + } + if (input->ExpectTag(26)) goto parse_attribute; + break; + } + + // repeated .bgs.protocol.Attribute attribute = 3; + case 3: { + if (tag == 26) { + parse_attribute: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_attribute())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(26)) goto parse_attribute; + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.report.v1.CustomReport) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v1.CustomReport) + return false; +#undef DO_ +} + +void CustomReport::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.report.v1.CustomReport) + // optional string type = 1; + if (has_type()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->type().data(), this->type().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->type(), output); + } + + // optional string programId = 2; + if (has_programid()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->programid().data(), this->programid().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "programid"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->programid(), output); + } + + // repeated .bgs.protocol.Attribute attribute = 3; + for (int i = 0; i < this->attribute_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->attribute(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.report.v1.CustomReport) +} + +::google::protobuf::uint8* CustomReport::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.report.v1.CustomReport) + // optional string type = 1; + if (has_type()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->type().data(), this->type().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->type(), target); + } + + // optional string programId = 2; + if (has_programid()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->programid().data(), this->programid().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "programid"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->programid(), target); + } + + // repeated .bgs.protocol.Attribute attribute = 3; + for (int i = 0; i < this->attribute_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->attribute(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.report.v1.CustomReport) + return target; +} + +int CustomReport::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional string type = 1; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->type()); + } + + // optional string programId = 2; + if (has_programid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->programid()); + } + + } + // repeated .bgs.protocol.Attribute attribute = 3; + total_size += 1 * this->attribute_size(); + for (int i = 0; i < this->attribute_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->attribute(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CustomReport::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CustomReport* source = + ::google::protobuf::internal::dynamic_cast_if_available<const CustomReport*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CustomReport::MergeFrom(const CustomReport& from) { + GOOGLE_CHECK_NE(&from, this); + attribute_.MergeFrom(from.attribute_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_type()) { + set_type(from.type()); + } + if (from.has_programid()) { + set_programid(from.programid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CustomReport::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CustomReport::CopyFrom(const CustomReport& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CustomReport::IsInitialized() const { + + if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; + return true; +} + +void CustomReport::Swap(CustomReport* other) { + if (other != this) { + std::swap(type_, other->type_); + std::swap(programid_, other->programid_); + attribute_.Swap(&other->attribute_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CustomReport::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CustomReport_descriptor_; + metadata.reflection = CustomReport_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* SpamReport_SpamSource_descriptor() { + protobuf_AssignDescriptorsOnce(); + return SpamReport_SpamSource_descriptor_; +} +bool SpamReport_SpamSource_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const SpamReport_SpamSource SpamReport::OTHER; +const SpamReport_SpamSource SpamReport::FRIEND_INVITE; +const SpamReport_SpamSource SpamReport::WHISPER; +const SpamReport_SpamSource SpamReport::CHAT; +const SpamReport_SpamSource SpamReport::SpamSource_MIN; +const SpamReport_SpamSource SpamReport::SpamSource_MAX; +const int SpamReport::SpamSource_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int SpamReport::kTargetFieldNumber; +const int SpamReport::kSourceFieldNumber; +#endif // !_MSC_VER + +SpamReport::SpamReport() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.report.v1.SpamReport) +} + +void SpamReport::InitAsDefaultInstance() { + target_ = const_cast< ::bgs::protocol::account::v1::GameAccountHandle*>(&::bgs::protocol::account::v1::GameAccountHandle::default_instance()); +} + +SpamReport::SpamReport(const SpamReport& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.report.v1.SpamReport) +} + +void SpamReport::SharedCtor() { + _cached_size_ = 0; + target_ = NULL; + source_ = 1; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SpamReport::~SpamReport() { + // @@protoc_insertion_point(destructor:bgs.protocol.report.v1.SpamReport) + SharedDtor(); +} + +void SpamReport::SharedDtor() { + if (this != default_instance_) { + delete target_; + } +} + +void SpamReport::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SpamReport::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SpamReport_descriptor_; +} + +const SpamReport& SpamReport::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_report_5ftypes_2eproto(); + return *default_instance_; +} + +SpamReport* SpamReport::default_instance_ = NULL; + +SpamReport* SpamReport::New() const { + return new SpamReport; +} + +void SpamReport::Clear() { + if (_has_bits_[0 / 32] & 3) { + if (has_target()) { + if (target_ != NULL) target_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + } + source_ = 1; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SpamReport::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.report.v1.SpamReport) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_target())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(16)) goto parse_source; + break; + } + + // optional .bgs.protocol.report.v1.SpamReport.SpamSource source = 2 [default = OTHER]; + case 2: { + if (tag == 16) { + parse_source: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::bgs::protocol::report::v1::SpamReport_SpamSource_IsValid(value)) { + set_source(static_cast< ::bgs::protocol::report::v1::SpamReport_SpamSource >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.report.v1.SpamReport) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v1.SpamReport) + return false; +#undef DO_ +} + +void SpamReport::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.report.v1.SpamReport) + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + if (has_target()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->target(), output); + } + + // optional .bgs.protocol.report.v1.SpamReport.SpamSource source = 2 [default = OTHER]; + if (has_source()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->source(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.report.v1.SpamReport) +} + +::google::protobuf::uint8* SpamReport::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.report.v1.SpamReport) + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + if (has_target()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->target(), target); + } + + // optional .bgs.protocol.report.v1.SpamReport.SpamSource source = 2 [default = OTHER]; + if (has_source()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->source(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.report.v1.SpamReport) + return target; +} + +int SpamReport::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + if (has_target()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->target()); + } + + // optional .bgs.protocol.report.v1.SpamReport.SpamSource source = 2 [default = OTHER]; + if (has_source()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->source()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SpamReport::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SpamReport* source = + ::google::protobuf::internal::dynamic_cast_if_available<const SpamReport*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SpamReport::MergeFrom(const SpamReport& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_target()) { + mutable_target()->::bgs::protocol::account::v1::GameAccountHandle::MergeFrom(from.target()); + } + if (from.has_source()) { + set_source(from.source()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SpamReport::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SpamReport::CopyFrom(const SpamReport& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SpamReport::IsInitialized() const { + + if (has_target()) { + if (!this->target().IsInitialized()) return false; + } + return true; +} + +void SpamReport::Swap(SpamReport* other) { + if (other != this) { + std::swap(target_, other->target_); + std::swap(source_, other->source_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SpamReport::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SpamReport_descriptor_; + metadata.reflection = SpamReport_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int HarassmentReport::kTargetFieldNumber; +const int HarassmentReport::kTextFieldNumber; +#endif // !_MSC_VER + +HarassmentReport::HarassmentReport() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.report.v1.HarassmentReport) +} + +void HarassmentReport::InitAsDefaultInstance() { + target_ = const_cast< ::bgs::protocol::account::v1::GameAccountHandle*>(&::bgs::protocol::account::v1::GameAccountHandle::default_instance()); +} + +HarassmentReport::HarassmentReport(const HarassmentReport& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.report.v1.HarassmentReport) +} + +void HarassmentReport::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + target_ = NULL; + text_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +HarassmentReport::~HarassmentReport() { + // @@protoc_insertion_point(destructor:bgs.protocol.report.v1.HarassmentReport) + SharedDtor(); +} + +void HarassmentReport::SharedDtor() { + if (text_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete text_; + } + if (this != default_instance_) { + delete target_; + } +} + +void HarassmentReport::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* HarassmentReport::descriptor() { + protobuf_AssignDescriptorsOnce(); + return HarassmentReport_descriptor_; +} + +const HarassmentReport& HarassmentReport::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_report_5ftypes_2eproto(); + return *default_instance_; +} + +HarassmentReport* HarassmentReport::default_instance_ = NULL; + +HarassmentReport* HarassmentReport::New() const { + return new HarassmentReport; +} + +void HarassmentReport::Clear() { + if (_has_bits_[0 / 32] & 3) { + if (has_target()) { + if (target_ != NULL) target_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + } + if (has_text()) { + if (text_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + text_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool HarassmentReport::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.report.v1.HarassmentReport) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_target())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(18)) goto parse_text; + break; + } + + // optional string text = 2; + case 2: { + if (tag == 18) { + parse_text: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_text())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->text().data(), this->text().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "text"); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.report.v1.HarassmentReport) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v1.HarassmentReport) + return false; +#undef DO_ +} + +void HarassmentReport::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.report.v1.HarassmentReport) + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + if (has_target()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->target(), output); + } + + // optional string text = 2; + if (has_text()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->text().data(), this->text().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "text"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->text(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.report.v1.HarassmentReport) +} + +::google::protobuf::uint8* HarassmentReport::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.report.v1.HarassmentReport) + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + if (has_target()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->target(), target); + } + + // optional string text = 2; + if (has_text()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->text().data(), this->text().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "text"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->text(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.report.v1.HarassmentReport) + return target; +} + +int HarassmentReport::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + if (has_target()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->target()); + } + + // optional string text = 2; + if (has_text()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->text()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void HarassmentReport::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const HarassmentReport* source = + ::google::protobuf::internal::dynamic_cast_if_available<const HarassmentReport*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void HarassmentReport::MergeFrom(const HarassmentReport& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_target()) { + mutable_target()->::bgs::protocol::account::v1::GameAccountHandle::MergeFrom(from.target()); + } + if (from.has_text()) { + set_text(from.text()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void HarassmentReport::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HarassmentReport::CopyFrom(const HarassmentReport& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HarassmentReport::IsInitialized() const { + + if (has_target()) { + if (!this->target().IsInitialized()) return false; + } + return true; +} + +void HarassmentReport::Swap(HarassmentReport* other) { + if (other != this) { + std::swap(target_, other->target_); + std::swap(text_, other->text_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata HarassmentReport::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = HarassmentReport_descriptor_; + metadata.reflection = HarassmentReport_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RealLifeThreatReport::kTargetFieldNumber; +const int RealLifeThreatReport::kTextFieldNumber; +#endif // !_MSC_VER + +RealLifeThreatReport::RealLifeThreatReport() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.report.v1.RealLifeThreatReport) +} + +void RealLifeThreatReport::InitAsDefaultInstance() { + target_ = const_cast< ::bgs::protocol::account::v1::GameAccountHandle*>(&::bgs::protocol::account::v1::GameAccountHandle::default_instance()); +} + +RealLifeThreatReport::RealLifeThreatReport(const RealLifeThreatReport& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.report.v1.RealLifeThreatReport) +} + +void RealLifeThreatReport::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + target_ = NULL; + text_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RealLifeThreatReport::~RealLifeThreatReport() { + // @@protoc_insertion_point(destructor:bgs.protocol.report.v1.RealLifeThreatReport) + SharedDtor(); +} + +void RealLifeThreatReport::SharedDtor() { + if (text_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete text_; + } + if (this != default_instance_) { + delete target_; + } +} + +void RealLifeThreatReport::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RealLifeThreatReport::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RealLifeThreatReport_descriptor_; +} + +const RealLifeThreatReport& RealLifeThreatReport::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_report_5ftypes_2eproto(); + return *default_instance_; +} + +RealLifeThreatReport* RealLifeThreatReport::default_instance_ = NULL; + +RealLifeThreatReport* RealLifeThreatReport::New() const { + return new RealLifeThreatReport; +} + +void RealLifeThreatReport::Clear() { + if (_has_bits_[0 / 32] & 3) { + if (has_target()) { + if (target_ != NULL) target_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + } + if (has_text()) { + if (text_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + text_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RealLifeThreatReport::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.report.v1.RealLifeThreatReport) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_target())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(18)) goto parse_text; + break; + } + + // optional string text = 2; + case 2: { + if (tag == 18) { + parse_text: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_text())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->text().data(), this->text().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "text"); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.report.v1.RealLifeThreatReport) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v1.RealLifeThreatReport) + return false; +#undef DO_ +} + +void RealLifeThreatReport::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.report.v1.RealLifeThreatReport) + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + if (has_target()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->target(), output); + } + + // optional string text = 2; + if (has_text()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->text().data(), this->text().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "text"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->text(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.report.v1.RealLifeThreatReport) +} + +::google::protobuf::uint8* RealLifeThreatReport::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.report.v1.RealLifeThreatReport) + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + if (has_target()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->target(), target); + } + + // optional string text = 2; + if (has_text()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->text().data(), this->text().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "text"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->text(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.report.v1.RealLifeThreatReport) + return target; +} + +int RealLifeThreatReport::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + if (has_target()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->target()); + } + + // optional string text = 2; + if (has_text()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->text()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RealLifeThreatReport::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RealLifeThreatReport* source = + ::google::protobuf::internal::dynamic_cast_if_available<const RealLifeThreatReport*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RealLifeThreatReport::MergeFrom(const RealLifeThreatReport& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_target()) { + mutable_target()->::bgs::protocol::account::v1::GameAccountHandle::MergeFrom(from.target()); + } + if (from.has_text()) { + set_text(from.text()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RealLifeThreatReport::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RealLifeThreatReport::CopyFrom(const RealLifeThreatReport& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RealLifeThreatReport::IsInitialized() const { + + if (has_target()) { + if (!this->target().IsInitialized()) return false; + } + return true; +} + +void RealLifeThreatReport::Swap(RealLifeThreatReport* other) { + if (other != this) { + std::swap(target_, other->target_); + std::swap(text_, other->text_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RealLifeThreatReport::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RealLifeThreatReport_descriptor_; + metadata.reflection = RealLifeThreatReport_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int InappropriateBattleTagReport::kTargetFieldNumber; +const int InappropriateBattleTagReport::kBattleTagFieldNumber; +#endif // !_MSC_VER + +InappropriateBattleTagReport::InappropriateBattleTagReport() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.report.v1.InappropriateBattleTagReport) +} + +void InappropriateBattleTagReport::InitAsDefaultInstance() { + target_ = const_cast< ::bgs::protocol::account::v1::GameAccountHandle*>(&::bgs::protocol::account::v1::GameAccountHandle::default_instance()); +} + +InappropriateBattleTagReport::InappropriateBattleTagReport(const InappropriateBattleTagReport& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.report.v1.InappropriateBattleTagReport) +} + +void InappropriateBattleTagReport::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + target_ = NULL; + battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +InappropriateBattleTagReport::~InappropriateBattleTagReport() { + // @@protoc_insertion_point(destructor:bgs.protocol.report.v1.InappropriateBattleTagReport) + SharedDtor(); +} + +void InappropriateBattleTagReport::SharedDtor() { + if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete battle_tag_; + } + if (this != default_instance_) { + delete target_; + } +} + +void InappropriateBattleTagReport::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* InappropriateBattleTagReport::descriptor() { + protobuf_AssignDescriptorsOnce(); + return InappropriateBattleTagReport_descriptor_; +} + +const InappropriateBattleTagReport& InappropriateBattleTagReport::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_report_5ftypes_2eproto(); + return *default_instance_; +} + +InappropriateBattleTagReport* InappropriateBattleTagReport::default_instance_ = NULL; + +InappropriateBattleTagReport* InappropriateBattleTagReport::New() const { + return new InappropriateBattleTagReport; +} + +void InappropriateBattleTagReport::Clear() { + if (_has_bits_[0 / 32] & 3) { + if (has_target()) { + if (target_ != NULL) target_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + } + if (has_battle_tag()) { + if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool InappropriateBattleTagReport::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.report.v1.InappropriateBattleTagReport) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_target())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(18)) goto parse_battle_tag; + break; + } + + // optional string battle_tag = 2; + case 2: { + if (tag == 18) { + parse_battle_tag: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_battle_tag())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->battle_tag().data(), this->battle_tag().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "battle_tag"); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.report.v1.InappropriateBattleTagReport) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v1.InappropriateBattleTagReport) + return false; +#undef DO_ +} + +void InappropriateBattleTagReport::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.report.v1.InappropriateBattleTagReport) + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + if (has_target()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->target(), output); + } + + // optional string battle_tag = 2; + if (has_battle_tag()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->battle_tag().data(), this->battle_tag().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "battle_tag"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->battle_tag(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.report.v1.InappropriateBattleTagReport) +} + +::google::protobuf::uint8* InappropriateBattleTagReport::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.report.v1.InappropriateBattleTagReport) + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + if (has_target()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->target(), target); + } + + // optional string battle_tag = 2; + if (has_battle_tag()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->battle_tag().data(), this->battle_tag().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "battle_tag"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->battle_tag(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.report.v1.InappropriateBattleTagReport) + return target; +} + +int InappropriateBattleTagReport::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + if (has_target()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->target()); + } + + // optional string battle_tag = 2; + if (has_battle_tag()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->battle_tag()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void InappropriateBattleTagReport::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const InappropriateBattleTagReport* source = + ::google::protobuf::internal::dynamic_cast_if_available<const InappropriateBattleTagReport*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void InappropriateBattleTagReport::MergeFrom(const InappropriateBattleTagReport& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_target()) { + mutable_target()->::bgs::protocol::account::v1::GameAccountHandle::MergeFrom(from.target()); + } + if (from.has_battle_tag()) { + set_battle_tag(from.battle_tag()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void InappropriateBattleTagReport::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void InappropriateBattleTagReport::CopyFrom(const InappropriateBattleTagReport& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InappropriateBattleTagReport::IsInitialized() const { + + if (has_target()) { + if (!this->target().IsInitialized()) return false; + } + return true; +} + +void InappropriateBattleTagReport::Swap(InappropriateBattleTagReport* other) { + if (other != this) { + std::swap(target_, other->target_); + std::swap(battle_tag_, other->battle_tag_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata InappropriateBattleTagReport::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = InappropriateBattleTagReport_descriptor_; + metadata.reflection = InappropriateBattleTagReport_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int HackingReport::kTargetFieldNumber; +#endif // !_MSC_VER + +HackingReport::HackingReport() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.report.v1.HackingReport) +} + +void HackingReport::InitAsDefaultInstance() { + target_ = const_cast< ::bgs::protocol::account::v1::GameAccountHandle*>(&::bgs::protocol::account::v1::GameAccountHandle::default_instance()); +} + +HackingReport::HackingReport(const HackingReport& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.report.v1.HackingReport) +} + +void HackingReport::SharedCtor() { + _cached_size_ = 0; + target_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +HackingReport::~HackingReport() { + // @@protoc_insertion_point(destructor:bgs.protocol.report.v1.HackingReport) + SharedDtor(); +} + +void HackingReport::SharedDtor() { + if (this != default_instance_) { + delete target_; + } +} + +void HackingReport::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* HackingReport::descriptor() { + protobuf_AssignDescriptorsOnce(); + return HackingReport_descriptor_; +} + +const HackingReport& HackingReport::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_report_5ftypes_2eproto(); + return *default_instance_; +} + +HackingReport* HackingReport::default_instance_ = NULL; + +HackingReport* HackingReport::New() const { + return new HackingReport; +} + +void HackingReport::Clear() { + if (has_target()) { + if (target_ != NULL) target_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool HackingReport::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.report.v1.HackingReport) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_target())); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.report.v1.HackingReport) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v1.HackingReport) + return false; +#undef DO_ +} + +void HackingReport::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.report.v1.HackingReport) + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + if (has_target()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->target(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.report.v1.HackingReport) +} + +::google::protobuf::uint8* HackingReport::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.report.v1.HackingReport) + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + if (has_target()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->target(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.report.v1.HackingReport) + return target; +} + +int HackingReport::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + if (has_target()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->target()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void HackingReport::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const HackingReport* source = + ::google::protobuf::internal::dynamic_cast_if_available<const HackingReport*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void HackingReport::MergeFrom(const HackingReport& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_target()) { + mutable_target()->::bgs::protocol::account::v1::GameAccountHandle::MergeFrom(from.target()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void HackingReport::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HackingReport::CopyFrom(const HackingReport& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HackingReport::IsInitialized() const { + + if (has_target()) { + if (!this->target().IsInitialized()) return false; + } + return true; +} + +void HackingReport::Swap(HackingReport* other) { + if (other != this) { + std::swap(target_, other->target_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata HackingReport::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = HackingReport_descriptor_; + metadata.reflection = HackingReport_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int BottingReport::kTargetFieldNumber; +#endif // !_MSC_VER + +BottingReport::BottingReport() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.report.v1.BottingReport) +} + +void BottingReport::InitAsDefaultInstance() { + target_ = const_cast< ::bgs::protocol::account::v1::GameAccountHandle*>(&::bgs::protocol::account::v1::GameAccountHandle::default_instance()); +} + +BottingReport::BottingReport(const BottingReport& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.report.v1.BottingReport) +} + +void BottingReport::SharedCtor() { + _cached_size_ = 0; + target_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +BottingReport::~BottingReport() { + // @@protoc_insertion_point(destructor:bgs.protocol.report.v1.BottingReport) + SharedDtor(); +} + +void BottingReport::SharedDtor() { + if (this != default_instance_) { + delete target_; + } +} + +void BottingReport::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BottingReport::descriptor() { + protobuf_AssignDescriptorsOnce(); + return BottingReport_descriptor_; +} + +const BottingReport& BottingReport::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_report_5ftypes_2eproto(); + return *default_instance_; +} + +BottingReport* BottingReport::default_instance_ = NULL; + +BottingReport* BottingReport::New() const { + return new BottingReport; +} + +void BottingReport::Clear() { + if (has_target()) { + if (target_ != NULL) target_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool BottingReport::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.report.v1.BottingReport) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_target())); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.report.v1.BottingReport) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v1.BottingReport) + return false; +#undef DO_ +} + +void BottingReport::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.report.v1.BottingReport) + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + if (has_target()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->target(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.report.v1.BottingReport) +} + +::google::protobuf::uint8* BottingReport::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.report.v1.BottingReport) + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + if (has_target()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->target(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.report.v1.BottingReport) + return target; +} + +int BottingReport::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + if (has_target()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->target()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BottingReport::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const BottingReport* source = + ::google::protobuf::internal::dynamic_cast_if_available<const BottingReport*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void BottingReport::MergeFrom(const BottingReport& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_target()) { + mutable_target()->::bgs::protocol::account::v1::GameAccountHandle::MergeFrom(from.target()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void BottingReport::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BottingReport::CopyFrom(const BottingReport& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BottingReport::IsInitialized() const { + + if (has_target()) { + if (!this->target().IsInitialized()) return false; + } + return true; +} + +void BottingReport::Swap(BottingReport* other) { + if (other != this) { + std::swap(target_, other->target_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata BottingReport::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = BottingReport_descriptor_; + metadata.reflection = BottingReport_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int Report::kReportTypeFieldNumber; +const int Report::kAttributeFieldNumber; +const int Report::kReportQosFieldNumber; +const int Report::kReportingAccountFieldNumber; +const int Report::kReportingGameAccountFieldNumber; +const int Report::kReportTimestampFieldNumber; +#endif // !_MSC_VER + +Report::Report() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.report.v1.Report) +} + +void Report::InitAsDefaultInstance() { + reporting_account_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); + reporting_game_account_ = const_cast< ::bgs::protocol::EntityId*>(&::bgs::protocol::EntityId::default_instance()); +} + +Report::Report(const Report& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.report.v1.Report) +} + +void Report::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + report_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + report_qos_ = 0; + reporting_account_ = NULL; + reporting_game_account_ = NULL; + report_timestamp_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +Report::~Report() { + // @@protoc_insertion_point(destructor:bgs.protocol.report.v1.Report) + SharedDtor(); +} + +void Report::SharedDtor() { + if (report_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete report_type_; + } + if (this != default_instance_) { + delete reporting_account_; + delete reporting_game_account_; + } +} + +void Report::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Report::descriptor() { + protobuf_AssignDescriptorsOnce(); + return Report_descriptor_; +} + +const Report& Report::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_report_5ftypes_2eproto(); + return *default_instance_; +} + +Report* Report::default_instance_ = NULL; + +Report* Report::New() const { + return new Report; +} + +void Report::Clear() { +#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ + &reinterpret_cast<Report*>(16)->f) - \ + reinterpret_cast<char*>(16)) + +#define ZR_(first, last) do { \ + size_t f = OFFSET_OF_FIELD_(first); \ + size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ + ::memset(&first, 0, n); \ + } while (0) + + if (_has_bits_[0 / 32] & 61) { + ZR_(report_timestamp_, report_qos_); + if (has_report_type()) { + if (report_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + report_type_->clear(); + } + } + if (has_reporting_account()) { + if (reporting_account_ != NULL) reporting_account_->::bgs::protocol::EntityId::Clear(); + } + if (has_reporting_game_account()) { + if (reporting_game_account_ != NULL) reporting_game_account_->::bgs::protocol::EntityId::Clear(); + } + } + +#undef OFFSET_OF_FIELD_ +#undef ZR_ + + attribute_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Report::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.report.v1.Report) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string report_type = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_report_type())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->report_type().data(), this->report_type().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "report_type"); + } else { + goto handle_unusual; + } + if (input->ExpectTag(18)) goto parse_attribute; + break; + } + + // repeated .bgs.protocol.Attribute attribute = 2; + case 2: { + if (tag == 18) { + parse_attribute: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_attribute())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(18)) goto parse_attribute; + if (input->ExpectTag(24)) goto parse_report_qos; + break; + } + + // optional int32 report_qos = 3 [default = 0]; + case 3: { + if (tag == 24) { + parse_report_qos: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &report_qos_))); + set_has_report_qos(); + } else { + goto handle_unusual; + } + if (input->ExpectTag(34)) goto parse_reporting_account; + break; + } + + // optional .bgs.protocol.EntityId reporting_account = 4; + case 4: { + if (tag == 34) { + parse_reporting_account: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_reporting_account())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(42)) goto parse_reporting_game_account; + break; + } + + // optional .bgs.protocol.EntityId reporting_game_account = 5; + case 5: { + if (tag == 42) { + parse_reporting_game_account: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_reporting_game_account())); + } else { + goto handle_unusual; + } + if (input->ExpectTag(49)) goto parse_report_timestamp; + break; + } + + // optional fixed64 report_timestamp = 6; + case 6: { + if (tag == 49) { + parse_report_timestamp: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( + input, &report_timestamp_))); + set_has_report_timestamp(); + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.report.v1.Report) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.report.v1.Report) + return false; +#undef DO_ +} + +void Report::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.report.v1.Report) + // required string report_type = 1; + if (has_report_type()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->report_type().data(), this->report_type().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "report_type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->report_type(), output); + } + + // repeated .bgs.protocol.Attribute attribute = 2; + for (int i = 0; i < this->attribute_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->attribute(i), output); + } + + // optional int32 report_qos = 3 [default = 0]; + if (has_report_qos()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->report_qos(), output); + } + + // optional .bgs.protocol.EntityId reporting_account = 4; + if (has_reporting_account()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->reporting_account(), output); + } + + // optional .bgs.protocol.EntityId reporting_game_account = 5; + if (has_reporting_game_account()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->reporting_game_account(), output); + } + + // optional fixed64 report_timestamp = 6; + if (has_report_timestamp()) { + ::google::protobuf::internal::WireFormatLite::WriteFixed64(6, this->report_timestamp(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.report.v1.Report) +} + +::google::protobuf::uint8* Report::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.report.v1.Report) + // required string report_type = 1; + if (has_report_type()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->report_type().data(), this->report_type().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "report_type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->report_type(), target); + } + + // repeated .bgs.protocol.Attribute attribute = 2; + for (int i = 0; i < this->attribute_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->attribute(i), target); + } + + // optional int32 report_qos = 3 [default = 0]; + if (has_report_qos()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->report_qos(), target); + } + + // optional .bgs.protocol.EntityId reporting_account = 4; + if (has_reporting_account()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->reporting_account(), target); + } + + // optional .bgs.protocol.EntityId reporting_game_account = 5; + if (has_reporting_game_account()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->reporting_game_account(), target); + } + + // optional fixed64 report_timestamp = 6; + if (has_report_timestamp()) { + target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(6, this->report_timestamp(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.report.v1.Report) + return target; +} + +int Report::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string report_type = 1; + if (has_report_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->report_type()); + } + + // optional int32 report_qos = 3 [default = 0]; + if (has_report_qos()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->report_qos()); + } + + // optional .bgs.protocol.EntityId reporting_account = 4; + if (has_reporting_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->reporting_account()); + } + + // optional .bgs.protocol.EntityId reporting_game_account = 5; + if (has_reporting_game_account()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->reporting_game_account()); + } + + // optional fixed64 report_timestamp = 6; + if (has_report_timestamp()) { + total_size += 1 + 8; + } + + } + // repeated .bgs.protocol.Attribute attribute = 2; + total_size += 1 * this->attribute_size(); + for (int i = 0; i < this->attribute_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->attribute(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Report::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Report* source = + ::google::protobuf::internal::dynamic_cast_if_available<const Report*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Report::MergeFrom(const Report& from) { + GOOGLE_CHECK_NE(&from, this); + attribute_.MergeFrom(from.attribute_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_report_type()) { + set_report_type(from.report_type()); + } + if (from.has_report_qos()) { + set_report_qos(from.report_qos()); + } + if (from.has_reporting_account()) { + mutable_reporting_account()->::bgs::protocol::EntityId::MergeFrom(from.reporting_account()); + } + if (from.has_reporting_game_account()) { + mutable_reporting_game_account()->::bgs::protocol::EntityId::MergeFrom(from.reporting_game_account()); + } + if (from.has_report_timestamp()) { + set_report_timestamp(from.report_timestamp()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Report::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Report::CopyFrom(const Report& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Report::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (!::google::protobuf::internal::AllAreInitialized(this->attribute())) return false; + if (has_reporting_account()) { + if (!this->reporting_account().IsInitialized()) return false; + } + if (has_reporting_game_account()) { + if (!this->reporting_game_account().IsInitialized()) return false; + } + return true; +} + +void Report::Swap(Report* other) { + if (other != this) { + std::swap(report_type_, other->report_type_); + attribute_.Swap(&other->attribute_); + std::swap(report_qos_, other->report_qos_); + std::swap(reporting_account_, other->reporting_account_); + std::swap(reporting_game_account_, other->reporting_game_account_); + std::swap(report_timestamp_, other->report_timestamp_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Report::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Report_descriptor_; + metadata.reflection = Report_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace report +} // namespace protocol +} // namespace bgs + +// @@protoc_insertion_point(global_scope) diff --git a/src/server/proto/Client/report_types.pb.h b/src/server/proto/Client/report_types.pb.h new file mode 100644 index 00000000000..79a81218660 --- /dev/null +++ b/src/server/proto/Client/report_types.pb.h @@ -0,0 +1,2446 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: report_types.proto + +#ifndef PROTOBUF_report_5ftypes_2eproto__INCLUDED +#define PROTOBUF_report_5ftypes_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 2006000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> +#include <google/protobuf/extension_set.h> +#include <google/protobuf/generated_enum_reflection.h> +#include <google/protobuf/unknown_field_set.h> +#include "account_types.pb.h" +#include "attribute_types.pb.h" +#include "entity_types.pb.h" +#include "rpc_types.pb.h" +#include "Define.h" // for TC_PROTO_API +// @@protoc_insertion_point(includes) + +namespace bgs { +namespace protocol { +namespace report { +namespace v1 { + +// Internal implementation detail -- do not call these. +void TC_PROTO_API protobuf_AddDesc_report_5ftypes_2eproto(); +void protobuf_AssignDesc_report_5ftypes_2eproto(); +void protobuf_ShutdownFile_report_5ftypes_2eproto(); + +class ReportType; +class CustomReport; +class SpamReport; +class HarassmentReport; +class RealLifeThreatReport; +class InappropriateBattleTagReport; +class HackingReport; +class BottingReport; +class Report; + +enum SpamReport_SpamSource { + SpamReport_SpamSource_OTHER = 1, + SpamReport_SpamSource_FRIEND_INVITE = 2, + SpamReport_SpamSource_WHISPER = 3, + SpamReport_SpamSource_CHAT = 4 +}; +TC_PROTO_API bool SpamReport_SpamSource_IsValid(int value); +const SpamReport_SpamSource SpamReport_SpamSource_SpamSource_MIN = SpamReport_SpamSource_OTHER; +const SpamReport_SpamSource SpamReport_SpamSource_SpamSource_MAX = SpamReport_SpamSource_CHAT; +const int SpamReport_SpamSource_SpamSource_ARRAYSIZE = SpamReport_SpamSource_SpamSource_MAX + 1; + +TC_PROTO_API const ::google::protobuf::EnumDescriptor* SpamReport_SpamSource_descriptor(); +inline const ::std::string& SpamReport_SpamSource_Name(SpamReport_SpamSource value) { + return ::google::protobuf::internal::NameOfEnum( + SpamReport_SpamSource_descriptor(), value); +} +inline bool SpamReport_SpamSource_Parse( + const ::std::string& name, SpamReport_SpamSource* value) { + return ::google::protobuf::internal::ParseNamedEnum<SpamReport_SpamSource>( + SpamReport_SpamSource_descriptor(), name, value); +} +// =================================================================== + +class TC_PROTO_API ReportType : public ::google::protobuf::Message { + public: + ReportType(); + virtual ~ReportType(); + + ReportType(const ReportType& from); + + inline ReportType& operator=(const ReportType& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ReportType& default_instance(); + + enum TypeCase { + kCustomReport = 10, + kSpamReport = 11, + kHarassmentReport = 12, + kRealLifeThreatReport = 13, + kInappropriateBattleTagReport = 14, + kHackingReport = 15, + kBottingReport = 16, + TYPE_NOT_SET = 0, + }; + + void Swap(ReportType* other); + + // implements Message ---------------------------------------------- + + ReportType* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ReportType& from); + void MergeFrom(const ReportType& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string note = 1; + inline bool has_note() const; + inline void clear_note(); + static const int kNoteFieldNumber = 1; + inline const ::std::string& note() const; + inline void set_note(const ::std::string& value); + inline void set_note(const char* value); + inline void set_note(const char* value, size_t size); + inline ::std::string* mutable_note(); + inline ::std::string* release_note(); + inline void set_allocated_note(::std::string* note); + + // optional .bgs.protocol.report.v1.CustomReport custom_report = 10; + inline bool has_custom_report() const; + inline void clear_custom_report(); + static const int kCustomReportFieldNumber = 10; + inline const ::bgs::protocol::report::v1::CustomReport& custom_report() const; + inline ::bgs::protocol::report::v1::CustomReport* mutable_custom_report(); + inline ::bgs::protocol::report::v1::CustomReport* release_custom_report(); + inline void set_allocated_custom_report(::bgs::protocol::report::v1::CustomReport* custom_report); + + // optional .bgs.protocol.report.v1.SpamReport spam_report = 11; + inline bool has_spam_report() const; + inline void clear_spam_report(); + static const int kSpamReportFieldNumber = 11; + inline const ::bgs::protocol::report::v1::SpamReport& spam_report() const; + inline ::bgs::protocol::report::v1::SpamReport* mutable_spam_report(); + inline ::bgs::protocol::report::v1::SpamReport* release_spam_report(); + inline void set_allocated_spam_report(::bgs::protocol::report::v1::SpamReport* spam_report); + + // optional .bgs.protocol.report.v1.HarassmentReport harassment_report = 12; + inline bool has_harassment_report() const; + inline void clear_harassment_report(); + static const int kHarassmentReportFieldNumber = 12; + inline const ::bgs::protocol::report::v1::HarassmentReport& harassment_report() const; + inline ::bgs::protocol::report::v1::HarassmentReport* mutable_harassment_report(); + inline ::bgs::protocol::report::v1::HarassmentReport* release_harassment_report(); + inline void set_allocated_harassment_report(::bgs::protocol::report::v1::HarassmentReport* harassment_report); + + // optional .bgs.protocol.report.v1.RealLifeThreatReport real_life_threat_report = 13; + inline bool has_real_life_threat_report() const; + inline void clear_real_life_threat_report(); + static const int kRealLifeThreatReportFieldNumber = 13; + inline const ::bgs::protocol::report::v1::RealLifeThreatReport& real_life_threat_report() const; + inline ::bgs::protocol::report::v1::RealLifeThreatReport* mutable_real_life_threat_report(); + inline ::bgs::protocol::report::v1::RealLifeThreatReport* release_real_life_threat_report(); + inline void set_allocated_real_life_threat_report(::bgs::protocol::report::v1::RealLifeThreatReport* real_life_threat_report); + + // optional .bgs.protocol.report.v1.InappropriateBattleTagReport inappropriate_battle_tag_report = 14; + inline bool has_inappropriate_battle_tag_report() const; + inline void clear_inappropriate_battle_tag_report(); + static const int kInappropriateBattleTagReportFieldNumber = 14; + inline const ::bgs::protocol::report::v1::InappropriateBattleTagReport& inappropriate_battle_tag_report() const; + inline ::bgs::protocol::report::v1::InappropriateBattleTagReport* mutable_inappropriate_battle_tag_report(); + inline ::bgs::protocol::report::v1::InappropriateBattleTagReport* release_inappropriate_battle_tag_report(); + inline void set_allocated_inappropriate_battle_tag_report(::bgs::protocol::report::v1::InappropriateBattleTagReport* inappropriate_battle_tag_report); + + // optional .bgs.protocol.report.v1.HackingReport hacking_report = 15; + inline bool has_hacking_report() const; + inline void clear_hacking_report(); + static const int kHackingReportFieldNumber = 15; + inline const ::bgs::protocol::report::v1::HackingReport& hacking_report() const; + inline ::bgs::protocol::report::v1::HackingReport* mutable_hacking_report(); + inline ::bgs::protocol::report::v1::HackingReport* release_hacking_report(); + inline void set_allocated_hacking_report(::bgs::protocol::report::v1::HackingReport* hacking_report); + + // optional .bgs.protocol.report.v1.BottingReport botting_report = 16; + inline bool has_botting_report() const; + inline void clear_botting_report(); + static const int kBottingReportFieldNumber = 16; + inline const ::bgs::protocol::report::v1::BottingReport& botting_report() const; + inline ::bgs::protocol::report::v1::BottingReport* mutable_botting_report(); + inline ::bgs::protocol::report::v1::BottingReport* release_botting_report(); + inline void set_allocated_botting_report(::bgs::protocol::report::v1::BottingReport* botting_report); + + inline TypeCase type_case() const; + // @@protoc_insertion_point(class_scope:bgs.protocol.report.v1.ReportType) + private: + inline void set_has_note(); + inline void clear_has_note(); + inline void set_has_custom_report(); + inline void set_has_spam_report(); + inline void set_has_harassment_report(); + inline void set_has_real_life_threat_report(); + inline void set_has_inappropriate_battle_tag_report(); + inline void set_has_hacking_report(); + inline void set_has_botting_report(); + + inline bool has_type(); + void clear_type(); + inline void clear_has_type(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::std::string* note_; + union TypeUnion { + ::bgs::protocol::report::v1::CustomReport* custom_report_; + ::bgs::protocol::report::v1::SpamReport* spam_report_; + ::bgs::protocol::report::v1::HarassmentReport* harassment_report_; + ::bgs::protocol::report::v1::RealLifeThreatReport* real_life_threat_report_; + ::bgs::protocol::report::v1::InappropriateBattleTagReport* inappropriate_battle_tag_report_; + ::bgs::protocol::report::v1::HackingReport* hacking_report_; + ::bgs::protocol::report::v1::BottingReport* botting_report_; + } type_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend void TC_PROTO_API protobuf_AddDesc_report_5ftypes_2eproto(); + friend void protobuf_AssignDesc_report_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_report_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static ReportType* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API CustomReport : public ::google::protobuf::Message { + public: + CustomReport(); + virtual ~CustomReport(); + + CustomReport(const CustomReport& from); + + inline CustomReport& operator=(const CustomReport& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CustomReport& default_instance(); + + void Swap(CustomReport* other); + + // implements Message ---------------------------------------------- + + CustomReport* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CustomReport& from); + void MergeFrom(const CustomReport& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string type = 1; + inline bool has_type() const; + inline void clear_type(); + static const int kTypeFieldNumber = 1; + inline const ::std::string& type() const; + inline void set_type(const ::std::string& value); + inline void set_type(const char* value); + inline void set_type(const char* value, size_t size); + inline ::std::string* mutable_type(); + inline ::std::string* release_type(); + inline void set_allocated_type(::std::string* type); + + // optional string programId = 2; + inline bool has_programid() const; + inline void clear_programid(); + static const int kProgramIdFieldNumber = 2; + inline const ::std::string& programid() const; + inline void set_programid(const ::std::string& value); + inline void set_programid(const char* value); + inline void set_programid(const char* value, size_t size); + inline ::std::string* mutable_programid(); + inline ::std::string* release_programid(); + inline void set_allocated_programid(::std::string* programid); + + // repeated .bgs.protocol.Attribute attribute = 3; + inline int attribute_size() const; + inline void clear_attribute(); + static const int kAttributeFieldNumber = 3; + inline const ::bgs::protocol::Attribute& attribute(int index) const; + inline ::bgs::protocol::Attribute* mutable_attribute(int index); + inline ::bgs::protocol::Attribute* add_attribute(); + inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >& + attribute() const; + inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >* + mutable_attribute(); + + // @@protoc_insertion_point(class_scope:bgs.protocol.report.v1.CustomReport) + private: + inline void set_has_type(); + inline void clear_has_type(); + inline void set_has_programid(); + inline void clear_has_programid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::std::string* type_; + ::std::string* programid_; + ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_; + friend void TC_PROTO_API protobuf_AddDesc_report_5ftypes_2eproto(); + friend void protobuf_AssignDesc_report_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_report_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static CustomReport* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API SpamReport : public ::google::protobuf::Message { + public: + SpamReport(); + virtual ~SpamReport(); + + SpamReport(const SpamReport& from); + + inline SpamReport& operator=(const SpamReport& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SpamReport& default_instance(); + + void Swap(SpamReport* other); + + // implements Message ---------------------------------------------- + + SpamReport* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SpamReport& from); + void MergeFrom(const SpamReport& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef SpamReport_SpamSource SpamSource; + static const SpamSource OTHER = SpamReport_SpamSource_OTHER; + static const SpamSource FRIEND_INVITE = SpamReport_SpamSource_FRIEND_INVITE; + static const SpamSource WHISPER = SpamReport_SpamSource_WHISPER; + static const SpamSource CHAT = SpamReport_SpamSource_CHAT; + static inline bool SpamSource_IsValid(int value) { + return SpamReport_SpamSource_IsValid(value); + } + static const SpamSource SpamSource_MIN = + SpamReport_SpamSource_SpamSource_MIN; + static const SpamSource SpamSource_MAX = + SpamReport_SpamSource_SpamSource_MAX; + static const int SpamSource_ARRAYSIZE = + SpamReport_SpamSource_SpamSource_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + SpamSource_descriptor() { + return SpamReport_SpamSource_descriptor(); + } + static inline const ::std::string& SpamSource_Name(SpamSource value) { + return SpamReport_SpamSource_Name(value); + } + static inline bool SpamSource_Parse(const ::std::string& name, + SpamSource* value) { + return SpamReport_SpamSource_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + inline bool has_target() const; + inline void clear_target(); + static const int kTargetFieldNumber = 1; + inline const ::bgs::protocol::account::v1::GameAccountHandle& target() const; + inline ::bgs::protocol::account::v1::GameAccountHandle* mutable_target(); + inline ::bgs::protocol::account::v1::GameAccountHandle* release_target(); + inline void set_allocated_target(::bgs::protocol::account::v1::GameAccountHandle* target); + + // optional .bgs.protocol.report.v1.SpamReport.SpamSource source = 2 [default = OTHER]; + inline bool has_source() const; + inline void clear_source(); + static const int kSourceFieldNumber = 2; + inline ::bgs::protocol::report::v1::SpamReport_SpamSource source() const; + inline void set_source(::bgs::protocol::report::v1::SpamReport_SpamSource value); + + // @@protoc_insertion_point(class_scope:bgs.protocol.report.v1.SpamReport) + private: + inline void set_has_target(); + inline void clear_has_target(); + inline void set_has_source(); + inline void clear_has_source(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::account::v1::GameAccountHandle* target_; + int source_; + friend void TC_PROTO_API protobuf_AddDesc_report_5ftypes_2eproto(); + friend void protobuf_AssignDesc_report_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_report_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static SpamReport* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API HarassmentReport : public ::google::protobuf::Message { + public: + HarassmentReport(); + virtual ~HarassmentReport(); + + HarassmentReport(const HarassmentReport& from); + + inline HarassmentReport& operator=(const HarassmentReport& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const HarassmentReport& default_instance(); + + void Swap(HarassmentReport* other); + + // implements Message ---------------------------------------------- + + HarassmentReport* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const HarassmentReport& from); + void MergeFrom(const HarassmentReport& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + inline bool has_target() const; + inline void clear_target(); + static const int kTargetFieldNumber = 1; + inline const ::bgs::protocol::account::v1::GameAccountHandle& target() const; + inline ::bgs::protocol::account::v1::GameAccountHandle* mutable_target(); + inline ::bgs::protocol::account::v1::GameAccountHandle* release_target(); + inline void set_allocated_target(::bgs::protocol::account::v1::GameAccountHandle* target); + + // optional string text = 2; + inline bool has_text() const; + inline void clear_text(); + static const int kTextFieldNumber = 2; + inline const ::std::string& text() const; + inline void set_text(const ::std::string& value); + inline void set_text(const char* value); + inline void set_text(const char* value, size_t size); + inline ::std::string* mutable_text(); + inline ::std::string* release_text(); + inline void set_allocated_text(::std::string* text); + + // @@protoc_insertion_point(class_scope:bgs.protocol.report.v1.HarassmentReport) + private: + inline void set_has_target(); + inline void clear_has_target(); + inline void set_has_text(); + inline void clear_has_text(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::account::v1::GameAccountHandle* target_; + ::std::string* text_; + friend void TC_PROTO_API protobuf_AddDesc_report_5ftypes_2eproto(); + friend void protobuf_AssignDesc_report_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_report_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static HarassmentReport* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API RealLifeThreatReport : public ::google::protobuf::Message { + public: + RealLifeThreatReport(); + virtual ~RealLifeThreatReport(); + + RealLifeThreatReport(const RealLifeThreatReport& from); + + inline RealLifeThreatReport& operator=(const RealLifeThreatReport& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RealLifeThreatReport& default_instance(); + + void Swap(RealLifeThreatReport* other); + + // implements Message ---------------------------------------------- + + RealLifeThreatReport* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RealLifeThreatReport& from); + void MergeFrom(const RealLifeThreatReport& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + inline bool has_target() const; + inline void clear_target(); + static const int kTargetFieldNumber = 1; + inline const ::bgs::protocol::account::v1::GameAccountHandle& target() const; + inline ::bgs::protocol::account::v1::GameAccountHandle* mutable_target(); + inline ::bgs::protocol::account::v1::GameAccountHandle* release_target(); + inline void set_allocated_target(::bgs::protocol::account::v1::GameAccountHandle* target); + + // optional string text = 2; + inline bool has_text() const; + inline void clear_text(); + static const int kTextFieldNumber = 2; + inline const ::std::string& text() const; + inline void set_text(const ::std::string& value); + inline void set_text(const char* value); + inline void set_text(const char* value, size_t size); + inline ::std::string* mutable_text(); + inline ::std::string* release_text(); + inline void set_allocated_text(::std::string* text); + + // @@protoc_insertion_point(class_scope:bgs.protocol.report.v1.RealLifeThreatReport) + private: + inline void set_has_target(); + inline void clear_has_target(); + inline void set_has_text(); + inline void clear_has_text(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::account::v1::GameAccountHandle* target_; + ::std::string* text_; + friend void TC_PROTO_API protobuf_AddDesc_report_5ftypes_2eproto(); + friend void protobuf_AssignDesc_report_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_report_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static RealLifeThreatReport* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API InappropriateBattleTagReport : public ::google::protobuf::Message { + public: + InappropriateBattleTagReport(); + virtual ~InappropriateBattleTagReport(); + + InappropriateBattleTagReport(const InappropriateBattleTagReport& from); + + inline InappropriateBattleTagReport& operator=(const InappropriateBattleTagReport& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const InappropriateBattleTagReport& default_instance(); + + void Swap(InappropriateBattleTagReport* other); + + // implements Message ---------------------------------------------- + + InappropriateBattleTagReport* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const InappropriateBattleTagReport& from); + void MergeFrom(const InappropriateBattleTagReport& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + inline bool has_target() const; + inline void clear_target(); + static const int kTargetFieldNumber = 1; + inline const ::bgs::protocol::account::v1::GameAccountHandle& target() const; + inline ::bgs::protocol::account::v1::GameAccountHandle* mutable_target(); + inline ::bgs::protocol::account::v1::GameAccountHandle* release_target(); + inline void set_allocated_target(::bgs::protocol::account::v1::GameAccountHandle* target); + + // optional string battle_tag = 2; + inline bool has_battle_tag() const; + inline void clear_battle_tag(); + static const int kBattleTagFieldNumber = 2; + inline const ::std::string& battle_tag() const; + inline void set_battle_tag(const ::std::string& value); + inline void set_battle_tag(const char* value); + inline void set_battle_tag(const char* value, size_t size); + inline ::std::string* mutable_battle_tag(); + inline ::std::string* release_battle_tag(); + inline void set_allocated_battle_tag(::std::string* battle_tag); + + // @@protoc_insertion_point(class_scope:bgs.protocol.report.v1.InappropriateBattleTagReport) + private: + inline void set_has_target(); + inline void clear_has_target(); + inline void set_has_battle_tag(); + inline void clear_has_battle_tag(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::account::v1::GameAccountHandle* target_; + ::std::string* battle_tag_; + friend void TC_PROTO_API protobuf_AddDesc_report_5ftypes_2eproto(); + friend void protobuf_AssignDesc_report_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_report_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static InappropriateBattleTagReport* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API HackingReport : public ::google::protobuf::Message { + public: + HackingReport(); + virtual ~HackingReport(); + + HackingReport(const HackingReport& from); + + inline HackingReport& operator=(const HackingReport& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const HackingReport& default_instance(); + + void Swap(HackingReport* other); + + // implements Message ---------------------------------------------- + + HackingReport* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const HackingReport& from); + void MergeFrom(const HackingReport& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + inline bool has_target() const; + inline void clear_target(); + static const int kTargetFieldNumber = 1; + inline const ::bgs::protocol::account::v1::GameAccountHandle& target() const; + inline ::bgs::protocol::account::v1::GameAccountHandle* mutable_target(); + inline ::bgs::protocol::account::v1::GameAccountHandle* release_target(); + inline void set_allocated_target(::bgs::protocol::account::v1::GameAccountHandle* target); + + // @@protoc_insertion_point(class_scope:bgs.protocol.report.v1.HackingReport) + private: + inline void set_has_target(); + inline void clear_has_target(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::account::v1::GameAccountHandle* target_; + friend void TC_PROTO_API protobuf_AddDesc_report_5ftypes_2eproto(); + friend void protobuf_AssignDesc_report_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_report_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static HackingReport* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API BottingReport : public ::google::protobuf::Message { + public: + BottingReport(); + virtual ~BottingReport(); + + BottingReport(const BottingReport& from); + + inline BottingReport& operator=(const BottingReport& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BottingReport& default_instance(); + + void Swap(BottingReport* other); + + // implements Message ---------------------------------------------- + + BottingReport* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const BottingReport& from); + void MergeFrom(const BottingReport& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .bgs.protocol.account.v1.GameAccountHandle target = 1; + inline bool has_target() const; + inline void clear_target(); + static const int kTargetFieldNumber = 1; + inline const ::bgs::protocol::account::v1::GameAccountHandle& target() const; + inline ::bgs::protocol::account::v1::GameAccountHandle* mutable_target(); + inline ::bgs::protocol::account::v1::GameAccountHandle* release_target(); + inline void set_allocated_target(::bgs::protocol::account::v1::GameAccountHandle* target); + + // @@protoc_insertion_point(class_scope:bgs.protocol.report.v1.BottingReport) + private: + inline void set_has_target(); + inline void clear_has_target(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::bgs::protocol::account::v1::GameAccountHandle* target_; + friend void TC_PROTO_API protobuf_AddDesc_report_5ftypes_2eproto(); + friend void protobuf_AssignDesc_report_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_report_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static BottingReport* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API Report : public ::google::protobuf::Message { + public: + Report(); + virtual ~Report(); + + Report(const Report& from); + + inline Report& operator=(const Report& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Report& default_instance(); + + void Swap(Report* other); + + // implements Message ---------------------------------------------- + + Report* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const Report& from); + void MergeFrom(const Report& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string report_type = 1; + inline bool has_report_type() const; + inline void clear_report_type(); + static const int kReportTypeFieldNumber = 1; + inline const ::std::string& report_type() const; + inline void set_report_type(const ::std::string& value); + inline void set_report_type(const char* value); + inline void set_report_type(const char* value, size_t size); + inline ::std::string* mutable_report_type(); + inline ::std::string* release_report_type(); + inline void set_allocated_report_type(::std::string* report_type); + + // repeated .bgs.protocol.Attribute attribute = 2; + inline int attribute_size() const; + inline void clear_attribute(); + static const int kAttributeFieldNumber = 2; + inline const ::bgs::protocol::Attribute& attribute(int index) const; + inline ::bgs::protocol::Attribute* mutable_attribute(int index); + inline ::bgs::protocol::Attribute* add_attribute(); + inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >& + attribute() const; + inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >* + mutable_attribute(); + + // optional int32 report_qos = 3 [default = 0]; + inline bool has_report_qos() const; + inline void clear_report_qos(); + static const int kReportQosFieldNumber = 3; + inline ::google::protobuf::int32 report_qos() const; + inline void set_report_qos(::google::protobuf::int32 value); + + // optional .bgs.protocol.EntityId reporting_account = 4; + inline bool has_reporting_account() const; + inline void clear_reporting_account(); + static const int kReportingAccountFieldNumber = 4; + inline const ::bgs::protocol::EntityId& reporting_account() const; + inline ::bgs::protocol::EntityId* mutable_reporting_account(); + inline ::bgs::protocol::EntityId* release_reporting_account(); + inline void set_allocated_reporting_account(::bgs::protocol::EntityId* reporting_account); + + // optional .bgs.protocol.EntityId reporting_game_account = 5; + inline bool has_reporting_game_account() const; + inline void clear_reporting_game_account(); + static const int kReportingGameAccountFieldNumber = 5; + inline const ::bgs::protocol::EntityId& reporting_game_account() const; + inline ::bgs::protocol::EntityId* mutable_reporting_game_account(); + inline ::bgs::protocol::EntityId* release_reporting_game_account(); + inline void set_allocated_reporting_game_account(::bgs::protocol::EntityId* reporting_game_account); + + // optional fixed64 report_timestamp = 6; + inline bool has_report_timestamp() const; + inline void clear_report_timestamp(); + static const int kReportTimestampFieldNumber = 6; + inline ::google::protobuf::uint64 report_timestamp() const; + inline void set_report_timestamp(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:bgs.protocol.report.v1.Report) + private: + inline void set_has_report_type(); + inline void clear_has_report_type(); + inline void set_has_report_qos(); + inline void clear_has_report_qos(); + inline void set_has_reporting_account(); + inline void clear_has_reporting_account(); + inline void set_has_reporting_game_account(); + inline void clear_has_reporting_game_account(); + inline void set_has_report_timestamp(); + inline void clear_has_report_timestamp(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::std::string* report_type_; + ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_; + ::bgs::protocol::EntityId* reporting_account_; + ::bgs::protocol::EntityId* reporting_game_account_; + ::google::protobuf::uint64 report_timestamp_; + ::google::protobuf::int32 report_qos_; + friend void TC_PROTO_API protobuf_AddDesc_report_5ftypes_2eproto(); + friend void protobuf_AssignDesc_report_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_report_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static Report* default_instance_; +}; +// =================================================================== + + +// =================================================================== + + +// =================================================================== + +// ReportType + +// optional string note = 1; +inline bool ReportType::has_note() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ReportType::set_has_note() { + _has_bits_[0] |= 0x00000001u; +} +inline void ReportType::clear_has_note() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ReportType::clear_note() { + if (note_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + note_->clear(); + } + clear_has_note(); +} +inline const ::std::string& ReportType::note() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.ReportType.note) + return *note_; +} +inline void ReportType::set_note(const ::std::string& value) { + set_has_note(); + if (note_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + note_ = new ::std::string; + } + note_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.report.v1.ReportType.note) +} +inline void ReportType::set_note(const char* value) { + set_has_note(); + if (note_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + note_ = new ::std::string; + } + note_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.report.v1.ReportType.note) +} +inline void ReportType::set_note(const char* value, size_t size) { + set_has_note(); + if (note_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + note_ = new ::std::string; + } + note_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.report.v1.ReportType.note) +} +inline ::std::string* ReportType::mutable_note() { + set_has_note(); + if (note_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + note_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.ReportType.note) + return note_; +} +inline ::std::string* ReportType::release_note() { + clear_has_note(); + if (note_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = note_; + note_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void ReportType::set_allocated_note(::std::string* note) { + if (note_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete note_; + } + if (note) { + set_has_note(); + note_ = note; + } else { + clear_has_note(); + note_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.ReportType.note) +} + +// optional .bgs.protocol.report.v1.CustomReport custom_report = 10; +inline bool ReportType::has_custom_report() const { + return type_case() == kCustomReport; +} +inline void ReportType::set_has_custom_report() { + _oneof_case_[0] = kCustomReport; +} +inline void ReportType::clear_custom_report() { + if (has_custom_report()) { + delete type_.custom_report_; + clear_has_type(); + } +} +inline const ::bgs::protocol::report::v1::CustomReport& ReportType::custom_report() const { + return has_custom_report() ? *type_.custom_report_ + : ::bgs::protocol::report::v1::CustomReport::default_instance(); +} +inline ::bgs::protocol::report::v1::CustomReport* ReportType::mutable_custom_report() { + if (!has_custom_report()) { + clear_type(); + set_has_custom_report(); + type_.custom_report_ = new ::bgs::protocol::report::v1::CustomReport; + } + return type_.custom_report_; +} +inline ::bgs::protocol::report::v1::CustomReport* ReportType::release_custom_report() { + if (has_custom_report()) { + clear_has_type(); + ::bgs::protocol::report::v1::CustomReport* temp = type_.custom_report_; + type_.custom_report_ = NULL; + return temp; + } else { + return NULL; + } +} +inline void ReportType::set_allocated_custom_report(::bgs::protocol::report::v1::CustomReport* custom_report) { + clear_type(); + if (custom_report) { + set_has_custom_report(); + type_.custom_report_ = custom_report; + } +} + +// optional .bgs.protocol.report.v1.SpamReport spam_report = 11; +inline bool ReportType::has_spam_report() const { + return type_case() == kSpamReport; +} +inline void ReportType::set_has_spam_report() { + _oneof_case_[0] = kSpamReport; +} +inline void ReportType::clear_spam_report() { + if (has_spam_report()) { + delete type_.spam_report_; + clear_has_type(); + } +} +inline const ::bgs::protocol::report::v1::SpamReport& ReportType::spam_report() const { + return has_spam_report() ? *type_.spam_report_ + : ::bgs::protocol::report::v1::SpamReport::default_instance(); +} +inline ::bgs::protocol::report::v1::SpamReport* ReportType::mutable_spam_report() { + if (!has_spam_report()) { + clear_type(); + set_has_spam_report(); + type_.spam_report_ = new ::bgs::protocol::report::v1::SpamReport; + } + return type_.spam_report_; +} +inline ::bgs::protocol::report::v1::SpamReport* ReportType::release_spam_report() { + if (has_spam_report()) { + clear_has_type(); + ::bgs::protocol::report::v1::SpamReport* temp = type_.spam_report_; + type_.spam_report_ = NULL; + return temp; + } else { + return NULL; + } +} +inline void ReportType::set_allocated_spam_report(::bgs::protocol::report::v1::SpamReport* spam_report) { + clear_type(); + if (spam_report) { + set_has_spam_report(); + type_.spam_report_ = spam_report; + } +} + +// optional .bgs.protocol.report.v1.HarassmentReport harassment_report = 12; +inline bool ReportType::has_harassment_report() const { + return type_case() == kHarassmentReport; +} +inline void ReportType::set_has_harassment_report() { + _oneof_case_[0] = kHarassmentReport; +} +inline void ReportType::clear_harassment_report() { + if (has_harassment_report()) { + delete type_.harassment_report_; + clear_has_type(); + } +} +inline const ::bgs::protocol::report::v1::HarassmentReport& ReportType::harassment_report() const { + return has_harassment_report() ? *type_.harassment_report_ + : ::bgs::protocol::report::v1::HarassmentReport::default_instance(); +} +inline ::bgs::protocol::report::v1::HarassmentReport* ReportType::mutable_harassment_report() { + if (!has_harassment_report()) { + clear_type(); + set_has_harassment_report(); + type_.harassment_report_ = new ::bgs::protocol::report::v1::HarassmentReport; + } + return type_.harassment_report_; +} +inline ::bgs::protocol::report::v1::HarassmentReport* ReportType::release_harassment_report() { + if (has_harassment_report()) { + clear_has_type(); + ::bgs::protocol::report::v1::HarassmentReport* temp = type_.harassment_report_; + type_.harassment_report_ = NULL; + return temp; + } else { + return NULL; + } +} +inline void ReportType::set_allocated_harassment_report(::bgs::protocol::report::v1::HarassmentReport* harassment_report) { + clear_type(); + if (harassment_report) { + set_has_harassment_report(); + type_.harassment_report_ = harassment_report; + } +} + +// optional .bgs.protocol.report.v1.RealLifeThreatReport real_life_threat_report = 13; +inline bool ReportType::has_real_life_threat_report() const { + return type_case() == kRealLifeThreatReport; +} +inline void ReportType::set_has_real_life_threat_report() { + _oneof_case_[0] = kRealLifeThreatReport; +} +inline void ReportType::clear_real_life_threat_report() { + if (has_real_life_threat_report()) { + delete type_.real_life_threat_report_; + clear_has_type(); + } +} +inline const ::bgs::protocol::report::v1::RealLifeThreatReport& ReportType::real_life_threat_report() const { + return has_real_life_threat_report() ? *type_.real_life_threat_report_ + : ::bgs::protocol::report::v1::RealLifeThreatReport::default_instance(); +} +inline ::bgs::protocol::report::v1::RealLifeThreatReport* ReportType::mutable_real_life_threat_report() { + if (!has_real_life_threat_report()) { + clear_type(); + set_has_real_life_threat_report(); + type_.real_life_threat_report_ = new ::bgs::protocol::report::v1::RealLifeThreatReport; + } + return type_.real_life_threat_report_; +} +inline ::bgs::protocol::report::v1::RealLifeThreatReport* ReportType::release_real_life_threat_report() { + if (has_real_life_threat_report()) { + clear_has_type(); + ::bgs::protocol::report::v1::RealLifeThreatReport* temp = type_.real_life_threat_report_; + type_.real_life_threat_report_ = NULL; + return temp; + } else { + return NULL; + } +} +inline void ReportType::set_allocated_real_life_threat_report(::bgs::protocol::report::v1::RealLifeThreatReport* real_life_threat_report) { + clear_type(); + if (real_life_threat_report) { + set_has_real_life_threat_report(); + type_.real_life_threat_report_ = real_life_threat_report; + } +} + +// optional .bgs.protocol.report.v1.InappropriateBattleTagReport inappropriate_battle_tag_report = 14; +inline bool ReportType::has_inappropriate_battle_tag_report() const { + return type_case() == kInappropriateBattleTagReport; +} +inline void ReportType::set_has_inappropriate_battle_tag_report() { + _oneof_case_[0] = kInappropriateBattleTagReport; +} +inline void ReportType::clear_inappropriate_battle_tag_report() { + if (has_inappropriate_battle_tag_report()) { + delete type_.inappropriate_battle_tag_report_; + clear_has_type(); + } +} +inline const ::bgs::protocol::report::v1::InappropriateBattleTagReport& ReportType::inappropriate_battle_tag_report() const { + return has_inappropriate_battle_tag_report() ? *type_.inappropriate_battle_tag_report_ + : ::bgs::protocol::report::v1::InappropriateBattleTagReport::default_instance(); +} +inline ::bgs::protocol::report::v1::InappropriateBattleTagReport* ReportType::mutable_inappropriate_battle_tag_report() { + if (!has_inappropriate_battle_tag_report()) { + clear_type(); + set_has_inappropriate_battle_tag_report(); + type_.inappropriate_battle_tag_report_ = new ::bgs::protocol::report::v1::InappropriateBattleTagReport; + } + return type_.inappropriate_battle_tag_report_; +} +inline ::bgs::protocol::report::v1::InappropriateBattleTagReport* ReportType::release_inappropriate_battle_tag_report() { + if (has_inappropriate_battle_tag_report()) { + clear_has_type(); + ::bgs::protocol::report::v1::InappropriateBattleTagReport* temp = type_.inappropriate_battle_tag_report_; + type_.inappropriate_battle_tag_report_ = NULL; + return temp; + } else { + return NULL; + } +} +inline void ReportType::set_allocated_inappropriate_battle_tag_report(::bgs::protocol::report::v1::InappropriateBattleTagReport* inappropriate_battle_tag_report) { + clear_type(); + if (inappropriate_battle_tag_report) { + set_has_inappropriate_battle_tag_report(); + type_.inappropriate_battle_tag_report_ = inappropriate_battle_tag_report; + } +} + +// optional .bgs.protocol.report.v1.HackingReport hacking_report = 15; +inline bool ReportType::has_hacking_report() const { + return type_case() == kHackingReport; +} +inline void ReportType::set_has_hacking_report() { + _oneof_case_[0] = kHackingReport; +} +inline void ReportType::clear_hacking_report() { + if (has_hacking_report()) { + delete type_.hacking_report_; + clear_has_type(); + } +} +inline const ::bgs::protocol::report::v1::HackingReport& ReportType::hacking_report() const { + return has_hacking_report() ? *type_.hacking_report_ + : ::bgs::protocol::report::v1::HackingReport::default_instance(); +} +inline ::bgs::protocol::report::v1::HackingReport* ReportType::mutable_hacking_report() { + if (!has_hacking_report()) { + clear_type(); + set_has_hacking_report(); + type_.hacking_report_ = new ::bgs::protocol::report::v1::HackingReport; + } + return type_.hacking_report_; +} +inline ::bgs::protocol::report::v1::HackingReport* ReportType::release_hacking_report() { + if (has_hacking_report()) { + clear_has_type(); + ::bgs::protocol::report::v1::HackingReport* temp = type_.hacking_report_; + type_.hacking_report_ = NULL; + return temp; + } else { + return NULL; + } +} +inline void ReportType::set_allocated_hacking_report(::bgs::protocol::report::v1::HackingReport* hacking_report) { + clear_type(); + if (hacking_report) { + set_has_hacking_report(); + type_.hacking_report_ = hacking_report; + } +} + +// optional .bgs.protocol.report.v1.BottingReport botting_report = 16; +inline bool ReportType::has_botting_report() const { + return type_case() == kBottingReport; +} +inline void ReportType::set_has_botting_report() { + _oneof_case_[0] = kBottingReport; +} +inline void ReportType::clear_botting_report() { + if (has_botting_report()) { + delete type_.botting_report_; + clear_has_type(); + } +} +inline const ::bgs::protocol::report::v1::BottingReport& ReportType::botting_report() const { + return has_botting_report() ? *type_.botting_report_ + : ::bgs::protocol::report::v1::BottingReport::default_instance(); +} +inline ::bgs::protocol::report::v1::BottingReport* ReportType::mutable_botting_report() { + if (!has_botting_report()) { + clear_type(); + set_has_botting_report(); + type_.botting_report_ = new ::bgs::protocol::report::v1::BottingReport; + } + return type_.botting_report_; +} +inline ::bgs::protocol::report::v1::BottingReport* ReportType::release_botting_report() { + if (has_botting_report()) { + clear_has_type(); + ::bgs::protocol::report::v1::BottingReport* temp = type_.botting_report_; + type_.botting_report_ = NULL; + return temp; + } else { + return NULL; + } +} +inline void ReportType::set_allocated_botting_report(::bgs::protocol::report::v1::BottingReport* botting_report) { + clear_type(); + if (botting_report) { + set_has_botting_report(); + type_.botting_report_ = botting_report; + } +} + +inline bool ReportType::has_type() { + return type_case() != TYPE_NOT_SET; +} +inline void ReportType::clear_has_type() { + _oneof_case_[0] = TYPE_NOT_SET; +} +inline ReportType::TypeCase ReportType::type_case() const { + return ReportType::TypeCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// CustomReport + +// optional string type = 1; +inline bool CustomReport::has_type() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CustomReport::set_has_type() { + _has_bits_[0] |= 0x00000001u; +} +inline void CustomReport::clear_has_type() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CustomReport::clear_type() { + if (type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + type_->clear(); + } + clear_has_type(); +} +inline const ::std::string& CustomReport::type() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.CustomReport.type) + return *type_; +} +inline void CustomReport::set_type(const ::std::string& value) { + set_has_type(); + if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + type_ = new ::std::string; + } + type_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.report.v1.CustomReport.type) +} +inline void CustomReport::set_type(const char* value) { + set_has_type(); + if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + type_ = new ::std::string; + } + type_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.report.v1.CustomReport.type) +} +inline void CustomReport::set_type(const char* value, size_t size) { + set_has_type(); + if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + type_ = new ::std::string; + } + type_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.report.v1.CustomReport.type) +} +inline ::std::string* CustomReport::mutable_type() { + set_has_type(); + if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + type_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.CustomReport.type) + return type_; +} +inline ::std::string* CustomReport::release_type() { + clear_has_type(); + if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = type_; + type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void CustomReport::set_allocated_type(::std::string* type) { + if (type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete type_; + } + if (type) { + set_has_type(); + type_ = type; + } else { + clear_has_type(); + type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.CustomReport.type) +} + +// optional string programId = 2; +inline bool CustomReport::has_programid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CustomReport::set_has_programid() { + _has_bits_[0] |= 0x00000002u; +} +inline void CustomReport::clear_has_programid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CustomReport::clear_programid() { + if (programid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + programid_->clear(); + } + clear_has_programid(); +} +inline const ::std::string& CustomReport::programid() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.CustomReport.programId) + return *programid_; +} +inline void CustomReport::set_programid(const ::std::string& value) { + set_has_programid(); + if (programid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + programid_ = new ::std::string; + } + programid_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.report.v1.CustomReport.programId) +} +inline void CustomReport::set_programid(const char* value) { + set_has_programid(); + if (programid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + programid_ = new ::std::string; + } + programid_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.report.v1.CustomReport.programId) +} +inline void CustomReport::set_programid(const char* value, size_t size) { + set_has_programid(); + if (programid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + programid_ = new ::std::string; + } + programid_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.report.v1.CustomReport.programId) +} +inline ::std::string* CustomReport::mutable_programid() { + set_has_programid(); + if (programid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + programid_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.CustomReport.programId) + return programid_; +} +inline ::std::string* CustomReport::release_programid() { + clear_has_programid(); + if (programid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = programid_; + programid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void CustomReport::set_allocated_programid(::std::string* programid) { + if (programid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete programid_; + } + if (programid) { + set_has_programid(); + programid_ = programid; + } else { + clear_has_programid(); + programid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.CustomReport.programId) +} + +// repeated .bgs.protocol.Attribute attribute = 3; +inline int CustomReport::attribute_size() const { + return attribute_.size(); +} +inline void CustomReport::clear_attribute() { + attribute_.Clear(); +} +inline const ::bgs::protocol::Attribute& CustomReport::attribute(int index) const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.CustomReport.attribute) + return attribute_.Get(index); +} +inline ::bgs::protocol::Attribute* CustomReport::mutable_attribute(int index) { + // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.CustomReport.attribute) + return attribute_.Mutable(index); +} +inline ::bgs::protocol::Attribute* CustomReport::add_attribute() { + // @@protoc_insertion_point(field_add:bgs.protocol.report.v1.CustomReport.attribute) + return attribute_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >& +CustomReport::attribute() const { + // @@protoc_insertion_point(field_list:bgs.protocol.report.v1.CustomReport.attribute) + return attribute_; +} +inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >* +CustomReport::mutable_attribute() { + // @@protoc_insertion_point(field_mutable_list:bgs.protocol.report.v1.CustomReport.attribute) + return &attribute_; +} + +// ------------------------------------------------------------------- + +// SpamReport + +// optional .bgs.protocol.account.v1.GameAccountHandle target = 1; +inline bool SpamReport::has_target() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SpamReport::set_has_target() { + _has_bits_[0] |= 0x00000001u; +} +inline void SpamReport::clear_has_target() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SpamReport::clear_target() { + if (target_ != NULL) target_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + clear_has_target(); +} +inline const ::bgs::protocol::account::v1::GameAccountHandle& SpamReport::target() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.SpamReport.target) + return target_ != NULL ? *target_ : *default_instance_->target_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* SpamReport::mutable_target() { + set_has_target(); + if (target_ == NULL) target_ = new ::bgs::protocol::account::v1::GameAccountHandle; + // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.SpamReport.target) + return target_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* SpamReport::release_target() { + clear_has_target(); + ::bgs::protocol::account::v1::GameAccountHandle* temp = target_; + target_ = NULL; + return temp; +} +inline void SpamReport::set_allocated_target(::bgs::protocol::account::v1::GameAccountHandle* target) { + delete target_; + target_ = target; + if (target) { + set_has_target(); + } else { + clear_has_target(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.SpamReport.target) +} + +// optional .bgs.protocol.report.v1.SpamReport.SpamSource source = 2 [default = OTHER]; +inline bool SpamReport::has_source() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void SpamReport::set_has_source() { + _has_bits_[0] |= 0x00000002u; +} +inline void SpamReport::clear_has_source() { + _has_bits_[0] &= ~0x00000002u; +} +inline void SpamReport::clear_source() { + source_ = 1; + clear_has_source(); +} +inline ::bgs::protocol::report::v1::SpamReport_SpamSource SpamReport::source() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.SpamReport.source) + return static_cast< ::bgs::protocol::report::v1::SpamReport_SpamSource >(source_); +} +inline void SpamReport::set_source(::bgs::protocol::report::v1::SpamReport_SpamSource value) { + assert(::bgs::protocol::report::v1::SpamReport_SpamSource_IsValid(value)); + set_has_source(); + source_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.report.v1.SpamReport.source) +} + +// ------------------------------------------------------------------- + +// HarassmentReport + +// optional .bgs.protocol.account.v1.GameAccountHandle target = 1; +inline bool HarassmentReport::has_target() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void HarassmentReport::set_has_target() { + _has_bits_[0] |= 0x00000001u; +} +inline void HarassmentReport::clear_has_target() { + _has_bits_[0] &= ~0x00000001u; +} +inline void HarassmentReport::clear_target() { + if (target_ != NULL) target_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + clear_has_target(); +} +inline const ::bgs::protocol::account::v1::GameAccountHandle& HarassmentReport::target() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.HarassmentReport.target) + return target_ != NULL ? *target_ : *default_instance_->target_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* HarassmentReport::mutable_target() { + set_has_target(); + if (target_ == NULL) target_ = new ::bgs::protocol::account::v1::GameAccountHandle; + // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.HarassmentReport.target) + return target_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* HarassmentReport::release_target() { + clear_has_target(); + ::bgs::protocol::account::v1::GameAccountHandle* temp = target_; + target_ = NULL; + return temp; +} +inline void HarassmentReport::set_allocated_target(::bgs::protocol::account::v1::GameAccountHandle* target) { + delete target_; + target_ = target; + if (target) { + set_has_target(); + } else { + clear_has_target(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.HarassmentReport.target) +} + +// optional string text = 2; +inline bool HarassmentReport::has_text() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void HarassmentReport::set_has_text() { + _has_bits_[0] |= 0x00000002u; +} +inline void HarassmentReport::clear_has_text() { + _has_bits_[0] &= ~0x00000002u; +} +inline void HarassmentReport::clear_text() { + if (text_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + text_->clear(); + } + clear_has_text(); +} +inline const ::std::string& HarassmentReport::text() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.HarassmentReport.text) + return *text_; +} +inline void HarassmentReport::set_text(const ::std::string& value) { + set_has_text(); + if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + text_ = new ::std::string; + } + text_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.report.v1.HarassmentReport.text) +} +inline void HarassmentReport::set_text(const char* value) { + set_has_text(); + if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + text_ = new ::std::string; + } + text_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.report.v1.HarassmentReport.text) +} +inline void HarassmentReport::set_text(const char* value, size_t size) { + set_has_text(); + if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + text_ = new ::std::string; + } + text_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.report.v1.HarassmentReport.text) +} +inline ::std::string* HarassmentReport::mutable_text() { + set_has_text(); + if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + text_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.HarassmentReport.text) + return text_; +} +inline ::std::string* HarassmentReport::release_text() { + clear_has_text(); + if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = text_; + text_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void HarassmentReport::set_allocated_text(::std::string* text) { + if (text_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete text_; + } + if (text) { + set_has_text(); + text_ = text; + } else { + clear_has_text(); + text_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.HarassmentReport.text) +} + +// ------------------------------------------------------------------- + +// RealLifeThreatReport + +// optional .bgs.protocol.account.v1.GameAccountHandle target = 1; +inline bool RealLifeThreatReport::has_target() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RealLifeThreatReport::set_has_target() { + _has_bits_[0] |= 0x00000001u; +} +inline void RealLifeThreatReport::clear_has_target() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RealLifeThreatReport::clear_target() { + if (target_ != NULL) target_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + clear_has_target(); +} +inline const ::bgs::protocol::account::v1::GameAccountHandle& RealLifeThreatReport::target() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.RealLifeThreatReport.target) + return target_ != NULL ? *target_ : *default_instance_->target_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* RealLifeThreatReport::mutable_target() { + set_has_target(); + if (target_ == NULL) target_ = new ::bgs::protocol::account::v1::GameAccountHandle; + // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.RealLifeThreatReport.target) + return target_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* RealLifeThreatReport::release_target() { + clear_has_target(); + ::bgs::protocol::account::v1::GameAccountHandle* temp = target_; + target_ = NULL; + return temp; +} +inline void RealLifeThreatReport::set_allocated_target(::bgs::protocol::account::v1::GameAccountHandle* target) { + delete target_; + target_ = target; + if (target) { + set_has_target(); + } else { + clear_has_target(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.RealLifeThreatReport.target) +} + +// optional string text = 2; +inline bool RealLifeThreatReport::has_text() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RealLifeThreatReport::set_has_text() { + _has_bits_[0] |= 0x00000002u; +} +inline void RealLifeThreatReport::clear_has_text() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RealLifeThreatReport::clear_text() { + if (text_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + text_->clear(); + } + clear_has_text(); +} +inline const ::std::string& RealLifeThreatReport::text() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.RealLifeThreatReport.text) + return *text_; +} +inline void RealLifeThreatReport::set_text(const ::std::string& value) { + set_has_text(); + if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + text_ = new ::std::string; + } + text_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.report.v1.RealLifeThreatReport.text) +} +inline void RealLifeThreatReport::set_text(const char* value) { + set_has_text(); + if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + text_ = new ::std::string; + } + text_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.report.v1.RealLifeThreatReport.text) +} +inline void RealLifeThreatReport::set_text(const char* value, size_t size) { + set_has_text(); + if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + text_ = new ::std::string; + } + text_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.report.v1.RealLifeThreatReport.text) +} +inline ::std::string* RealLifeThreatReport::mutable_text() { + set_has_text(); + if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + text_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.RealLifeThreatReport.text) + return text_; +} +inline ::std::string* RealLifeThreatReport::release_text() { + clear_has_text(); + if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = text_; + text_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void RealLifeThreatReport::set_allocated_text(::std::string* text) { + if (text_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete text_; + } + if (text) { + set_has_text(); + text_ = text; + } else { + clear_has_text(); + text_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.RealLifeThreatReport.text) +} + +// ------------------------------------------------------------------- + +// InappropriateBattleTagReport + +// optional .bgs.protocol.account.v1.GameAccountHandle target = 1; +inline bool InappropriateBattleTagReport::has_target() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void InappropriateBattleTagReport::set_has_target() { + _has_bits_[0] |= 0x00000001u; +} +inline void InappropriateBattleTagReport::clear_has_target() { + _has_bits_[0] &= ~0x00000001u; +} +inline void InappropriateBattleTagReport::clear_target() { + if (target_ != NULL) target_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + clear_has_target(); +} +inline const ::bgs::protocol::account::v1::GameAccountHandle& InappropriateBattleTagReport::target() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.InappropriateBattleTagReport.target) + return target_ != NULL ? *target_ : *default_instance_->target_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* InappropriateBattleTagReport::mutable_target() { + set_has_target(); + if (target_ == NULL) target_ = new ::bgs::protocol::account::v1::GameAccountHandle; + // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.InappropriateBattleTagReport.target) + return target_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* InappropriateBattleTagReport::release_target() { + clear_has_target(); + ::bgs::protocol::account::v1::GameAccountHandle* temp = target_; + target_ = NULL; + return temp; +} +inline void InappropriateBattleTagReport::set_allocated_target(::bgs::protocol::account::v1::GameAccountHandle* target) { + delete target_; + target_ = target; + if (target) { + set_has_target(); + } else { + clear_has_target(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.InappropriateBattleTagReport.target) +} + +// optional string battle_tag = 2; +inline bool InappropriateBattleTagReport::has_battle_tag() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void InappropriateBattleTagReport::set_has_battle_tag() { + _has_bits_[0] |= 0x00000002u; +} +inline void InappropriateBattleTagReport::clear_has_battle_tag() { + _has_bits_[0] &= ~0x00000002u; +} +inline void InappropriateBattleTagReport::clear_battle_tag() { + if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_->clear(); + } + clear_has_battle_tag(); +} +inline const ::std::string& InappropriateBattleTagReport::battle_tag() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.InappropriateBattleTagReport.battle_tag) + return *battle_tag_; +} +inline void InappropriateBattleTagReport::set_battle_tag(const ::std::string& value) { + set_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_ = new ::std::string; + } + battle_tag_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.report.v1.InappropriateBattleTagReport.battle_tag) +} +inline void InappropriateBattleTagReport::set_battle_tag(const char* value) { + set_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_ = new ::std::string; + } + battle_tag_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.report.v1.InappropriateBattleTagReport.battle_tag) +} +inline void InappropriateBattleTagReport::set_battle_tag(const char* value, size_t size) { + set_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_ = new ::std::string; + } + battle_tag_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.report.v1.InappropriateBattleTagReport.battle_tag) +} +inline ::std::string* InappropriateBattleTagReport::mutable_battle_tag() { + set_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + battle_tag_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.InappropriateBattleTagReport.battle_tag) + return battle_tag_; +} +inline ::std::string* InappropriateBattleTagReport::release_battle_tag() { + clear_has_battle_tag(); + if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = battle_tag_; + battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void InappropriateBattleTagReport::set_allocated_battle_tag(::std::string* battle_tag) { + if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete battle_tag_; + } + if (battle_tag) { + set_has_battle_tag(); + battle_tag_ = battle_tag; + } else { + clear_has_battle_tag(); + battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.InappropriateBattleTagReport.battle_tag) +} + +// ------------------------------------------------------------------- + +// HackingReport + +// optional .bgs.protocol.account.v1.GameAccountHandle target = 1; +inline bool HackingReport::has_target() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void HackingReport::set_has_target() { + _has_bits_[0] |= 0x00000001u; +} +inline void HackingReport::clear_has_target() { + _has_bits_[0] &= ~0x00000001u; +} +inline void HackingReport::clear_target() { + if (target_ != NULL) target_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + clear_has_target(); +} +inline const ::bgs::protocol::account::v1::GameAccountHandle& HackingReport::target() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.HackingReport.target) + return target_ != NULL ? *target_ : *default_instance_->target_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* HackingReport::mutable_target() { + set_has_target(); + if (target_ == NULL) target_ = new ::bgs::protocol::account::v1::GameAccountHandle; + // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.HackingReport.target) + return target_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* HackingReport::release_target() { + clear_has_target(); + ::bgs::protocol::account::v1::GameAccountHandle* temp = target_; + target_ = NULL; + return temp; +} +inline void HackingReport::set_allocated_target(::bgs::protocol::account::v1::GameAccountHandle* target) { + delete target_; + target_ = target; + if (target) { + set_has_target(); + } else { + clear_has_target(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.HackingReport.target) +} + +// ------------------------------------------------------------------- + +// BottingReport + +// optional .bgs.protocol.account.v1.GameAccountHandle target = 1; +inline bool BottingReport::has_target() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BottingReport::set_has_target() { + _has_bits_[0] |= 0x00000001u; +} +inline void BottingReport::clear_has_target() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BottingReport::clear_target() { + if (target_ != NULL) target_->::bgs::protocol::account::v1::GameAccountHandle::Clear(); + clear_has_target(); +} +inline const ::bgs::protocol::account::v1::GameAccountHandle& BottingReport::target() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.BottingReport.target) + return target_ != NULL ? *target_ : *default_instance_->target_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* BottingReport::mutable_target() { + set_has_target(); + if (target_ == NULL) target_ = new ::bgs::protocol::account::v1::GameAccountHandle; + // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.BottingReport.target) + return target_; +} +inline ::bgs::protocol::account::v1::GameAccountHandle* BottingReport::release_target() { + clear_has_target(); + ::bgs::protocol::account::v1::GameAccountHandle* temp = target_; + target_ = NULL; + return temp; +} +inline void BottingReport::set_allocated_target(::bgs::protocol::account::v1::GameAccountHandle* target) { + delete target_; + target_ = target; + if (target) { + set_has_target(); + } else { + clear_has_target(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.BottingReport.target) +} + +// ------------------------------------------------------------------- + +// Report + +// required string report_type = 1; +inline bool Report::has_report_type() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Report::set_has_report_type() { + _has_bits_[0] |= 0x00000001u; +} +inline void Report::clear_has_report_type() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Report::clear_report_type() { + if (report_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + report_type_->clear(); + } + clear_has_report_type(); +} +inline const ::std::string& Report::report_type() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.Report.report_type) + return *report_type_; +} +inline void Report::set_report_type(const ::std::string& value) { + set_has_report_type(); + if (report_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + report_type_ = new ::std::string; + } + report_type_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.report.v1.Report.report_type) +} +inline void Report::set_report_type(const char* value) { + set_has_report_type(); + if (report_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + report_type_ = new ::std::string; + } + report_type_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.report.v1.Report.report_type) +} +inline void Report::set_report_type(const char* value, size_t size) { + set_has_report_type(); + if (report_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + report_type_ = new ::std::string; + } + report_type_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.report.v1.Report.report_type) +} +inline ::std::string* Report::mutable_report_type() { + set_has_report_type(); + if (report_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + report_type_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.Report.report_type) + return report_type_; +} +inline ::std::string* Report::release_report_type() { + clear_has_report_type(); + if (report_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = report_type_; + report_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void Report::set_allocated_report_type(::std::string* report_type) { + if (report_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete report_type_; + } + if (report_type) { + set_has_report_type(); + report_type_ = report_type; + } else { + clear_has_report_type(); + report_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.Report.report_type) +} + +// repeated .bgs.protocol.Attribute attribute = 2; +inline int Report::attribute_size() const { + return attribute_.size(); +} +inline void Report::clear_attribute() { + attribute_.Clear(); +} +inline const ::bgs::protocol::Attribute& Report::attribute(int index) const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.Report.attribute) + return attribute_.Get(index); +} +inline ::bgs::protocol::Attribute* Report::mutable_attribute(int index) { + // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.Report.attribute) + return attribute_.Mutable(index); +} +inline ::bgs::protocol::Attribute* Report::add_attribute() { + // @@protoc_insertion_point(field_add:bgs.protocol.report.v1.Report.attribute) + return attribute_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >& +Report::attribute() const { + // @@protoc_insertion_point(field_list:bgs.protocol.report.v1.Report.attribute) + return attribute_; +} +inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >* +Report::mutable_attribute() { + // @@protoc_insertion_point(field_mutable_list:bgs.protocol.report.v1.Report.attribute) + return &attribute_; +} + +// optional int32 report_qos = 3 [default = 0]; +inline bool Report::has_report_qos() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void Report::set_has_report_qos() { + _has_bits_[0] |= 0x00000004u; +} +inline void Report::clear_has_report_qos() { + _has_bits_[0] &= ~0x00000004u; +} +inline void Report::clear_report_qos() { + report_qos_ = 0; + clear_has_report_qos(); +} +inline ::google::protobuf::int32 Report::report_qos() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.Report.report_qos) + return report_qos_; +} +inline void Report::set_report_qos(::google::protobuf::int32 value) { + set_has_report_qos(); + report_qos_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.report.v1.Report.report_qos) +} + +// optional .bgs.protocol.EntityId reporting_account = 4; +inline bool Report::has_reporting_account() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void Report::set_has_reporting_account() { + _has_bits_[0] |= 0x00000008u; +} +inline void Report::clear_has_reporting_account() { + _has_bits_[0] &= ~0x00000008u; +} +inline void Report::clear_reporting_account() { + if (reporting_account_ != NULL) reporting_account_->::bgs::protocol::EntityId::Clear(); + clear_has_reporting_account(); +} +inline const ::bgs::protocol::EntityId& Report::reporting_account() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.Report.reporting_account) + return reporting_account_ != NULL ? *reporting_account_ : *default_instance_->reporting_account_; +} +inline ::bgs::protocol::EntityId* Report::mutable_reporting_account() { + set_has_reporting_account(); + if (reporting_account_ == NULL) reporting_account_ = new ::bgs::protocol::EntityId; + // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.Report.reporting_account) + return reporting_account_; +} +inline ::bgs::protocol::EntityId* Report::release_reporting_account() { + clear_has_reporting_account(); + ::bgs::protocol::EntityId* temp = reporting_account_; + reporting_account_ = NULL; + return temp; +} +inline void Report::set_allocated_reporting_account(::bgs::protocol::EntityId* reporting_account) { + delete reporting_account_; + reporting_account_ = reporting_account; + if (reporting_account) { + set_has_reporting_account(); + } else { + clear_has_reporting_account(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.Report.reporting_account) +} + +// optional .bgs.protocol.EntityId reporting_game_account = 5; +inline bool Report::has_reporting_game_account() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void Report::set_has_reporting_game_account() { + _has_bits_[0] |= 0x00000010u; +} +inline void Report::clear_has_reporting_game_account() { + _has_bits_[0] &= ~0x00000010u; +} +inline void Report::clear_reporting_game_account() { + if (reporting_game_account_ != NULL) reporting_game_account_->::bgs::protocol::EntityId::Clear(); + clear_has_reporting_game_account(); +} +inline const ::bgs::protocol::EntityId& Report::reporting_game_account() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.Report.reporting_game_account) + return reporting_game_account_ != NULL ? *reporting_game_account_ : *default_instance_->reporting_game_account_; +} +inline ::bgs::protocol::EntityId* Report::mutable_reporting_game_account() { + set_has_reporting_game_account(); + if (reporting_game_account_ == NULL) reporting_game_account_ = new ::bgs::protocol::EntityId; + // @@protoc_insertion_point(field_mutable:bgs.protocol.report.v1.Report.reporting_game_account) + return reporting_game_account_; +} +inline ::bgs::protocol::EntityId* Report::release_reporting_game_account() { + clear_has_reporting_game_account(); + ::bgs::protocol::EntityId* temp = reporting_game_account_; + reporting_game_account_ = NULL; + return temp; +} +inline void Report::set_allocated_reporting_game_account(::bgs::protocol::EntityId* reporting_game_account) { + delete reporting_game_account_; + reporting_game_account_ = reporting_game_account; + if (reporting_game_account) { + set_has_reporting_game_account(); + } else { + clear_has_reporting_game_account(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.report.v1.Report.reporting_game_account) +} + +// optional fixed64 report_timestamp = 6; +inline bool Report::has_report_timestamp() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void Report::set_has_report_timestamp() { + _has_bits_[0] |= 0x00000020u; +} +inline void Report::clear_has_report_timestamp() { + _has_bits_[0] &= ~0x00000020u; +} +inline void Report::clear_report_timestamp() { + report_timestamp_ = GOOGLE_ULONGLONG(0); + clear_has_report_timestamp(); +} +inline ::google::protobuf::uint64 Report::report_timestamp() const { + // @@protoc_insertion_point(field_get:bgs.protocol.report.v1.Report.report_timestamp) + return report_timestamp_; +} +inline void Report::set_report_timestamp(::google::protobuf::uint64 value) { + set_has_report_timestamp(); + report_timestamp_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.report.v1.Report.report_timestamp) +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace report +} // namespace protocol +} // namespace bgs + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::bgs::protocol::report::v1::SpamReport_SpamSource> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::bgs::protocol::report::v1::SpamReport_SpamSource>() { + return ::bgs::protocol::report::v1::SpamReport_SpamSource_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_report_5ftypes_2eproto__INCLUDED diff --git a/src/server/proto/Client/role_types.pb.cc b/src/server/proto/Client/role_types.pb.cc index 73bc233b876..9a50d13a8b3 100644 --- a/src/server/proto/Client/role_types.pb.cc +++ b/src/server/proto/Client/role_types.pb.cc @@ -154,9 +154,12 @@ void Role::SharedCtor() { _cached_size_ = 0; id_ = 0u; name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _assignable_role_cached_byte_size_ = 0; required_ = false; unique_ = false; relegation_role_ = 0u; + _kickable_role_cached_byte_size_ = 0; + _removable_role_cached_byte_size_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } diff --git a/src/server/proto/Client/rpc_types.pb.cc b/src/server/proto/Client/rpc_types.pb.cc index 7eb6c798906..12e465c33f3 100644 --- a/src/server/proto/Client/rpc_types.pb.cc +++ b/src/server/proto/Client/rpc_types.pb.cc @@ -46,6 +46,10 @@ const ::google::protobuf::internal::GeneratedMessageReflection* const ::google::protobuf::Descriptor* ErrorInfo_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* ErrorInfo_reflection_ = NULL; +const ::google::protobuf::Descriptor* TraceInfo_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + TraceInfo_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* TraceInfo_Sampling_descriptor_ = NULL; const ::google::protobuf::Descriptor* Header_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* Header_reflection_ = NULL; @@ -153,8 +157,28 @@ void protobuf_AssignDesc_rpc_5ftypes_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(ErrorInfo)); - Header_descriptor_ = file->message_type(6); - static const int Header_offsets_[11] = { + TraceInfo_descriptor_ = file->message_type(6); + static const int TraceInfo_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TraceInfo, session_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TraceInfo, trace_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TraceInfo, span_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TraceInfo, parent_span_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TraceInfo, sampling_), + }; + TraceInfo_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + TraceInfo_descriptor_, + TraceInfo::default_instance_, + TraceInfo_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TraceInfo, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TraceInfo, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(TraceInfo)); + TraceInfo_Sampling_descriptor_ = TraceInfo_descriptor_->enum_type(0); + Header_descriptor_ = file->message_type(7); + static const int Header_offsets_[12] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Header, service_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Header, method_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Header, token_), @@ -166,6 +190,7 @@ void protobuf_AssignDesc_rpc_5ftypes_2eproto() { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Header, is_response_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Header, forward_targets_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Header, service_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Header, trace_info_), }; Header_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( @@ -203,6 +228,8 @@ void protobuf_RegisterTypes(const ::std::string&) { ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( ErrorInfo_descriptor_, &ErrorInfo::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + TraceInfo_descriptor_, &TraceInfo::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( Header_descriptor_, &Header::default_instance()); } @@ -221,6 +248,8 @@ void protobuf_ShutdownFile_rpc_5ftypes_2eproto() { delete NoData_reflection_; delete ErrorInfo::default_instance_; delete ErrorInfo_reflection_; + delete TraceInfo::default_instance_; + delete TraceInfo_reflection_; delete Header::default_instance_; delete Header_reflection_; } @@ -246,15 +275,21 @@ void protobuf_AddDesc_rpc_5ftypes_2eproto() { "\030\002 \001(\004:\0010\"\010\n\006NoData\"y\n\tErrorInfo\0223\n\016obje" "ct_address\030\001 \002(\0132\033.bgs.protocol.ObjectAd" "dress\022\016\n\006status\030\002 \002(\r\022\024\n\014service_hash\030\003 " - "\002(\r\022\021\n\tmethod_id\030\004 \002(\r\"\216\002\n\006Header\022\022\n\nser" - "vice_id\030\001 \002(\r\022\021\n\tmethod_id\030\002 \001(\r\022\r\n\005toke" - "n\030\003 \002(\r\022\024\n\tobject_id\030\004 \001(\004:\0010\022\017\n\004size\030\005 " - "\001(\r:\0010\022\021\n\006status\030\006 \001(\r:\0010\022&\n\005error\030\007 \003(\013" - "2\027.bgs.protocol.ErrorInfo\022\017\n\007timeout\030\010 \001" - "(\004\022\023\n\013is_response\030\t \001(\010\0220\n\017forward_targe" - "ts\030\n \003(\0132\027.bgs.protocol.ProcessId\022\024\n\014ser" - "vice_hash\030\013 \001(\007B\033\n\rbnet.protocolB\010RpcPro" - "toH\001P\000P\001P\002", 770); + "\002(\r\022\021\n\tmethod_id\030\004 \002(\r\"\275\001\n\tTraceInfo\022\022\n\n" + "session_id\030\001 \001(\t\022\020\n\010trace_id\030\002 \001(\t\022\017\n\007sp" + "an_id\030\003 \001(\t\022\026\n\016parent_span_id\030\004 \001(\t\0229\n\010s" + "ampling\030\005 \001(\0162 .bgs.protocol.TraceInfo.S" + "ampling:\005DEFER\"&\n\010Sampling\022\007\n\003YES\020\000\022\006\n\002N" + "O\020\001\022\t\n\005DEFER\020\002\"\273\002\n\006Header\022\022\n\nservice_id\030" + "\001 \002(\r\022\021\n\tmethod_id\030\002 \001(\r\022\r\n\005token\030\003 \002(\r\022" + "\024\n\tobject_id\030\004 \001(\004:\0010\022\017\n\004size\030\005 \001(\r:\0010\022\021" + "\n\006status\030\006 \001(\r:\0010\022&\n\005error\030\007 \003(\0132\027.bgs.p" + "rotocol.ErrorInfo\022\017\n\007timeout\030\010 \001(\004\022\023\n\013is" + "_response\030\t \001(\010\0220\n\017forward_targets\030\n \003(\013" + "2\027.bgs.protocol.ProcessId\022\024\n\014service_has" + "h\030\013 \001(\007\022+\n\ntrace_info\030\014 \001(\0132\027.bgs.protoc" + "ol.TraceInfoB\033\n\rbnet.protocolB\010RpcProtoH" + "\001P\000P\001P\002", 1007); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "rpc_types.proto", &protobuf_RegisterTypes); NO_RESPONSE::default_instance_ = new NO_RESPONSE(); @@ -263,6 +298,7 @@ void protobuf_AddDesc_rpc_5ftypes_2eproto() { ObjectAddress::default_instance_ = new ObjectAddress(); NoData::default_instance_ = new NoData(); ErrorInfo::default_instance_ = new ErrorInfo(); + TraceInfo::default_instance_ = new TraceInfo(); Header::default_instance_ = new Header(); NO_RESPONSE::default_instance_->InitAsDefaultInstance(); Address::default_instance_->InitAsDefaultInstance(); @@ -270,6 +306,7 @@ void protobuf_AddDesc_rpc_5ftypes_2eproto() { ObjectAddress::default_instance_->InitAsDefaultInstance(); NoData::default_instance_->InitAsDefaultInstance(); ErrorInfo::default_instance_->InitAsDefaultInstance(); + TraceInfo::default_instance_->InitAsDefaultInstance(); Header::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_rpc_5ftypes_2eproto); } @@ -1825,6 +1862,496 @@ void ErrorInfo::Swap(ErrorInfo* other) { // =================================================================== +const ::google::protobuf::EnumDescriptor* TraceInfo_Sampling_descriptor() { + protobuf_AssignDescriptorsOnce(); + return TraceInfo_Sampling_descriptor_; +} +bool TraceInfo_Sampling_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const TraceInfo_Sampling TraceInfo::YES; +const TraceInfo_Sampling TraceInfo::NO; +const TraceInfo_Sampling TraceInfo::DEFER; +const TraceInfo_Sampling TraceInfo::Sampling_MIN; +const TraceInfo_Sampling TraceInfo::Sampling_MAX; +const int TraceInfo::Sampling_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int TraceInfo::kSessionIdFieldNumber; +const int TraceInfo::kTraceIdFieldNumber; +const int TraceInfo::kSpanIdFieldNumber; +const int TraceInfo::kParentSpanIdFieldNumber; +const int TraceInfo::kSamplingFieldNumber; +#endif // !_MSC_VER + +TraceInfo::TraceInfo() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:bgs.protocol.TraceInfo) +} + +void TraceInfo::InitAsDefaultInstance() { +} + +TraceInfo::TraceInfo(const TraceInfo& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:bgs.protocol.TraceInfo) +} + +void TraceInfo::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + session_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + trace_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + span_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + parent_span_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + sampling_ = 2; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +TraceInfo::~TraceInfo() { + // @@protoc_insertion_point(destructor:bgs.protocol.TraceInfo) + SharedDtor(); +} + +void TraceInfo::SharedDtor() { + if (session_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete session_id_; + } + if (trace_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete trace_id_; + } + if (span_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete span_id_; + } + if (parent_span_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete parent_span_id_; + } + if (this != default_instance_) { + } +} + +void TraceInfo::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TraceInfo::descriptor() { + protobuf_AssignDescriptorsOnce(); + return TraceInfo_descriptor_; +} + +const TraceInfo& TraceInfo::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_rpc_5ftypes_2eproto(); + return *default_instance_; +} + +TraceInfo* TraceInfo::default_instance_ = NULL; + +TraceInfo* TraceInfo::New() const { + return new TraceInfo; +} + +void TraceInfo::Clear() { + if (_has_bits_[0 / 32] & 31) { + if (has_session_id()) { + if (session_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + session_id_->clear(); + } + } + if (has_trace_id()) { + if (trace_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + trace_id_->clear(); + } + } + if (has_span_id()) { + if (span_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + span_id_->clear(); + } + } + if (has_parent_span_id()) { + if (parent_span_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + parent_span_id_->clear(); + } + } + sampling_ = 2; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool TraceInfo::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:bgs.protocol.TraceInfo) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string session_id = 1; + case 1: { + if (tag == 10) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_session_id())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->session_id().data(), this->session_id().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "session_id"); + } else { + goto handle_unusual; + } + if (input->ExpectTag(18)) goto parse_trace_id; + break; + } + + // optional string trace_id = 2; + case 2: { + if (tag == 18) { + parse_trace_id: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_trace_id())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->trace_id().data(), this->trace_id().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "trace_id"); + } else { + goto handle_unusual; + } + if (input->ExpectTag(26)) goto parse_span_id; + break; + } + + // optional string span_id = 3; + case 3: { + if (tag == 26) { + parse_span_id: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_span_id())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->span_id().data(), this->span_id().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "span_id"); + } else { + goto handle_unusual; + } + if (input->ExpectTag(34)) goto parse_parent_span_id; + break; + } + + // optional string parent_span_id = 4; + case 4: { + if (tag == 34) { + parse_parent_span_id: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_parent_span_id())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->parent_span_id().data(), this->parent_span_id().length(), + ::google::protobuf::internal::WireFormat::PARSE, + "parent_span_id"); + } else { + goto handle_unusual; + } + if (input->ExpectTag(40)) goto parse_sampling; + break; + } + + // optional .bgs.protocol.TraceInfo.Sampling sampling = 5 [default = DEFER]; + case 5: { + if (tag == 40) { + parse_sampling: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::bgs::protocol::TraceInfo_Sampling_IsValid(value)) { + set_sampling(static_cast< ::bgs::protocol::TraceInfo_Sampling >(value)); + } else { + mutable_unknown_fields()->AddVarint(5, value); + } + } else { + goto handle_unusual; + } + if (input->ExpectAtEnd()) goto success; + break; + } + + default: { + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:bgs.protocol.TraceInfo) + return true; +failure: + // @@protoc_insertion_point(parse_failure:bgs.protocol.TraceInfo) + return false; +#undef DO_ +} + +void TraceInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:bgs.protocol.TraceInfo) + // optional string session_id = 1; + if (has_session_id()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->session_id().data(), this->session_id().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "session_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->session_id(), output); + } + + // optional string trace_id = 2; + if (has_trace_id()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->trace_id().data(), this->trace_id().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "trace_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->trace_id(), output); + } + + // optional string span_id = 3; + if (has_span_id()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->span_id().data(), this->span_id().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "span_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->span_id(), output); + } + + // optional string parent_span_id = 4; + if (has_parent_span_id()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->parent_span_id().data(), this->parent_span_id().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "parent_span_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->parent_span_id(), output); + } + + // optional .bgs.protocol.TraceInfo.Sampling sampling = 5 [default = DEFER]; + if (has_sampling()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 5, this->sampling(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:bgs.protocol.TraceInfo) +} + +::google::protobuf::uint8* TraceInfo::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:bgs.protocol.TraceInfo) + // optional string session_id = 1; + if (has_session_id()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->session_id().data(), this->session_id().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "session_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->session_id(), target); + } + + // optional string trace_id = 2; + if (has_trace_id()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->trace_id().data(), this->trace_id().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "trace_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->trace_id(), target); + } + + // optional string span_id = 3; + if (has_span_id()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->span_id().data(), this->span_id().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "span_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->span_id(), target); + } + + // optional string parent_span_id = 4; + if (has_parent_span_id()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->parent_span_id().data(), this->parent_span_id().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "parent_span_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->parent_span_id(), target); + } + + // optional .bgs.protocol.TraceInfo.Sampling sampling = 5 [default = DEFER]; + if (has_sampling()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 5, this->sampling(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:bgs.protocol.TraceInfo) + return target; +} + +int TraceInfo::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional string session_id = 1; + if (has_session_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->session_id()); + } + + // optional string trace_id = 2; + if (has_trace_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->trace_id()); + } + + // optional string span_id = 3; + if (has_span_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->span_id()); + } + + // optional string parent_span_id = 4; + if (has_parent_span_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->parent_span_id()); + } + + // optional .bgs.protocol.TraceInfo.Sampling sampling = 5 [default = DEFER]; + if (has_sampling()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->sampling()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TraceInfo::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const TraceInfo* source = + ::google::protobuf::internal::dynamic_cast_if_available<const TraceInfo*>( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void TraceInfo::MergeFrom(const TraceInfo& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_session_id()) { + set_session_id(from.session_id()); + } + if (from.has_trace_id()) { + set_trace_id(from.trace_id()); + } + if (from.has_span_id()) { + set_span_id(from.span_id()); + } + if (from.has_parent_span_id()) { + set_parent_span_id(from.parent_span_id()); + } + if (from.has_sampling()) { + set_sampling(from.sampling()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void TraceInfo::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TraceInfo::CopyFrom(const TraceInfo& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TraceInfo::IsInitialized() const { + + return true; +} + +void TraceInfo::Swap(TraceInfo* other) { + if (other != this) { + std::swap(session_id_, other->session_id_); + std::swap(trace_id_, other->trace_id_); + std::swap(span_id_, other->span_id_); + std::swap(parent_span_id_, other->parent_span_id_); + std::swap(sampling_, other->sampling_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata TraceInfo::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = TraceInfo_descriptor_; + metadata.reflection = TraceInfo_reflection_; + return metadata; +} + + +// =================================================================== + #ifndef _MSC_VER const int Header::kServiceIdFieldNumber; const int Header::kMethodIdFieldNumber; @@ -1837,6 +2364,7 @@ const int Header::kTimeoutFieldNumber; const int Header::kIsResponseFieldNumber; const int Header::kForwardTargetsFieldNumber; const int Header::kServiceHashFieldNumber; +const int Header::kTraceInfoFieldNumber; #endif // !_MSC_VER Header::Header() @@ -1846,6 +2374,7 @@ Header::Header() } void Header::InitAsDefaultInstance() { + trace_info_ = const_cast< ::bgs::protocol::TraceInfo*>(&::bgs::protocol::TraceInfo::default_instance()); } Header::Header(const Header& from) @@ -1866,6 +2395,7 @@ void Header::SharedCtor() { timeout_ = GOOGLE_ULONGLONG(0); is_response_ = false; service_hash_ = 0u; + trace_info_ = NULL; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -1876,6 +2406,7 @@ Header::~Header() { void Header::SharedDtor() { if (this != default_instance_) { + delete trace_info_; } } @@ -1916,9 +2447,12 @@ void Header::Clear() { status_ = 0u; timeout_ = GOOGLE_ULONGLONG(0); } - if (_has_bits_[8 / 32] & 1280) { + if (_has_bits_[8 / 32] & 3328) { is_response_ = false; service_hash_ = 0u; + if (has_trace_info()) { + if (trace_info_ != NULL) trace_info_->::bgs::protocol::TraceInfo::Clear(); + } } #undef OFFSET_OF_FIELD_ @@ -2098,6 +2632,19 @@ bool Header::MergePartialFromCodedStream( } else { goto handle_unusual; } + if (input->ExpectTag(98)) goto parse_trace_info; + break; + } + + // optional .bgs.protocol.TraceInfo trace_info = 12; + case 12: { + if (tag == 98) { + parse_trace_info: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_trace_info())); + } else { + goto handle_unusual; + } if (input->ExpectAtEnd()) goto success; break; } @@ -2184,6 +2731,12 @@ void Header::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteFixed32(11, this->service_hash(), output); } + // optional .bgs.protocol.TraceInfo trace_info = 12; + if (has_trace_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 12, this->trace_info(), output); + } + if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); @@ -2253,6 +2806,13 @@ void Header::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(11, this->service_hash(), target); } + // optional .bgs.protocol.TraceInfo trace_info = 12; + if (has_trace_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 12, this->trace_info(), target); + } + if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); @@ -2326,6 +2886,13 @@ int Header::ByteSize() const { total_size += 1 + 4; } + // optional .bgs.protocol.TraceInfo trace_info = 12; + if (has_trace_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->trace_info()); + } + } // repeated .bgs.protocol.ErrorInfo error = 7; total_size += 1 * this->error_size(); @@ -2400,6 +2967,9 @@ void Header::MergeFrom(const Header& from) { if (from.has_service_hash()) { set_service_hash(from.service_hash()); } + if (from.has_trace_info()) { + mutable_trace_info()->::bgs::protocol::TraceInfo::MergeFrom(from.trace_info()); + } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } @@ -2437,6 +3007,7 @@ void Header::Swap(Header* other) { std::swap(is_response_, other->is_response_); forward_targets_.Swap(&other->forward_targets_); std::swap(service_hash_, other->service_hash_); + std::swap(trace_info_, other->trace_info_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); diff --git a/src/server/proto/Client/rpc_types.pb.h b/src/server/proto/Client/rpc_types.pb.h index 6742a7394b7..2ace3cac87e 100644 --- a/src/server/proto/Client/rpc_types.pb.h +++ b/src/server/proto/Client/rpc_types.pb.h @@ -23,6 +23,7 @@ #include <google/protobuf/message.h> #include <google/protobuf/repeated_field.h> #include <google/protobuf/extension_set.h> +#include <google/protobuf/generated_enum_reflection.h> #include <google/protobuf/unknown_field_set.h> #include "global_extensions/method_options.pb.h" // IWYU pragma: export #include "global_extensions/service_options.pb.h" // IWYU pragma: export @@ -44,8 +45,29 @@ class ProcessId; class ObjectAddress; class NoData; class ErrorInfo; +class TraceInfo; class Header; +enum TraceInfo_Sampling { + TraceInfo_Sampling_YES = 0, + TraceInfo_Sampling_NO = 1, + TraceInfo_Sampling_DEFER = 2 +}; +TC_PROTO_API bool TraceInfo_Sampling_IsValid(int value); +const TraceInfo_Sampling TraceInfo_Sampling_Sampling_MIN = TraceInfo_Sampling_YES; +const TraceInfo_Sampling TraceInfo_Sampling_Sampling_MAX = TraceInfo_Sampling_DEFER; +const int TraceInfo_Sampling_Sampling_ARRAYSIZE = TraceInfo_Sampling_Sampling_MAX + 1; + +TC_PROTO_API const ::google::protobuf::EnumDescriptor* TraceInfo_Sampling_descriptor(); +inline const ::std::string& TraceInfo_Sampling_Name(TraceInfo_Sampling value) { + return ::google::protobuf::internal::NameOfEnum( + TraceInfo_Sampling_descriptor(), value); +} +inline bool TraceInfo_Sampling_Parse( + const ::std::string& name, TraceInfo_Sampling* value) { + return ::google::protobuf::internal::ParseNamedEnum<TraceInfo_Sampling>( + TraceInfo_Sampling_descriptor(), name, value); +} // =================================================================== class TC_PROTO_API NO_RESPONSE : public ::google::protobuf::Message { @@ -571,6 +593,170 @@ class TC_PROTO_API ErrorInfo : public ::google::protobuf::Message { }; // ------------------------------------------------------------------- +class TC_PROTO_API TraceInfo : public ::google::protobuf::Message { + public: + TraceInfo(); + virtual ~TraceInfo(); + + TraceInfo(const TraceInfo& from); + + inline TraceInfo& operator=(const TraceInfo& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TraceInfo& default_instance(); + + void Swap(TraceInfo* other); + + // implements Message ---------------------------------------------- + + TraceInfo* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const TraceInfo& from); + void MergeFrom(const TraceInfo& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef TraceInfo_Sampling Sampling; + static const Sampling YES = TraceInfo_Sampling_YES; + static const Sampling NO = TraceInfo_Sampling_NO; + static const Sampling DEFER = TraceInfo_Sampling_DEFER; + static inline bool Sampling_IsValid(int value) { + return TraceInfo_Sampling_IsValid(value); + } + static const Sampling Sampling_MIN = + TraceInfo_Sampling_Sampling_MIN; + static const Sampling Sampling_MAX = + TraceInfo_Sampling_Sampling_MAX; + static const int Sampling_ARRAYSIZE = + TraceInfo_Sampling_Sampling_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Sampling_descriptor() { + return TraceInfo_Sampling_descriptor(); + } + static inline const ::std::string& Sampling_Name(Sampling value) { + return TraceInfo_Sampling_Name(value); + } + static inline bool Sampling_Parse(const ::std::string& name, + Sampling* value) { + return TraceInfo_Sampling_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // optional string session_id = 1; + inline bool has_session_id() const; + inline void clear_session_id(); + static const int kSessionIdFieldNumber = 1; + inline const ::std::string& session_id() const; + inline void set_session_id(const ::std::string& value); + inline void set_session_id(const char* value); + inline void set_session_id(const char* value, size_t size); + inline ::std::string* mutable_session_id(); + inline ::std::string* release_session_id(); + inline void set_allocated_session_id(::std::string* session_id); + + // optional string trace_id = 2; + inline bool has_trace_id() const; + inline void clear_trace_id(); + static const int kTraceIdFieldNumber = 2; + inline const ::std::string& trace_id() const; + inline void set_trace_id(const ::std::string& value); + inline void set_trace_id(const char* value); + inline void set_trace_id(const char* value, size_t size); + inline ::std::string* mutable_trace_id(); + inline ::std::string* release_trace_id(); + inline void set_allocated_trace_id(::std::string* trace_id); + + // optional string span_id = 3; + inline bool has_span_id() const; + inline void clear_span_id(); + static const int kSpanIdFieldNumber = 3; + inline const ::std::string& span_id() const; + inline void set_span_id(const ::std::string& value); + inline void set_span_id(const char* value); + inline void set_span_id(const char* value, size_t size); + inline ::std::string* mutable_span_id(); + inline ::std::string* release_span_id(); + inline void set_allocated_span_id(::std::string* span_id); + + // optional string parent_span_id = 4; + inline bool has_parent_span_id() const; + inline void clear_parent_span_id(); + static const int kParentSpanIdFieldNumber = 4; + inline const ::std::string& parent_span_id() const; + inline void set_parent_span_id(const ::std::string& value); + inline void set_parent_span_id(const char* value); + inline void set_parent_span_id(const char* value, size_t size); + inline ::std::string* mutable_parent_span_id(); + inline ::std::string* release_parent_span_id(); + inline void set_allocated_parent_span_id(::std::string* parent_span_id); + + // optional .bgs.protocol.TraceInfo.Sampling sampling = 5 [default = DEFER]; + inline bool has_sampling() const; + inline void clear_sampling(); + static const int kSamplingFieldNumber = 5; + inline ::bgs::protocol::TraceInfo_Sampling sampling() const; + inline void set_sampling(::bgs::protocol::TraceInfo_Sampling value); + + // @@protoc_insertion_point(class_scope:bgs.protocol.TraceInfo) + private: + inline void set_has_session_id(); + inline void clear_has_session_id(); + inline void set_has_trace_id(); + inline void clear_has_trace_id(); + inline void set_has_span_id(); + inline void clear_has_span_id(); + inline void set_has_parent_span_id(); + inline void clear_has_parent_span_id(); + inline void set_has_sampling(); + inline void clear_has_sampling(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::std::string* session_id_; + ::std::string* trace_id_; + ::std::string* span_id_; + ::std::string* parent_span_id_; + int sampling_; + friend void TC_PROTO_API protobuf_AddDesc_rpc_5ftypes_2eproto(); + friend void protobuf_AssignDesc_rpc_5ftypes_2eproto(); + friend void protobuf_ShutdownFile_rpc_5ftypes_2eproto(); + + void InitAsDefaultInstance(); + static TraceInfo* default_instance_; +}; +// ------------------------------------------------------------------- + class TC_PROTO_API Header : public ::google::protobuf::Message { public: Header(); @@ -711,6 +897,15 @@ class TC_PROTO_API Header : public ::google::protobuf::Message { inline ::google::protobuf::uint32 service_hash() const; inline void set_service_hash(::google::protobuf::uint32 value); + // optional .bgs.protocol.TraceInfo trace_info = 12; + inline bool has_trace_info() const; + inline void clear_trace_info(); + static const int kTraceInfoFieldNumber = 12; + inline const ::bgs::protocol::TraceInfo& trace_info() const; + inline ::bgs::protocol::TraceInfo* mutable_trace_info(); + inline ::bgs::protocol::TraceInfo* release_trace_info(); + inline void set_allocated_trace_info(::bgs::protocol::TraceInfo* trace_info); + // @@protoc_insertion_point(class_scope:bgs.protocol.Header) private: inline void set_has_service_id(); @@ -731,6 +926,8 @@ class TC_PROTO_API Header : public ::google::protobuf::Message { inline void clear_has_is_response(); inline void set_has_service_hash(); inline void clear_has_service_hash(); + inline void set_has_trace_info(); + inline void clear_has_trace_info(); ::google::protobuf::UnknownFieldSet _unknown_fields_; @@ -746,6 +943,7 @@ class TC_PROTO_API Header : public ::google::protobuf::Message { bool is_response_; ::google::protobuf::uint64 timeout_; ::google::protobuf::RepeatedPtrField< ::bgs::protocol::ProcessId > forward_targets_; + ::bgs::protocol::TraceInfo* trace_info_; ::google::protobuf::uint32 service_hash_; friend void TC_PROTO_API protobuf_AddDesc_rpc_5ftypes_2eproto(); friend void protobuf_AssignDesc_rpc_5ftypes_2eproto(); @@ -1112,6 +1310,339 @@ inline void ErrorInfo::set_method_id(::google::protobuf::uint32 value) { // ------------------------------------------------------------------- +// TraceInfo + +// optional string session_id = 1; +inline bool TraceInfo::has_session_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TraceInfo::set_has_session_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void TraceInfo::clear_has_session_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TraceInfo::clear_session_id() { + if (session_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + session_id_->clear(); + } + clear_has_session_id(); +} +inline const ::std::string& TraceInfo::session_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.TraceInfo.session_id) + return *session_id_; +} +inline void TraceInfo::set_session_id(const ::std::string& value) { + set_has_session_id(); + if (session_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + session_id_ = new ::std::string; + } + session_id_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.TraceInfo.session_id) +} +inline void TraceInfo::set_session_id(const char* value) { + set_has_session_id(); + if (session_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + session_id_ = new ::std::string; + } + session_id_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.TraceInfo.session_id) +} +inline void TraceInfo::set_session_id(const char* value, size_t size) { + set_has_session_id(); + if (session_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + session_id_ = new ::std::string; + } + session_id_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.TraceInfo.session_id) +} +inline ::std::string* TraceInfo::mutable_session_id() { + set_has_session_id(); + if (session_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + session_id_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.TraceInfo.session_id) + return session_id_; +} +inline ::std::string* TraceInfo::release_session_id() { + clear_has_session_id(); + if (session_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = session_id_; + session_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void TraceInfo::set_allocated_session_id(::std::string* session_id) { + if (session_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete session_id_; + } + if (session_id) { + set_has_session_id(); + session_id_ = session_id; + } else { + clear_has_session_id(); + session_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.TraceInfo.session_id) +} + +// optional string trace_id = 2; +inline bool TraceInfo::has_trace_id() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TraceInfo::set_has_trace_id() { + _has_bits_[0] |= 0x00000002u; +} +inline void TraceInfo::clear_has_trace_id() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TraceInfo::clear_trace_id() { + if (trace_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + trace_id_->clear(); + } + clear_has_trace_id(); +} +inline const ::std::string& TraceInfo::trace_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.TraceInfo.trace_id) + return *trace_id_; +} +inline void TraceInfo::set_trace_id(const ::std::string& value) { + set_has_trace_id(); + if (trace_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + trace_id_ = new ::std::string; + } + trace_id_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.TraceInfo.trace_id) +} +inline void TraceInfo::set_trace_id(const char* value) { + set_has_trace_id(); + if (trace_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + trace_id_ = new ::std::string; + } + trace_id_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.TraceInfo.trace_id) +} +inline void TraceInfo::set_trace_id(const char* value, size_t size) { + set_has_trace_id(); + if (trace_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + trace_id_ = new ::std::string; + } + trace_id_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.TraceInfo.trace_id) +} +inline ::std::string* TraceInfo::mutable_trace_id() { + set_has_trace_id(); + if (trace_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + trace_id_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.TraceInfo.trace_id) + return trace_id_; +} +inline ::std::string* TraceInfo::release_trace_id() { + clear_has_trace_id(); + if (trace_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = trace_id_; + trace_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void TraceInfo::set_allocated_trace_id(::std::string* trace_id) { + if (trace_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete trace_id_; + } + if (trace_id) { + set_has_trace_id(); + trace_id_ = trace_id; + } else { + clear_has_trace_id(); + trace_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.TraceInfo.trace_id) +} + +// optional string span_id = 3; +inline bool TraceInfo::has_span_id() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TraceInfo::set_has_span_id() { + _has_bits_[0] |= 0x00000004u; +} +inline void TraceInfo::clear_has_span_id() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TraceInfo::clear_span_id() { + if (span_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + span_id_->clear(); + } + clear_has_span_id(); +} +inline const ::std::string& TraceInfo::span_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.TraceInfo.span_id) + return *span_id_; +} +inline void TraceInfo::set_span_id(const ::std::string& value) { + set_has_span_id(); + if (span_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + span_id_ = new ::std::string; + } + span_id_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.TraceInfo.span_id) +} +inline void TraceInfo::set_span_id(const char* value) { + set_has_span_id(); + if (span_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + span_id_ = new ::std::string; + } + span_id_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.TraceInfo.span_id) +} +inline void TraceInfo::set_span_id(const char* value, size_t size) { + set_has_span_id(); + if (span_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + span_id_ = new ::std::string; + } + span_id_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.TraceInfo.span_id) +} +inline ::std::string* TraceInfo::mutable_span_id() { + set_has_span_id(); + if (span_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + span_id_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.TraceInfo.span_id) + return span_id_; +} +inline ::std::string* TraceInfo::release_span_id() { + clear_has_span_id(); + if (span_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = span_id_; + span_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void TraceInfo::set_allocated_span_id(::std::string* span_id) { + if (span_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete span_id_; + } + if (span_id) { + set_has_span_id(); + span_id_ = span_id; + } else { + clear_has_span_id(); + span_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.TraceInfo.span_id) +} + +// optional string parent_span_id = 4; +inline bool TraceInfo::has_parent_span_id() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void TraceInfo::set_has_parent_span_id() { + _has_bits_[0] |= 0x00000008u; +} +inline void TraceInfo::clear_has_parent_span_id() { + _has_bits_[0] &= ~0x00000008u; +} +inline void TraceInfo::clear_parent_span_id() { + if (parent_span_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + parent_span_id_->clear(); + } + clear_has_parent_span_id(); +} +inline const ::std::string& TraceInfo::parent_span_id() const { + // @@protoc_insertion_point(field_get:bgs.protocol.TraceInfo.parent_span_id) + return *parent_span_id_; +} +inline void TraceInfo::set_parent_span_id(const ::std::string& value) { + set_has_parent_span_id(); + if (parent_span_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + parent_span_id_ = new ::std::string; + } + parent_span_id_->assign(value); + // @@protoc_insertion_point(field_set:bgs.protocol.TraceInfo.parent_span_id) +} +inline void TraceInfo::set_parent_span_id(const char* value) { + set_has_parent_span_id(); + if (parent_span_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + parent_span_id_ = new ::std::string; + } + parent_span_id_->assign(value); + // @@protoc_insertion_point(field_set_char:bgs.protocol.TraceInfo.parent_span_id) +} +inline void TraceInfo::set_parent_span_id(const char* value, size_t size) { + set_has_parent_span_id(); + if (parent_span_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + parent_span_id_ = new ::std::string; + } + parent_span_id_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:bgs.protocol.TraceInfo.parent_span_id) +} +inline ::std::string* TraceInfo::mutable_parent_span_id() { + set_has_parent_span_id(); + if (parent_span_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + parent_span_id_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:bgs.protocol.TraceInfo.parent_span_id) + return parent_span_id_; +} +inline ::std::string* TraceInfo::release_parent_span_id() { + clear_has_parent_span_id(); + if (parent_span_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = parent_span_id_; + parent_span_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void TraceInfo::set_allocated_parent_span_id(::std::string* parent_span_id) { + if (parent_span_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete parent_span_id_; + } + if (parent_span_id) { + set_has_parent_span_id(); + parent_span_id_ = parent_span_id; + } else { + clear_has_parent_span_id(); + parent_span_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.TraceInfo.parent_span_id) +} + +// optional .bgs.protocol.TraceInfo.Sampling sampling = 5 [default = DEFER]; +inline bool TraceInfo::has_sampling() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void TraceInfo::set_has_sampling() { + _has_bits_[0] |= 0x00000010u; +} +inline void TraceInfo::clear_has_sampling() { + _has_bits_[0] &= ~0x00000010u; +} +inline void TraceInfo::clear_sampling() { + sampling_ = 2; + clear_has_sampling(); +} +inline ::bgs::protocol::TraceInfo_Sampling TraceInfo::sampling() const { + // @@protoc_insertion_point(field_get:bgs.protocol.TraceInfo.sampling) + return static_cast< ::bgs::protocol::TraceInfo_Sampling >(sampling_); +} +inline void TraceInfo::set_sampling(::bgs::protocol::TraceInfo_Sampling value) { + assert(::bgs::protocol::TraceInfo_Sampling_IsValid(value)); + set_has_sampling(); + sampling_ = value; + // @@protoc_insertion_point(field_set:bgs.protocol.TraceInfo.sampling) +} + +// ------------------------------------------------------------------- + // Header // required uint32 service_id = 1; @@ -1390,6 +1921,47 @@ inline void Header::set_service_hash(::google::protobuf::uint32 value) { // @@protoc_insertion_point(field_set:bgs.protocol.Header.service_hash) } +// optional .bgs.protocol.TraceInfo trace_info = 12; +inline bool Header::has_trace_info() const { + return (_has_bits_[0] & 0x00000800u) != 0; +} +inline void Header::set_has_trace_info() { + _has_bits_[0] |= 0x00000800u; +} +inline void Header::clear_has_trace_info() { + _has_bits_[0] &= ~0x00000800u; +} +inline void Header::clear_trace_info() { + if (trace_info_ != NULL) trace_info_->::bgs::protocol::TraceInfo::Clear(); + clear_has_trace_info(); +} +inline const ::bgs::protocol::TraceInfo& Header::trace_info() const { + // @@protoc_insertion_point(field_get:bgs.protocol.Header.trace_info) + return trace_info_ != NULL ? *trace_info_ : *default_instance_->trace_info_; +} +inline ::bgs::protocol::TraceInfo* Header::mutable_trace_info() { + set_has_trace_info(); + if (trace_info_ == NULL) trace_info_ = new ::bgs::protocol::TraceInfo; + // @@protoc_insertion_point(field_mutable:bgs.protocol.Header.trace_info) + return trace_info_; +} +inline ::bgs::protocol::TraceInfo* Header::release_trace_info() { + clear_has_trace_info(); + ::bgs::protocol::TraceInfo* temp = trace_info_; + trace_info_ = NULL; + return temp; +} +inline void Header::set_allocated_trace_info(::bgs::protocol::TraceInfo* trace_info) { + delete trace_info_; + trace_info_ = trace_info; + if (trace_info) { + set_has_trace_info(); + } else { + clear_has_trace_info(); + } + // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Header.trace_info) +} + // @@protoc_insertion_point(namespace_scope) @@ -1400,6 +1972,11 @@ inline void Header::set_service_hash(::google::protobuf::uint32 value) { namespace google { namespace protobuf { +template <> struct is_proto_enum< ::bgs::protocol::TraceInfo_Sampling> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::bgs::protocol::TraceInfo_Sampling>() { + return ::bgs::protocol::TraceInfo_Sampling_descriptor(); +} } // namespace google } // namespace protobuf diff --git a/src/server/proto/Client/user_manager_types.pb.cc b/src/server/proto/Client/user_manager_types.pb.cc index c296b09230f..cd3857a9b14 100644 --- a/src/server/proto/Client/user_manager_types.pb.cc +++ b/src/server/proto/Client/user_manager_types.pb.cc @@ -635,6 +635,7 @@ void BlockedPlayer::SharedCtor() { _cached_size_ = 0; account_id_ = NULL; name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _role_cached_byte_size_ = 0; privileges_ = GOOGLE_ULONGLONG(0); ::memset(_has_bits_, 0, sizeof(_has_bits_)); } |